starfish-form-custom 1.0.1 → 1.0.2

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.
@@ -9,11 +9,12 @@ 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, createTextVNode, createVNode, Fragment, renderList, withModifiers } from 'vue';
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';
13
13
  import { Codemirror } from 'vue-codemirror';
14
- import { _ as _export_sfc } from './main-afd364dc.mjs';
14
+ import { _ as _export_sfc } from './main-2d947b2c.mjs';
15
15
  import 'element-plus/es/components/icon/style/css';
16
16
  import 'element-plus/es/components/checkbox/style/css';
17
+ import '@element-plus/icons-vue';
17
18
  import 'element-plus/es/components/loading/style/css';
18
19
  import 'element-plus/es/components/dropdown/style/css';
19
20
  import 'element-plus/es/components/dropdown-menu/style/css';
@@ -24,7 +25,6 @@ import 'element-plus/es/components/row/style/css';
24
25
  import 'element-plus/es/components/col/style/css';
25
26
  import 'element-plus/es/components/select/style/css';
26
27
  import 'element-plus/es/components/option/style/css';
27
- import '@element-plus/icons-vue';
28
28
  import 'element-plus/es/components/input-number/style/css';
29
29
  import 'element-plus/es/components/radio-group/style/css';
30
30
  import 'element-plus/es/components/radio-button/style/css';
@@ -194,20 +194,28 @@ const _hoisted_1 = {
194
194
  key: 0,
195
195
  class: "item_require"
196
196
  };
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 = {
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 = {
203
207
  key: 0,
204
208
  class: "event-script-menu-action"
205
209
  };
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" };
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);
211
219
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
212
220
  const _component_el_tooltip = ElTooltip;
213
221
  const _component_el_button = ElButton;
@@ -241,11 +249,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
241
249
  content: _ctx.item.data.tip,
242
250
  placement: "top"
243
251
  }, {
244
- default: withCtx(() => _cache[2] || (_cache[2] = [
245
- createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
246
- ])),
247
- _: 1,
248
- __: [2]
252
+ default: withCtx(() => [
253
+ _hoisted_2
254
+ ]),
255
+ _: 1
249
256
  }, 8, ["content"])) : createCommentVNode("", true)
250
257
  ], 6)) : createCommentVNode("", true),
251
258
  createElementVNode("div", {
@@ -257,15 +264,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
257
264
  style: { "width": "100%" },
258
265
  onClick: _ctx.onAction
259
266
  }, {
260
- default: withCtx(() => _cache[3] || (_cache[3] = [
261
- createTextVNode(" \u8BBE\u7F6E ", -1)
262
- ])),
263
- _: 1,
264
- __: [3]
267
+ default: withCtx(() => [
268
+ _hoisted_3
269
+ ]),
270
+ _: 1
265
271
  }, 8, ["onClick"])) : createCommentVNode("", true),
