Showing
1 changed file
with
9 additions
and
5 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-29 14:31:20 | 2 | * @Date: 2022-08-29 14:31:20 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-08-01 17:57:49 | 4 | + * @LastEditTime: 2024-08-06 09:30:52 |
| 5 | * @FilePath: /data-table/src/components/TableField/index.vue | 5 | * @FilePath: /data-table/src/components/TableField/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -55,21 +55,25 @@ const ReadonlyShow = computed(() => { | ... | @@ -55,21 +55,25 @@ const ReadonlyShow = computed(() => { |
| 55 | }); | 55 | }); |
| 56 | 56 | ||
| 57 | onMounted(() => { | 57 | onMounted(() => { |
| 58 | - $('.tinymce-box').width($('.table-field-page').width() + 'px'); | 58 | + nextTick(() => { |
| 59 | + setTimeout(() => { | ||
| 60 | + $('.tinymce-box').width($('.table-field-page').width() + 'px'); | ||
| 61 | + }, 1000); | ||
| 62 | + }) | ||
| 59 | // | 63 | // |
| 60 | - table_html.value = props.item.component_props.default; | 64 | + table_html.value = props.item.component_props.note; |
| 61 | // | 65 | // |
| 62 | props.item.value = { | 66 | props.item.value = { |
| 63 | key: "table_editor", | 67 | key: "table_editor", |
| 64 | filed_name: props.item.key, | 68 | filed_name: props.item.key, |
| 65 | - value: props.item.component_props.default, | 69 | + value: props.item.component_props.note, |
| 66 | }; | 70 | }; |
| 67 | emit("active", props.item.value); | 71 | emit("active", props.item.value); |
| 68 | // setTimeout(() => { | 72 | // setTimeout(() => { |
| 69 | // }, 1000); | 73 | // }, 1000); |
| 70 | // nextTick(() => { | 74 | // nextTick(() => { |
| 71 | // if (refEdit.value) { | 75 | // if (refEdit.value) { |
| 72 | - // refEdit.value.handleSetContent(props.item.component_props.default) | 76 | + // refEdit.value.handleSetContent(props.item.component_props.note) |
| 73 | // } | 77 | // } |
| 74 | // }) | 78 | // }) |
| 75 | }); | 79 | }); | ... | ... |
-
Please register or login to post a comment