starfish-form-custom 1.0.8 → 1.0.10

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.
@@ -73,7 +73,7 @@ const beforeBaseFormCofig: () => FormConfig[] = function () {
73
73
  value: "",
74
74
  showRule: "{}",
75
75
  required: true,
76
- // rule: "[]",
76
+ rule: "[]",
77
77
  },
78
78
  },
79
79
  {
@@ -86,7 +86,7 @@ const beforeBaseFormCofig: () => FormConfig[] = function () {
86
86
  value: "标签名称",
87
87
  showRule: "{}",
88
88
  required: true,
89
- // rule: "[]",
89
+ rule: "[]",
90
90
  },
91
91
  },
92
92
  ];
@@ -101,7 +101,7 @@ const afterBaseFormConfig: () => FormConfig[] = function () {
101
101
  label: "是否必填",
102
102
  showRule: "{}",
103
103
  required: false,
104
- // rule: "[]",
104
+ rule: "[]",
105
105
  },
106
106
  },
107
107
  {
@@ -114,7 +114,7 @@ const afterBaseFormConfig: () => FormConfig[] = function () {
114
114
  value: "标签名称",
115
115
  showRule: "{}",
116
116
  required: false,
117
- // rule: "[]",
117
+ rule: "[]",
118
118
  },
119
119
  },
120
120
  // {
