|
|
@ -141,6 +141,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #bookremark="{ row }">
|
|
|
|
<template #bookremark="{ row }">
|
|
|
|
|
|
|
|
<!-- @mouseover="remarkhover($event, row)" -->
|
|
|
|
<div class="bookremark" @mouseover="remarkhover($event, row)" @mouseleave="remarkLeave($event, row)">
|
|
|
|
<div class="bookremark" @mouseover="remarkhover($event, row)" @mouseleave="remarkLeave($event, row)">
|
|
|
|
<span class="reamrk-label">
|
|
|
|
<span class="reamrk-label">
|
|
|
|
<template v-for="remark in row.bookremark">
|
|
|
|
<template v-for="remark in row.bookremark">
|
|
|
@ -763,8 +764,15 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
remarkhover (e, data) {
|
|
|
|
remarkhover (e, data) {
|
|
|
|
if (data.bookremark.length > 0) {
|
|
|
|
if (data.bookremark.length > 0) {
|
|
|
|
this.remarkScreenX = e.pageX + 20
|
|
|
|
const maxWidth = window.innerWidth
|
|
|
|
|
|
|
|
const maxHeight = window.innerHeight
|
|
|
|
|
|
|
|
if (maxWidth - e.pageX > 230) {
|
|
|
|
|
|
|
|
this.remarkScreenX = e.pageX + 20
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.remarkScreenX = e.pageX - 300
|
|
|
|
|
|
|
|
}
|
|
|
|
this.remarkScreenY = e.pageY + 20
|
|
|
|
this.remarkScreenY = e.pageY + 20
|
|
|
|
|
|
|
|
console.log(this.remarkScreenX, this.remarkScreenY, maxWidth, maxHeight)
|
|
|
|
this.remarkData = data.bookremark
|
|
|
|
this.remarkData = data.bookremark
|
|
|
|
this.remarkShow = true
|
|
|
|
this.remarkShow = true
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1303,6 +1311,7 @@ export default {
|
|
|
|
line-height: 18px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-size: 12px;
|
|
|
|
color: #666;
|
|
|
|
color: #666;
|
|
|
|
|
|
|
|
word-break:break-all;
|
|
|
|
&:nth-last-of-type(1){
|
|
|
|
&:nth-last-of-type(1){
|
|
|
|
border: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|