starfish-form-custom 1.0.0 → 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.
- package/dist/{formAction-28d86b6a.mjs → formAction-f22cc5f4.mjs} +65 -61
- package/dist/{index-f7ea052c.mjs → index-07a56f42.mjs} +27 -25
- package/dist/{index-04830c0b.mjs → index-6414efee.mjs} +12 -12
- package/dist/{index-eab8ef70.mjs → index-6e5bd506.mjs} +71 -68
- package/dist/{main-96327b2e.mjs → main-2d947b2c.mjs} +290 -237
- package/dist/{starfish-form-a18a5409.mjs → starfish-form-a993ec26.mjs} +6 -5
- package/dist/starfish-form.mjs +3 -3
- package/dist/style.css +7 -2
- package/dist/types/form/src/common/Loading.vue.d.ts +2 -2
- package/dist/types/form/src/common/formAction.vue.d.ts +85 -0
- package/dist/types/form/src/main.d.ts +10 -8
- package/dist/types/form/src/starfish-form.vue.d.ts +10 -8
- package/package.json +1 -1
- package/src/common/KeyValueConfig.vue +7 -4
- package/src/common/KeyValueConfigMult.vue +7 -4
- package/src/common/formAction.vue +8 -3
- package/src/common/listConfig.vue +3 -3
- package/src/common/panel.vue +3 -3
- package/src/components/ColorSelect/index.vue +2 -2
- package/src/components/Rule/index.vue +3 -0
- package/stats.html +2122 -2229
|
@@ -15,9 +15,9 @@ import 'element-plus/es/components/select/style/css';
|
|
|
15
15
|
import 'element-plus/es/components/option/style/css';
|
|
16
16
|
import 'element-plus/es/components/tooltip/style/css';
|
|
17
17
|
import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, Fragment, renderList, createVNode, createTextVNode } from 'vue';
|
|
18
|
-
import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-
|
|
18
|
+
import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-2d947b2c.mjs';
|
|
19
19
|
import { Delete } from '@element-plus/icons-vue';
|
|
20
|
-
import Dynamicform from './starfish-form-
|
|
20
|
+
import Dynamicform from './starfish-form-a993ec26.mjs';
|
|
21
21
|
import { Codemirror } from 'vue-codemirror';
|
|
22
22
|
import 'element-plus/es/components/input/style/css';
|
|
23
23
|
import 'element-plus/es/components/checkbox/style/css';
|
|
@@ -209,17 +209,31 @@ const _hoisted_1 = {
|
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "weight"
|
|
211
211
|
};
|
|
212
|
-
const _hoisted_2 = {
|
|
212
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
|
|
213
|
+
const _hoisted_3 = {
|
|
213
214
|
key: 0,
|
|
214
215
|
class: "collapse_enums"
|
|
215
216
|
};
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
const
|
|
217
|
+
const _hoisted_4 = { key: 1 };
|
|
218
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u51FD\u6570\u7F16\u8F91");
|
|
219
|
+
const _hoisted_6 = { key: 2 };
|
|
220
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91");
|
|
221
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode(" \u65B0\u589E\u89C4\u5219");
|
|
222
|
+
const _hoisted_9 = /* @__PURE__ */ createElementVNode("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1);
|
|
223
|
+
const _hoisted_10 = /* @__PURE__ */ createTextVNode("\u9ED8\u8BA4\u679A\u4E3E");
|
|
224
|
+
const _hoisted_11 = /* @__PURE__ */ createTextVNode("\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219");
|
|
225
|
+
const _hoisted_12 = /* @__PURE__ */ createTextVNode("\u9AD8\u7EA7\u6A21\u5F0F");
|
|
226
|
+
const _hoisted_13 = {
|
|
219
227
|
key: 0,
|
|
220
228
|
class: "sqlDialog",
|
|
221
229
|
style: { "padding": "20px", "height": "100%" }
|
|
222
230
|
};
|
|
231
|
+
const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", null, "(rule, value, callback, mainData) => {", -1);
|
|
232
|
+
const _hoisted_15 = /* @__PURE__ */ createElementVNode("div", null, "}", -1);
|
|
233
|
+
const _hoisted_16 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
234
|
+
const _hoisted_17 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
235
|
+
const _hoisted_18 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
236
|
+
const _hoisted_19 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
223
237
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
224
238
|
const _component_el_tooltip = ElTooltip;
|
|
225
239
|
const _component_el_option = ElOption;
|
|
@@ -255,11 +269,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
255
269
|
content: _ctx.item.data.tip,
|
|
256
270
|
placement: "bottom-start"
|
|
257
271
|
}, {
|
|
258
|
-
default: withCtx(() =>
|
|
259
|
-
|
|
260
|
-
])
|
|
261
|
-
_: 1
|
|
262
|
-
__: [2]
|
|
272
|
+
default: withCtx(() => [
|
|
273
|
+
_hoisted_2
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
263
276
|
}, 8, ["content"])) : createCommentVNode("", true)
|
|
264
277
|
], 6),
|
|
265
278
|
createElementVNode("div", {
|
|
@@ -275,7 +288,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
275
288
|
key: index
|
|
276
289
|
}, {
|
|
277
290
|
default: withCtx(() => [
|
|
278
|
-
itemList.type == "enum" ? (openBlock(), createElementBlock("div",
|
|
291
|
+
itemList.type == "enum" ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
279
292
|
createVNode(_component_el_select, {
|
|
280
293
|
modelValue: itemList.value,
|
|
281
294
|
"onUpdate:modelValue": ($event) => itemList.value = $event,
|
|
@@ -295,30 +308,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
308
|
_: 2
|
|
296
309
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
297
310
|
])) : createCommentVNode("", true),
|
|
298
|
-
itemList.type == "func" ? (openBlock(), createElementBlock("div",
|
|
311
|
+
itemList.type == "func" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
299
312
|
createVNode(_component_el_button, {
|
|
300
313
|
type: "primary",
|
|
301
314
|
onClick: ($event) => _ctx.handleFuncEdit(itemList),
|
|
302
315
|
size: "mini"
|
|
303
316
|
}, {
|
|
304
|
-
default: withCtx(() =>
|
|
305
|
-
|
|
306
|
-
])
|
|
307
|
-
_: 2
|
|
308
|
-
__: [3]
|
|
317
|
+
default: withCtx(() => [
|
|
318
|
+
_hoisted_5
|
|
319
|
+
]),
|
|
320
|
+
_: 2
|
|
309
321
|
}, 1032, ["onClick"])
|
|
310
322
|
])) : createCommentVNode("", true),
|
|
311
|
-
itemList.type == "high" ? (openBlock(), createElementBlock("div",
|
|
323
|
+
itemList.type == "high" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
312
324
|
createVNode(_component_el_button, {
|
|
313
325
|
type: "primary",
|
|
314
326
|
onClick: ($event) => _ctx.handleFormEdit(itemList),
|
|
315
327
|
size: "mini"
|
|
316
328
|
}, {
|
|
317
|
-
default: withCtx(() =>
|
|
318
|
-
|
|
319
|
-
])
|
|
320
|
-
_: 2
|
|
321
|
-
__: [4]
|
|
329
|
+
default: withCtx(() => [
|
|
330
|
+
_hoisted_7
|
|
331
|
+
]),
|
|
332
|
+
_: 2
|
|
322
333
|
}, 1032, ["onClick"])
|
|
323
334
|
])) : createCommentVNode("", true),
|
|
324
335
|
createVNode(_component_el_button, {
|
|
@@ -352,25 +363,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
352
363
|
createVNode(_component_el_dropdown_menu, null, {
|
|
353
364
|
default: withCtx(() => [
|
|
354
365
|
createVNode(_component_el_dropdown_item, { command: "enum" }, {
|
|
355
|
-
default: withCtx(() =>
|
|
356
|
-
|
|
357
|
-
])
|
|
358
|
-
_: 1
|
|
359
|
-
__: [6]
|
|
366
|
+
default: withCtx(() => [
|
|
367
|
+
_hoisted_10
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
360
370
|
}),
|
|
361
371
|
createVNode(_component_el_dropdown_item, { command: "func" }, {
|
|
362
|
-
default: withCtx(() =>
|
|
363
|
-
|
|
364
|
-
])
|
|
365
|
-
_: 1
|
|
366
|
-
__: [7]
|
|
372
|
+
default: withCtx(() => [
|
|
373
|
+
_hoisted_11
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
367
376
|
}),
|
|
368
377
|
createVNode(_component_el_dropdown_item, { command: "high" }, {
|
|
369
|
-
default: withCtx(() =>
|
|
370
|
-
|
|
371
|
-
])
|
|
372
|
-
_: 1
|
|
373
|
-
__: [8]
|
|
378
|
+
default: withCtx(() => [
|
|
379
|
+
_hoisted_12
|
|
380
|
+
]),
|
|
381
|
+
_: 1
|
|
374
382
|
})
|
|
375
383
|
]),
|
|
376
384
|
_: 1
|
|
@@ -378,12 +386,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
378
386
|
]),
|
|
379
387
|
default: withCtx(() => [
|
|
380
388
|
createVNode(_component_el_button, { type: "success" }, {
|
|
381
|
-
default: withCtx(() =>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
])
|
|
385
|
-
_: 1
|
|
386
|
-
__: [5]
|
|
389
|
+
default: withCtx(() => [
|
|
390
|
+
_hoisted_8,
|
|
391
|
+
_hoisted_9
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
387
394
|
})
|
|
388
395
|
]),
|
|
389
396
|
_: 1
|
|
@@ -391,7 +398,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
398
|
], 4),
|
|
392
399
|
createVNode(_component_CustomDialog, { ref: "codeMyDialog" }, {
|
|
393
400
|
default: withCtx(() => [
|
|
394
|
-
_ctx.funcItem ? (openBlock(), createElementBlock("div",
|
|
401
|
+
_ctx.funcItem ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
395
402
|
createVNode(_component_el_select, {
|
|
396
403
|
modelValue: _ctx.funcValue.trigger,
|
|
397
404
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.funcValue.trigger = $event),
|
|
@@ -416,7 +423,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
416
423
|
type: "success",
|
|
417
424
|
style: { "margin-bottom": "15px" }
|
|
418
425
|
}),
|
|
419
|
-
|
|
426
|
+
_hoisted_14,
|
|
420
427
|
createVNode(_component_codemirror, {
|
|
421
428
|
modelValue: _ctx.funcValue.func,
|
|
422
429
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.funcValue.func = $event),
|
|
@@ -428,7 +435,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
428
435
|
"indent-with-tab": true,
|
|
429
436
|
"tab-size": 2
|
|
430
437
|
}, null, 8, ["modelValue"]),
|
|
431
|
-
|
|
438
|
+
_hoisted_15
|
|
432
439
|
])) : createCommentVNode("", true),
|
|
433
440
|
createVNode(_component_el_footer, {
|
|
434
441
|
class: "my-Footer",
|
|
@@ -439,18 +446,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
439
446
|
onClick: _ctx.saveFunc,
|
|
440
447
|
type: "primary"
|
|
441
448
|
}, {
|
|
442
|
-
default: withCtx(() =>
|
|
443
|
-
|
|
444
|
-
])
|
|
445
|
-
_: 1
|
|
446
|
-
__: [11]
|
|
449
|
+
default: withCtx(() => [
|
|
450
|
+
_hoisted_16
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
447
453
|
}, 8, ["onClick"]),
|
|
448
454
|
createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
|
|
449
|
-
default: withCtx(() =>
|
|
450
|
-
|
|
451
|
-
])
|
|
452
|
-
_: 1
|
|
453
|
-
__: [12]
|
|
455
|
+
default: withCtx(() => [
|
|
456
|
+
_hoisted_17
|
|
457
|
+
]),
|
|
458
|
+
_: 1
|
|
454
459
|
}, 8, ["onClick"])
|
|
455
460
|
]),
|
|
456
461
|
_: 1
|
|
@@ -487,18 +492,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
487
492
|
type: "primary",
|
|
488
493
|
onClick: _ctx.saveField
|
|
489
494
|
}, {
|
|
490
|
-
default: withCtx(() =>
|
|
491
|
-
|
|
492
|
-
])
|
|
493
|
-
_: 1
|
|
494
|
-
__: [13]
|
|
495
|
+
default: withCtx(() => [
|
|
496
|
+
_hoisted_18
|
|
497
|
+
]),
|
|
498
|
+
_: 1
|
|
495
499
|
}, 8, ["onClick"]),
|
|
496
500
|
createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
|
|
497
|
-
default: withCtx(() =>
|
|
498
|
-
|
|
499
|
-
])
|
|
500
|
-
_: 1
|
|
501
|
-
__: [14]
|
|
501
|
+
default: withCtx(() => [
|
|
502
|
+
_hoisted_19
|
|
503
|
+
]),
|
|
504
|
+
_: 1
|
|
502
505
|
}, 8, ["onClick"])
|
|
503
506
|
]),
|
|
504
507
|
_: 1
|