|
@@ -304,7 +304,7 @@
|
|
|
:key="indexsss + 'word'"
|
|
|
:class="['word']"
|
|
|
>
|
|
|
- <div
|
|
|
+ <span
|
|
|
v-if="pinyinShow"
|
|
|
:class="['pinyin']"
|
|
|
:style="{
|
|
@@ -313,9 +313,9 @@
|
|
|
}"
|
|
|
>
|
|
|
{{ word.pinyin }}
|
|
|
- </div>
|
|
|
- <!-- <br v-if="pinyinShow" /> -->
|
|
|
- <div
|
|
|
+ </span>
|
|
|
+ <br v-if="pinyinShow" />
|
|
|
+ <span
|
|
|
class="hanzi"
|
|
|
:style="{
|
|
|
fontSize: wordFontsize + 'px',
|
|
@@ -356,7 +356,7 @@
|
|
|
}"
|
|
|
>
|
|
|
{{ word.word }}
|
|
|
- </div>
|
|
|
+ </span>
|
|
|
</span>
|
|
|
</template>
|
|
|
<template v-else>
|
|
@@ -365,7 +365,7 @@
|
|
|
v-for="(word, indexsss) in itemss.text"
|
|
|
:key="indexsss + 'word'"
|
|
|
>
|
|
|
- <div
|
|
|
+ <span
|
|
|
v-if="pinyinShow"
|
|
|
:class="['pinyin']"
|
|
|
:style="{
|
|
@@ -374,9 +374,9 @@
|
|
|
}"
|
|
|
>
|
|
|
{{ word.pinyin }}
|
|
|
- </div>
|
|
|
- <!-- <br v-if="pinyinShow" /> -->
|
|
|
- <div
|
|
|
+ </span>
|
|
|
+ <br v-if="pinyinShow" />
|
|
|
+ <span
|
|
|
class="hanzi"
|
|
|
:style="{
|
|
|
fontSize: wordFontsize + 'px',
|
|
@@ -417,7 +417,7 @@
|
|
|
}"
|
|
|
>
|
|
|
{{ word.word }}
|
|
|
- </div>
|
|
|
+ </span>
|
|
|
</span>
|
|
|
</template>
|
|
|
</span>
|
|
@@ -543,9 +543,6 @@ export default {
|
|
|
.sentence {
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
- .word{
|
|
|
- float:left;
|
|
|
- }
|
|
|
.pinyin {
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
text-align: center;
|
|
@@ -573,6 +570,7 @@ export default {
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>`;
|
|
|
+ console.log(cxzcxz);
|
|
|
let converted = htmlDocx.asBlob(content);
|
|
|
FileSaver.saveAs(converted, "文章.docx");
|
|
|
},
|
|
@@ -1602,7 +1600,6 @@ export default {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.pinyin {
|
|
|
- display: inline-block;
|
|
|
min-height: 12px;
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
text-align: center;
|