|
@@ -64,22 +64,42 @@
|
|
|
{{ it.pinyin }}
|
|
|
</p>
|
|
|
<p
|
|
|
- style="
|
|
|
- font-family: 'FZJCGFKTK';
|
|
|
- font-size: 20px;
|
|
|
- line-height: 150%;
|
|
|
- "
|
|
|
+ :style="{
|
|
|
+ fontSize: it.fontSize? it.fontSize: '20px',
|
|
|
+ color: it.fontColor?it.fontColor:'#606266',
|
|
|
+ fontFamily: it.fontFamily?it.fontFamily:'FZJCGFKTK',
|
|
|
+ 'line-height':'150%'
|
|
|
+ }"
|
|
|
+ :class="[
|
|
|
+ it.wordPadding.indexOf('left') > -1
|
|
|
+ ? 'dleft'
|
|
|
+ : '',
|
|
|
+ it.wordPadding.indexOf('right') > -1
|
|
|
+ ? 'dright'
|
|
|
+ : '',
|
|
|
+ it.underLine ? 'underline' : ''
|
|
|
+ ]"
|
|
|
>
|
|
|
{{ it.chs }}
|
|
|
</p>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<p
|
|
|
- style="
|
|
|
- font-family: 'FZJCGFKTK';
|
|
|
- font-size: 20px;
|
|
|
- line-height: 150%;
|
|
|
- "
|
|
|
+ :style="{
|
|
|
+ fontSize: it.fontSize? it.fontSize: '20px',
|
|
|
+ color: it.fontColor?it.fontColor:'#606266',
|
|
|
+ fontFamily: it.fontFamily?it.fontFamily:'FZJCGFKTK',
|
|
|
+ 'line-height':'150%'
|
|
|
+ }"
|
|
|
+ :class="[
|
|
|
+ it.wordPadding.indexOf('left') > -1
|
|
|
+ ? 'dleft'
|
|
|
+ : '',
|
|
|
+ it.wordPadding.indexOf('right') > -1
|
|
|
+ ? 'dright'
|
|
|
+ : '',
|
|
|
+ it.underLine ? 'underline' : ''
|
|
|
+ ]"
|
|
|
>
|
|
|
{{ it.chs }}
|
|
|
</p>
|
|
@@ -185,22 +205,42 @@
|
|
|
{{ it.pinyin }}
|
|
|
</p>
|
|
|
<p
|
|
|
- style="
|
|
|
- font-family: 'FZJCGFKTK';
|
|
|
- font-size: 20px;
|
|
|
- line-height: 150%;
|
|
|
- "
|
|
|
+ :style="{
|
|
|
+ fontSize: it.fontSize? it.fontSize: '20px',
|
|
|
+ color: it.fontColor?it.fontColor:'#606266',
|
|
|
+ fontFamily: it.fontFamily?it.fontFamily:'FZJCGFKTK',
|
|
|
+ 'line-height':'150%'
|
|
|
+ }"
|
|
|
+ :class="[
|
|
|
+ it.wordPadding.indexOf('left') > -1
|
|
|
+ ? 'dleft'
|
|
|
+ : '',
|
|
|
+ it.wordPadding.indexOf('right') > -1
|
|
|
+ ? 'dright'
|
|
|
+ : '',
|
|
|
+ it.underLine ? 'underline' : ''
|
|
|
+ ]"
|
|
|
>
|
|
|
{{ it.chs }}
|
|
|
</p>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<p
|
|
|
- style="
|
|
|
- font-family: 'FZJCGFKTK';
|
|
|
- font-size: 20px;
|
|
|
- line-height: 150%;
|
|
|
- "
|
|
|
+ :style="{
|
|
|
+ fontSize: it.fontSize? it.fontSize: '20px',
|
|
|
+ color: it.fontColor?it.fontColor:'#606266',
|
|
|
+ fontFamily: it.fontFamily?it.fontFamily:'FZJCGFKTK',
|
|
|
+ 'line-height':'150%'
|
|
|
+ }"
|
|
|
+ :class="[
|
|
|
+ it.wordPadding.indexOf('left') > -1
|
|
|
+ ? 'dleft'
|
|
|
+ : '',
|
|
|
+ it.wordPadding.indexOf('right') > -1
|
|
|
+ ? 'dright'
|
|
|
+ : '',
|
|
|
+ it.underLine ? 'underline' : '',
|
|
|
+ ]"
|
|
|
>
|
|
|
{{ it.chs }}
|
|
|
</p>
|
|
@@ -861,6 +901,15 @@ export default {
|
|
|
word-break: break-word;
|
|
|
p {
|
|
|
margin: 0;
|
|
|
+ &.dleft {
|
|
|
+ padding-left: 4px;
|
|
|
+ }
|
|
|
+ &.dright{
|
|
|
+ padding-right: 4px;
|
|
|
+ }
|
|
|
+ &.underline{
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -940,6 +989,15 @@ export default {
|
|
|
word-break: break-word;
|
|
|
p {
|
|
|
margin: 0;
|
|
|
+ &.dleft {
|
|
|
+ padding-left: 4px;
|
|
|
+ }
|
|
|
+ &.dright{
|
|
|
+ padding-right: 4px;
|
|
|
+ }
|
|
|
+ &.underline{
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|