starfish-form-custom 1.0.7 → 1.0.8
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-1c7ec0ce.mjs → formAction-f843601f.mjs} +1 -1
- package/dist/{index-39b3db7d.mjs → index-12dcef92.mjs} +1 -1
- package/dist/{index-07e5577e.mjs → index-2e0c01c5.mjs} +2 -2
- package/dist/{index-2f45bf0b.mjs → index-4562877b.mjs} +1 -1
- package/dist/{main-4c7157ff.mjs → main-91ffa57a.mjs} +78 -120
- package/dist/{starfish-form-f1b8b36b.mjs → starfish-form-91475fa0.mjs} +1 -1
- package/dist/starfish-form.mjs +1 -1
- package/dist/types/form/src/utils/fieldConfig.d.ts +0 -1
- package/package.json +1 -1
- package/src/utils/fieldConfig.ts +58 -100
- 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-91ffa57a.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';
|
|
@@ -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-91ffa57a.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';
|
|
@@ -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-91ffa57a.mjs';
|
|
19
19
|
import { Delete } from '@element-plus/icons-vue';
|
|
20
|
-
import Dynamicform from './starfish-form-
|
|
20
|
+
import Dynamicform from './starfish-form-91475fa0.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';
|
|
@@ -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-91ffa57a.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';
|
|
@@ -45,8 +45,8 @@ const beforeBaseFormCofig = function() {
|
|
|
45
45
|
placeholder: "请输入字段名称",
|
|
46
46
|
value: "",
|
|
47
47
|
showRule: "{}",
|
|
48
|
-
required: true
|
|
49
|
-
rule: "[]"
|
|
48
|
+
required: true
|
|
49
|
+
// rule: "[]",
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -58,8 +58,8 @@ const beforeBaseFormCofig = function() {
|
|
|
58
58
|
placeholder: "请输入标签名称",
|
|
59
59
|
value: "标签名称",
|
|
60
60
|
showRule: "{}",
|
|
61
|
-
required: true
|
|
62
|
-
rule: "[]"
|
|
61
|
+
required: true
|
|
62
|
+
// rule: "[]",
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
];
|
|
@@ -73,8 +73,8 @@ const afterBaseFormConfig = function() {
|
|
|
73
73
|
tip: "",
|
|
74
74
|
label: "是否必填",
|
|
75
75
|
showRule: "{}",
|
|
76
|
-
required: false
|
|
77
|
-
rule: "[]"
|
|
76
|
+
required: false
|
|
77
|
+
// rule: "[]",
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
{
|
|
@@ -86,23 +86,23 @@ const afterBaseFormConfig = function() {
|
|
|
86
86
|
placeholder: "请输入提示",
|
|
87
87
|
value: "标签名称",
|
|
88
88
|
showRule: "{}",
|
|
89
|
-
required: false
|
|
90
|
-
rule: "[]"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
ControlType: "Rule",
|
|
95
|
-
data: {
|
|
96
|
-
fieldName: "rule",
|
|
97
|
-
tip: "",
|
|
98
|
-
label: "校验规则",
|
|
99
|
-
showRule: "{}",
|
|
100
|
-
required: false,
|
|
101
|
-
rule: "[]",
|
|
102
|
-
default: "[]"
|
|
89
|
+
required: false
|
|
90
|
+
// rule: "[]",
|
|
103
91
|
}
|
|
104
92
|
}
|
|
105
93
|
// {
|
|
94
|
+
// ControlType: "Rule",
|
|
95
|
+
// data: {
|
|
96
|
+
// fieldName: "rule",
|
|
97
|
+
// tip: "",
|
|
98
|
+
// label: "校验规则",
|
|
99
|
+
// showRule: "{}",
|
|
100
|
+
// required: false,
|
|
101
|
+
// // rule: "[]",
|
|
102
|
+
// default: "[]",
|
|
103
|
+
// },
|
|
104
|
+
// },
|
|
105
|
+
// {
|
|
106
106
|
// ControlType: "ShowRule",
|
|
107
107
|
// data: {
|
|
108
108
|
// fieldName: "showRule",
|
|
@@ -110,7 +110,7 @@ const afterBaseFormConfig = function() {
|
|
|
110
110
|
// label: "显示条件",
|
|
111
111
|
// showRule: "{}",
|
|
112
112
|
// required: false,
|
|
113
|
-
// rule: "[]",
|
|
113
|
+
// // rule: "[]",
|
|
114
114
|
// default: "[]",
|
|
115
115
|
// },
|
|
116
116
|
// },
|
|
@@ -122,7 +122,7 @@ const afterBaseFormConfig = function() {
|
|
|
122
122
|
// label: "动作面板",
|
|
123
123
|
// showRule: "{}",
|
|
124
124
|
// required: false,
|
|
125
|
-
// rule: "[]",
|
|
125
|
+
// // rule: "[]",
|
|
126
126
|
// default: "{}",
|
|
127
127
|
// },
|
|
128
128
|
// },
|
|
@@ -136,7 +136,7 @@ const fieldsMap = {
|
|
|
136
136
|
placeholder: "",
|
|
137
137
|
showRule: "{}",
|
|
138
138
|
required: false,
|
|
139
|
-
rule: "[]",
|
|
139
|
+
// rule: "[]",
|
|
140
140
|
default: "",
|
|
141
141
|
maxLength: 100,
|
|
142
142
|
minLength: 0,
|
|
@@ -153,8 +153,8 @@ const fieldsMap = {
|
|
|
153
153
|
showIcon: true,
|
|
154
154
|
effect: "light",
|
|
155
155
|
infotype: "success",
|
|
156
|
-
showRule: "{}"
|
|
157
|
-
rule: "[]"
|
|
156
|
+
showRule: "{}"
|
|
157
|
+
// rule: "[]",
|
|
158
158
|
},
|
|
159
159
|
TextArea: {
|
|
160
160
|
fieldName: "",
|
|
@@ -163,7 +163,7 @@ const fieldsMap = {
|
|
|
163
163
|
placeholder: "",
|
|
164
164
|
showRule: "{}",
|
|
165
165
|
required: false,
|
|
166
|
-
rule: "[]",
|
|
166
|
+
// rule: "[]",
|
|
167
167
|
default: "",
|
|
168
168
|
maxLength: 100,
|
|
169
169
|
minLength: 0,
|
|
@@ -178,7 +178,7 @@ const fieldsMap = {
|
|
|
178
178
|
value: "",
|
|
179
179
|
showRule: "{}",
|
|
180
180
|
required: false,
|
|
181
|
-
rule: "[]",
|
|
181
|
+
// rule: "[]",
|
|
182
182
|
default: false,
|
|
183
183
|
state: "normal"
|
|
184
184
|
},
|
|
@@ -188,7 +188,7 @@ const fieldsMap = {
|
|
|
188
188
|
tip: "",
|
|
189
189
|
showRule: "{}",
|
|
190
190
|
required: false,
|
|
191
|
-
rule: "[]",
|
|
191
|
+
// rule: "[]",
|
|
192
192
|
default: 0,
|
|
193
193
|
min: 0,
|
|
194
194
|
max: 100
|
|
@@ -277,7 +277,7 @@ const fieldsMap = {
|
|
|
277
277
|
placeholder: "",
|
|
278
278
|
showRule: "{}",
|
|
279
279
|
required: false,
|
|
280
|
-
rule: "[]",
|
|
280
|
+
// rule: "[]",
|
|
281
281
|
state: "normal",
|
|
282
282
|
// 状态:normal, disabled, readonly
|
|
283
283
|
itemConfig: {
|
|
@@ -305,7 +305,7 @@ const fieldsMap = {
|
|
|
305
305
|
placeholder: "",
|
|
306
306
|
showRule: "{}",
|
|
307
307
|
required: false,
|
|
308
|
-
rule: "[]",
|
|
308
|
+
// rule: "[]",
|
|
309
309
|
state: "normal",
|
|
310
310
|
// 状态:normal, disabled, readonly
|
|
311
311
|
itemConfig: {
|
|
@@ -333,7 +333,7 @@ const fieldsMap = {
|
|
|
333
333
|
placeholder: "",
|
|
334
334
|
showRule: "{}",
|
|
335
335
|
required: false,
|
|
336
|
-
rule: "[]",
|
|
336
|
+
// rule: "[]",
|
|
337
337
|
default: "",
|
|
338
338
|
state: "normal"
|
|
339
339
|
// 状态:normal, disabled, readonly
|
|
@@ -345,7 +345,7 @@ const fieldsMap = {
|
|
|
345
345
|
value: "",
|
|
346
346
|
showRule: "{}",
|
|
347
347
|
required: false,
|
|
348
|
-
rule: "[]",
|
|
348
|
+
// rule: "[]",
|
|
349
349
|
default: false,
|
|
350
350
|
arrangeMent: "horizontal",
|
|
351
351
|
state: "normal",
|
|
@@ -375,8 +375,8 @@ const fieldsMap = {
|
|
|
375
375
|
tip: "",
|
|
376
376
|
value: "",
|
|
377
377
|
showRule: "{}",
|
|
378
|
-
required: false
|
|
379
|
-
rule: "[]"
|
|
378
|
+
required: false
|
|
379
|
+
// rule: "[]",
|
|
380
380
|
},
|
|
381
381
|
KeyValueConfig: {
|
|
382
382
|
fieldName: "",
|
|
@@ -384,8 +384,8 @@ const fieldsMap = {
|
|
|
384
384
|
tip: "",
|
|
385
385
|
value: "",
|
|
386
386
|
showRule: "{}",
|
|
387
|
-
required: false
|
|
388
|
-
rule: "[]"
|
|
387
|
+
required: false
|
|
388
|
+
// rule: "[]",
|
|
389
389
|
},
|
|
390
390
|
JsonEditor: {
|
|
391
391
|
fieldName: "",
|
|
@@ -393,7 +393,7 @@ const fieldsMap = {
|
|
|
393
393
|
tip: "",
|
|
394
394
|
showRule: "{}",
|
|
395
395
|
required: false,
|
|
396
|
-
rule: "[]",
|
|
396
|
+
// rule: "[]",
|
|
397
397
|
default: "[]",
|
|
398
398
|
json: true
|
|
399
399
|
},
|
|
@@ -404,7 +404,7 @@ const fieldsMap = {
|
|
|
404
404
|
placeholder: "",
|
|
405
405
|
showRule: "{}",
|
|
406
406
|
required: false,
|
|
407
|
-
rule: "[]",
|
|
407
|
+
// rule: "[]",
|
|
408
408
|
default: 0,
|
|
409
409
|
type: "1",
|
|
410
410
|
size: "large",
|
|
@@ -418,7 +418,7 @@ const fieldsMap = {
|
|
|
418
418
|
tip: "",
|
|
419
419
|
showRule: "{}",
|
|
420
420
|
required: false,
|
|
421
|
-
rule: "[]",
|
|
421
|
+
// rule: "[]",
|
|
422
422
|
color: "#000",
|
|
423
423
|
dividerColor: "#000"
|
|
424
424
|
},
|
|
@@ -429,7 +429,7 @@ const fieldsMap = {
|
|
|
429
429
|
placeholder: "1",
|
|
430
430
|
showRule: "{}",
|
|
431
431
|
required: false,
|
|
432
|
-
rule: "[]",
|
|
432
|
+
// rule: "[]",
|
|
433
433
|
default: "1",
|
|
434
434
|
format: "YYYY-MM-DD",
|
|
435
435
|
// 日期格式
|
|
@@ -442,7 +442,7 @@ const fieldsMap = {
|
|
|
442
442
|
placeholder: "请输入",
|
|
443
443
|
showRule: "{}",
|
|
444
444
|
required: false,
|
|
445
|
-
rule: "[]",
|
|
445
|
+
// rule: "[]",
|
|
446
446
|
default: "",
|
|
447
447
|
state: "normal"
|
|
448
448
|
},
|
|
@@ -453,7 +453,7 @@ const fieldsMap = {
|
|
|
453
453
|
placeholder: "",
|
|
454
454
|
showRule: "{}",
|
|
455
455
|
required: false,
|
|
456
|
-
rule: "[]",
|
|
456
|
+
// rule: "[]",
|
|
457
457
|
default: "#409EFF"
|
|
458
458
|
},
|
|
459
459
|
CheckBox: {
|
|
@@ -463,7 +463,7 @@ const fieldsMap = {
|
|
|
463
463
|
value: "",
|
|
464
464
|
showRule: "{}",
|
|
465
465
|
required: false,
|
|
466
|
-
rule: "[]",
|
|
466
|
+
// rule: "[]",
|
|
467
467
|
default: false,
|
|
468
468
|
state: "normal",
|
|
469
469
|
arrangeMent: "horizontal",
|
|
@@ -497,8 +497,8 @@ function getMoren(fieldName, component, label) {
|
|
|
497
497
|
label: "默认值",
|
|
498
498
|
placeholder: "",
|
|
499
499
|
showRule: "{}",
|
|
500
|
-
required: false
|
|
501
|
-
rule: "[]"
|
|
500
|
+
required: false
|
|
501
|
+
// rule: "[]",
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
placeholder: {
|
|
@@ -509,8 +509,8 @@ function getMoren(fieldName, component, label) {
|
|
|
509
509
|
label: "输入占位文字",
|
|
510
510
|
placeholder: "请输入占位文字",
|
|
511
511
|
showRule: "{}",
|
|
512
|
-
required: false
|
|
513
|
-
rule: "[]"
|
|
512
|
+
required: false
|
|
513
|
+
// rule: "[]",
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
precision: {
|
|
@@ -522,7 +522,7 @@ function getMoren(fieldName, component, label) {
|
|
|
522
522
|
placeholder: "",
|
|
523
523
|
showRule: "{}",
|
|
524
524
|
required: false,
|
|
525
|
-
rule: "[]",
|
|
525
|
+
// rule: "[]",
|
|
526
526
|
default: 0
|
|
527
527
|
}
|
|
528
528
|
},
|
|
@@ -535,7 +535,7 @@ function getMoren(fieldName, component, label) {
|
|
|
535
535
|
placeholder: "",
|
|
536
536
|
showRule: "{}",
|
|
537
537
|
required: false,
|
|
538
|
-
rule: "[]",
|
|
538
|
+
// rule: "[]",
|
|
539
539
|
default: 100
|
|
540
540
|
}
|
|
541
541
|
},
|
|
@@ -548,7 +548,7 @@ function getMoren(fieldName, component, label) {
|
|
|
548
548
|
placeholder: "",
|
|
549
549
|
showRule: "{}",
|
|
550
550
|
required: false,
|
|
551
|
-
rule: "[]",
|
|
551
|
+
// rule: "[]",
|
|
552
552
|
default: 0
|
|
553
553
|
}
|
|
554
554
|
},
|
|
@@ -561,7 +561,7 @@ function getMoren(fieldName, component, label) {
|
|
|
561
561
|
placeholder: "",
|
|
562
562
|
showRule: "{}",
|
|
563
563
|
required: false,
|
|
564
|
-
rule: "[]",
|
|
564
|
+
// rule: "[]",
|
|
565
565
|
itemConfig: {
|
|
566
566
|
value: "normal",
|
|
567
567
|
items: [
|
|
@@ -581,7 +581,7 @@ function getMoren(fieldName, component, label) {
|
|
|
581
581
|
placeholder: "",
|
|
582
582
|
showRule: "{}",
|
|
583
583
|
required: false,
|
|
584
|
-
rule: "[]",
|
|
584
|
+
// rule: "[]",
|
|
585
585
|
itemConfig: {
|
|
586
586
|
value: "normal",
|
|
587
587
|
items: [
|
|
@@ -598,8 +598,8 @@ function getMoren(fieldName, component, label) {
|
|
|
598
598
|
tip: "",
|
|
599
599
|
label: "自适应高度",
|
|
600
600
|
showRule: "{}",
|
|
601
|
-
required: false
|
|
602
|
-
rule: "[]"
|
|
601
|
+
required: false
|
|
602
|
+
// rule: "[]",
|
|
603
603
|
}
|
|
604
604
|
},
|
|
605
605
|
format: {
|
|
@@ -611,7 +611,7 @@ function getMoren(fieldName, component, label) {
|
|
|
611
611
|
placeholder: "",
|
|
612
612
|
showRule: "{}",
|
|
613
613
|
required: false,
|
|
614
|
-
rule: "[]",
|
|
614
|
+
// rule: "[]",
|
|
615
615
|
itemConfig: {
|
|
616
616
|
value: "YYYY-MM-DD",
|
|
617
617
|
items: [
|
|
@@ -632,8 +632,8 @@ function getMoren(fieldName, component, label) {
|
|
|
632
632
|
tip: "",
|
|
633
633
|
label: "是否多选",
|
|
634
634
|
showRule: "{}",
|
|
635
|
-
required: false
|
|
636
|
-
rule: "[]"
|
|
635
|
+
required: false
|
|
636
|
+
// rule: "[]",
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
639
|
min: {
|
|
@@ -644,8 +644,8 @@ function getMoren(fieldName, component, label) {
|
|
|
644
644
|
label: "最小范围",
|
|
645
645
|
placeholder: "",
|
|
646
646
|
showRule: "{}",
|
|
647
|
-
required: false
|
|
648
|
-
rule: "[]"
|
|
647
|
+
required: false
|
|
648
|
+
// rule: "[]",
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
max: {
|
|
@@ -656,8 +656,8 @@ function getMoren(fieldName, component, label) {
|
|
|
656
656
|
label: "最大范围",
|
|
657
657
|
placeholder: "",
|
|
658
658
|
showRule: "{}",
|
|
659
|
-
required: false
|
|
660
|
-
rule: "[]"
|
|
659
|
+
required: false
|
|
660
|
+
// rule: "[]",
|
|
661
661
|
}
|
|
662
662
|
},
|
|
663
663
|
itemConfig: {
|
|
@@ -668,8 +668,8 @@ function getMoren(fieldName, component, label) {
|
|
|
668
668
|
label: "默认值",
|
|
669
669
|
placeholder: "",
|
|
670
670
|
showRule: "{}",
|
|
671
|
-
required: false
|
|
672
|
-
rule: "[]"
|
|
671
|
+
required: false
|
|
672
|
+
// rule: "[]",
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
type: {
|
|
@@ -681,7 +681,7 @@ function getMoren(fieldName, component, label) {
|
|
|
681
681
|
placeholder: "",
|
|
682
682
|
showRule: "{}",
|
|
683
683
|
required: false,
|
|
684
|
-
rule: "[]",
|
|
684
|
+
// rule: "[]",
|
|
685
685
|
itemConfig: {
|
|
686
686
|
value: "1",
|
|
687
687
|
id: 1,
|
|
@@ -711,7 +711,7 @@ function getMoren(fieldName, component, label) {
|
|
|
711
711
|
placeholder: "",
|
|
712
712
|
showRule: "{}",
|
|
713
713
|
required: false,
|
|
714
|
-
rule: "[]",
|
|
714
|
+
// rule: "[]",
|
|
715
715
|
itemConfig: {
|
|
716
716
|
value: "success",
|
|
717
717
|
id: 1,
|
|
@@ -753,7 +753,7 @@ function getMoren(fieldName, component, label) {
|
|
|
753
753
|
placeholder: "",
|
|
754
754
|
showRule: "{}",
|
|
755
755
|
required: false,
|
|
756
|
-
rule: "[]",
|
|
756
|
+
// rule: "[]",
|
|
757
757
|
itemConfig: {
|
|
758
758
|
value: "light",
|
|
759
759
|
id: 1,
|
|
@@ -774,48 +774,6 @@ function getMoren(fieldName, component, label) {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
|
-
size: {
|
|
778
|
-
ControlType: "Radio",
|
|
779
|
-
data: {
|
|
780
|
-
fieldName: "size",
|
|
781
|
-
tip: "",
|
|
782
|
-
label: "计数器尺寸类型",
|
|
783
|
-
placeholder: "",
|
|
784
|
-
showRule: "{}",
|
|
785
|
-
required: false,
|
|
786
|
-
rule: "[]",
|
|
787
|
-
itemConfig: {
|
|
788
|
-
value: "large",
|
|
789
|
-
id: 1,
|
|
790
|
-
items: [
|
|
791
|
-
{
|
|
792
|
-
label: "large",
|
|
793
|
-
value: "large",
|
|
794
|
-
select: true,
|
|
795
|
-
id: 1
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
label: "medium",
|
|
799
|
-
value: "medium",
|
|
800
|
-
select: false,
|
|
801
|
-
id: 2
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
label: "small",
|
|
805
|
-
value: "small",
|
|
806
|
-
select: false,
|
|
807
|
-
id: 3
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
label: "mini",
|
|
811
|
-
value: "mini",
|
|
812
|
-
select: false,
|
|
813
|
-
id: 4
|
|
814
|
-
}
|
|
815
|
-
]
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
777
|
InputNumber: {
|
|
820
778
|
ControlType: "InputNumber",
|
|
821
779
|
data: {
|
|
@@ -825,10 +783,10 @@ function getMoren(fieldName, component, label) {
|
|
|
825
783
|
placeholder: "",
|
|
826
784
|
showRule: "{}",
|
|
827
785
|
required: false,
|
|
828
|
-
rule: "[]",
|
|
786
|
+
// rule: "[]",
|
|
829
787
|
default: 0,
|
|
830
788
|
type: 1,
|
|
831
|
-
size: "
|
|
789
|
+
size: "default"
|
|
832
790
|
}
|
|
833
791
|
},
|
|
834
792
|
gutter: {
|
|
@@ -840,7 +798,7 @@ function getMoren(fieldName, component, label) {
|
|
|
840
798
|
placeholder: "",
|
|
841
799
|
showRule: "{}",
|
|
842
800
|
required: false,
|
|
843
|
-
rule: "[]",
|
|
801
|
+
// rule: "[]",
|
|
844
802
|
default: 0,
|
|
845
803
|
type: 1,
|
|
846
804
|
size: "small"
|
|
@@ -853,8 +811,8 @@ function getMoren(fieldName, component, label) {
|
|
|
853
811
|
label: "列配置项",
|
|
854
812
|
tip: "",
|
|
855
813
|
showRule: "{}",
|
|
856
|
-
required: false
|
|
857
|
-
rule: "[]"
|
|
814
|
+
required: false
|
|
815
|
+
// rule: "[]",
|
|
858
816
|
}
|
|
859
817
|
}
|
|
860
818
|
};
|
|
@@ -869,8 +827,8 @@ function getMoren(fieldName, component, label) {
|
|
|
869
827
|
label: label ? label : "输入占位文字",
|
|
870
828
|
placeholder: "请输入占位文字",
|
|
871
829
|
showRule: "{}",
|
|
872
|
-
required: false
|
|
873
|
-
rule: "[]"
|
|
830
|
+
required: false
|
|
831
|
+
// rule: "[]",
|
|
874
832
|
}
|
|
875
833
|
};
|
|
876
834
|
} else {
|
|
@@ -5089,7 +5047,7 @@ Object.keys(files).forEach((fileName) => {
|
|
|
5089
5047
|
}
|
|
5090
5048
|
});
|
|
5091
5049
|
const RichText = defineAsyncComponent({
|
|
5092
|
-
loader: () => import('./index-
|
|
5050
|
+
loader: () => import('./index-4562877b.mjs'),
|
|
5093
5051
|
loadingComponent: Loading
|
|
5094
5052
|
});
|
|
5095
5053
|
RichText.ControlType = "RichText";
|
|
@@ -5098,7 +5056,7 @@ RichText.icon = "icon-textEdit";
|
|
|
5098
5056
|
RichText.formConfig = getFormConfig("RichText");
|
|
5099
5057
|
utilFuns[RichText.ControlType] = RichText;
|
|
5100
5058
|
const jsonEditor = defineAsyncComponent({
|
|
5101
|
-
loader: () => import('./index-
|
|
5059
|
+
loader: () => import('./index-12dcef92.mjs'),
|
|
5102
5060
|
loadingComponent: Loading
|
|
5103
5061
|
});
|
|
5104
5062
|
jsonEditor.ControlType = "JsonEditor";
|
|
@@ -5108,14 +5066,14 @@ jsonEditor.formConfig = getFormConfig("JsonEditor", [{ fieldName: "default", com
|
|
|
5108
5066
|
jsonEditor.rule = _.getJsonValidate();
|
|
5109
5067
|
utilFuns[jsonEditor.ControlType] = jsonEditor;
|
|
5110
5068
|
const formAction = defineAsyncComponent({
|
|
5111
|
-
loader: () => import('./formAction-
|
|
5069
|
+
loader: () => import('./formAction-f843601f.mjs'),
|
|
5112
5070
|
loadingComponent: Loading
|
|
5113
5071
|
});
|
|
5114
5072
|
formAction.ControlType = "FormAction";
|
|
5115
5073
|
formAction.isHide = true;
|
|
5116
5074
|
utilFuns[formAction.ControlType] = formAction;
|
|
5117
5075
|
const Rule = defineAsyncComponent({
|
|
5118
|
-
loader: () => import('./index-
|
|
5076
|
+
loader: () => import('./index-2e0c01c5.mjs'),
|
|
5119
5077
|
loadingComponent: Loading
|
|
5120
5078
|
});
|
|
5121
5079
|
Rule.ControlType = "Rule";
|
|
@@ -5124,7 +5082,7 @@ utilFuns[Rule.ControlType] = Rule;
|
|
|
5124
5082
|
const install = (app) => {
|
|
5125
5083
|
app.config.globalProperties.$formcomponents = utilFuns;
|
|
5126
5084
|
};
|
|
5127
|
-
const Dynamicform = defineAsyncComponent(() => import('./starfish-form-
|
|
5085
|
+
const Dynamicform = defineAsyncComponent(() => import('./starfish-form-91475fa0.mjs'));
|
|
5128
5086
|
const main = {
|
|
5129
5087
|
install
|
|
5130
5088
|
};
|
|
@@ -3,7 +3,7 @@ import 'element-plus/es/components/base/style/css';
|
|
|
3
3
|
import 'element-plus/es/components/form/style/css';
|
|
4
4
|
import 'element-plus/es/components/form-item/style/css';
|
|
5
5
|
import { defineComponent, getCurrentInstance, ref, onMounted, openBlock, createElementBlock, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, resolveDynamicComponent, createCommentVNode, toRaw } from 'vue';
|
|
6
|
-
import { _ as _export_sfc } from './main-
|
|
6
|
+
import { _ as _export_sfc } from './main-91ffa57a.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';
|
package/dist/starfish-form.mjs
CHANGED