|
|
@@ -132,6 +132,13 @@
|
|
|
pItem.className ? pItem.className : '',
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -143,7 +150,25 @@
|
|
|
"
|
|
|
>{{ pItem.pinyin }}</span
|
|
|
>
|
|
|
- <span class="NNPE-chs">
|
|
|
+ <span
|
|
|
+ class="NNPE-chs"
|
|
|
+ :style="{
|
|
|
+ fontFamily: pItem.config.fontFamily,
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
+ display: 'inline-block',
|
|
|
+ color:
|
|
|
+ paraIndex == pItem.paraIndex &&
|
|
|
+ sentIndex == pItem.sentIndex &&
|
|
|
+ wordIndex == pItem.wordIndex &&
|
|
|
+ attrib
|
|
|
+ ? attrib.topic_color
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
<template>
|
|
|
<span
|
|
|
v-for="(wItem, wIndex) in pItem.leg"
|
|
|
@@ -158,7 +183,10 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
fontFamily: pItem.config.fontFamily,
|
|
|
- height: '28px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
display: 'inline-block',
|
|
|
color:
|
|
|
pItem.chstimeList &&
|
|
|
@@ -168,6 +196,11 @@
|
|
|
attrib
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size
|
|
|
+ ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
|
|
|
+ : '28px',
|
|
|
}"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
@@ -189,6 +222,13 @@
|
|
|
pItem.className ? pItem.className : '',
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -207,6 +247,14 @@
|
|
|
class="NNPE-pinyin"
|
|
|
:class="[noFont.indexOf(item.wordsList[pIndex + 1].pinyin) > -1 ? 'noFont' : '']"
|
|
|
style="text-align: left"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -232,7 +280,8 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
fontFamily: item.wordsList[pIndex + 1].config.fontFamily,
|
|
|
- height: '28px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
display: 'inline-block',
|
|
|
color:
|
|
|
pItem.chstimeList &&
|
|
|
@@ -243,6 +292,9 @@
|
|
|
attrib
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
}"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
@@ -264,6 +316,14 @@
|
|
|
class="NNPE-pinyin"
|
|
|
:class="[noFont.indexOf(item.wordsList[pIndex + 1].pinyin) > -1 ? 'noFont' : '']"
|
|
|
style="text-align: left"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -292,6 +352,14 @@
|
|
|
noFont.indexOf(item.wordsList[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
style="text-align: left"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -317,7 +385,8 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
fontFamily: item.wordsList[pIndex + 2].config.fontFamily,
|
|
|
- height: '28px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
display: 'inline-block',
|
|
|
color:
|
|
|
pItem.chstimeList &&
|
|
|
@@ -328,6 +397,9 @@
|
|
|
attrib
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
}"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
@@ -351,6 +423,14 @@
|
|
|
noFont.indexOf(item.wordsList[pIndex + 2].pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
style="text-align: left"
|
|
|
+ style="text-align: left"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size
|
|
|
+ ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt'
|
|
|
+ : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -373,6 +453,11 @@
|
|
|
pItem.className ? pItem.className : '',
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -389,6 +474,22 @@
|
|
|
v-if="pItem.chs != '#'"
|
|
|
class="NNPE-chs"
|
|
|
:class="[pItem.chs != '“' && pItem.padding && config.isShowPY ? 'padding' : '']"
|
|
|
+ :style="{
|
|
|
+ fontFamily: pItem.config.fontFamily,
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
+ display: 'inline-block',
|
|
|
+ color:
|
|
|
+ paraIndex == pItem.paraIndex &&
|
|
|
+ sentIndex == pItem.sentIndex &&
|
|
|
+ wordIndex == pItem.wordIndex &&
|
|
|
+ attrib
|
|
|
+ ? attrib.topic_color
|
|
|
+ : '',
|
|
|
+ }"
|
|
|
>
|
|
|
<template>
|
|
|
<span
|
|
|
@@ -404,7 +505,8 @@
|
|
|
]"
|
|
|
:style="{
|
|
|
fontFamily: pItem.config.fontFamily,
|
|
|
- height: '28px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
display: 'inline-block',
|
|
|
color:
|
|
|
pItem.chstimeList &&
|
|
|
@@ -414,6 +516,9 @@
|
|
|
attrib
|
|
|
? attrib.topic_color
|
|
|
: '',
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
|
|
|
+ lineHeight:
|
|
|
+ attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
|
|
|
}"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
@@ -436,6 +541,11 @@
|
|
|
pItem.className ? pItem.className : '',
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.pinyin_size ? attrib.pinyin_size : '14px',
|
|
|
+ height:
|
|
|
+ attrib && attrib.pinyin_size ? attrib.pinyin_size.replace('pt', '') * 1.5 + 'pt' : '22px',
|
|
|
+ }"
|
|
|
@click.stop="
|
|
|
viewNotes(
|
|
|
$event,
|
|
|
@@ -1088,6 +1198,7 @@ export default {
|
|
|
|
|
|
.NNPE-words {
|
|
|
float: left;
|
|
|
+ padding-bottom: 5px;
|
|
|
|
|
|
&-box {
|
|
|
float: left;
|
|
|
@@ -1100,7 +1211,7 @@ export default {
|
|
|
font-family: 'League';
|
|
|
font-size: 14px;
|
|
|
font-weight: normal;
|
|
|
- line-height: 22px;
|
|
|
+ line-height: 1.5;
|
|
|
color: #000;
|
|
|
|
|
|
&.noFont {
|
|
|
@@ -1119,7 +1230,7 @@ export default {
|
|
|
&.NNPE-chs {
|
|
|
font-family: '楷体';
|
|
|
font-size: 20px;
|
|
|
- line-height: 28px;
|
|
|
+ line-height: 1.4;
|
|
|
color: #000;
|
|
|
|
|
|
&.active {
|
|
|
@@ -1161,7 +1272,7 @@ export default {
|
|
|
font-family: 'League';
|
|
|
font-size: 14px;
|
|
|
font-weight: normal;
|
|
|
- line-height: 22px;
|
|
|
+ line-height: 1.5;
|
|
|
color: #000;
|
|
|
|
|
|
&.noFont {
|
|
|
@@ -1180,7 +1291,7 @@ export default {
|
|
|
&.NNPE-chs {
|
|
|
font-family: '楷体';
|
|
|
font-size: 20px;
|
|
|
- line-height: 28px;
|
|
|
+ line-height: 1.4;
|
|
|
color: #000;
|
|
|
|
|
|
&.active {
|