@@ -125,7 +125,7 @@ const afterBaseFormConfig: () => FormConfig[] = function () {
125
125
  // label: "校验规则",
126
126
  // showRule: "{}",
127
127
  // required: false,
128
- // // rule: "[]",
128
+ // rule: "[]",
129
129
  // default: "[]",
130
130
  // },
131
131
  // },
@@ -137,7 +137,7 @@ const afterBaseFormConfig: () => FormConfig[] = function () {
137
137
  // label: "显示条件",
138
138
  // showRule: "{}",
139
139
  // required: false,
140
- // // rule: "[]",
140
+ // rule: "[]",
141
141
  // default: "[]",
142
142
  // },
143
143
  // },
@@ -149,7 +149,7 @@ const afterBaseFormConfig: () => FormConfig[] = function () {
149
149
  // label: "动作面板",
150
150
  // showRule: "{}",
151
151
  // required: false,
152
- // // rule: "[]",
152
+ // rule: "[]",
153
153
  // default: "{}",
154
154
  // },
155
155
  // },
@@ -166,7 +166,7 @@ const fieldsMap: any = {
166
166
  placeholder: "",
167
167
  showRule: "{}",
168
168
  required: false,
169
- // rule: "[]",
169
+ rule: "[]",
170
170
  default: "",
171
171
  maxLength: 100,
172
172
  minLength: 0,
@@ -183,7 +183,7 @@ const fieldsMap: any = {
183
183
  effect: "light",
184
184
  infotype: "success",
185
185
  showRule: "{}",
186
- // rule: "[]",
186
+ rule: "[]",
187
187
  },
188
188
  TextArea: {
189
189
  fieldName: "",
@@ -192,7 +192,7 @@ const fieldsMap: any = {
192
192
  placeholder: "",
193
193
  showRule: "{}",
194
194
  required: false,
195
- // rule: "[]",
195
+ rule: "[]",
196
196
  default: "",
197
197
  maxLength: 100,
198
198
  minLength: 0,
@@ -206,7 +206,7 @@ const fieldsMap: any = {
206
206
  value: "",
207
207
  showRule: "{}",
208
208
  required: false,
209
- // rule: "[]",
209
+ rule: "[]",
210
210
  default: false,
211
211
  state: "normal",
212
212
  },
@@ -216,7 +216,7 @@ const fieldsMap: any = {
216
216
  tip: "",
217
217
  showRule: "{}",
218
218
  required: false,
219
- // rule: "[]",
219
+ rule: "[]",
220
220
  default: 0,
221
221
  min: 0,
222
222
  max: 100,
@@ -304,7 +304,7 @@ const fieldsMap: any = {
304
304
  placeholder: "",
305
305
  showRule: "{}",
306
306
  required: false,
307
- // rule: "[]",
307
+ rule: "[]",
308
308
  state: "normal", // 状态:normal, disabled, readonly
309
309
  itemConfig: {
310
310
  value: "选项1",
@@ -331,7 +331,7 @@ const fieldsMap: any = {
331
331
  placeholder: "",
332
332
  showRule: "{}",
333
333
  required: false,
334
- // rule: "[]",
334
+ rule: "[]",
335
335
  state: "normal", // 状态:normal, disabled, readonly
336
336
  itemConfig: {
337
337
  value: ["选项1"],
@@ -358,7 +358,7 @@ const fieldsMap: any = {
358
358
  placeholder: "",
359
359
  showRule: "{}",
360
360
  required: false,
361
- // rule: "[]",
361
+ rule: "[]",
362
362
  default: "",
363
363
  state: "normal", // 状态:normal, disabled, readonly
364
364
  },
@@ -369,7 +369,7 @@ const fieldsMap: any = {
369
369
  value: "",
370
370
  showRule: "{}",
371
371
  required: false,
372
- // rule: "[]",
372
+ rule: "[]",
373
373
  default: false,
374
374
  arrangeMent: 'horizontal',
375
375
  state: "normal", // 状态:normal, disabled, readonly
@@ -399,7 +399,7 @@ const fieldsMap: any = {
399
399
  value: "",
400
400
  showRule: "{}",
401
401
  required: false,
402
- // rule: "[]",
402
+ rule: "[]",
403
403
  },
404
404
  KeyValueConfig: {
405
405
  fieldName: "",
@@ -408,7 +408,7 @@ const fieldsMap: any = {
408
408
  value: "",
409
409
  showRule: "{}",
410
410
  required: false,
411
- // rule: "[]",
411
+ rule: "[]",
412
412
  },
413
413
  JsonEditor: {
414
414
  fieldName: "",
@@ -416,7 +416,7 @@ const fieldsMap: any = {
416
416
  tip: "",
417
417
  showRule: "{}",
418
418
  required: false,
419
- // rule: "[]",
419
+ rule: "[]",
420
420
  default: "[]",
421
421
  json: true,
422
422
  },
@@ -427,7 +427,7 @@ const fieldsMap: any = {
427
427
  placeholder: "",
428
428
  showRule: "{}",
429
429
  required: false,
430
- // rule: "[]",
430
+ rule: "[]",
431
431
  default: 0,
432
432
  type: "1",
433
433
  size: "large",
@@ -440,7 +440,7 @@ const fieldsMap: any = {
440
440
  tip: "",
441
441
  showRule: "{}",
442
442
  required: false,
443
- // rule: "[]",
443
+ rule: "[]",
444
444
  color: "#000",
445
445
  dividerColor: "#000",
446
446
  },
@@ -451,7 +451,7 @@ const fieldsMap: any = {
451
451
  placeholder: "1",
452
452
  showRule: "{}",
453
453
  required: false,
454
- // rule: "[]",
454
+ rule: "[]",
455
455
  default: "1",
456
456
  format: "YYYY-MM-DD", // 日期格式
457
457
  state: "normal",
@@ -463,7 +463,7 @@ const fieldsMap: any = {
463
463
  placeholder: "请输入",
464
464
  showRule: "{}",
465
465
  required: false,
466
- // rule: "[]",
466
+ rule: "[]",
467
467
  default: "",
468
468
  state: "normal",
469
469
  },
@@ -474,7 +474,7 @@ const fieldsMap: any = {
474
474
  placeholder: "",
475
475
  showRule: "{}",
476
476
  required: false,
477
- // rule: "[]",
477
+ rule: "[]",
478
478
  default: "#409EFF",
479
479
  },
480
480
  CheckBox: {
@@ -484,7 +484,7 @@ const fieldsMap: any = {
484
484
  value: "",
485
485
  showRule: "{}",
486
486
  required: false,
487
- // rule: "[]",
487
+ rule: "[]",
488
488
  default: false,
489
489
  state: "normal",
490
490
  arrangeMent: 'horizontal', // 布局方式:horizontal, vertical
@@ -522,7 +522,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
522
522
  placeholder: "",
523
523
  showRule: "{}",
524
524
  required: false,
525
- // rule: "[]",
525
+ rule: "[]",
526
526
  },
527
527
  },
528
528
  placeholder: {
@@ -534,7 +534,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
534
534
  placeholder: "请输入占位文字",
535
535
  showRule: "{}",
536
536
  required: false,
537
- // rule: "[]",
537
+ rule: "[]",
538
538
  },
539
539
  },
540
540
  precision: {
@@ -546,7 +546,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
546
546
  placeholder: "",
547
547
  showRule: "{}",
548
548
  required: false,
549
- // rule: "[]",
549
+ rule: "[]",
550
550
  default: 0,
551
551
  },
552
552
  },
@@ -559,7 +559,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
559
559
  placeholder: "",
560
560
  showRule: "{}",
561
561
  required: false,
562
- // rule: "[]",
562
+ rule: "[]",
563
563
  default: 100,
564
564
  },
565
565
  },
@@ -572,7 +572,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
572
572
  placeholder: "",
573
573
  showRule: "{}",
574
574
  required: false,
575
- // rule: "[]",
575
+ rule: "[]",
576
576
  default: 0,
577
577
  },
578
578
  },
@@ -585,7 +585,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
585
585
  placeholder: "",
586
586
  showRule: "{}",
587
587
  required: false,
588
- // rule: "[]",
588
+ rule: "[]",
589
589
  itemConfig: {
590
590
  value: "normal",
591
591
  items: [
@@ -605,7 +605,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
605
605
  placeholder: "",
606
606
  showRule: "{}",
607
607
  required: false,
608
- // rule: "[]",
608
+ rule: "[]",
609
609
  itemConfig: {
610
610
  value: "normal",
611
611
  items: [
@@ -623,7 +623,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
623
623
  label: "自适应高度",
624
624
  showRule: "{}",
625
625
  required: false,
626
- // rule: "[]",
626
+ rule: "[]",
627
627
  },
628
628
  },
629
629
  format: {
@@ -635,7 +635,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
635
635
  placeholder: "",
636
636
  showRule: "{}",
637
637
  required: false,
638
- // rule: "[]",
638
+ rule: "[]",
639
639
  itemConfig: {
640
640
  value: "YYYY-MM-DD",
641
641
  items: [
@@ -657,7 +657,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
657
657
  label: "是否多选",
658
658
  showRule: "{}",
659
659
  required: false,
660
- // rule: "[]",
660
+ rule: "[]",
661
661
  },
662
662
  },
663
663
  min: {
@@ -669,7 +669,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
669
669
  placeholder: "",
670
670
  showRule: "{}",
671
671
  required: false,
672
- // rule: "[]",
672
+ rule: "[]",
673
673
  },
674
674
  },
675
675
  max: {
@@ -681,7 +681,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
681
681
  placeholder: "",
682
682
  showRule: "{}",
683
683
  required: false,
684
- // rule: "[]",
684
+ rule: "[]",
685
685
  },
686
686
  },
687
687
  itemConfig: {
@@ -693,7 +693,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
693
693
  placeholder: "",
694
694
  showRule: "{}",
695
695
  required: false,
696
- // rule: "[]",
696
+ rule: "[]",
697
697
  },
698
698
  },
699
699
  type: {
@@ -705,7 +705,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
705
705
  placeholder: "",
706
706
  showRule: "{}",
707
707
  required: false,
708
- // rule: "[]",
708
+ rule: "[]",
709
709
  itemConfig: {
710
710
  value: "1",
711
711
  id: 1,
@@ -735,7 +735,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
735
735
  placeholder: "",
736
736
  showRule: "{}",
737
737
  required: false,
738
- // rule: "[]",
738
+ rule: "[]",
739
739
  itemConfig: {
740
740
  value: "success",
741
741
  id: 1,
@@ -777,7 +777,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
777
777
  placeholder: "",
778
778
  showRule: "{}",
779
779
  required: false,
780
- // rule: "[]",
780
+ rule: "[]",
781
781
  itemConfig: {
782
782
  value: "light",
783
783
  id: 1,
@@ -807,7 +807,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
807
807
  placeholder: "",
808
808
  showRule: "{}",
809
809
  required: false,
810
- // rule: "[]",
810
+ rule: "[]",
811
811
  default: 0,
812
812
  type: 1,
813
813
  size: "default",
@@ -822,7 +822,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
822
822
  placeholder: "",
823
823
  showRule: "{}",
824
824
  required: false,
825
- // rule: "[]",
825
+ rule: "[]",
826
826
  default: 0,
827
827
  type: 1,
828
828
  size: "small",
@@ -836,7 +836,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
836
836
  tip: "",
837
837
  showRule: "{}",
838
838
  required: false,
839
- // rule: "[]",
839
+ rule: "[]",
840
840
  },
841
841
  },
842
842
  };
@@ -852,7 +852,7 @@ function getMoren(fieldName: string, component: string, label?: string): FormCon
852
852
  placeholder: "请输入占位文字",
853
853
  showRule: "{}",
854
854
  required: false,
855
- // rule: "[]",
855
+ rule: "[]",
856
856
  },
857
857
  };
858
858
  } else {