|
@@ -1,13 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<div class="pinyin-area">
|
|
<div class="pinyin-area">
|
|
<div v-for="(paragraph, i) in paragraphList" :key="i" class="pinyin-paragraph">
|
|
<div v-for="(paragraph, i) in paragraphList" :key="i" class="pinyin-paragraph">
|
|
- <div
|
|
|
|
|
|
+ <span
|
|
v-for="(sentence, j) in paragraph"
|
|
v-for="(sentence, j) in paragraph"
|
|
:key="j"
|
|
:key="j"
|
|
class="pinyin-sentence"
|
|
class="pinyin-sentence"
|
|
:style="{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }"
|
|
:style="{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }"
|
|
>
|
|
>
|
|
- <div v-for="(item, k) in sentence" :key="k" class="pinyin-text">
|
|
|
|
|
|
+ <span v-for="(item, k) in sentence" :key="k" class="pinyin-text">
|
|
<span
|
|
<span
|
|
:class="{ active: visible && word_index == k && paragraph_index === i && sentence_index === j }"
|
|
:class="{ active: visible && word_index == k && paragraph_index === i && sentence_index === j }"
|
|
:title="isPreview ? '' : '点击校对'"
|
|
:title="isPreview ? '' : '点击校对'"
|
|
@@ -31,8 +31,8 @@
|
|
<span class="py-char">{{ item.text }}</span>
|
|
<span class="py-char">{{ item.text }}</span>
|
|
<span v-if="pinyinPosition !== 'top'" class="pinyin">{{ item.pinyin.replace(/\s+/g, '') }}</span>
|
|
<span v-if="pinyinPosition !== 'top'" class="pinyin">{{ item.pinyin.replace(/\s+/g, '') }}</span>
|
|
</span>
|
|
</span>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<CorrectPinyin :visible.sync="visible" :select-content="selectContent" @fillTonePinyin="fillTonePinyin" />
|
|
<CorrectPinyin :visible.sync="visible" :select-content="selectContent" @fillTonePinyin="fillTonePinyin" />
|
|
@@ -99,19 +99,15 @@ export default {
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.pinyin-area {
|
|
.pinyin-area {
|
|
.pinyin-paragraph {
|
|
.pinyin-paragraph {
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
-
|
|
|
|
.pinyin-sentence {
|
|
.pinyin-sentence {
|
|
- display: flex;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
- column-gap: 4px;
|
|
|
|
-
|
|
|
|
.pinyin-text {
|
|
.pinyin-text {
|
|
|
|
+ padding: 0 2px;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
|
+ text-wrap: pretty;
|
|
|
|
+ hanging-punctuation: allow-end;
|
|
|
|
|
|
> span {
|
|
> span {
|
|
- display: flex;
|
|
|
|
|
|
+ display: inline-flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
@@ -121,7 +117,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.pinyin {
|
|
.pinyin {
|
|
- font-family: 'League';
|
|
|
|
|
|
+ font-family: 'PINYIN-B';
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
font-weight: lighter;
|
|
font-weight: lighter;
|
|
line-height: 12px;
|
|
line-height: 12px;
|