266
272
  createVNode(_component_CustomDialog, { ref: "actionRef" }, {
267
273
  default: withCtx(() => [
268
- createElementVNode("div", _hoisted_2, [
274
+ createElementVNode("div", _hoisted_4, [
269
275
  createVNode(_component_el_container, { style: { "height": "100%", "border": "1px solid rgb(238, 238, 238)" } }, {
270
276
  default: withCtx(() => [
271
277
  createVNode(_component_el_container, null, {
@@ -277,24 +283,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
277
283
  default: withCtx(() => [
278
284
  createVNode(_component_el_container, { class: "is-vertical" }, {
279
285
  default: withCtx(() => [
280
- createElementVNode("header", _hoisted_3, [
286
+ createElementVNode("header", _hoisted_5, [
281
287
  createVNode(_component_el_button, {
282
288
  type: "text",
283
289
  size: _ctx.size,
284
290
  onClick: _ctx.addAction
285
291
  }, {
286
- default: withCtx(() => _cache[4] || (_cache[4] = [
287
- createTextVNode(" +\u6DFB\u52A0\u52A8\u4F5C", -1)
288
- ])),
289
- _: 1,
290
- __: [4]
292
+ default: withCtx(() => [
293
+ _hoisted_6
294
+ ]),
295
+ _: 1
291
296
  }, 8, ["size", "onClick"])
292
297
  ]),
293
298
  createVNode(_component_el_main, null, {
294
299
  default: withCtx(() => [
295
300
  createVNode(_component_el_scrollbar, null, {
296
301
  default: withCtx(() => [
297
- createElementVNode("div", _hoisted_4, [
302
+ createElementVNode("div", _hoisted_7, [
298
303
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.action, (item, index) => {
299
304
  return openBlock(), createElementBlock("div", {
300
305
  class: normalizeClass([
@@ -304,21 +309,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
304
309
  key: index,
305
310
  onClick: ($event) => _ctx.handleAction(item)
306
311
  }, [
307
- _cache[5] || (_cache[5] = createElementVNode("span", { class: "event-script-menu-i" }, "Function", -1)),
308
- createElementVNode("div", _hoisted_6, toDisplayString(item.funcName), 1),
309
- !item.disabled ? (openBlock(), createElementBlock("div", _hoisted_7, [
312
+ _hoisted_9,
313
+ createElementVNode("div", _hoisted_10, toDisplayString(item.funcName), 1),
314
+ !item.disabled ? (openBlock(), createElementBlock("div", _hoisted_11, [
310
315
  createElementVNode("i", {
311
316
  title: "\u590D\u5236",
312
317
  class: "iconfontui icon-fuzhi",
313
318
  onClick: withModifiers(($event) => _ctx.copyAction(item), ["stop"])
314
- }, null, 8, _hoisted_8),
319
+ }, null, 8, _hoisted_12),
315
320
  createElementVNode("i", {
316
321
  title: "\u5220\u9664",
317
322
  class: "iconfontui icon-shanchu1",
318
323
  onClick: withModifiers(($event) => _ctx.deleteAction(item), ["stop"])
319
- }, null, 8, _hoisted_9)
324
+ }, null, 8, _hoisted_13)
320
325
  ])) : createCommentVNode("", true)
321
- ], 10, _hoisted_5);
326
+ ], 10, _hoisted_8);
322
327
  }), 128))
323
328
  ])
324
329
  ]),
@@ -337,38 +342,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
337
342
  default: withCtx(() => [
338
343
  createVNode(_component_el_container, { class: "is-vertical" }, {
339
344
  default: withCtx(() => [
340
- createElementVNode("header", _hoisted_10, [
345
+ createElementVNode("header", _hoisted_14, [
341
346
  createVNode(_component_el_button, {
342
347
  type: "primary",
343
348
  onClick: _ctx.onConfirm,
344
- size: "small"
349
+ size: "default"
345
350
  }, {
346
- default: withCtx(() => _cache[6] || (_cache[6] = [
347
- createTextVNode("\u786E\u5B9A", -1)
348
- ])),
349
- _: 1,
350
- __: [6]
351
+ default: withCtx(() => [
352
+ _hoisted_15
353
+ ]),
354
+ _: 1
351
355
  }, 8, ["onClick"]),
352
356
  createVNode(_component_el_button, {
353
357
  type: "primary",
354
358
  onClick: _ctx.onSave,
355
- size: "small"
359
+ size: "default"
356
360
  }, {
357
- default: withCtx(() => _cache[7] || (_cache[7] = [
358
- createTextVNode("\u4FDD\u5B58", -1)
359
- ])),
360
- _: 1,
361
- __: [7]
361
+ default: withCtx(() => [
362
+ _hoisted_16
363
+ ]),
364
+ _: 1
362
365
  }, 8, ["onClick"]),
363
366
  createVNode(_component_el_button, {
364
367
  onClick: _ctx.onCancel,
365
- size: "small"
368
+ size: "default"
366
369
  }, {
367
- default: withCtx(() => _cache[8] || (_cache[8] = [
368
- createTextVNode("\u53D6\u6D88", -1)
369
- ])),
370
- _: 1,
371
- __: [8]
370
+ default: withCtx(() => [
371
+ _hoisted_17
372
+ ]),
373
+ _: 1
372
374
  }, 8, ["onClick"])
373
375
  ]),
374
376
  _ctx.currentAction ? (openBlock(), createBlock(_component_el_main, {
@@ -398,8 +400,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
398
400
  }),
399
401
  createVNode(_component_el_form_item, { prop: "funcStr" }, {
400
402
  default: withCtx(() => [
401
- createElementVNode("div", _hoisted_11, [
402
- createElementVNode("div", _hoisted_12, " function " + toDisplayString(_ctx.currentAction.funcName) + "(" + toDisplayString(_ctx.getField(_ctx.currentAction.methods)) + "){ ", 1),
403
+ createElementVNode("div", _hoisted_18, [
404
+ createElementVNode("div", _hoisted_19, " function " + toDisplayString(_ctx.currentAction.funcName) + "(" + toDisplayString(_ctx.getField(_ctx.currentAction.methods)) + "){ ", 1),
403
405
  createVNode(_component_codemirror, {
404
406
  modelValue: _ctx.currentAction.funcStr,
405
407
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.currentAction.funcStr = $event),
@@ -410,7 +412,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
410
412
  "indent-with-tab": true,
411
413
  "tab-size": 2
412
414
  }, null, 8, ["modelValue"]),
413
- _cache[9] || (_cache[9] = createElementVNode("div", { class: "footer" }, "}", -1))
415
+ _hoisted_20
414
416
  ])
415
417
  ]),
416
418
  _: 1
@@ -6,11 +6,12 @@ import 'element-plus/es/components/button/style/css';
6
6
  import 'element-plus/es/components/main/style/css';
7
7
  import 'element-plus/es/components/tooltip/style/css';
8
8
  import { defineComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode } from 'vue';
9
- import { _ as _export_sfc, a as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-afd364dc.mjs';
9
+ import { _ as _export_sfc, a as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-2d947b2c.mjs';
10
10
  import JSONEditor from 'jsoneditor';
11
11
  import 'element-plus/es/components/icon/style/css';
12
12
  import 'element-plus/es/components/input/style/css';
13
13
  import 'element-plus/es/components/checkbox/style/css';
14
+ import '@element-plus/icons-vue';
14
15
  import 'element-plus/es/components/loading/style/css';
15
16
  import 'element-plus/es/components/dropdown/style/css';
16
17
  import 'element-plus/es/components/dropdown-menu/style/css';
@@ -21,7 +22,6 @@ import 'element-plus/es/components/row/style/css';
21
22
  import 'element-plus/es/components/col/style/css';
22
23
  import 'element-plus/es/components/select/style/css';
23
24
  import 'element-plus/es/components/option/style/css';
24
- import '@element-plus/icons-vue';
25
25
  import 'element-plus/es/components/input-number/style/css';
26
26
  import 'element-plus/es/components/radio-group/style/css';
27
27
  import 'element-plus/es/components/radio-button/style/css';
@@ -130,14 +130,21 @@ const _hoisted_1 = {
130
130
  key: 0,
131
131
  class: "item_require"
132
132
  };
133
- const _hoisted_2 = {
133
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
134
+ const _hoisted_3 = {
134
135
  id: "jsoneditor",
135
136
  ref: "jsoneditor"
136
137
  };
137
- const _hoisted_3 = {
138
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "iconfontui icon-quanping" }, null, -1);
139
+ const _hoisted_5 = [
140
+ _hoisted_4
141
+ ];
142
+ const _hoisted_6 = {
138
143
  ref: "JsonViewerDialogDom",
139
144
  style: { "height": "calc(100% - 24px)" }
140
145
  };
146
+ const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
147
+ const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
141
148
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
142
149
  const _component_el_tooltip = ElTooltip;
143
150
  const _component_el_main = ElMain;
@@ -165,24 +172,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
165
172
  content: _ctx.item.data.tip,
166
173
  placement: "top"
167
174
  }, {
168
- default: withCtx(() => _cache[1] || (_cache[1] = [
169
- createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
170
- ])),
171
- _: 1,
172
- __: [1]
175
+ default: withCtx(() => [
176
+ _hoisted_2
177
+ ]),
178
+ _: 1
173
179
  }, 8, ["content"])) : createCommentVNode("", true)
174
180
  ], 6),
175
181
  createElementVNode("div", {
176
182
  class: "control",
177
183
  style: normalizeStyle({ marginLeft: _ctx.labelalign != "top" ? _ctx.labelWidth + "px" : "" })
178
184
  }, [
179
- createElementVNode("div", _hoisted_2, [
185
+ createElementVNode("div", _hoisted_3, [
180
186
  createElementVNode("div", {
181
187
  class: "fullScreen",
182
188
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.showCustomDialog && _ctx.showCustomDialog(...args))
183
- }, _cache[2] || (_cache[2] = [
184
- createElementVNode("i", { class: "iconfontui icon-quanping" }, null, -1)
185
- ]))
189
+ }, _hoisted_5)
186
190
  ], 512)
187
191
  ], 4),
188
192
  createVNode(_component_CustomDialog, {
@@ -196,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
196
200
  default: withCtx(() => [
197
201
  createVNode(_component_el_main, { class: "my-pageMain" }, {
198
202
  default: withCtx(() => [
199
- createElementVNode("div", _hoisted_3, null, 512)
203
+ createElementVNode("div", _hoisted_6, null, 512)
200
204
  ]),
201
205
  _: 1
202
206
  }),
@@ -209,18 +213,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
209
213
  type: "primary",
210
214
  onClick: _ctx.saveJson
211
215
  }, {
212
- default: withCtx(() => _cache[3] || (_cache[3] = [
213
- createTextVNode("\u4FDD\u5B58", -1)
214
- ])),
215
- _: 1,
216
- __: [3]
216
+ default: withCtx(() => [
217
+ _hoisted_7
218
+ ]),
219
+ _: 1
217
220
  }, 8, ["onClick"]),
218
221
  createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
219
- default: withCtx(() => _cache[4] || (_cache[4] = [
220
- createTextVNode("\u5173\u95ED", -1)
221
- ])),
222
- _: 1,
223
- __: [4]
222
+ default: withCtx(() => [
223
+ _hoisted_8
224
+ ]),
225
+ _: 1
224
226
  }, 8, ["onClick"])
225
227
  ]),
226
228
  _: 1
@@ -3,10 +3,11 @@ import 'element-plus/es/components/base/style/css';
3
3
  import 'element-plus/es/components/tooltip/style/css';
4
4
  import { defineComponent, ref, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx } from 'vue';
5
5
  import E from 'wangeditor';
6
- import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-afd364dc.mjs';
6
+ import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-2d947b2c.mjs';
7
7
  import 'element-plus/es/components/icon/style/css';
8
8
  import 'element-plus/es/components/input/style/css';
9
9
  import 'element-plus/es/components/checkbox/style/css';
10
+ import '@element-plus/icons-vue';
10
11
  import 'element-plus/es/components/loading/style/css';
11
12
  import 'element-plus/es/components/dropdown/style/css';
12
13
  import 'element-plus/es/components/dropdown-menu/style/css';
@@ -18,7 +19,6 @@ import 'element-plus/es/components/button/style/css';
18
19
  import 'element-plus/es/components/col/style/css';
19
20
  import 'element-plus/es/components/select/style/css';
20
21
  import 'element-plus/es/components/option/style/css';
21
- import '@element-plus/icons-vue';
22
22
  import 'element-plus/es/components/input-number/style/css';
23
23
  import 'element-plus/es/components/radio-group/style/css';
24
24
  import 'element-plus/es/components/radio-button/style/css';
@@ -79,11 +79,12 @@ const _hoisted_1 = {
79
79
  key: 0,
80
80
  class: "item_require"
81
81
  };
82
- const _hoisted_2 = {
82
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
83
+ const _hoisted_3 = {
83
84
  key: 0,
84
85
  ref: "richText"
85
86
  };
86
- const _hoisted_3 = {
87
+ const _hoisted_4 = {
87
88
  key: 1,
88
89
  ref: "richText"
89
90
  };
@@ -105,19 +106,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
105
106
  content: _ctx.item.data.tip,
106
107
  placement: "top"
107
108
  }, {
108
- default: withCtx(() => _cache[0] || (_cache[0] = [
109
- createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1)
110
- ])),
111
- _: 1,
112
- __: [0]
109
+ default: withCtx(() => [
110
+ _hoisted_2
111
+ ]),
112
+ _: 1
113
113
  }, 8, ["content"])) : createCommentVNode("", true)
114
114
  ], 6),
115
115
  createElementVNode("div", {
116
116
  class: "control",
117
117
  style: normalizeStyle({ marginLeft: _ctx.labelalign != "top" ? _ctx.labelWidth + "px" : "" })
118
118
  }, [
119
- _ctx.drag ? (openBlock(), createElementBlock("div", _hoisted_2, null, 512)) : createCommentVNode("", true),
120
- !_ctx.drag ? (openBlock(), createElementBlock("div", _hoisted_3, null, 512)) : createCommentVNode("", true)
119
+ _ctx.drag ? (openBlock(), createElementBlock("div", _hoisted_3, null, 512)) : createCommentVNode("", true),
120
+ !_ctx.drag ? (openBlock(), createElementBlock("div", _hoisted_4, null, 512)) : createCommentVNode("", true)
121
121
  ], 4)
122
122
  ], 2);
123
123
  }