|
@@ -11,7 +11,15 @@
|
|
|
}" -->
|
|
}" -->
|
|
|
<div v-if="data.title_con" class="topTitle">
|
|
<div v-if="data.title_con" class="topTitle">
|
|
|
<div class="NPC-top-left">
|
|
<div class="NPC-top-left">
|
|
|
- <span class="NPC-topTitle-text" v-html="data.title_con"></span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ class="NPC-topTitle-text"
|
|
|
|
|
+ v-html="data.title_con"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '#de4444',
|
|
|
|
|
+ fontSize: data.unified_attrib && data.unified_attrib.font_size ? data.unified_attrib.font_size : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ ></span>
|
|
|
<span v-if="showLang" class="NPC-topTitle-text">
|
|
<span v-if="showLang" class="NPC-topTitle-text">
|
|
|
{{ titleTrans[getLang()] }}
|
|
{{ titleTrans[getLang()] }}
|
|
|
</span>
|
|
</span>
|
|
@@ -738,7 +746,6 @@ export default {
|
|
|
writeTableZoom,
|
|
writeTableZoom,
|
|
|
},
|
|
},
|
|
|
mixins: [PreviewMixin],
|
|
mixins: [PreviewMixin],
|
|
|
- inject: ['bookInfo'],
|
|
|
|
|
props: ['newData'],
|
|
props: ['newData'],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -794,7 +801,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
- this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0) - (this.newData ? 16 : 0)}px`;
|
|
|
|
|
|
|
+ this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0)}px`;
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
palyAudio(url, sIndex) {
|
|
palyAudio(url, sIndex) {
|
|
@@ -1803,7 +1810,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- height: 48px;
|
|
|
|
|
|
|
+ height: 40px;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
// background: #e35454;
|
|
// background: #e35454;
|
|
@@ -1815,12 +1822,17 @@ export default {
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.NPC-topTitle-text {
|
|
.NPC-topTitle-text {
|
|
|
- margin-right: 8px;
|
|
|
|
|
- font-family: 'sourceR';
|
|
|
|
|
|
|
+ // margin-right: 8px;
|
|
|
|
|
+ // font-family: 'sourceR';
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
- color: #fff;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // color: #fff;
|
|
|
white-space: pre;
|
|
white-space: pre;
|
|
|
|
|
+
|
|
|
|
|
+ p {
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|