starfish-form-custom 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.d.ts CHANGED
@@ -48,8 +48,6 @@ declare module 'vue' {
48
48
  ElTooltip: typeof import('element-plus/es')['ElTooltip']
49
49
  InputNumber: typeof import('./src/components/InputNumber/index.vue')['default']
50
50
  JsonEditor: typeof import('./src/components/JsonEditor/index.vue')['default']
51
- MenuBar: typeof import('./src/components/RichText/MenuBar.vue')['default']
52
- MenuItem: typeof import('./src/components/RichText/MenuItem.vue')['default']
53
51
  Radio: typeof import('./src/components/Radio/index.vue')['default']
54
52
  RichText: typeof import('./src/components/RichText/index.vue')['default']
55
53
  RouterLink: typeof import('vue-router')['RouterLink']
@@ -9,9 +9,9 @@ import 'element-plus/es/components/main/style/css';
9
9
  import 'element-plus/es/components/scrollbar/style/css';
10
10
  import 'element-plus/es/components/button/style/css';
11
11
  import 'element-plus/es/components/tooltip/style/css';
12
- import { defineComponent, inject, ref, getCurrentInstance, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, Fragment, renderList, withModifiers, createTextVNode } from 'vue';
12
+ import { defineComponent, inject, ref, getCurrentInstance, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createBlock, withCtx, createTextVNode, createVNode, Fragment, renderList, withModifiers } from 'vue';
13
13
  import { Codemirror } from 'vue-codemirror';
14
- import { _ as _export_sfc } from './main-08a90f8a.mjs';
14
+ import { _ as _export_sfc } from './main-c9f94a75.mjs';
15
15
  import 'element-plus/es/components/icon/style/css';
16
16
  import 'element-plus/es/components/checkbox/style/css';
17
17
  import '@element-plus/icons-vue';
@@ -194,28 +194,20 @@ const _hoisted_1 = {
194
194
  key: 0,
195
195
  class: "item_require"
196
196
  };
197
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
198
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u8BBE\u7F6E ");
199
- const _hoisted_4 = { class: "common-layout" };
200
- const _hoisted_5 = { class: "action-header" };
201
- const _hoisted_6 = /* @__PURE__ */ createTextVNode(" +\u6DFB\u52A0\u52A8\u4F5C");
202
- const _hoisted_7 = { class: "action-list" };
203
- const _hoisted_8 = ["onClick"];
204
- const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", { class: "event-script-menu-i" }, "Function", -1);
205
- const _hoisted_10 = { class: "event-script-menu-label" };
206
- const _hoisted_11 = {
197
+ const _hoisted_2 = { class: "common-layout" };
198
+ const _hoisted_3 = { class: "action-header" };
199
+ const _hoisted_4 = { class: "action-list" };
200
+ const _hoisted_5 = ["onClick"];
201
+ const _hoisted_6 = { class: "event-script-menu-label" };
202
+ const _hoisted_7 = {
207
203
  key: 0,
208
204
  class: "event-script-menu-action"
209
205
  };
210
- const _hoisted_12 = ["onClick"];
211
- const _hoisted_13 = ["onClick"];
212
- const _hoisted_14 = { class: "action-header event-script-main-header" };
213
- const _hoisted_15 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
214
- const _hoisted_16 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
215
- const _hoisted_17 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
216
- const _hoisted_18 = { class: "coding" };
217
- const _hoisted_19 = { class: "header" };
218
- const _hoisted_20 = /* @__PURE__ */ createElementVNode("div", { class: "footer" }, "}", -1);
206
+ const _hoisted_8 = ["onClick"];
207
+ const _hoisted_9 = ["onClick"];
208
+ const _hoisted_10 = { class: "action-header event-script-main-header" };
209
+ const _hoisted_11 = { class: "coding" };
210
+ const _hoisted_12 = { class: "header" };
219
211
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
220
212
  const _component_el_tooltip = ElTooltip;
221
213
  const _component_el_button = ElButton;
@@ -249,9 +241,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
249
241
  content: _ctx.item.data.tip,
250
242
  placement: "top"
251
243
  }, {
252
- default: withCtx(() => [
253
- _hoisted_2
254
- ]),
244
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
245
+ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
246
+ ])]),
255
247
  _: 1
