|
|
@@ -43,49 +43,6 @@
|
|
|
@SubmitTranslation="handleMultilingualTranslation"
|
|
|
/>
|
|
|
</div>
|
|
|
- <template v-if="isEnable(data.property.view_pinyin)">
|
|
|
- <el-divider content-position="left"
|
|
|
- >拼音效果<el-button
|
|
|
- v-show="isEnable(data.property.view_pinyin)"
|
|
|
- type="text"
|
|
|
- icon="el-icon-refresh"
|
|
|
- title="刷新"
|
|
|
- class="refresh-pinyin-btn"
|
|
|
- @click.native="handleChangeContent"
|
|
|
- /></el-divider>
|
|
|
- <div v-for="(item, index) in data.detail" :key="index" class="text">
|
|
|
- <template v-for="(witem, windex) in item.wordsList">
|
|
|
- <div
|
|
|
- v-for="(wItem, wIndex) in witem"
|
|
|
- :key="windex + '-' + wIndex"
|
|
|
- class="text-item"
|
|
|
- :style="{
|
|
|
- textAlign: windex === 0 && wIndex === 0 ? 'left' : '',
|
|
|
- }"
|
|
|
- @click="selectItem(wItem)"
|
|
|
- >
|
|
|
- <span class="pinyin">{{
|
|
|
- windex === 0 &&
|
|
|
- wIndex === 0 &&
|
|
|
- data.property.is_first_sentence_first_hz_pinyin_first_char_upper_case === 'true'
|
|
|
- ? wItem.pinyin_up
|
|
|
- : wItem.pinyin
|
|
|
- }}</span>
|
|
|
- <span
|
|
|
- class="word"
|
|
|
- :style="{
|
|
|
- fontFamily: wItem.fontFamily,
|
|
|
- textDecoration: wItem.textDecoration,
|
|
|
- borderBottom: wItem.border === 'dotted' ? '1px dotted' : '',
|
|
|
- fontWeight: wItem.fontWeight,
|
|
|
- color: wItem.color,
|
|
|
- }"
|
|
|
- >{{ wItem.chs }}</span
|
|
|
- >
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
v-if="dialogFlag"
|
|
|
@@ -187,6 +144,50 @@
|
|
|
@sureNewWords="sureOtherNewWords"
|
|
|
/>
|
|
|
</template>
|
|
|
+
|
|
|
+ <template v-if="isEnable(data.property.view_pinyin)">
|
|
|
+ <el-divider content-position="left"
|
|
|
+ >拼音效果<el-button
|
|
|
+ v-show="isEnable(data.property.view_pinyin)"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ title="刷新"
|
|
|
+ class="refresh-pinyin-btn"
|
|
|
+ @click.native="handleChangeContent"
|
|
|
+ /></el-divider>
|
|
|
+ <div v-for="(item, index) in data.detail" :key="index" class="text">
|
|
|
+ <template v-for="(witem, windex) in item.wordsList">
|
|
|
+ <div
|
|
|
+ v-for="(wItem, wIndex) in witem"
|
|
|
+ :key="windex + '-' + wIndex"
|
|
|
+ class="text-item"
|
|
|
+ :style="{
|
|
|
+ textAlign: windex === 0 && wIndex === 0 ? 'left' : '',
|
|
|
+ }"
|
|
|
+ @click="selectItem(wItem)"
|
|
|
+ >
|
|
|
+ <span class="pinyin">{{
|
|
|
+ windex === 0 &&
|
|
|
+ wIndex === 0 &&
|
|
|
+ data.property.is_first_sentence_first_hz_pinyin_first_char_upper_case === 'true'
|
|
|
+ ? wItem.pinyin_up
|
|
|
+ : wItem.pinyin
|
|
|
+ }}</span>
|
|
|
+ <span
|
|
|
+ class="word"
|
|
|
+ :style="{
|
|
|
+ fontFamily: wItem.fontFamily,
|
|
|
+ textDecoration: wItem.textDecoration,
|
|
|
+ borderBottom: wItem.border === 'dotted' ? '1px dotted' : '',
|
|
|
+ fontWeight: wItem.fontWeight,
|
|
|
+ color: wItem.color,
|
|
|
+ }"
|
|
|
+ >{{ wItem.chs }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<!-- </el-dialog> -->
|
|
|
<!-- 添加图片 -->
|
|
|
<el-dialog
|