|
@@ -232,7 +232,10 @@
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="'font-size:' + pySize + 'px'"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ pItem.pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -270,7 +273,12 @@
|
|
|
: '',
|
|
|
pItem.words && !isPlaying ? 'newActive' : ''
|
|
|
]"
|
|
|
- :style="'font-size:' + hzSize + 'px'"
|
|
|
+ :style="{
|
|
|
+ fontSize: hzSize + 'px',
|
|
|
+ fontFamily: pItem.config.fontFamily,
|
|
|
+ height: hzSize * 1.17 + 'px',
|
|
|
+ display: 'inline-block'
|
|
|
+ }"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -284,7 +292,10 @@
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="'font-size:' + pySize + 'px'"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ pItem.pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -300,7 +311,11 @@
|
|
|
: '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px', textAlign: left }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ textAlign: left,
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 1].pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -331,7 +346,12 @@
|
|
|
? 'newActive'
|
|
|
: ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px' }"
|
|
|
+ :style="{
|
|
|
+ fontSize: hzSize + 'px',
|
|
|
+ fontFamily: item[pIndex + 1].config.fontFamily,
|
|
|
+ height: hzSize * 1.17 + 'px',
|
|
|
+ display: 'inline-block'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 1].chs }}</span
|
|
|
>
|
|
|
</span>
|
|
@@ -346,7 +366,11 @@
|
|
|
bgIndex == 1 ? 'font-white' : '',
|
|
|
'bottom'
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px', textAlign: left }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ textAlign: left,
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 1].pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -369,7 +393,11 @@
|
|
|
: '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px', textAlign: left }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ textAlign: left,
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 2].pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -400,7 +428,12 @@
|
|
|
? 'newActive'
|
|
|
: ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px' }"
|
|
|
+ :style="{
|
|
|
+ fontSize: hzSize + 'px',
|
|
|
+ fontFamily: item[pIndex + 2].config.fontFamily,
|
|
|
+ height: hzSize * 1.17 + 'px',
|
|
|
+ display: 'inline-block'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 2].chs }}</span
|
|
|
>
|
|
|
</span>
|
|
@@ -415,7 +448,11 @@
|
|
|
bgIndex == 1 ? 'font-white' : '',
|
|
|
'bottom'
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px', textAlign: left }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ textAlign: left,
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ item[pIndex + 2].pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -433,7 +470,10 @@
|
|
|
noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px' }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ pItem.pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -475,7 +515,12 @@
|
|
|
: '',
|
|
|
pItem.words && !isPlaying ? 'newActive' : ''
|
|
|
]"
|
|
|
- :style="{ fontSize: hzSize + 'px' }"
|
|
|
+ :style="{
|
|
|
+ fontSize: hzSize + 'px',
|
|
|
+ fontFamily: pItem.config.fontFamily,
|
|
|
+ height: hzSize * 1.17 + 'px',
|
|
|
+ display: 'inline-block'
|
|
|
+ }"
|
|
|
>{{ pItem.chs[wIndex] }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -490,7 +535,10 @@
|
|
|
pItem.className ? pItem.className : '',
|
|
|
bgIndex == 1 ? 'font-white' : ''
|
|
|
]"
|
|
|
- :style="{ fontSize: pySize + 'px' }"
|
|
|
+ :style="{
|
|
|
+ fontSize: pySize + 'px',
|
|
|
+ height: pySize * 1.25 + 'px'
|
|
|
+ }"
|
|
|
>{{ pItem.pinyin }}</span
|
|
|
>
|
|
|
</template>
|
|
@@ -706,7 +754,7 @@ export default {
|
|
|
"⑲",
|
|
|
"⑳"
|
|
|
],
|
|
|
- chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
|
|
|
+ chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
|
|
|
enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
|
|
|
curTime: 0,
|
|
|
wavblob: null,
|