|
|
@@ -45,12 +45,12 @@
|
|
|
<div class="NPC-top-right">
|
|
|
<el-popover placement="right-start" width="60" trigger="click">
|
|
|
<ul class="show-obj-list">
|
|
|
- <li @click="handleShow('pinyin')" v-if="colHasContent[0]">
|
|
|
+ <li v-if="colHasContent[0]" @click="handleShow('pinyin')">
|
|
|
<span>拼音</span
|
|
|
><i
|
|
|
+ v-if="showObj.pinyin"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.pinyin"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -61,9 +61,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -72,15 +72,15 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('newWord')" v-if="colHasContent[1]">
|
|
|
+ <li v-if="colHasContent[1]" @click="handleShow('newWord')">
|
|
|
<span>生词</span
|
|
|
><i
|
|
|
+ v-if="showObj.newWord"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.newWord"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -91,9 +91,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -102,15 +102,15 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('cixing')" v-if="colHasContent[2]">
|
|
|
+ <li v-if="colHasContent[2]" @click="handleShow('cixing')">
|
|
|
<span>词性</span
|
|
|
><i
|
|
|
+ v-if="showObj.cixing"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.cixing"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -121,9 +121,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -132,15 +132,15 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('shiyi')" v-if="colHasContent[3]">
|
|
|
+ <li v-if="colHasContent[3]" @click="handleShow('shiyi')">
|
|
|
<span>释义</span
|
|
|
><i
|
|
|
+ v-if="showObj.shiyi"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.shiyi"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -151,9 +151,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -162,15 +162,15 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('collocation')" v-if="colHasContent[4]">
|
|
|
+ <li v-if="colHasContent[4]" @click="handleShow('collocation')">
|
|
|
<span>搭配</span
|
|
|
><i
|
|
|
+ v-if="showObj.collocation"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.collocation"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -181,9 +181,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -192,15 +192,15 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('liju')" v-if="colHasContent[5]">
|
|
|
+ <li v-if="colHasContent[5]" @click="handleShow('liju')">
|
|
|
<span>例句</span
|
|
|
><i
|
|
|
+ v-if="showObj.liju"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj.liju"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -211,9 +211,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -222,16 +222,16 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
<template v-for="(item, index) in data.addCol">
|
|
|
- <li @click="handleShow(item.key)" :key="index" v-if="colHasContent[6 + index]">
|
|
|
+ <li v-if="colHasContent[6 + index]" :key="index" @click="handleShow(item.key)">
|
|
|
<span>{{ item.label }}</span
|
|
|
><i
|
|
|
+ v-if="showObj[item.key]"
|
|
|
slot="suffix"
|
|
|
class="el-icon-view show-icon"
|
|
|
- v-if="showObj[item.key]"
|
|
|
size="16"
|
|
|
:style="{
|
|
|
color:
|
|
|
@@ -242,9 +242,9 @@
|
|
|
}"
|
|
|
></i>
|
|
|
<i
|
|
|
+ v-else
|
|
|
slot="suffix"
|
|
|
class="show-icon"
|
|
|
- v-else
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -253,14 +253,14 @@
|
|
|
marginLeft: '5px',
|
|
|
}"
|
|
|
>
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible" />
|
|
|
</i>
|
|
|
</li>
|
|
|
</template>
|
|
|
</ul>
|
|
|
<SvgIcon
|
|
|
- slot="reference"
|
|
|
v-show="is_list"
|
|
|
+ slot="reference"
|
|
|
icon-class="list2"
|
|
|
size="24"
|
|
|
:style="{
|
|
|
@@ -445,6 +445,7 @@
|
|
|
</span>
|
|
|
|
|
|
<span
|
|
|
+ v-if="showObj.newWord"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
@@ -453,7 +454,6 @@
|
|
|
fontFamily:
|
|
|
data.unified_attrib && data.unified_attrib.font ? data.unified_attrib.font : '',
|
|
|
}"
|
|
|
- v-if="showObj.newWord"
|
|
|
class="NPC-word-tab-common NPC-word-tab-word"
|
|
|
v-html="convertText(sanitizeHTML(sItem.new_word))"
|
|
|
>
|
|
|
@@ -485,6 +485,7 @@
|
|
|
</div>
|
|
|
<span>
|
|
|
<p
|
|
|
+ v-if="showObj.cixing"
|
|
|
class="NPC-word-tab-common NPC-word-tab-cixing"
|
|
|
:class="[/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(sItem.cixing) ? 'hasCn' : '']"
|
|
|
:style="{
|
|
|
@@ -494,7 +495,6 @@
|
|
|
: '',
|
|
|
}"
|
|
|
v-html="convertText(sanitizeHTML(sItem.cixing))"
|
|
|
- v-if="showObj.cixing"
|
|
|
></p>
|
|
|
<span
|
|
|
v-if="
|
|
|
@@ -575,13 +575,13 @@
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-cixing"
|
|
|
:class="[/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(sItem.cixing) ? 'hasCn' : '']"
|
|
|
- v-html="convertText(sanitizeHTML(sItem.cixing))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.cixing))"
|
|
|
></p>
|
|
|
|
|
|
<span
|
|
|
@@ -602,13 +602,13 @@
|
|
|
<span v-if="showObj.shiyi">
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-def"
|
|
|
- v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
></p>
|
|
|
<span
|
|
|
v-if="
|
|
|
@@ -626,13 +626,13 @@
|
|
|
<span class="collocation"
|
|
|
><span>{{ convertText('搭配:') }}</span
|
|
|
><b
|
|
|
- v-html="convertText(sanitizeHTML(sItem.collocation))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.collocation))"
|
|
|
></b
|
|
|
></span>
|
|
|
<span v-if="showLang" class="">
|
|
|
@@ -650,13 +650,13 @@
|
|
|
><span>{{ convertText('例句:') }}</span>
|
|
|
<div>
|
|
|
<b
|
|
|
- v-html="convertText(sanitizeHTML(sItem.liju_list))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.liju_list))"
|
|
|
></b>
|
|
|
</div>
|
|
|
</span>
|
|
|
@@ -676,13 +676,13 @@
|
|
|
><span>{{ convertText(itemC.label + ':') }}</span>
|
|
|
<div>
|
|
|
<b
|
|
|
- v-html="convertText(sanitizeHTML(sItem[itemC.key]))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem[itemC.key]))"
|
|
|
></b>
|
|
|
</div>
|
|
|
</span>
|
|
|
@@ -828,6 +828,7 @@
|
|
|
</span>
|
|
|
|
|
|
<span
|
|
|
+ v-if="showObj.newWord && colHasContent[1]"
|
|
|
:style="{
|
|
|
width: data.col_width[0].value + 'px',
|
|
|
flex: !data.col_width[0].value || data.col_width[0].value === '0' ? '1' : '',
|
|
|
@@ -838,7 +839,6 @@
|
|
|
fontFamily:
|
|
|
data.unified_attrib && data.unified_attrib.font ? data.unified_attrib.font : '',
|
|
|
}"
|
|
|
- v-if="showObj.newWord && colHasContent[1]"
|
|
|
class="NPC-word-tab-common NPC-word-tab-word"
|
|
|
v-html="convertText(sanitizeHTML(sItem.new_word))"
|
|
|
>
|
|
|
@@ -876,11 +876,11 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<span
|
|
|
+ v-if="showObj.cixing && colHasContent[2]"
|
|
|
:style="{
|
|
|
width: data.col_width[2].value + 'px',
|
|
|
flex: !data.col_width[2].value || data.col_width[2].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
- v-if="showObj.cixing && colHasContent[2]"
|
|
|
>
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-cixing"
|
|
|
@@ -906,21 +906,21 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
<span
|
|
|
+ v-if="showObj.shiyi && colHasContent[3]"
|
|
|
:style="{
|
|
|
width: data.col_width[3].value + 'px',
|
|
|
flex: !data.col_width[3].value || data.col_width[3].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
- v-if="showObj.shiyi && colHasContent[3]"
|
|
|
>
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-def"
|
|
|
- v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
></p>
|
|
|
<span
|
|
|
v-if="
|
|
|
@@ -959,11 +959,11 @@
|
|
|
>
|
|
|
</span>
|
|
|
<span
|
|
|
+ v-if="showObj.newWord && colHasContent[1]"
|
|
|
:style="{
|
|
|
width: data.col_width[0].value + 'px',
|
|
|
flex: !data.col_width[0].value || data.col_width[0].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
- v-if="showObj.newWord && colHasContent[1]"
|
|
|
>
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-word"
|
|
|
@@ -1012,11 +1012,11 @@
|
|
|
>
|
|
|
</span>
|
|
|
<span
|
|
|
+ v-if="showObj.cixing && colHasContent[2]"
|
|
|
:style="{
|
|
|
width: data.col_width[2].value + 'px',
|
|
|
flex: !data.col_width[2].value || data.col_width[2].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
- v-if="showObj.cixing && colHasContent[2]"
|
|
|
>
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-cixing"
|
|
|
@@ -1043,21 +1043,21 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
<span
|
|
|
+ v-if="showObj.shiyi && colHasContent[3]"
|
|
|
:style="{
|
|
|
width: data.col_width[3].value + 'px',
|
|
|
flex: !data.col_width[3].value || data.col_width[3].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
- v-if="showObj.shiyi && colHasContent[3]"
|
|
|
>
|
|
|
<p
|
|
|
class="NPC-word-tab-common NPC-word-tab-def"
|
|
|
- v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.def_str))"
|
|
|
></p>
|
|
|
<span
|
|
|
v-if="
|
|
|
@@ -1099,16 +1099,17 @@
|
|
|
flex: !data.col_width[4].value || data.col_width[4].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
>
|
|
|
- <span class="collocation" v-if="sItem.collocation"
|
|
|
+ <span v-if="sItem.collocation"
|
|
|
+class="collocation"
|
|
|
><span>{{ convertText('搭配:') }}</span
|
|
|
><b
|
|
|
- v-html="convertText(sanitizeHTML(sItem.collocation))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.collocation))"
|
|
|
></b
|
|
|
></span>
|
|
|
<span v-if="showLang" class="">
|
|
|
@@ -1128,17 +1129,18 @@
|
|
|
flex: !data.col_width[5].value || data.col_width[5].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
>
|
|
|
- <span class="collocation" v-if="sItem.liju_list"
|
|
|
+ <span v-if="sItem.liju_list"
|
|
|
+class="collocation"
|
|
|
><span>{{ convertText('例句:') }}</span>
|
|
|
<div>
|
|
|
<b
|
|
|
- v-html="convertText(sanitizeHTML(sItem.liju_list))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem.liju_list))"
|
|
|
></b>
|
|
|
</div>
|
|
|
</span>
|
|
|
@@ -1154,25 +1156,26 @@
|
|
|
</div>
|
|
|
<template v-for="(itemC, indexC) in data.addCol">
|
|
|
<div
|
|
|
- :key="indexC"
|
|
|
v-if="showObj[itemC.key] && colHasContent[6 + indexC]"
|
|
|
+ :key="indexC"
|
|
|
:style="{
|
|
|
width: data.col_width[6 + indexC].value + 'px',
|
|
|
flex:
|
|
|
!data.col_width[6 + indexC].value || data.col_width[6 + indexC].value === '0' ? '1' : '',
|
|
|
}"
|
|
|
>
|
|
|
- <span class="collocation" v-if="sItem[itemC.key]"
|
|
|
+ <span v-if="sItem[itemC.key]"
|
|
|
+class="collocation"
|
|
|
><span>{{ convertText(itemC.label + ':') }}</span>
|
|
|
<div>
|
|
|
<b
|
|
|
- v-html="convertText(sanitizeHTML(sItem[itemC.key]))"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.font_size
|
|
|
? data.unified_attrib.font_size
|
|
|
: '',
|
|
|
}"
|
|
|
+ v-html="convertText(sanitizeHTML(sItem[itemC.key]))"
|
|
|
></b>
|
|
|
</div>
|
|
|
</span>
|
|
|
@@ -1559,8 +1562,8 @@ export default {
|
|
|
Strockplay,
|
|
|
writeTableZoom,
|
|
|
},
|
|
|
- inject: ['getCoursewareId'],
|
|
|
mixins: [PreviewMixin],
|
|
|
+ inject: ['getCoursewareId'],
|
|
|
props: {
|
|
|
newData: {
|
|
|
type: Object,
|
|
|
@@ -1623,10 +1626,8 @@ export default {
|
|
|
height += this.data.unified_attrib.pinyin_size.replace('pt', '') * 1.5;
|
|
|
}
|
|
|
}
|
|
|
- } else {
|
|
|
- if (this.data.unified_attrib && this.data.unified_attrib.font_size) {
|
|
|
- height = (this.data.unified_attrib.font_size.replace('pt', '') * 1.5 - (24 * 3) / 4) / 2;
|
|
|
- }
|
|
|
+ } else if (this.data.unified_attrib && this.data.unified_attrib.font_size) {
|
|
|
+ height = (this.data.unified_attrib.font_size.replace('pt', '') * 1.5 - (24 * 3) / 4) / 2;
|
|
|
}
|
|
|
return `${height}pt`;
|
|
|
},
|
|
|
@@ -1640,10 +1641,8 @@ export default {
|
|
|
height += this.data.unified_attrib.pinyin_size.replace('pt', '') * 1.5;
|
|
|
}
|
|
|
}
|
|
|
- } else {
|
|
|
- if (this.data.unified_attrib && this.data.unified_attrib.font_size) {
|
|
|
- height = (this.data.unified_attrib.font_size.replace('pt', '') * 1.5 - (16 * 3) / 4) / 2;
|
|
|
- }
|
|
|
+ } else if (this.data.unified_attrib && this.data.unified_attrib.font_size) {
|
|
|
+ height = (this.data.unified_attrib.font_size.replace('pt', '') * 1.5 - (16 * 3) / 4) / 2;
|
|
|
}
|
|
|
return `${height}pt`;
|
|
|
},
|
|
|
@@ -1855,17 +1854,17 @@ export default {
|
|
|
let collocation_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.collocation}`, '');
|
|
|
let liju_list_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.liju_list}`, '');
|
|
|
this.colHasContent = [
|
|
|
- pinyin_col ? true : false,
|
|
|
- new_word_col ? true : false,
|
|
|
- cixing_col ? true : false,
|
|
|
- def_str_col ? true : false,
|
|
|
- collocation_col ? true : false,
|
|
|
- liju_list_col ? true : false,
|
|
|
+ Boolean(pinyin_col),
|
|
|
+ Boolean(new_word_col),
|
|
|
+ Boolean(cixing_col),
|
|
|
+ Boolean(def_str_col),
|
|
|
+ Boolean(collocation_col),
|
|
|
+ Boolean(liju_list_col),
|
|
|
];
|
|
|
if (this.data.addCol) {
|
|
|
this.data.addCol.forEach((item) => {
|
|
|
let str_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss[item.key]}`, '');
|
|
|
- this.colHasContent.push(str_col ? true : false);
|
|
|
+ this.colHasContent.push(Boolean(str_col));
|
|
|
});
|
|
|
}
|
|
|
this.data.col_width.forEach((item, index) => {
|