|
@@ -1690,8 +1690,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
|
|
- this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0)}`;
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ let totalWidth = document.querySelector('.newWord-preview').offsetWidth;
|
|
|
|
|
+ this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0)}`;
|
|
|
|
|
+ }, 200);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
this.dataHeight = this.$refs.previewContainer ? this.$refs.previewContainer.style.height : 0;
|
|
this.dataHeight = this.$refs.previewContainer ? this.$refs.previewContainer.style.height : 0;
|