|
|
@@ -45,7 +45,7 @@
|
|
|
<div class="NPC-top-right">
|
|
|
<el-popover placement="right-start" width="60" trigger="click">
|
|
|
<ul class="show-obj-list">
|
|
|
- <li @click="handleShow('pinyin')">
|
|
|
+ <li @click="handleShow('pinyin')" v-if="colHasContent[0]">
|
|
|
<span>拼音</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -75,7 +75,7 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('newWord')">
|
|
|
+ <li @click="handleShow('newWord')" v-if="colHasContent[1]">
|
|
|
<span>生词</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -105,7 +105,7 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('cixing')">
|
|
|
+ <li @click="handleShow('cixing')" v-if="colHasContent[2]">
|
|
|
<span>词性</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -135,7 +135,7 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('shiyi')">
|
|
|
+ <li @click="handleShow('shiyi')" v-if="colHasContent[3]">
|
|
|
<span>释义</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -165,7 +165,7 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('collocation')">
|
|
|
+ <li @click="handleShow('collocation')" v-if="colHasContent[4]">
|
|
|
<span>搭配</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -195,7 +195,7 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow('liju')">
|
|
|
+ <li @click="handleShow('liju')" v-if="colHasContent[5]">
|
|
|
<span>例句</span
|
|
|
><i
|
|
|
slot="suffix"
|
|
|
@@ -225,36 +225,38 @@
|
|
|
<svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
</i>
|
|
|
</li>
|
|
|
- <li @click="handleShow(item.key)" v-for="(item, index) in data.addCol" :key="index">
|
|
|
- <span>{{ item.label }}</span
|
|
|
- ><i
|
|
|
- slot="suffix"
|
|
|
- class="el-icon-view show-icon"
|
|
|
- v-if="showObj[item.key]"
|
|
|
- size="16"
|
|
|
- :style="{
|
|
|
- color:
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color
|
|
|
- ? data.unified_attrib.topic_color
|
|
|
- : '#de4444',
|
|
|
- marginLeft: '5px',
|
|
|
- }"
|
|
|
- ></i>
|
|
|
- <i
|
|
|
- slot="suffix"
|
|
|
- class="show-icon"
|
|
|
- v-else
|
|
|
- :style="{
|
|
|
- color:
|
|
|
- data.unified_attrib && data.unified_attrib.topic_color
|
|
|
- ? data.unified_attrib.topic_color
|
|
|
- : '#de4444',
|
|
|
- marginLeft: '5px',
|
|
|
- }"
|
|
|
- >
|
|
|
- <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
- </i>
|
|
|
- </li>
|
|
|
+ <template v-for="(item, index) in data.addCol">
|
|
|
+ <li @click="handleShow(item.key)" :key="index" v-if="colHasContent[6 + index]">
|
|
|
+ <span>{{ item.label }}</span
|
|
|
+ ><i
|
|
|
+ slot="suffix"
|
|
|
+ class="el-icon-view show-icon"
|
|
|
+ v-if="showObj[item.key]"
|
|
|
+ size="16"
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#de4444',
|
|
|
+ marginLeft: '5px',
|
|
|
+ }"
|
|
|
+ ></i>
|
|
|
+ <i
|
|
|
+ slot="suffix"
|
|
|
+ class="show-icon"
|
|
|
+ v-else
|
|
|
+ :style="{
|
|
|
+ color:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#de4444',
|
|
|
+ marginLeft: '5px',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <svg-icon size="16" icon-class="eye-invisible"></svg-icon>
|
|
|
+ </i>
|
|
|
+ </li>
|
|
|
+ </template>
|
|
|
</ul>
|
|
|
<SvgIcon
|
|
|
slot="reference"
|
|
|
@@ -1836,7 +1838,7 @@ export default {
|
|
|
let pinyin_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.pinyin}`, '');
|
|
|
let new_word_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.new_word}`, '');
|
|
|
let cixing_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.cixing}`, '');
|
|
|
- let def_str_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.def_str}`, '');
|
|
|
+ let def_str_col = this.data.new_word_list.reduce((acc, itemss) => `${acc + itemss.definition_list}`, '');
|
|
|
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 = [
|