@next-bricks/form 1.15.7 → 1.15.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.
Files changed (97) hide show
  1. package/dist/bricks.json +46 -51
  2. package/dist/chunks/149.f1ac0885.js +2 -0
  3. package/dist/chunks/149.f1ac0885.js.map +1 -0
  4. package/dist/chunks/4056.48d6bc7f.js +3 -0
  5. package/dist/chunks/{4056.00152475.js.map → 4056.48d6bc7f.js.map} +1 -1
  6. package/dist/chunks/6167.776acd02.js +2 -0
  7. package/dist/chunks/6167.776acd02.js.map +1 -0
  8. package/dist/chunks/7138.32feb41d.js +3 -0
  9. package/dist/chunks/7138.32feb41d.js.map +1 -0
  10. package/dist/chunks/8548.66dd7965.js +2 -0
  11. package/dist/chunks/8548.66dd7965.js.map +1 -0
  12. package/dist/chunks/eo-auto-complete.3c25ef04.js +3 -0
  13. package/dist/chunks/eo-auto-complete.3c25ef04.js.map +1 -0
  14. package/dist/chunks/eo-dynamic-form-item.96fdc2f1.js +3 -0
  15. package/dist/chunks/{eo-dynamic-form-item.41874d06.js.map → eo-dynamic-form-item.96fdc2f1.js.map} +1 -1
  16. package/dist/chunks/eo-icon-select.b7ec93c9.js +3 -0
  17. package/dist/chunks/{eo-icon-select.970170f1.js.map → eo-icon-select.b7ec93c9.js.map} +1 -1
  18. package/dist/chunks/eo-radio.f7ea3494.js +3 -0
  19. package/dist/chunks/{eo-radio.6301fbc2.js.map → eo-radio.f7ea3494.js.map} +1 -1
  20. package/dist/chunks/eo-search.11fc357f.js.map +1 -1
  21. package/dist/chunks/eo-select.a43cdd6b.js +3 -0
  22. package/dist/chunks/{eo-select.b16bee73.js.map → eo-select.a43cdd6b.js.map} +1 -1
  23. package/dist/chunks/eo-submit-buttons.7986fcd3.js +2 -0
  24. package/dist/chunks/{eo-submit-buttons.5496d3c7.js.map → eo-submit-buttons.7986fcd3.js.map} +1 -1
  25. package/dist/chunks/eo-switch.445a7cab.js +3 -0
  26. package/dist/chunks/{eo-switch.0a6bccad.js.map → eo-switch.445a7cab.js.map} +1 -1
  27. package/dist/chunks/eo-textarea.7fdd5ac5.js +3 -0
  28. package/dist/chunks/{eo-textarea.e5b8794e.js.map → eo-textarea.7fdd5ac5.js.map} +1 -1
  29. package/dist/chunks/eo-upload-file.794353ba.js +3 -0
  30. package/dist/chunks/{eo-upload-file.71e2b71d.js.map → eo-upload-file.794353ba.js.map} +1 -1
  31. package/dist/chunks/eo-upload-image.50adcd53.js +3 -0
  32. package/dist/chunks/{eo-upload-image.e21c5519.js.map → eo-upload-image.50adcd53.js.map} +1 -1
  33. package/dist/chunks/input.eb21f7c8.js +3 -0
  34. package/dist/chunks/input.eb21f7c8.js.map +1 -0
  35. package/dist/chunks/main.363d8234.js +2 -0
  36. package/dist/chunks/main.363d8234.js.map +1 -0
  37. package/dist/chunks/react.aa821fb3.js +2 -0
  38. package/dist/chunks/{3144.07ed2d7c.js.LICENSE.txt → react.aa821fb3.js.LICENSE.txt} +10 -0
  39. package/dist/examples.json +11 -11
  40. package/dist/index.fa015fd4.js +2 -0
  41. package/dist/index.fa015fd4.js.map +1 -0
  42. package/dist/manifest.json +495 -495
  43. package/dist/types.json +1975 -1975
  44. package/dist-types/bootstrap.d.ts +1 -2
  45. package/dist-types/input/index.d.ts +1 -1
  46. package/dist-types/input.d.ts +2 -0
  47. package/package.json +2 -2
  48. package/dist/chunks/114.9c01e471.js +0 -2
  49. package/dist/chunks/114.9c01e471.js.map +0 -1
  50. package/dist/chunks/1269.2e0b1d4f.js +0 -2
  51. package/dist/chunks/1269.2e0b1d4f.js.map +0 -1
  52. package/dist/chunks/3144.07ed2d7c.js +0 -3
  53. package/dist/chunks/3144.07ed2d7c.js.map +0 -1
  54. package/dist/chunks/4041.48f9b954.js +0 -3
  55. package/dist/chunks/4041.48f9b954.js.LICENSE.txt +0 -9
  56. package/dist/chunks/4041.48f9b954.js.map +0 -1
  57. package/dist/chunks/4056.00152475.js +0 -3
  58. package/dist/chunks/4837.cfc2beca.js +0 -2
  59. package/dist/chunks/4837.cfc2beca.js.map +0 -1
  60. package/dist/chunks/7218.28ce9ced.js +0 -2
  61. package/dist/chunks/7218.28ce9ced.js.map +0 -1
  62. package/dist/chunks/7623.a4493cbd.js +0 -3
  63. package/dist/chunks/7623.a4493cbd.js.map +0 -1
  64. package/dist/chunks/7733.2ba89833.js +0 -2
  65. package/dist/chunks/7733.2ba89833.js.map +0 -1
  66. package/dist/chunks/eo-auto-complete.4c509c51.js +0 -3
  67. package/dist/chunks/eo-auto-complete.4c509c51.js.map +0 -1
  68. package/dist/chunks/eo-dynamic-form-item.41874d06.js +0 -3
  69. package/dist/chunks/eo-form-item.c9ec824e.js +0 -3
  70. package/dist/chunks/eo-form-item.c9ec824e.js.map +0 -1
  71. package/dist/chunks/eo-icon-select.970170f1.js +0 -3
  72. package/dist/chunks/eo-input.acaa31a6.js +0 -3
  73. package/dist/chunks/eo-input.acaa31a6.js.map +0 -1
  74. package/dist/chunks/eo-radio.6301fbc2.js +0 -3
  75. package/dist/chunks/eo-select.b16bee73.js +0 -3
  76. package/dist/chunks/eo-submit-buttons.5496d3c7.js +0 -2
  77. package/dist/chunks/eo-switch.0a6bccad.js +0 -3
  78. package/dist/chunks/eo-textarea.e5b8794e.js +0 -3
  79. package/dist/chunks/eo-upload-file.71e2b71d.js +0 -3
  80. package/dist/chunks/eo-upload-image.e21c5519.js +0 -3
  81. package/dist/chunks/eo-upload-image.e21c5519.js.LICENSE.txt +0 -5
  82. package/dist/chunks/main.3a082932.js +0 -2
  83. package/dist/chunks/main.3a082932.js.map +0 -1
  84. package/dist/index.78b939f2.js +0 -2
  85. package/dist/index.78b939f2.js.map +0 -1
  86. /package/dist/chunks/{4056.00152475.js.LICENSE.txt → 4056.48d6bc7f.js.LICENSE.txt} +0 -0
  87. /package/dist/chunks/{7623.a4493cbd.js.LICENSE.txt → 7138.32feb41d.js.LICENSE.txt} +0 -0
  88. /package/dist/chunks/{eo-auto-complete.4c509c51.js.LICENSE.txt → eo-auto-complete.3c25ef04.js.LICENSE.txt} +0 -0
  89. /package/dist/chunks/{eo-dynamic-form-item.41874d06.js.LICENSE.txt → eo-dynamic-form-item.96fdc2f1.js.LICENSE.txt} +0 -0
  90. /package/dist/chunks/{eo-form-item.c9ec824e.js.LICENSE.txt → eo-icon-select.b7ec93c9.js.LICENSE.txt} +0 -0
  91. /package/dist/chunks/{eo-icon-select.970170f1.js.LICENSE.txt → eo-radio.f7ea3494.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{eo-input.acaa31a6.js.LICENSE.txt → eo-select.a43cdd6b.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{eo-radio.6301fbc2.js.LICENSE.txt → eo-switch.445a7cab.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-select.b16bee73.js.LICENSE.txt → eo-textarea.7fdd5ac5.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-switch.0a6bccad.js.LICENSE.txt → eo-upload-file.794353ba.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-textarea.e5b8794e.js.LICENSE.txt → eo-upload-image.50adcd53.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-upload-file.71e2b71d.js.LICENSE.txt → input.eb21f7c8.js.LICENSE.txt} +0 -0
@@ -101,191 +101,6 @@
101
101
  "description": "通用多行文本输入框构件",
102
102
  "category": "form-input-basic"
103
103
  },
104
- {
105
- "name": "eo-input",
106
- "alias": [
107
- "form.general-input"
108
- ],
109
- "properties": [
110
- {
111
- "name": "name",
112
- "description": "字段名称",
113
- "type": "string"
114
- },
115
- {
116
- "name": "label",
117
- "description": "标签文字",
118
- "type": "string"
119
- },
120
- {
121
- "name": "required",
122
- "description": "是否必填",
123
- "type": "boolean"
124
- },
125
- {
126
- "name": "pattern",
127
- "description": "正则校验规则",
128
- "type": "string"
129
- },
130
- {
131
- "name": "max",
132
- "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
133
- "type": "number"
134
- },
135
- {
136
- "name": "min",
137
- "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
138
- "type": "number"
139
- },
140
- {
141
- "name": "message",
142
- "description": "错误时显示消息",
143
- "attribute": false,
144
- "type": "Record<string, string>"
145
- },
146
- {
147
- "name": "value",
148
- "description": "输入框值",
149
- "type": "string"
150
- },
151
- {
152
- "name": "placeholder",
153
- "description": "占位说明",
154
- "type": "string"
155
- },
156
- {
157
- "name": "disabled",
158
- "description": "是否禁用",
159
- "type": "boolean"
160
- },
161
- {
162
- "name": "readonly",
163
- "description": "是否只读",
164
- "type": "boolean"
165
- },
166
- {
167
- "name": "clearable",
168
- "description": "是否显示清除按钮",
169
- "type": "boolean"
170
- },
171
- {
172
- "name": "autoFocus",
173
- "description": "是否自动聚焦",
174
- "type": "boolean"
175
- },
176
- {
177
- "name": "type",
178
- "description": "类型",
179
- "default": "\"text\"",
180
- "type": "InputType"
181
- },
182
- {
183
- "name": "size",
184
- "description": "大小",
185
- "default": "\"medium\"",
186
- "type": "ComponentSize"
187
- },
188
- {
189
- "name": "minLength",
190
- "description": "最小长度",
191
- "type": "number"
192
- },
193
- {
194
- "name": "maxLength",
195
- "description": "最大长度(用户无法输入超过此最大长度的字符串)",
196
- "type": "number"
197
- },
198
- {
199
- "name": "inputStyle",
200
- "description": "输入框样式",
201
- "attribute": false,
202
- "type": "React.CSSProperties"
203
- },
204
- {
205
- "name": "validator",
206
- "description": "表单项校验方法",
207
- "attribute": false,
208
- "type": "((value: any) => MessageBody)"
209
- }
210
- ],
211
- "events": [
212
- {
213
- "name": "change",
214
- "description": "值改变事件",
215
- "detail": {
216
- "type": "string"
217
- }
218
- }
219
- ],
220
- "slots": [
221
- {
222
- "name": "addonBefore",
223
- "description": "输入框前置标签"
224
- },
225
- {
226
- "name": "addonAfter",
227
- "description": "输入框后置标签"
228
- },
229
- {
230
- "name": "prefix",
231
- "description": "输入框前缀图标"
232
- },
233
- {
234
- "name": "suffix",
235
- "description": "输入框后缀图标"
236
- }
237
- ],
238
- "methods": [
239
- {
240
- "name": "focusInput",
241
- "params": [],
242
- "description": "focus",
243
- "returns": {}
244
- },
245
- {
246
- "name": "blurInput",
247
- "params": [],
248
- "description": "blur",
249
- "returns": {}
250
- }
251
- ],
252
- "parts": [
253
- {
254
- "name": "addon-wrapper",
255
- "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
256
- },
257
- {
258
- "name": "affix-wrapper",
259
- "description": "包裹输入组件、前缀和后缀的容器"
260
- },
261
- {
262
- "name": "input",
263
- "description": "输入组件"
264
- },
265
- {
266
- "name": "clear-icon",
267
- "description": "清除按钮"
268
- },
269
- {
270
- "name": "prefix",
271
- "description": "输入框前缀容器"
272
- },
273
- {
274
- "name": "suffix",
275
- "description": "输入框后缀容器"
276
- },
277
- {
278
- "name": "before-addon",
279
- "description": "输入框前置容器"
280
- },
281
- {
282
- "name": "after-addon",
283
- "description": "输入框后置容器"
284
- }
285
- ],
286
- "description": "通用输入框构件",
287
- "category": "form-input-basic"
288
- },
289
104
  {
290
105
  "name": "eo-form",
291
106
  "alias": [
@@ -530,183 +345,75 @@
530
345
  "category": "form-input-basic"
531
346
  },
532
347
  {
533
- "name": "eo-form-item",
348
+ "name": "eo-select",
534
349
  "alias": [
535
- "form.general-form-item"
350
+ "form.general-select"
536
351
  ],
537
352
  "properties": [
538
- {
539
- "name": "formElement",
540
- "attribute": false,
541
- "type": "Form"
542
- },
543
- {
544
- "name": "curElement",
545
- "attribute": false,
546
- "type": "HTMLElement"
547
- },
548
353
  {
549
354
  "name": "name",
550
355
  "description": "字段名称",
551
356
  "type": "string"
552
357
  },
553
358
  {
554
- "name": "label",
359
+ "name": "placeholder",
360
+ "description": "占位说明",
555
361
  "type": "string"
556
362
  },
557
363
  {
558
- "name": "pattern",
364
+ "name": "label",
365
+ "description": "字段文本",
559
366
  "type": "string"
560
367
  },
561
368
  {
562
- "name": "message",
369
+ "name": "options",
370
+ "description": "选项列表",
371
+ "required": true,
563
372
  "attribute": false,
564
- "type": "Record<string, string>"
373
+ "type": "GeneralComplexOption[]"
565
374
  },
566
375
  {
567
- "name": "type",
568
- "type": "string"
376
+ "name": "value",
377
+ "description": "",
378
+ "attribute": false,
379
+ "type": "any"
569
380
  },
570
381
  {
571
- "name": "max",
572
- "type": "number"
382
+ "name": "required",
383
+ "description": "是否必填",
384
+ "type": "boolean"
573
385
  },
574
386
  {
575
- "name": "min",
576
- "type": "number"
387
+ "name": "message",
388
+ "description": "校验文本信息",
389
+ "attribute": false,
390
+ "type": "Record<string, string>"
577
391
  },
578
392
  {
579
- "name": "required",
580
- "description": "表单项是否为必填",
393
+ "name": "disabled",
394
+ "description": "是否禁用",
581
395
  "type": "boolean"
582
396
  },
583
397
  {
584
- "name": "value",
585
- "description": "初始值",
586
- "type": "string"
398
+ "name": "mode",
399
+ "description": "类型",
400
+ "type": "\"tags\" | \"multiple\""
587
401
  },
588
402
  {
589
- "name": "valuePropsName",
590
- "type": "string"
403
+ "name": "tokenSeparators",
404
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
405
+ "attribute": false,
406
+ "type": "string[]"
591
407
  },
592
408
  {
593
- "name": "layout",
594
- "type": "Layout"
409
+ "name": "maxTagCount",
410
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
411
+ "type": "number"
595
412
  },
596
413
  {
597
- "name": "size",
598
- "type": "ComponentSize"
599
- },
600
- {
601
- "name": "trim",
602
- "description": "是否自动去除前后的空白字符",
603
- "default": "true"
604
- },
605
- {
606
- "name": "trigger",
607
- "description": "事件触发方法名",
608
- "type": "string"
609
- },
610
- {
611
- "name": "validator",
612
- "description": "表单项校验方法",
613
- "attribute": false,
614
- "type": "((value: any) => MessageBody)"
615
- },
616
- {
617
- "name": "needValidate",
618
- "description": "值变化时是否主动出发校验",
619
- "type": "boolean"
620
- },
621
- {
622
- "name": "textContent",
623
- "type": "string",
624
- "description": "文本内容"
625
- }
626
- ],
627
- "events": [],
628
- "slots": [
629
- {
630
- "name": null,
631
- "description": "表单项内容"
632
- }
633
- ],
634
- "methods": [],
635
- "parts": [],
636
- "description": "通用输入框构件",
637
- "category": "form-input-basic",
638
- "insider": true
639
- },
640
- {
641
- "name": "eo-select",
642
- "alias": [
643
- "form.general-select"
644
- ],
645
- "properties": [
646
- {
647
- "name": "name",
648
- "description": "字段名称",
649
- "type": "string"
650
- },
651
- {
652
- "name": "placeholder",
653
- "description": "占位说明",
654
- "type": "string"
655
- },
656
- {
657
- "name": "label",
658
- "description": "字段文本",
659
- "type": "string"
660
- },
661
- {
662
- "name": "options",
663
- "description": "选项列表",
664
- "required": true,
665
- "attribute": false,
666
- "type": "GeneralComplexOption[]"
667
- },
668
- {
669
- "name": "value",
670
- "description": "值",
671
- "attribute": false,
672
- "type": "any"
673
- },
674
- {
675
- "name": "required",
676
- "description": "是否必填",
677
- "type": "boolean"
678
- },
679
- {
680
- "name": "message",
681
- "description": "校验文本信息",
682
- "attribute": false,
683
- "type": "Record<string, string>"
684
- },
685
- {
686
- "name": "disabled",
687
- "description": "是否禁用",
688
- "type": "boolean"
689
- },
690
- {
691
- "name": "mode",
692
- "description": "类型",
693
- "type": "\"tags\" | \"multiple\""
694
- },
695
- {
696
- "name": "tokenSeparators",
697
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
698
- "attribute": false,
699
- "type": "string[]"
700
- },
701
- {
702
- "name": "maxTagCount",
703
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
704
- "type": "number"
705
- },
706
- {
707
- "name": "groupBy",
708
- "description": "分组字段",
709
- "type": "string"
414
+ "name": "groupBy",
415
+ "description": "分组字段",
416
+ "type": "string"
710
417
  },
711
418
  {
712
419
  "name": "suffix",
@@ -785,66 +492,6 @@
785
492
  "description": "通用下拉选择构件",
786
493
  "category": "form-input-basic"
787
494
  },
788
- {
789
- "name": "eo-submit-buttons",
790
- "alias": [
791
- "form.submit-buttons"
792
- ],
793
- "properties": [
794
- {
795
- "name": "submitText",
796
- "description": "提交按钮的文字",
797
- "default": "\"提交\"",
798
- "type": "string"
799
- },
800
- {
801
- "name": "cancelText",
802
- "description": "取消按钮的文字,不设置则不显示取消按钮",
803
- "type": "string"
804
- },
805
- {
806
- "name": "disableAfterClick",
807
- "description": "点击确定按钮后自动禁用",
808
- "type": "boolean"
809
- },
810
- {
811
- "name": "submitDisabled",
812
- "description": "禁用提交按钮",
813
- "type": "boolean"
814
- },
815
- {
816
- "name": "submitType",
817
- "description": "提交按钮类型",
818
- "type": "ButtonType"
819
- },
820
- {
821
- "name": "cancelType",
822
- "description": "取消按钮类型",
823
- "type": "ButtonType"
824
- }
825
- ],
826
- "events": [
827
- {
828
- "name": "submit",
829
- "description": "点击提交按钮触发的事件",
830
- "detail": {
831
- "type": "void"
832
- }
833
- },
834
- {
835
- "name": "cancel",
836
- "description": "点击取消按钮触发的事件",
837
- "detail": {
838
- "type": "void"
839
- }
840
- }
841
- ],
842
- "slots": [],
843
- "methods": [],
844
- "parts": [],
845
- "description": "表单提交按钮",
846
- "category": "form-input-basic"
847
- },
848
495
  {
849
496
  "name": "eo-checkbox",
850
497
  "alias": [
@@ -937,6 +584,66 @@
937
584
  "description": "表单复选框构件",
938
585
  "category": "form-input-basic"
939
586
  },
587
+ {
588
+ "name": "eo-submit-buttons",
589
+ "alias": [
590
+ "form.submit-buttons"
591
+ ],
592
+ "properties": [
593
+ {
594
+ "name": "submitText",
595
+ "description": "提交按钮的文字",
596
+ "default": "\"提交\"",
597
+ "type": "string"
598
+ },
599
+ {
600
+ "name": "cancelText",
601
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
602
+ "type": "string"
603
+ },
604
+ {
605
+ "name": "disableAfterClick",
606
+ "description": "点击确定按钮后自动禁用",
607
+ "type": "boolean"
608
+ },
609
+ {
610
+ "name": "submitDisabled",
611
+ "description": "禁用提交按钮",
612
+ "type": "boolean"
613
+ },
614
+ {
615
+ "name": "submitType",
616
+ "description": "提交按钮类型",
617
+ "type": "ButtonType"
618
+ },
619
+ {
620
+ "name": "cancelType",
621
+ "description": "取消按钮类型",
622
+ "type": "ButtonType"
623
+ }
624
+ ],
625
+ "events": [
626
+ {
627
+ "name": "submit",
628
+ "description": "点击提交按钮触发的事件",
629
+ "detail": {
630
+ "type": "void"
631
+ }
632
+ },
633
+ {
634
+ "name": "cancel",
635
+ "description": "点击取消按钮触发的事件",
636
+ "detail": {
637
+ "type": "void"
638
+ }
639
+ }
640
+ ],
641
+ "slots": [],
642
+ "methods": [],
643
+ "parts": [],
644
+ "description": "表单提交按钮",
645
+ "category": "form-input-basic"
646
+ },
940
647
  {
941
648
  "name": "eo-dynamic-form-item",
942
649
  "alias": [
@@ -1097,9 +804,9 @@
1097
804
  "category": "interact-basic"
1098
805
  },
1099
806
  {
1100
- "name": "eo-upload-image",
807
+ "name": "eo-icon-select",
1101
808
  "alias": [
1102
- "form.upload-image"
809
+ "form.icon-select"
1103
810
  ],
1104
811
  "properties": [
1105
812
  {
@@ -1116,28 +823,13 @@
1116
823
  "name": "value",
1117
824
  "description": "值",
1118
825
  "attribute": false,
1119
- "type": "ImageData[]"
1120
- },
1121
- {
1122
- "name": "bucketName",
1123
- "description": "对象存储桶名字",
1124
- "type": "string"
1125
- },
1126
- {
1127
- "name": "maxCount",
1128
- "description": "最大上传数量",
1129
- "type": "number"
826
+ "type": "Icon"
1130
827
  },
1131
828
  {
1132
- "name": "multiple",
1133
- "description": "是否支持选定的多张图片",
829
+ "name": "disabled",
830
+ "description": "是否禁用",
1134
831
  "type": "boolean"
1135
832
  },
1136
- {
1137
- "name": "limitSize",
1138
- "description": "上传大小限制(单位为 MB)",
1139
- "type": "number"
1140
- },
1141
833
  {
1142
834
  "name": "required",
1143
835
  "description": "是否必填",
@@ -1145,7 +837,76 @@
1145
837
  },
1146
838
  {
1147
839
  "name": "message",
1148
- "description": "校验文本信息",
840
+ "description": "是否必填",
841
+ "attribute": false,
842
+ "type": "Record<string, string>"
843
+ }
844
+ ],
845
+ "events": [
846
+ {
847
+ "name": "change",
848
+ "description": "值变化时触发",
849
+ "detail": {
850
+ "type": "Icon | undefined"
851
+ }
852
+ }
853
+ ],
854
+ "slots": [],
855
+ "methods": [],
856
+ "parts": [],
857
+ "description": "图标选择构件",
858
+ "category": "form-input-basic"
859
+ },
860
+ {
861
+ "name": "eo-upload-image",
862
+ "alias": [
863
+ "form.upload-image"
864
+ ],
865
+ "properties": [
866
+ {
867
+ "name": "name",
868
+ "description": "字段名称",
869
+ "type": "string"
870
+ },
871
+ {
872
+ "name": "label",
873
+ "description": "字段说明",
874
+ "type": "string"
875
+ },
876
+ {
877
+ "name": "value",
878
+ "description": "值",
879
+ "attribute": false,
880
+ "type": "ImageData[]"
881
+ },
882
+ {
883
+ "name": "bucketName",
884
+ "description": "对象存储桶名字",
885
+ "type": "string"
886
+ },
887
+ {
888
+ "name": "maxCount",
889
+ "description": "最大上传数量",
890
+ "type": "number"
891
+ },
892
+ {
893
+ "name": "multiple",
894
+ "description": "是否支持选定的多张图片",
895
+ "type": "boolean"
896
+ },
897
+ {
898
+ "name": "limitSize",
899
+ "description": "上传大小限制(单位为 MB)",
900
+ "type": "number"
901
+ },
902
+ {
903
+ "name": "required",
904
+ "description": "是否必填",
905
+ "type": "boolean"
906
+ },
907
+ {
908
+ "name": "message",
909
+ "description": "校验文本信息",
1149
910
  "attribute": false,
1150
911
  "type": "Record<string, string>"
1151
912
  }
@@ -1357,60 +1118,6 @@
1357
1118
  "description": "上传文件",
1358
1119
  "category": "form-input-basic"
1359
1120
  },
1360
- {
1361
- "name": "eo-icon-select",
1362
- "alias": [
1363
- "form.icon-select"
1364
- ],
1365
- "properties": [
1366
- {
1367
- "name": "name",
1368
- "description": "字段名称",
1369
- "type": "string"
1370
- },
1371
- {
1372
- "name": "label",
1373
- "description": "字段说明",
1374
- "type": "string"
1375
- },
1376
- {
1377
- "name": "value",
1378
- "description": "值",
1379
- "attribute": false,
1380
- "type": "Icon"
1381
- },
1382
- {
1383
- "name": "disabled",
1384
- "description": "是否禁用",
1385
- "type": "boolean"
1386
- },
1387
- {
1388
- "name": "required",
1389
- "description": "是否必填",
1390
- "type": "boolean"
1391
- },
1392
- {
1393
- "name": "message",
1394
- "description": "是否必填",
1395
- "attribute": false,
1396
- "type": "Record<string, string>"
1397
- }
1398
- ],
1399
- "events": [
1400
- {
1401
- "name": "change",
1402
- "description": "值变化时触发",
1403
- "detail": {
1404
- "type": "Icon | undefined"
1405
- }
1406
- }
1407
- ],
1408
- "slots": [],
1409
- "methods": [],
1410
- "parts": [],
1411
- "description": "图标选择构件",
1412
- "category": "form-input-basic"
1413
- },
1414
1121
  {
1415
1122
  "name": "eo-auto-complete",
1416
1123
  "properties": [
@@ -1669,6 +1376,84 @@
1669
1376
  "description": "日期选择器",
1670
1377
  "category": "form-input-basic"
1671
1378
  },
1379
+ {
1380
+ "name": "eo-color-picker",
1381
+ "properties": [
1382
+ {
1383
+ "name": "name",
1384
+ "description": "字段名称",
1385
+ "type": "string"
1386
+ },
1387
+ {
1388
+ "name": "label",
1389
+ "description": "字段说明",
1390
+ "type": "string"
1391
+ },
1392
+ {
1393
+ "name": "value",
1394
+ "description": "值",
1395
+ "type": "string"
1396
+ },
1397
+ {
1398
+ "name": "defaultValue",
1399
+ "description": "颜色默认的值",
1400
+ "type": "string | Color"
1401
+ },
1402
+ {
1403
+ "name": "required",
1404
+ "description": "是否必填",
1405
+ "type": "boolean"
1406
+ },
1407
+ {
1408
+ "name": "allowClear",
1409
+ "description": "允许清除选择的颜色",
1410
+ "type": "boolean"
1411
+ },
1412
+ {
1413
+ "name": "size",
1414
+ "description": "设置触发器大小",
1415
+ "default": "middle",
1416
+ "attribute": false,
1417
+ "type": "\"small\" | \"middle\" | \"large\""
1418
+ },
1419
+ {
1420
+ "name": "showText",
1421
+ "description": "显示颜色文本",
1422
+ "type": "boolean"
1423
+ },
1424
+ {
1425
+ "name": "disabled",
1426
+ "description": "是否禁用",
1427
+ "type": "boolean"
1428
+ },
1429
+ {
1430
+ "name": "format",
1431
+ "description": "颜色格式",
1432
+ "default": "hex",
1433
+ "attribute": false,
1434
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1435
+ },
1436
+ {
1437
+ "name": "configProps",
1438
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1439
+ "attribute": false,
1440
+ "type": "Partial<ColorPickerProps>"
1441
+ }
1442
+ ],
1443
+ "events": [
1444
+ {
1445
+ "name": "change",
1446
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1447
+ "detail": {
1448
+ "type": "string | undefined"
1449
+ }
1450
+ }
1451
+ ],
1452
+ "slots": [],
1453
+ "methods": [],
1454
+ "parts": [],
1455
+ "description": "构件 `eo-color-picker`"
1456
+ },
1672
1457
  {
1673
1458
  "name": "eo-time-range-picker",
1674
1459
  "properties": [
@@ -1752,7 +1537,10 @@
1752
1537
  "category": "form-input-basic"
1753
1538
  },
1754
1539
  {
1755
- "name": "eo-color-picker",
1540
+ "name": "eo-input",
1541
+ "alias": [
1542
+ "form.general-input"
1543
+ ],
1756
1544
  "properties": [
1757
1545
  {
1758
1546
  "name": "name",
@@ -1761,73 +1549,285 @@
1761
1549
  },
1762
1550
  {
1763
1551
  "name": "label",
1764
- "description": "字段说明",
1552
+ "description": "标签文字",
1765
1553
  "type": "string"
1766
1554
  },
1555
+ {
1556
+ "name": "required",
1557
+ "description": "是否必填",
1558
+ "type": "boolean"
1559
+ },
1560
+ {
1561
+ "name": "pattern",
1562
+ "description": "正则校验规则",
1563
+ "type": "string"
1564
+ },
1565
+ {
1566
+ "name": "max",
1567
+ "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1568
+ "type": "number"
1569
+ },
1570
+ {
1571
+ "name": "min",
1572
+ "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1573
+ "type": "number"
1574
+ },
1575
+ {
1576
+ "name": "message",
1577
+ "description": "错误时显示消息",
1578
+ "attribute": false,
1579
+ "type": "Record<string, string>"
1580
+ },
1767
1581
  {
1768
1582
  "name": "value",
1769
- "description": "",
1583
+ "description": "输入框值",
1770
1584
  "type": "string"
1771
1585
  },
1772
1586
  {
1773
- "name": "defaultValue",
1774
- "description": "颜色默认的值",
1775
- "type": "string | Color"
1587
+ "name": "placeholder",
1588
+ "description": "占位说明",
1589
+ "type": "string"
1776
1590
  },
1777
1591
  {
1778
- "name": "required",
1779
- "description": "是否必填",
1592
+ "name": "disabled",
1593
+ "description": "是否禁用",
1780
1594
  "type": "boolean"
1781
1595
  },
1782
1596
  {
1783
- "name": "allowClear",
1784
- "description": "允许清除选择的颜色",
1597
+ "name": "readonly",
1598
+ "description": "是否只读",
1785
1599
  "type": "boolean"
1786
1600
  },
1787
1601
  {
1788
- "name": "size",
1789
- "description": "设置触发器大小",
1790
- "default": "middle",
1791
- "attribute": false,
1792
- "type": "\"small\" | \"middle\" | \"large\""
1602
+ "name": "clearable",
1603
+ "description": "是否显示清除按钮",
1604
+ "type": "boolean"
1793
1605
  },
1794
1606
  {
1795
- "name": "showText",
1796
- "description": "显示颜色文本",
1607
+ "name": "autoFocus",
1608
+ "description": "是否自动聚焦",
1797
1609
  "type": "boolean"
1798
1610
  },
1799
1611
  {
1800
- "name": "disabled",
1801
- "description": "是否禁用",
1802
- "type": "boolean"
1612
+ "name": "type",
1613
+ "description": "类型",
1614
+ "default": "\"text\"",
1615
+ "type": "InputType"
1803
1616
  },
1804
1617
  {
1805
- "name": "format",
1806
- "description": "颜色格式",
1807
- "default": "hex",
1618
+ "name": "size",
1619
+ "description": "大小",
1620
+ "default": "\"medium\"",
1621
+ "type": "ComponentSize"
1622
+ },
1623
+ {
1624
+ "name": "minLength",
1625
+ "description": "最小长度",
1626
+ "type": "number"
1627
+ },
1628
+ {
1629
+ "name": "maxLength",
1630
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1631
+ "type": "number"
1632
+ },
1633
+ {
1634
+ "name": "inputStyle",
1635
+ "description": "输入框样式",
1808
1636
  "attribute": false,
1809
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1637
+ "type": "React.CSSProperties"
1810
1638
  },
1811
1639
  {
1812
- "name": "configProps",
1813
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1640
+ "name": "validator",
1641
+ "description": "表单项校验方法",
1814
1642
  "attribute": false,
1815
- "type": "Partial<ColorPickerProps>"
1643
+ "type": "((value: any) => MessageBody)"
1816
1644
  }
1817
1645
  ],
1818
1646
  "events": [
1819
1647
  {
1820
1648
  "name": "change",
1821
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1649
+ "description": "值改变事件",
1822
1650
  "detail": {
1823
- "type": "string | undefined"
1651
+ "type": "string"
1824
1652
  }
1825
1653
  }
1826
1654
  ],
1827
- "slots": [],
1655
+ "slots": [
1656
+ {
1657
+ "name": "addonBefore",
1658
+ "description": "输入框前置标签"
1659
+ },
1660
+ {
1661
+ "name": "addonAfter",
1662
+ "description": "输入框后置标签"
1663
+ },
1664
+ {
1665
+ "name": "prefix",
1666
+ "description": "输入框前缀图标"
1667
+ },
1668
+ {
1669
+ "name": "suffix",
1670
+ "description": "输入框后缀图标"
1671
+ }
1672
+ ],
1673
+ "methods": [
1674
+ {
1675
+ "name": "focusInput",
1676
+ "params": [],
1677
+ "description": "focus",
1678
+ "returns": {}
1679
+ },
1680
+ {
1681
+ "name": "blurInput",
1682
+ "params": [],
1683
+ "description": "blur",
1684
+ "returns": {}
1685
+ }
1686
+ ],
1687
+ "parts": [
1688
+ {
1689
+ "name": "addon-wrapper",
1690
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1691
+ },
1692
+ {
1693
+ "name": "affix-wrapper",
1694
+ "description": "包裹输入组件、前缀和后缀的容器"
1695
+ },
1696
+ {
1697
+ "name": "input",
1698
+ "description": "输入组件"
1699
+ },
1700
+ {
1701
+ "name": "clear-icon",
1702
+ "description": "清除按钮"
1703
+ },
1704
+ {
1705
+ "name": "prefix",
1706
+ "description": "输入框前缀容器"
1707
+ },
1708
+ {
1709
+ "name": "suffix",
1710
+ "description": "输入框后缀容器"
1711
+ },
1712
+ {
1713
+ "name": "before-addon",
1714
+ "description": "输入框前置容器"
1715
+ },
1716
+ {
1717
+ "name": "after-addon",
1718
+ "description": "输入框后置容器"
1719
+ }
1720
+ ],
1721
+ "description": "通用输入框构件",
1722
+ "category": "form-input-basic"
1723
+ },
1724
+ {
1725
+ "name": "eo-form-item",
1726
+ "alias": [
1727
+ "form.general-form-item"
1728
+ ],
1729
+ "properties": [
1730
+ {
1731
+ "name": "formElement",
1732
+ "attribute": false,
1733
+ "type": "Form"
1734
+ },
1735
+ {
1736
+ "name": "curElement",
1737
+ "attribute": false,
1738
+ "type": "HTMLElement"
1739
+ },
1740
+ {
1741
+ "name": "name",
1742
+ "description": "字段名称",
1743
+ "type": "string"
1744
+ },
1745
+ {
1746
+ "name": "label",
1747
+ "type": "string"
1748
+ },
1749
+ {
1750
+ "name": "pattern",
1751
+ "type": "string"
1752
+ },
1753
+ {
1754
+ "name": "message",
1755
+ "attribute": false,
1756
+ "type": "Record<string, string>"
1757
+ },
1758
+ {
1759
+ "name": "type",
1760
+ "type": "string"
1761
+ },
1762
+ {
1763
+ "name": "max",
1764
+ "type": "number"
1765
+ },
1766
+ {
1767
+ "name": "min",
1768
+ "type": "number"
1769
+ },
1770
+ {
1771
+ "name": "required",
1772
+ "description": "表单项是否为必填",
1773
+ "type": "boolean"
1774
+ },
1775
+ {
1776
+ "name": "value",
1777
+ "description": "初始值",
1778
+ "type": "string"
1779
+ },
1780
+ {
1781
+ "name": "valuePropsName",
1782
+ "type": "string"
1783
+ },
1784
+ {
1785
+ "name": "layout",
1786
+ "type": "Layout"
1787
+ },
1788
+ {
1789
+ "name": "size",
1790
+ "type": "ComponentSize"
1791
+ },
1792
+ {
1793
+ "name": "trim",
1794
+ "description": "是否自动去除前后的空白字符",
1795
+ "default": "true"
1796
+ },
1797
+ {
1798
+ "name": "trigger",
1799
+ "description": "事件触发方法名",
1800
+ "type": "string"
1801
+ },
1802
+ {
1803
+ "name": "validator",
1804
+ "description": "表单项校验方法",
1805
+ "attribute": false,
1806
+ "type": "((value: any) => MessageBody)"
1807
+ },
1808
+ {
1809
+ "name": "needValidate",
1810
+ "description": "值变化时是否主动出发校验",
1811
+ "type": "boolean"
1812
+ },
1813
+ {
1814
+ "name": "textContent",
1815
+ "type": "string",
1816
+ "description": "文本内容"
1817
+ }
1818
+ ],
1819
+ "events": [],
1820
+ "slots": [
1821
+ {
1822
+ "name": null,
1823
+ "description": "表单项内容"
1824
+ }
1825
+ ],
1828
1826
  "methods": [],
1829
1827
  "parts": [],
1830
- "description": "构件 `eo-color-picker`"
1828
+ "description": "通用输入框构件",
1829
+ "category": "form-input-basic",
1830
+ "insider": true
1831
1831
  }
1832
1832
  ],
1833
1833
  "providers": []