256
248
  }, 8, ["content"])) : createCommentVNode("", true)
257
249
  ], 6)) : createCommentVNode("", true),
@@ -264,14 +256,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
264
256
  style: { "width": "100%" },
265
257
  onClick: _ctx.onAction
266
258
  }, {
267
- default: withCtx(() => [
268
- _hoisted_3
269
- ]),
259
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
260
+ createTextVNode(" \u8BBE\u7F6E ", -1)
261
+ ])]),
270
262
  _: 1
271
263
  }, 8, ["onClick"])) : createCommentVNode("", true),
272
264
  createVNode(_component_CustomDialog, { ref: "actionRef" }, {
273
265
  default: withCtx(() => [
274
- createElementVNode("div", _hoisted_4, [
266
+ createElementVNode("div", _hoisted_2, [
275
267
  createVNode(_component_el_container, { style: { "height": "100%", "border": "1px solid rgb(238, 238, 238)" } }, {
276
268
  default: withCtx(() => [
277
269
  createVNode(_component_el_container, null, {
@@ -283,15 +275,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
283
275
  default: withCtx(() => [
284
276
  createVNode(_component_el_container, { class: "is-vertical" }, {
285
277
  default: withCtx(() => [
286
- createElementVNode("header", _hoisted_5, [
278
+ createElementVNode("header", _hoisted_3, [
287
279
  createVNode(_component_el_button, {
288
280
  type: "text",
289
281
  size: _ctx.size,
290
282
  onClick: _ctx.addAction
291
283
  }, {
292
- default: withCtx(() => [
293
- _hoisted_6
294
- ]),
284
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
285
+ createTextVNode(" +\u6DFB\u52A0\u52A8\u4F5C", -1)
286
+ ])]),
295
287
  _: 1
296
288
  }, 8, ["size", "onClick"])
297
289
  ]),
@@ -299,7 +291,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
299
291
  default: withCtx(() => [
300
292
  createVNode(_component_el_scrollbar, null, {
301
293
  default: withCtx(() => [
302
- createElementVNode("div", _hoisted_7, [
294
+ createElementVNode("div", _hoisted_4, [
303
295
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.action, (item, index) => {
304
296
  return openBlock(), createElementBlock("div", {
305
297
  class: normalizeClass([
@@ -309,21 +301,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
309
301
  key: index,
310
302
  onClick: ($event) => _ctx.handleAction(item)
311
303
  }, [
312
- _hoisted_9,
313
- createElementVNode("div", _hoisted_10, toDisplayString(item.funcName), 1),
314
- !item.disabled ? (openBlock(), createElementBlock("div", _hoisted_11, [
304
+ _cache[5] || (_cache[5] = createElementVNode("span", { class: "event-script-menu-i" }, "Function", -1)),
305
+ createElementVNode("div", _hoisted_6, toDisplayString(item.funcName), 1),
306
+ !item.disabled ? (openBlock(), createElementBlock("div", _hoisted_7, [
315
307
  createElementVNode("i", {
316
308
  title: "\u590D\u5236",
317
309
  class: "iconfontui icon-fuzhi",
318
310
  onClick: withModifiers(($event) => _ctx.copyAction(item), ["stop"])
319
- }, null, 8, _hoisted_12),
311
+ }, null, 8, _hoisted_8),
320
312
  createElementVNode("i", {
321
313
  title: "\u5220\u9664",
322
314
  class: "iconfontui icon-shanchu1",
323
315
  onClick: withModifiers(($event) => _ctx.deleteAction(item), ["stop"])
324
- }, null, 8, _hoisted_13)
316
+ }, null, 8, _hoisted_9)
325
317
  ])) : createCommentVNode("", true)
326
- ], 10, _hoisted_8);
318
+ ], 10, _hoisted_5);
327
319
  }), 128))
328
320
  ])
329
321
  ]),
@@ -342,15 +334,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
342
334
  default: withCtx(() => [
343
335
  createVNode(_component_el_container, { class: "is-vertical" }, {
344
336
  default: withCtx(() => [
345
- createElementVNode("header", _hoisted_14, [
337
+ createElementVNode("header", _hoisted_10, [
346
338
  createVNode(_component_el_button, {
347
339
  type: "primary",
348
340
  onClick: _ctx.onConfirm,
349
341
  size: "default"
350
342
  }, {
351
- default: withCtx(() => [
352
- _hoisted_15
353
- ]),
343
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
344
+ createTextVNode("\u786E\u5B9A", -1)
345
+ ])]),
354
346
  _: 1
355
347
  }, 8, ["onClick"]),
356
348
  createVNode(_component_el_button, {
@@ -358,18 +350,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
358
350
  onClick: _ctx.onSave,
359
351
  size: "default"
360
352
  }, {
361
- default: withCtx(() => [
362
- _hoisted_16
363
- ]),
353
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
354
+ createTextVNode("\u4FDD\u5B58", -1)
355
+ ])]),
364
356
  _: 1
365
357
  }, 8, ["onClick"]),
366
358
  createVNode(_component_el_button, {
367
359
  onClick: _ctx.onCancel,
368
360
  size: "default"
369
361
  }, {
370
- default: withCtx(() => [
371
- _hoisted_17
372
- ]),
362
+ default: withCtx(() => [..._cache[8] || (_cache[8] = [
363
+ createTextVNode("\u53D6\u6D88", -1)
364
+ ])]),
373
365
  _: 1
374
366
  }, 8, ["onClick"])
375
367
  ]),
@@ -400,8 +392,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
400
392
  }),
401
393
  createVNode(_component_el_form_item, { prop: "funcStr" }, {
402
394
  default: withCtx(() => [
403
- createElementVNode("div", _hoisted_18, [
404
- createElementVNode("div", _hoisted_19, " function " + toDisplayString(_ctx.currentAction.funcName) + "(" + toDisplayString(_ctx.getField(_ctx.currentAction.methods)) + "){ ", 1),
395
+ createElementVNode("div", _hoisted_11, [
396
+ createElementVNode("div", _hoisted_12, " function " + toDisplayString(_ctx.currentAction.funcName) + "(" + toDisplayString(_ctx.getField(_ctx.currentAction.methods)) + "){ ", 1),
405
397
  createVNode(_component_codemirror, {
406
398
  modelValue: _ctx.currentAction.funcStr,
407
399
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.currentAction.funcStr = $event),
@@ -412,7 +404,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
412
404
  "indent-with-tab": true,
413
405
  "tab-size": 2
414
406
  }, null, 8, ["modelValue"]),
415
- _hoisted_20
407
+ _cache[9] || (_cache[9] = createElementVNode("div", { class: "footer" }, "}", -1))
416
408
  ])
417
409
  ]),
418
410
  _: 1
@@ -12,10 +12,10 @@ import 'element-plus/es/components/dropdown-menu/style/css';
12
12
  import 'element-plus/es/components/dropdown-item/style/css';
13
13
  import 'element-plus/es/components/button/style/css';
14
14
  import 'element-plus/es/components/tooltip/style/css';
15
- import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, Fragment, renderList, createTextVNode } from 'vue';
16
- import { _ as _export_sfc, b as _, f as fieldProps, r as ruleList, c as ruleJsonData } from './main-08a90f8a.mjs';
15
+ import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode, Fragment, renderList } from 'vue';
16
+ import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-c9f94a75.mjs';
17
17
  import { Delete } from '@element-plus/icons-vue';
18
- import Dynamicform from './starfish-form-8c225a3b.mjs';
18
+ import Dynamicform from './starfish-form-ff99f526.mjs';
19
19
  import { Codemirror } from 'vue-codemirror';
20
20
  import 'element-plus/es/components/input/style/css';
21
21
  import 'element-plus/es/components/checkbox/style/css';
@@ -209,38 +209,24 @@ const _hoisted_1 = {
209
209
  key: 0,
210
210
  class: "weight"
211
211
  };
212
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
213
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u65B0\u589E\u89C4\u5219");
214
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1);
215
- const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u9ED8\u8BA4\u679A\u4E3E");
216
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219");
217
- const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u9AD8\u7EA7\u6A21\u5F0F");
218
- const _hoisted_8 = {
212
+ const _hoisted_2 = {
219
213
  key: 0,
220
214
  class: "rule-container",
221
215
  style: { "margin-top": "16px" }
222
216
  };
223
- const _hoisted_9 = { class: "rule-title" };
224
- const _hoisted_10 = { class: "rule-content" };
225
- const _hoisted_11 = {
217
+ const _hoisted_3 = { class: "rule-title" };
218
+ const _hoisted_4 = { class: "rule-content" };
219
+ const _hoisted_5 = {
226
220
  key: 0,
227
221
  class: "collapse_enums"
228
222
  };
229
- const _hoisted_12 = { key: 1 };
230
- const _hoisted_13 = /* @__PURE__ */ createTextVNode("\u51FD\u6570\u7F16\u8F91");
231
- const _hoisted_14 = { key: 2 };
232
- const _hoisted_15 = /* @__PURE__ */ createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91");
233
- const _hoisted_16 = {
223
+ const _hoisted_6 = { key: 1 };
224
+ const _hoisted_7 = { key: 2 };
225
+ const _hoisted_8 = {
234
226
  key: 0,
235
227
  class: "sqlDialog",
236
228
  style: { "padding": "20px", "height": "100%" }
237
229
  };
238
- const _hoisted_17 = /* @__PURE__ */ createElementVNode("div", null, "(rule, value, callback, mainData) => {", -1);
239
- const _hoisted_18 = /* @__PURE__ */ createElementVNode("div", null, "}", -1);
240
- const _hoisted_19 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
241
- const _hoisted_20 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
242
- const _hoisted_21 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
243
- const _hoisted_22 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
244
230
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
245
231
  const _component_el_tooltip = ElTooltip;
246
232
  const _component_el_button = ElButton;
@@ -274,9 +260,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
274
260
  content: _ctx.item.data.tip,
275
261
  placement: "bottom-start"
276
262
  }, {
277
- default: withCtx(() => [
278
- _hoisted_2
279
- ]),
263
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
264
+ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
265
+ ])]),
280
266
  _: 1
281
267
  }, 8, ["content"])) : createCommentVNode("", true)
282
268
  ], 6),
@@ -292,21 +278,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
292
278
  createVNode(_component_el_dropdown_menu, null, {
293
279
  default: withCtx(() => [
294
280
  createVNode(_component_el_dropdown_item, { command: "enum" }, {
295
- default: withCtx(() => [
296
- _hoisted_5
297
- ]),
298
- _: 1
299
- }),
300
- createVNode(_component_el_dropdown_item, { command: "func" }, {
301
- default: withCtx(() => [
302
- _hoisted_6
303
- ]),
304
- _: 1
305
- }),
306
- createVNode(_component_el_dropdown_item, { command: "high" }, {
307
- default: withCtx(() => [
308
- _hoisted_7
309
- ]),
281
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
282
+ createTextVNode("\u9ED8\u8BA4\u679A\u4E3E", -1)
283
+ ])]),
310
284
  _: 1
311
285
  })
312
286
  ]),
@@ -315,24 +289,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
315
289
  ]),
316
290
  default: withCtx(() => [
317
291
  createVNode(_component_el_button, { type: "primary" }, {
318
- default: withCtx(() => [
319
- _hoisted_3,
320
- _hoisted_4
321
- ]),
292
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
293
+ createTextVNode(" \u65B0\u589E\u89C4\u5219", -1),
294
+ createElementVNode("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1)
295
+ ])]),
322
296
  _: 1
323
297
  })
324
298
  ]),
325
299
  _: 1
326
300
  }, 8, ["onCommand"]),
327
- Array.isArray(_ctx.data[_ctx.item.data.fieldName]) && _ctx.data[_ctx.item.data.fieldName].length > 0 ? (openBlock(), createElementBlock("div", _hoisted_8, [
301
+ Array.isArray(_ctx.data[_ctx.item.data.fieldName]) && _ctx.data[_ctx.item.data.fieldName].length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [
328
302
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data[_ctx.item.data.fieldName], (itemList, index) => {
329
303
  return openBlock(), createElementBlock("div", {
330
304
  key: index,
331
305
  class: "rule-item"
332
306
  }, [
333
- createElementVNode("div", _hoisted_9, toDisplayString(itemList.title), 1),
334
- createElementVNode("div", _hoisted_10, [
335
- itemList.type == "enum" ? (openBlock(), createElementBlock("div", _hoisted_11, [
307
+ createElementVNode("div", _hoisted_3, toDisplayString(itemList.title), 1),
308
+ createElementVNode("div", _hoisted_4, [
309
+ itemList.type == "enum" ? (openBlock(), createElementBlock("div", _hoisted_5, [
336
310
  createVNode(_component_el_select, {
337
311
  modelValue: itemList.value,
338
312
  "onUpdate:modelValue": ($event) => itemList.value = $event,
@@ -349,32 +323,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
349
323
  }, null, 8, ["label", "value"]);
350
324
  }), 128))
351
325
  ]),
352
- _: 2
353
- }, 1032, ["modelValue", "onUpdate:modelValue"])
326
+ _: 1
327
+ }, 8, ["modelValue", "onUpdate:modelValue"])
354
328
  ])) : createCommentVNode("", true),
355
- itemList.type == "func" ? (openBlock(), createElementBlock("div", _hoisted_12, [
329
+ itemList.type == "func" ? (openBlock(), createElementBlock("div", _hoisted_6, [
356
330
  createVNode(_component_el_button, {
357
331
  type: "default",
358
332
  onClick: ($event) => _ctx.handleFuncEdit(itemList),
359
333
  size: "mini"
360
334
  }, {
361
- default: withCtx(() => [
362
- _hoisted_13
363
- ]),
364
- _: 2
365
- }, 1032, ["onClick"])
335
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
336
+ createTextVNode("\u51FD\u6570\u7F16\u8F91", -1)
337
+ ])]),
338
+ _: 1
339
+ }, 8, ["onClick"])
366
340
  ])) : createCommentVNode("", true),
367
- itemList.type == "high" ? (openBlock(), createElementBlock("div", _hoisted_14, [
341
+ itemList.type == "high" ? (openBlock(), createElementBlock("div", _hoisted_7, [
368
342
  createVNode(_component_el_button, {
369
343
  type: "default",
370
344
  onClick: ($event) => _ctx.handleFormEdit(itemList),
371
345
  size: "mini"
372
346
  }, {
373
- default: withCtx(() => [
374
- _hoisted_15
375
- ]),
376
- _: 2
377
- }, 1032, ["onClick"])
347
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
348
+ createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91", -1)
349
+ ])]),
350
+ _: 1
351
+ }, 8, ["onClick"])
378
352
  ])) : createCommentVNode("", true),
379
353
  createVNode(_component_el_icon, {
380
354
  onClick: ($event) => _ctx.deleteRule(index),
@@ -384,8 +358,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
384
358
  default: withCtx(() => [
385
359
  createVNode(_component_Delete)
386
360
  ]),
387
- _: 2
388
- }, 1032, ["onClick"])
361
+ _: 1
362
+ }, 8, ["onClick"])
389
363
  ])
