starfish-form-custom 1.0.19 → 1.0.20
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-5c75f7d1.mjs → formAction-922332c1.mjs} +1 -1
- package/dist/{index-16bc32d0.mjs → index-015ed509.mjs} +1 -1
- package/dist/{index-1132b976.mjs → index-115b67c5.mjs} +1 -1
- package/dist/{index-20cd69ac.mjs → index-afbcc030.mjs} +76 -79
- package/dist/{main-a1705ce2.mjs → main-c0754020.mjs} +87 -39
- package/dist/{starfish-form-f84a17c3.mjs → starfish-form-9cc90058.mjs} +1 -1
- package/dist/starfish-form.mjs +1 -1
- package/dist/types/form/src/utils/fieldConfig.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/CheckBox/index.vue +3 -1
- package/src/components/Date/index.vue +39 -3
- package/src/components/InputNumber/index.vue +26 -1
- package/src/components/Radio/index.vue +2 -1
- package/src/components/Rule/index.vue +15 -21
- package/src/components/Selected/index.vue +2 -1
- package/src/components/Selecteds/index.vue +2 -1
- package/src/components/Text/index.vue +2 -1
- package/src/components/TextArea/index.vue +2 -1
- package/src/utils/fieldConfig.ts +2 -1
- package/stats.html +1 -1
|
@@ -11,7 +11,7 @@ import 'element-plus/es/components/button/style/css';
|
|
|
11
11
|
import 'element-plus/es/components/tooltip/style/css';
|
|
12
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-
|
|
14
|
+
import { _ as _export_sfc } from './main-c0754020.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';
|
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-c0754020.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';
|
|
@@ -6,7 +6,7 @@ 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-
|
|
9
|
+
import { _ as _export_sfc, a as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-c0754020.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';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ElTooltip,
|
|
1
|
+
import { ElTooltip, ElButton, ElDropdownItem, ElDropdownMenu, ElDropdown, ElOption, ElSelect, ElIcon, ElCollapseItem, ElCollapse, ElAlert, ElFooter, ElMain, ElContainer } from 'element-plus/es';
|
|
2
2
|
import 'element-plus/es/components/base/style/css';
|
|
3
3
|
import 'element-plus/es/components/container/style/css';
|
|
4
4
|
import 'element-plus/es/components/main/style/css';
|
|
5
5
|
import 'element-plus/es/components/footer/style/css';
|
|
6
6
|
import 'element-plus/es/components/alert/style/css';
|
|
7
|
-
import 'element-plus/es/components/dropdown/style/css';
|
|
8
|
-
import 'element-plus/es/components/dropdown-menu/style/css';
|
|
9
|
-
import 'element-plus/es/components/dropdown-item/style/css';
|
|
10
7
|
import 'element-plus/es/components/collapse/style/css';
|
|
11
8
|
import 'element-plus/es/components/collapse-item/style/css';
|
|
12
9
|
import 'element-plus/es/components/icon/style/css';
|
|
13
|
-
import 'element-plus/es/components/button/style/css';
|
|
14
10
|
import 'element-plus/es/components/select/style/css';
|
|
15
11
|
import 'element-plus/es/components/option/style/css';
|
|
12
|
+
import 'element-plus/es/components/dropdown/style/css';
|
|
13
|
+
import 'element-plus/es/components/dropdown-menu/style/css';
|
|
14
|
+
import 'element-plus/es/components/dropdown-item/style/css';
|
|
15
|
+
import 'element-plus/es/components/button/style/css';
|
|
16
16
|
import 'element-plus/es/components/tooltip/style/css';
|
|
17
|
-
import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, Fragment, renderList,
|
|
18
|
-
import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-
|
|
17
|
+
import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, Fragment, renderList, createTextVNode } from 'vue';
|
|
18
|
+
import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-c0754020.mjs';
|
|
19
19
|
import { Delete } from '@element-plus/icons-vue';
|
|
20
|
-
import Dynamicform from './starfish-form-
|
|
20
|
+
import Dynamicform from './starfish-form-9cc90058.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';
|
|
@@ -210,19 +210,19 @@ const _hoisted_1 = {
|
|
|
210
210
|
class: "weight"
|
|
211
211
|
};
|
|
212
212
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
|
|
213
|
-
const _hoisted_3 =
|
|
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 = {
|
|
214
219
|
key: 0,
|
|
215
220
|
class: "collapse_enums"
|
|
216
221
|
};
|
|
217
|
-
const
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
const
|
|
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");
|
|
222
|
+
const _hoisted_9 = { key: 1 };
|
|
223
|
+
const _hoisted_10 = /* @__PURE__ */ createTextVNode("\u51FD\u6570\u7F16\u8F91");
|
|
224
|
+
const _hoisted_11 = { key: 2 };
|
|
225
|
+
const _hoisted_12 = /* @__PURE__ */ createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91");
|
|
226
226
|
const _hoisted_13 = {
|
|
227
227
|
key: 0,
|
|
228
228
|
class: "sqlDialog",
|
|
@@ -236,16 +236,16 @@ const _hoisted_18 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
|
236
236
|
const _hoisted_19 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
237
237
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
238
|
const _component_el_tooltip = ElTooltip;
|
|
239
|
+
const _component_el_button = ElButton;
|
|
240
|
+
const _component_el_dropdown_item = ElDropdownItem;
|
|
241
|
+
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
242
|
+
const _component_el_dropdown = ElDropdown;
|
|
239
243
|
const _component_el_option = ElOption;
|
|
240
244
|
const _component_el_select = ElSelect;
|
|
241
|
-
const _component_el_button = ElButton;
|
|
242
245
|
const _component_Delete = resolveComponent("Delete");
|
|
243
246
|
const _component_el_icon = ElIcon;
|
|
244
247
|
const _component_el_collapse_item = ElCollapseItem;
|
|
245
248
|
const _component_el_collapse = ElCollapse;
|
|
246
|
-
const _component_el_dropdown_item = ElDropdownItem;
|
|
247
|
-
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
248
|
-
const _component_el_dropdown = ElDropdown;
|
|
249
249
|
const _component_el_alert = ElAlert;
|
|
250
250
|
const _component_codemirror = resolveComponent("codemirror");
|
|
251
251
|
const _component_el_footer = ElFooter;
|
|
@@ -279,7 +279,50 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
279
279
|
class: "control",
|
|
280
280
|
style: normalizeStyle({ marginLeft: _ctx.labelalign != "top" ? _ctx.labelWidth + "px" : "" })
|
|
281
281
|
}, [
|
|
282
|
-
|
|
282
|
+
createVNode(_component_el_dropdown, {
|
|
283
|
+
onCommand: _ctx.handleDropdown,
|
|
284
|
+
style: { "margin-top": "10px" }
|
|
285
|
+
}, {
|
|
286
|
+
dropdown: withCtx(() => [
|
|
287
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
288
|
+
default: withCtx(() => [
|
|
289
|
+
createVNode(_component_el_dropdown_item, { command: "enum" }, {
|
|
290
|
+
default: withCtx(() => [
|
|
291
|
+
_hoisted_5
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
}),
|
|
295
|
+
createVNode(_component_el_dropdown_item, { command: "func" }, {
|
|
296
|
+
default: withCtx(() => [
|
|
297
|
+
_hoisted_6
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}),
|
|
301
|
+
createVNode(_component_el_dropdown_item, { command: "high" }, {
|
|
302
|
+
default: withCtx(() => [
|
|
303
|
+
_hoisted_7
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
})
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})
|
|
310
|
+
]),
|
|
311
|
+
default: withCtx(() => [
|
|
312
|
+
createVNode(_component_el_button, { type: "success" }, {
|
|
313
|
+
default: withCtx(() => [
|
|
314
|
+
_hoisted_3,
|
|
315
|
+
_hoisted_4
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["onCommand"]),
|
|
322
|
+
Array.isArray(_ctx.data[_ctx.item.data.fieldName]) && _ctx.data[_ctx.item.data.fieldName].length > 0 ? (openBlock(), createBlock(_component_el_collapse, {
|
|
323
|
+
key: 0,
|
|
324
|
+
style: { "margin-top": "16px" }
|
|
325
|
+
}, {
|
|
283
326
|
default: withCtx(() => [
|
|
284
327
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data[_ctx.item.data.fieldName], (itemList, index) => {
|
|
285
328
|
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
@@ -288,7 +331,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
288
331
|
key: index
|
|
289
332
|
}, {
|
|
290
333
|
default: withCtx(() => [
|
|
291
|
-
itemList.type == "enum" ? (openBlock(), createElementBlock("div",
|
|
334
|
+
itemList.type == "enum" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
292
335
|
createVNode(_component_el_select, {
|
|
293
336
|
modelValue: itemList.value,
|
|
294
337
|
"onUpdate:modelValue": ($event) => itemList.value = $event,
|
|
@@ -308,43 +351,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
308
351
|
_: 2
|
|
309
352
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
310
353
|
])) : createCommentVNode("", true),
|
|
311
|
-
itemList.type == "func" ? (openBlock(), createElementBlock("div",
|
|
354
|
+
itemList.type == "func" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
312
355
|
createVNode(_component_el_button, {
|
|
313
356
|
type: "primary",
|
|
314
357
|
onClick: ($event) => _ctx.handleFuncEdit(itemList),
|
|
315
358
|
size: "mini"
|
|
316
359
|
}, {
|
|
317
360
|
default: withCtx(() => [
|
|
318
|
-
|
|
361
|
+
_hoisted_10
|
|
319
362
|
]),
|
|
320
363
|
_: 2
|
|
321
364
|
}, 1032, ["onClick"])
|
|
322
365
|
])) : createCommentVNode("", true),
|
|
323
|
-
itemList.type == "high" ? (openBlock(), createElementBlock("div",
|
|
366
|
+
itemList.type == "high" ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
324
367
|
createVNode(_component_el_button, {
|
|
325
368
|
type: "primary",
|
|
326
369
|
onClick: ($event) => _ctx.handleFormEdit(itemList),
|
|
327
370
|
size: "mini"
|
|
328
371
|
}, {
|
|
329
372
|
default: withCtx(() => [
|
|
330
|
-
|
|
373
|
+
_hoisted_12
|
|
331
374
|
]),
|
|
332
375
|
_: 2
|
|
333
376
|
}, 1032, ["onClick"])
|
|
334
377
|
])) : createCommentVNode("", true),
|
|
335
|
-
createVNode(
|
|
336
|
-
type: "danger",
|
|
337
|
-
circle: "",
|
|
378
|
+
createVNode(_component_el_icon, {
|
|
338
379
|
onClick: ($event) => _ctx.deleteRule(index),
|
|
339
|
-
style: { "margin-left": "10px" }
|
|
380
|
+
style: { "margin-left": "10px" },
|
|
381
|
+
size: 14
|
|
340
382
|
}, {
|
|
341
383
|
default: withCtx(() => [
|
|
342
|
-
createVNode(
|
|
343
|
-
default: withCtx(() => [
|
|
344
|
-
createVNode(_component_Delete)
|
|
345
|
-
]),
|
|
346
|
-
_: 1
|
|
347
|
-
})
|
|
384
|
+
createVNode(_component_Delete)
|
|
348
385
|
]),
|
|
349
386
|
_: 2
|
|
350
387
|
}, 1032, ["onClick"])
|
|
@@ -354,47 +391,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
354
391
|
}), 128))
|
|
355
392
|
]),
|
|
356
393
|
_: 1
|
|
357
|
-
})) : createCommentVNode("", true)
|
|
358
|
-
createVNode(_component_el_dropdown, {
|
|
359
|
-
onCommand: _ctx.handleDropdown,
|
|
360
|
-
style: { "margin-top": "10px" }
|
|
361
|
-
}, {
|
|
362
|
-
dropdown: withCtx(() => [
|
|
363
|
-
createVNode(_component_el_dropdown_menu, null, {
|
|
364
|
-
default: withCtx(() => [
|
|
365
|
-
createVNode(_component_el_dropdown_item, { command: "enum" }, {
|
|
366
|
-
default: withCtx(() => [
|
|
367
|
-
_hoisted_10
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
}),
|
|
371
|
-
createVNode(_component_el_dropdown_item, { command: "func" }, {
|
|
372
|
-
default: withCtx(() => [
|
|
373
|
-
_hoisted_11
|
|
374
|
-
]),
|
|
375
|
-
_: 1
|
|
376
|
-
}),
|
|
377
|
-
createVNode(_component_el_dropdown_item, { command: "high" }, {
|
|
378
|
-
default: withCtx(() => [
|
|
379
|
-
_hoisted_12
|
|
380
|
-
]),
|
|
381
|
-
_: 1
|
|
382
|
-
})
|
|
383
|
-
]),
|
|
384
|
-
_: 1
|
|
385
|
-
})
|
|
386
|
-
]),
|
|
387
|
-
default: withCtx(() => [
|
|
388
|
-
createVNode(_component_el_button, { type: "success" }, {
|
|
389
|
-
default: withCtx(() => [
|
|
390
|
-
_hoisted_8,
|
|
391
|
-
_hoisted_9
|
|
392
|
-
]),
|
|
393
|
-
_: 1
|
|
394
|
-
})
|
|
395
|
-
]),
|
|
396
|
-
_: 1
|
|
397
|
-
}, 8, ["onCommand"])
|
|
394
|
+
})) : createCommentVNode("", true)
|
|
398
395
|
], 4),
|
|
399
396
|
createVNode(_component_CustomDialog, { ref: "codeMyDialog" }, {
|
|
400
397
|
default: withCtx(() => [
|