|
|
@@ -1663,6 +1663,14 @@ export default {
|
|
|
) {
|
|
|
// this.wordShow = isEnable(this.data.property.is_word_show);
|
|
|
this.initData();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
+ this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0) - 1}`;
|
|
|
+ }, 200);
|
|
|
+ });
|
|
|
+
|
|
|
+ this.dataHeight = this.$refs.previewContainer ? this.$refs.previewContainer.style.height : 0;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1692,7 +1700,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
- this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0)}`;
|
|
|
+ this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0) - 1}`;
|
|
|
}, 200);
|
|
|
});
|
|
|
|