390
364
  ]);
391
365
  }), 128))
@@ -393,7 +367,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
393
367
  ], 4),
394
368
  createVNode(_component_CustomDialog, { ref: "codeMyDialog" }, {
395
369
  default: withCtx(() => [
396
- _ctx.funcItem ? (openBlock(), createElementBlock("div", _hoisted_16, [
370
+ _ctx.funcItem ? (openBlock(), createElementBlock("div", _hoisted_8, [
397
371
  createVNode(_component_el_select, {
398
372
  modelValue: _ctx.funcValue.trigger,
399
373
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.funcValue.trigger = $event),
@@ -418,7 +392,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
418
392
  type: "success",
419
393
  style: { "margin-bottom": "15px" }
420
394
  }),
421
- _hoisted_17,
395
+ _cache[7] || (_cache[7] = createElementVNode("div", null, "(rule, value, callback, mainData) => {", -1)),
422
396
  createVNode(_component_codemirror, {
423
397
  modelValue: _ctx.funcValue.func,
424
398
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.funcValue.func = $event),
@@ -430,7 +404,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
430
404
  "indent-with-tab": true,
431
405
  "tab-size": 2
432
406
  }, null, 8, ["modelValue"]),
433
- _hoisted_18
407
+ _cache[8] || (_cache[8] = createElementVNode("div", null, "}", -1))
434
408
  ])) : createCommentVNode("", true),
435
409
  createVNode(_component_el_footer, {
436
410
  class: "my-Footer",
@@ -441,15 +415,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
441
415
  onClick: _ctx.saveFunc,
442
416
  type: "primary"
443
417
  }, {
444
- default: withCtx(() => [
445
- _hoisted_19
446
- ]),
418
+ default: withCtx(() => [..._cache[9] || (_cache[9] = [
419
+ createTextVNode("\u4FDD\u5B58", -1)
420
+ ])]),
447
421
  _: 1
448
422
  }, 8, ["onClick"]),
449
423
  createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
450
- default: withCtx(() => [
451
- _hoisted_20
452
- ]),
424
+ default: withCtx(() => [..._cache[10] || (_cache[10] = [
425
+ createTextVNode("\u5173\u95ED", -1)
426
+ ])]),
453
427
  _: 1
454
428
  }, 8, ["onClick"])
455
429
  ]),
@@ -487,15 +461,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
487
461
  type: "primary",
488
462
  onClick: _ctx.saveField
489
463
  }, {
490
- default: withCtx(() => [
491
- _hoisted_21
492
- ]),
464
+ default: withCtx(() => [..._cache[11] || (_cache[11] = [
465
+ createTextVNode("\u4FDD\u5B58", -1)
466
+ ])]),
493
467
  _: 1
494
468
  }, 8, ["onClick"]),
