hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2024-07-12 13:28:27 2 * @Date: 2024-07-12 13:28:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-08-01 17:38:43 4 + * @LastEditTime: 2024-08-01 17:54:41
5 * @FilePath: /data-table/src/components/TEditor/index.vue 5 * @FilePath: /data-table/src/components/TEditor/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -252,6 +252,11 @@ const tinymceOptions = { ...@@ -252,6 +252,11 @@ const tinymceOptions = {
252 } 252 }
253 } 253 }
254 }); 254 });
255 + //
256 + // editor.on('blur', function (e) {
257 + // console.warn(handleGetContent());
258 + // console.warn(handleSetContent());
259 + // });
255 }, 260 },
256 } 261 }
257 262
...@@ -309,7 +314,6 @@ const handleGetContent = () => { ...@@ -309,7 +314,6 @@ const handleGetContent = () => {
309 }; 314 };
310 315
311 const onBlur = (e) => { 316 const onBlur = (e) => {
312 - // console.warn(e);
313 emits("blur", handleGetContent()); 317 emits("blur", handleGetContent());
314 } 318 }
315 319
......
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:08:10 4 + * @LastEditTime: 2024-08-01 17:57:49
5 * @FilePath: /data-table/src/components/TableField/index.vue 5 * @FilePath: /data-table/src/components/TableField/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -91,13 +91,13 @@ const table_html = ref(''); ...@@ -91,13 +91,13 @@ const table_html = ref('');
91 // } 91 // }
92 92
93 const onBlur = (html) => { 93 const onBlur = (html) => {
94 + table_html.value = html;
94 props.item.value = { 95 props.item.value = {
95 - key: "table", 96 + key: "table_editor",
96 filed_name: props.item.key, 97 filed_name: props.item.key,
97 value: html, 98 value: html,
98 }; 99 };
99 emit("active", props.item.value); 100 emit("active", props.item.value);
100 - table_html.value = html;
101 } 101 }
102 102
103 const table = ` 103 const table = `
...@@ -191,6 +191,7 @@ defineExpose({ validTableEditor }); ...@@ -191,6 +191,7 @@ defineExpose({ validTableEditor });
191 font-size: 0.9rem; 191 font-size: 0.9rem;
192 font-weight: bold; 192 font-weight: bold;
193 } 193 }
194 + padding: 1rem;
194 } 195 }
195 196
196 .tinymce-box { 197 .tinymce-box {
......