|
@@ -88,7 +88,7 @@
|
|
|
chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
|
|
|
"
|
|
|
>
|
|
|
- <span class="NNPE-words-box" :style="boxStyle(pItem.config)">
|
|
|
+ <span class="NNPE-words-box" :style="boxStyle(pItem.config,item.isHasPY)">
|
|
|
<span
|
|
|
v-if="item.isHasPY > 0 && pyPosition == 'top'"
|
|
|
class="NNPE-pinyin"
|
|
@@ -209,7 +209,7 @@
|
|
|
<span
|
|
|
class="NNPE-words-box"
|
|
|
v-if="item.wordsList[pIndex + 1]"
|
|
|
- :style="boxStyle(item.wordsList[pIndex + 1].config)"
|
|
|
+ :style="boxStyle(item.wordsList[pIndex + 1].config,item.isHasPY)"
|
|
|
>
|
|
|
<span
|
|
|
v-if="item.isHasPY > 0 && pyPosition == 'top'"
|
|
@@ -274,7 +274,7 @@
|
|
|
chsFhList.indexOf(item.wordsList[pIndex + 2].chs) >
|
|
|
-1
|
|
|
"
|
|
|
- :style="boxStyle(item.wordsList[pIndex + 2].config)"
|
|
|
+ :style="boxStyle(item.wordsList[pIndex + 2].config,item.isHasPY)"
|
|
|
>
|
|
|
<span
|
|
|
v-if="
|
|
@@ -832,10 +832,10 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
boxStyle(){
|
|
|
- return function (config) {
|
|
|
+ return function (config,isHasPY) {
|
|
|
let sizeVal = config && config.fontSize ? config.fontSize.replace("px", "") : 20;
|
|
|
return {
|
|
|
- minHeight: Number(sizeVal) + 9 + 22 + "px",
|
|
|
+ minHeight: (Number(sizeVal) + 9) + (isHasPY?22:0) + "px",
|
|
|
};
|
|
|
};
|
|
|
}
|