495
469
  createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
496
- default: withCtx(() => [
497
- _hoisted_22
498
- ]),
470
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
471
+ createTextVNode("\u5173\u95ED", -1)
472
+ ])]),
499
473
  _: 1
500
474
  }, 8, ["onClick"])
501
475
  ]),
@@ -0,0 +1,133 @@
1
+ import { ElTooltip } from 'element-plus/es';
2
+ import 'element-plus/es/components/base/style/css';
3
+ import 'element-plus/es/components/tooltip/style/css';
4
+ import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createCommentVNode, toDisplayString, createBlock, withCtx, withModifiers, createVNode } from 'vue';
5
+ import { QuillEditor } from '@vueup/vue-quill';
6
+ import '@vueup/vue-quill/dist/vue-quill.snow.css';
7
+ import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-c9f94a75.mjs';
8
+ import 'element-plus/es/components/icon/style/css';
9
+ import 'element-plus/es/components/input/style/css';
10
+ import 'element-plus/es/components/checkbox/style/css';
11
+ import '@element-plus/icons-vue';
12
+ import 'element-plus/es/components/loading/style/css';
13
+ import 'element-plus/es/components/dropdown/style/css';
14
+ import 'element-plus/es/components/dropdown-menu/style/css';
15
+ import 'element-plus/es/components/dropdown-item/style/css';
16
+ import 'element-plus/es/components/collapse/style/css';
17
+ import 'element-plus/es/components/collapse-item/style/css';
18
+ import 'element-plus/es/components/row/style/css';
19
+ import 'element-plus/es/components/button/style/css';
20
+ import 'element-plus/es/components/col/style/css';
21
+ import 'element-plus/es/components/select/style/css';
22
+ import 'element-plus/es/components/option/style/css';
23
+ import 'element-plus/es/components/input-number/style/css';
24
+ import 'element-plus/es/components/radio-group/style/css';
25
+ import 'element-plus/es/components/radio-button/style/css';
26
+ import 'element-plus/es/components/checkbox-group/style/css';
27
+ import 'element-plus/es/components/color-picker/style/css';
28
+ import 'element-plus/es/components/date-picker/style/css';
29
+ import 'element-plus/es/components/radio/style/css';
30
+ import 'element-plus/es/components/slider/style/css';
31
+ import 'element-plus/es/components/switch/style/css';
32
+ import 'element-plus/es/components/time-select/style/css';
33
+ import 'element-plus/es/components/divider/style/css';
34
+ import 'element-plus/es/components/alert/style/css';
35
+ import 'element-plus/es/components/tabs/style/css';
36
+ import 'element-plus/es/components/tab-pane/style/css';
37
+ import 'element-plus/es/components/form-item/style/css';
38
+ import 'element-plus';
39
+
40
+ /* unplugin-vue-components disabled */const index_vue_vue_type_style_index_0_scoped_true_lang = '';
41
+
42
+ const _sfc_main = defineComponent({
43
+ ControlType: "RichText",
44
+ nameCn: "\u5BCC\u6587\u672C",
45
+ icon: "icon-textEdit",
46
+ formConfig: getFormConfig("RichText", [{ fieldName: "state", component: "Radio" }]),
47
+ props: {
48
+ ...fieldProps
49
+ },
50
+ components: {
51
+ QuillEditor
52
+ },
53
+ setup(props) {
54
+ useWatch(props);
55
+ const quillEditorRef = ref();
56
+ const content = ref(props.data[props.item.data.fieldName] || props.item.data.default || "");
57
+ const isReadonly = computed(
58
+ () => props.readonly || props.item.data.state === "readonly"
59
+ );
60
+ const handleContentChange = (value) => {
61
+ content.value = value;
62
+ props.data[props.item.data.fieldName] = value;
63
+ };
64
+ watch(() => props.data[props.item.data.fieldName], (newValue) => {
65
+ if (newValue !== content.value) {
66
+ content.value = newValue || "";
67
+ }
68
+ });
69
+ return {
70
+ content,
71
+ quillEditorRef,
72
+ handleContentChange,
73
+ isReadonly
74
+ };
75
+ }
76
+ });
77
+ const _hoisted_1 = ["data-control-type", "data-id"];
78
+ const _hoisted_2 = {
79
+ key: 0,
80
+ class: "item_require"
81
+ };
82
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
83
+ const _component_el_tooltip = ElTooltip;
84
+ const _component_QuillEditor = resolveComponent("QuillEditor");
85
+ return openBlock(), createElementBlock("div", {
86
+ class: normalizeClass(["starfish-formitem", { formCover: _ctx.drag, "starfish-vertical": _ctx.labelalign != "top", [_ctx.item.data.csslist?.join(" ")]: !!_ctx.item.data.csslist }]),
87
+ "data-control-type": _ctx.item.ControlType,
88
+ "data-id": _ctx.item.id
89
+ }, [
90
+ createElementVNode("div", {
91
+ class: normalizeClass(["label", "label_" + _ctx.labelalign]),
92
+ style: normalizeStyle({ width: _ctx.labelWidth + "px" })
93
+ }, [
94
+ _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" ? (openBlock(), createElementBlock("span", _hoisted_2, "*")) : createCommentVNode("", true),
95
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
96
+ _ctx.item.data.tip ? (openBlock(), createBlock(_component_el_tooltip, {
97
+ key: 1,
98
+ class: "item",
99
+ effect: "dark",
100
+ content: _ctx.item.data.tip,
101
+ placement: "top"
102
+ }, {
103
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
104
+ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
105
+ ])]),
106
+ _: 1
107
+ }, 8, ["content"])) : createCommentVNode("", true)
108
+ ], 6),
109
+ createElementVNode("div", {
110
+ class: "control",
111
+ style: normalizeStyle({ marginLeft: _ctx.labelalign != "top" ? _ctx.labelWidth + "px" : "" })
112
+ }, [
113
+ createElementVNode("div", {
114
+ class: "rich-text-editor",
115
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
116
+ }, ["stop"]))
117
+ }, [
118
+ createVNode(_component_QuillEditor, {
119
+ ref: "quillEditorRef",
120
+ theme: "snow",
121
+ content: _ctx.content,
122
+ "onUpdate:content": _ctx.handleContentChange,
123
+ toolbar: "full",
124
+ "read-only": _ctx.isReadonly,
125
+ class: "editor-content"
126
+ }, null, 8, ["content", "onUpdate:content", "read-only"])
127
+ ])
128
+ ], 4)
129
+ ], 10, _hoisted_1);
130
+ }
131
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-44f321dd"]]);
132
+
133
+ export { index as default };