starfish-form-custom 1.0.44 → 1.0.46
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/.pnpm-debug.log +828 -828
- package/components.d.ts +0 -2
- package/dist/{formAction-48f1f081.mjs → formAction-b76664af.mjs} +44 -52
- package/dist/{index-e7b2d7c0.mjs → index-0aa74f91.mjs} +40 -93
- package/dist/{index-e8b18d70.mjs → index-7fc8db96.mjs} +17 -22
- package/dist/{index-c2fdc90f.mjs → index-d1c1ba4b.mjs} +55 -81
- package/dist/{main-c6aa3683.mjs → main-d99755be.mjs} +273 -518
- package/dist/{starfish-form-ac5dbff7.mjs → starfish-form-0baee1df.mjs} +13 -9
- package/dist/starfish-form.mjs +1 -1
- package/dist/style.css +23 -130
- package/dist/types/form/src/common/Loading.vue.d.ts +2 -2
- package/dist/types/form/src/main.d.ts +17 -10
- package/dist/types/form/src/starfish-form.vue.d.ts +17 -10
- package/dist/types/form/src/utils/fieldProps.d.ts +4 -0
- package/package.json +43 -52
- package/src/components/CheckBox/index.vue +2 -2
- package/src/components/Date/index.vue +2 -2
- package/src/components/DateTime/index.vue +2 -2
- package/src/components/InputNumber/index.vue +2 -2
- package/src/components/Radio/index.vue +9 -1
- package/src/components/RichText/index.vue +65 -180
- package/src/components/Rule/index.vue +2 -2
- package/src/components/Rule/rules.js +3 -3
- package/src/components/Selected/index.vue +2 -2
- package/src/components/Selecteds/index.vue +2 -2
- package/src/components/Switch/index.vue +1 -1
- package/src/components/Text/index.vue +2 -2
- package/src/components/TextArea/index.vue +2 -2
- package/src/starfish-form.vue +8 -3
- package/src/styles/formedit.scss +115 -115
- package/src/styles/keyvalueConfig.scss +56 -56
- package/src/utils/customHooks.ts +0 -1
- package/src/utils/fieldProps.ts +5 -1
- package/stats.html +2230 -2123
- package/dist/types/form/src/common/formAction.vue.d.ts +0 -85
- package/dist/types/form/src/components/RichText/MenuBar.vue.d.ts +0 -34
- package/dist/types/form/src/components/RichText/MenuItem.vue.d.ts +0 -42
- package/src/components/RichText/MenuBar.vue +0 -144
- package/src/components/RichText/MenuItem.vue +0 -98
|
@@ -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
|
|
16
|
-
import { _ as _export_sfc,
|
|
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-d99755be.mjs';
|
|
17
17
|
import { Delete } from '@element-plus/icons-vue';
|
|
18
|
-
import Dynamicform from './starfish-form-
|
|
18
|
+
import Dynamicform from './starfish-form-0baee1df.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 =
|
|
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
|
|
224
|
-
const
|
|
225
|
-
const
|
|
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
|
|
230
|
-
const
|
|
231
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
320
|
-
|
|
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",
|
|
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",
|
|
334
|
-
createElementVNode("div",
|
|
335
|
-
itemList.type == "enum" ? (openBlock(), createElementBlock("div",
|
|
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
|
-
_:
|
|
353
|
-
},
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
354
328
|
])) : createCommentVNode("", true),
|
|
355
|
-
itemList.type == "func" ? (openBlock(), createElementBlock("div",
|
|
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
|
-
|
|
363
|
-
]),
|
|
364
|
-
_:
|
|
365
|
-
},
|
|
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",
|
|
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
|
-
|
|
375
|
-
]),
|
|
376
|
-
_:
|
|
377
|
-
},
|
|
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
|
-
_:
|
|
388
|
-
},
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
498
|
-
]),
|
|
470
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
471
|
+
createTextVNode("\u5173\u95ED", -1)
|
|
472
|
+
])]),
|
|
499
473
|
_: 1
|
|
500
474
|
}, 8, ["onClick"])
|
|
501
475
|
]),
|