@next-bricks/form 1.15.7 → 1.15.9

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 (103) hide show
  1. package/dist/bricks.json +42 -47
  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/5347.407eaf45.js +3 -0
  7. package/dist/chunks/5347.407eaf45.js.map +1 -0
  8. package/dist/chunks/6167.776acd02.js +2 -0
  9. package/dist/chunks/6167.776acd02.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-date-picker.740508ba.js → eo-date-picker.79d82882.js} +2 -2
  15. package/dist/chunks/{eo-date-picker.740508ba.js.map → eo-date-picker.79d82882.js.map} +1 -1
  16. package/dist/chunks/eo-dynamic-form-item.96fdc2f1.js +3 -0
  17. package/dist/chunks/{eo-dynamic-form-item.41874d06.js.map → eo-dynamic-form-item.96fdc2f1.js.map} +1 -1
  18. package/dist/chunks/eo-icon-select.b7ec93c9.js +3 -0
  19. package/dist/chunks/{eo-icon-select.970170f1.js.map → eo-icon-select.b7ec93c9.js.map} +1 -1
  20. package/dist/chunks/eo-radio.3b5b1a87.js +3 -0
  21. package/dist/chunks/eo-radio.3b5b1a87.js.map +1 -0
  22. package/dist/chunks/eo-search.11fc357f.js.map +1 -1
  23. package/dist/chunks/eo-select.a43cdd6b.js +3 -0
  24. package/dist/chunks/{eo-select.b16bee73.js.map → eo-select.a43cdd6b.js.map} +1 -1
  25. package/dist/chunks/eo-submit-buttons.7986fcd3.js +2 -0
  26. package/dist/chunks/{eo-submit-buttons.5496d3c7.js.map → eo-submit-buttons.7986fcd3.js.map} +1 -1
  27. package/dist/chunks/eo-switch.445a7cab.js +3 -0
  28. package/dist/chunks/{eo-switch.0a6bccad.js.map → eo-switch.445a7cab.js.map} +1 -1
  29. package/dist/chunks/eo-textarea.7fdd5ac5.js +3 -0
  30. package/dist/chunks/{eo-textarea.e5b8794e.js.map → eo-textarea.7fdd5ac5.js.map} +1 -1
  31. package/dist/chunks/eo-upload-file.794353ba.js +3 -0
  32. package/dist/chunks/{eo-upload-file.71e2b71d.js.map → eo-upload-file.794353ba.js.map} +1 -1
  33. package/dist/chunks/eo-upload-image.50adcd53.js +3 -0
  34. package/dist/chunks/{eo-upload-image.e21c5519.js.map → eo-upload-image.50adcd53.js.map} +1 -1
  35. package/dist/chunks/input.4e2e5b20.js +3 -0
  36. package/dist/chunks/input.4e2e5b20.js.map +1 -0
  37. package/dist/chunks/main.38afb015.js +2 -0
  38. package/dist/chunks/main.38afb015.js.map +1 -0
  39. package/dist/chunks/react.aa821fb3.js +2 -0
  40. package/dist/chunks/{3144.07ed2d7c.js.LICENSE.txt → react.aa821fb3.js.LICENSE.txt} +10 -0
  41. package/dist/examples.json +9 -9
  42. package/dist/index.ff5669c5.js +2 -0
  43. package/dist/index.ff5669c5.js.map +1 -0
  44. package/dist/manifest.json +469 -469
  45. package/dist/types.json +1772 -1772
  46. package/dist-types/bootstrap.d.ts +1 -2
  47. package/dist-types/input/index.d.ts +1 -1
  48. package/dist-types/input.d.ts +2 -0
  49. package/dist-types/radio/index.d.ts +1 -1
  50. package/package.json +2 -2
  51. package/dist/chunks/114.9c01e471.js +0 -2
  52. package/dist/chunks/114.9c01e471.js.map +0 -1
  53. package/dist/chunks/1269.2e0b1d4f.js +0 -2
  54. package/dist/chunks/1269.2e0b1d4f.js.map +0 -1
  55. package/dist/chunks/2853.13a2154a.js +0 -2
  56. package/dist/chunks/2853.13a2154a.js.map +0 -1
  57. package/dist/chunks/3144.07ed2d7c.js +0 -3
  58. package/dist/chunks/3144.07ed2d7c.js.map +0 -1
  59. package/dist/chunks/4041.48f9b954.js +0 -3
  60. package/dist/chunks/4041.48f9b954.js.LICENSE.txt +0 -9
  61. package/dist/chunks/4041.48f9b954.js.map +0 -1
  62. package/dist/chunks/4056.00152475.js +0 -3
  63. package/dist/chunks/4837.cfc2beca.js +0 -2
  64. package/dist/chunks/4837.cfc2beca.js.map +0 -1
  65. package/dist/chunks/7218.28ce9ced.js +0 -2
  66. package/dist/chunks/7218.28ce9ced.js.map +0 -1
  67. package/dist/chunks/7623.a4493cbd.js +0 -3
  68. package/dist/chunks/7623.a4493cbd.js.map +0 -1
  69. package/dist/chunks/7733.2ba89833.js +0 -2
  70. package/dist/chunks/7733.2ba89833.js.map +0 -1
  71. package/dist/chunks/eo-auto-complete.4c509c51.js +0 -3
  72. package/dist/chunks/eo-auto-complete.4c509c51.js.map +0 -1
  73. package/dist/chunks/eo-dynamic-form-item.41874d06.js +0 -3
  74. package/dist/chunks/eo-form-item.c9ec824e.js +0 -3
  75. package/dist/chunks/eo-form-item.c9ec824e.js.map +0 -1
  76. package/dist/chunks/eo-icon-select.970170f1.js +0 -3
  77. package/dist/chunks/eo-input.acaa31a6.js +0 -3
  78. package/dist/chunks/eo-input.acaa31a6.js.map +0 -1
  79. package/dist/chunks/eo-radio.6301fbc2.js +0 -3
  80. package/dist/chunks/eo-radio.6301fbc2.js.map +0 -1
  81. package/dist/chunks/eo-select.b16bee73.js +0 -3
  82. package/dist/chunks/eo-submit-buttons.5496d3c7.js +0 -2
  83. package/dist/chunks/eo-switch.0a6bccad.js +0 -3
  84. package/dist/chunks/eo-textarea.e5b8794e.js +0 -3
  85. package/dist/chunks/eo-upload-file.71e2b71d.js +0 -3
  86. package/dist/chunks/eo-upload-image.e21c5519.js +0 -3
  87. package/dist/chunks/eo-upload-image.e21c5519.js.LICENSE.txt +0 -5
  88. package/dist/chunks/main.3a082932.js +0 -2
  89. package/dist/chunks/main.3a082932.js.map +0 -1
  90. package/dist/index.78b939f2.js +0 -2
  91. package/dist/index.78b939f2.js.map +0 -1
  92. /package/dist/chunks/{4056.00152475.js.LICENSE.txt → 4056.48d6bc7f.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{7623.a4493cbd.js.LICENSE.txt → 5347.407eaf45.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-auto-complete.4c509c51.js.LICENSE.txt → eo-auto-complete.3c25ef04.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-dynamic-form-item.41874d06.js.LICENSE.txt → eo-dynamic-form-item.96fdc2f1.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-form-item.c9ec824e.js.LICENSE.txt → eo-icon-select.b7ec93c9.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-icon-select.970170f1.js.LICENSE.txt → eo-radio.3b5b1a87.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-input.acaa31a6.js.LICENSE.txt → eo-select.a43cdd6b.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-radio.6301fbc2.js.LICENSE.txt → eo-switch.445a7cab.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-select.b16bee73.js.LICENSE.txt → eo-textarea.7fdd5ac5.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-switch.0a6bccad.js.LICENSE.txt → eo-upload-file.794353ba.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-textarea.e5b8794e.js.LICENSE.txt → eo-upload-image.50adcd53.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-upload-file.71e2b71d.js.LICENSE.txt → input.4e2e5b20.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",
@@ -1030,140 +737,125 @@
1030
737
  "category": "form-input-basic"
1031
738
  },
1032
739
  {
1033
- "name": "eo-search",
740
+ "name": "eo-icon-select",
1034
741
  "alias": [
1035
- "form.general-search"
742
+ "form.icon-select"
1036
743
  ],
1037
744
  "properties": [
1038
745
  {
1039
- "name": "value",
1040
- "description": "搜索框的值",
1041
- "default": "\"\"",
746
+ "name": "name",
747
+ "description": "字段名称",
1042
748
  "type": "string"
1043
749
  },
1044
750
  {
1045
- "name": "placeholder",
1046
- "description": "提示语",
751
+ "name": "label",
752
+ "description": "字段说明",
1047
753
  "type": "string"
1048
754
  },
1049
755
  {
1050
- "name": "autoFocus",
1051
- "description": "是否自动聚焦",
1052
- "type": "boolean"
756
+ "name": "value",
757
+ "description": "",
758
+ "attribute": false,
759
+ "type": "Icon"
1053
760
  },
1054
761
  {
1055
- "name": "clearable",
1056
- "description": "可以点击清除图标删除内容",
762
+ "name": "disabled",
763
+ "description": "是否禁用",
1057
764
  "type": "boolean"
1058
765
  },
1059
766
  {
1060
- "name": "trim",
1061
- "description": "是否剔除前后空格",
767
+ "name": "required",
768
+ "description": "是否必填",
1062
769
  "type": "boolean"
1063
770
  },
1064
771
  {
1065
- "name": "debounceTime",
1066
- "description": "默认延迟时间",
1067
- "default": "0",
1068
- "type": "number"
1069
- },
1070
- {
1071
- "name": "inputStyle",
1072
- "description": "输入框样式",
772
+ "name": "message",
773
+ "description": "是否必填",
1073
774
  "attribute": false,
1074
- "type": "CSSProperties"
775
+ "type": "Record<string, string>"
1075
776
  }
1076
777
  ],
1077
778
  "events": [
1078
779
  {
1079
780
  "name": "change",
1080
- "description": "输入的搜索字符,输入变化时触发",
1081
- "detail": {
1082
- "type": "string"
1083
- }
1084
- },
1085
- {
1086
- "name": "search",
1087
- "description": "搜索时触发",
781
+ "description": "值变化时触发",
1088
782
  "detail": {
1089
- "type": "string"
783
+ "type": "Icon | undefined"
1090
784
  }
1091
785
  }
1092
786
  ],
1093
787
  "slots": [],
1094
788
  "methods": [],
1095
789
  "parts": [],
1096
- "description": "搜索框",
1097
- "category": "interact-basic"
790
+ "description": "图标选择构件",
791
+ "category": "form-input-basic"
1098
792
  },
1099
793
  {
1100
- "name": "eo-upload-image",
794
+ "name": "eo-search",
1101
795
  "alias": [
1102
- "form.upload-image"
796
+ "form.general-search"
1103
797
  ],
1104
798
  "properties": [
1105
799
  {
1106
- "name": "name",
1107
- "description": "字段名称",
800
+ "name": "value",
801
+ "description": "搜索框的值",
802
+ "default": "\"\"",
1108
803
  "type": "string"
1109
804
  },
1110
805
  {
1111
- "name": "label",
1112
- "description": "字段说明",
806
+ "name": "placeholder",
807
+ "description": "提示语",
1113
808
  "type": "string"
1114
809
  },
1115
810
  {
1116
- "name": "value",
1117
- "description": "",
1118
- "attribute": false,
1119
- "type": "ImageData[]"
1120
- },
1121
- {
1122
- "name": "bucketName",
1123
- "description": "对象存储桶名字",
1124
- "type": "string"
811
+ "name": "autoFocus",
812
+ "description": "是否自动聚焦",
813
+ "type": "boolean"
1125
814
  },
1126
815
  {
1127
- "name": "maxCount",
1128
- "description": "最大上传数量",
1129
- "type": "number"
816
+ "name": "clearable",
817
+ "description": "可以点击清除图标删除内容",
818
+ "type": "boolean"
1130
819
  },
1131
820
  {
1132
- "name": "multiple",
1133
- "description": "是否支持选定的多张图片",
821
+ "name": "trim",
822
+ "description": "是否剔除前后空格",
1134
823
  "type": "boolean"
1135
824
  },
1136
825
  {
1137
- "name": "limitSize",
1138
- "description": "上传大小限制(单位为 MB)",
826
+ "name": "debounceTime",
827
+ "description": "默认延迟时间",
828
+ "default": "0",
1139
829
  "type": "number"
1140
830
  },
1141
831
  {
1142
- "name": "required",
1143
- "description": "是否必填",
1144
- "type": "boolean"
1145
- },
1146
- {
1147
- "name": "message",
1148
- "description": "校验文本信息",
832
+ "name": "inputStyle",
833
+ "description": "输入框样式",
1149
834
  "attribute": false,
1150
- "type": "Record<string, string>"
835
+ "type": "CSSProperties"
1151
836
  }
1152
837
  ],
1153
838
  "events": [
1154
839
  {
1155
840
  "name": "change",
1156
- "description": "值变化时触发",
841
+ "description": "输入的搜索字符,输入变化时触发",
1157
842
  "detail": {
1158
- "type": "ImageData[]"
843
+ "type": "string"
844
+ }
845
+ },
846
+ {
847
+ "name": "search",
848
+ "description": "搜索时触发",
849
+ "detail": {
850
+ "type": "string"
1159
851
  }
1160
852
  }
1161
853
  ],
1162
854
  "slots": [],
1163
855
  "methods": [],
1164
856
  "parts": [],
1165
- "description": "上传图片构件",
1166
- "category": "form-input-basic"
857
+ "description": "搜索框",
858
+ "category": "interact-basic"
1167
859
  },
1168
860
  {
1169
861
  "name": "eo-switch",
@@ -1235,38 +927,107 @@
1235
927
  "category": "form-input-basic"
1236
928
  },
1237
929
  {
1238
- "name": "eo-upload-file",
930
+ "name": "eo-upload-image",
931
+ "alias": [
932
+ "form.upload-image"
933
+ ],
1239
934
  "properties": [
1240
- {
1241
- "name": "label",
1242
- "description": "字段说明",
1243
- "type": "string"
1244
- },
1245
935
  {
1246
936
  "name": "name",
1247
937
  "description": "字段名称",
1248
938
  "type": "string"
1249
939
  },
1250
940
  {
1251
- "name": "required",
1252
- "description": "是否必填",
1253
- "type": "boolean"
1254
- },
1255
- {
1256
- "name": "message",
1257
- "description": "校验文本信息",
1258
- "attribute": false,
1259
- "type": "Record<string, string>"
941
+ "name": "label",
942
+ "description": "字段说明",
943
+ "type": "string"
1260
944
  },
1261
945
  {
1262
946
  "name": "value",
1263
947
  "description": "值",
1264
948
  "attribute": false,
1265
- "type": "FileData[]"
949
+ "type": "ImageData[]"
1266
950
  },
1267
951
  {
1268
- "name": "multiple",
1269
- "description": "是否支持多选",
952
+ "name": "bucketName",
953
+ "description": "对象存储桶名字",
954
+ "type": "string"
955
+ },
956
+ {
957
+ "name": "maxCount",
958
+ "description": "最大上传数量",
959
+ "type": "number"
960
+ },
961
+ {
962
+ "name": "multiple",
963
+ "description": "是否支持选定的多张图片",
964
+ "type": "boolean"
965
+ },
966
+ {
967
+ "name": "limitSize",
968
+ "description": "上传大小限制(单位为 MB)",
969
+ "type": "number"
970
+ },
971
+ {
972
+ "name": "required",
973
+ "description": "是否必填",
974
+ "type": "boolean"
975
+ },
976
+ {
977
+ "name": "message",
978
+ "description": "校验文本信息",
979
+ "attribute": false,
980
+ "type": "Record<string, string>"
981
+ }
982
+ ],
983
+ "events": [
984
+ {
985
+ "name": "change",
986
+ "description": "值变化时触发",
987
+ "detail": {
988
+ "type": "ImageData[]"
989
+ }
990
+ }
991
+ ],
992
+ "slots": [],
993
+ "methods": [],
994
+ "parts": [],
995
+ "description": "上传图片构件",
996
+ "category": "form-input-basic"
997
+ },
998
+ {
999
+ "name": "eo-upload-file",
1000
+ "properties": [
1001
+ {
1002
+ "name": "label",
1003
+ "description": "字段说明",
1004
+ "type": "string"
1005
+ },
1006
+ {
1007
+ "name": "name",
1008
+ "description": "字段名称",
1009
+ "type": "string"
1010
+ },
1011
+ {
1012
+ "name": "required",
1013
+ "description": "是否必填",
1014
+ "type": "boolean"
1015
+ },
1016
+ {
1017
+ "name": "message",
1018
+ "description": "校验文本信息",
1019
+ "attribute": false,
1020
+ "type": "Record<string, string>"
1021
+ },
1022
+ {
1023
+ "name": "value",
1024
+ "description": "值",
1025
+ "attribute": false,
1026
+ "type": "FileData[]"
1027
+ },
1028
+ {
1029
+ "name": "multiple",
1030
+ "description": "是否支持多选",
1270
1031
  "type": "boolean"
1271
1032
  },
1272
1033
  {
@@ -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": [
@@ -1828,6 +1535,299 @@
1828
1535
  "methods": [],
1829
1536
  "parts": [],
1830
1537
  "description": "构件 `eo-color-picker`"
1538
+ },
1539
+ {
1540
+ "name": "eo-form-item",
1541
+ "alias": [
1542
+ "form.general-form-item"
1543
+ ],
1544
+ "properties": [
1545
+ {
1546
+ "name": "formElement",
1547
+ "attribute": false,
1548
+ "type": "Form"
1549
+ },
1550
+ {
1551
+ "name": "curElement",
1552
+ "attribute": false,
1553
+ "type": "HTMLElement"
1554
+ },
1555
+ {
1556
+ "name": "name",
1557
+ "description": "字段名称",
1558
+ "type": "string"
1559
+ },
1560
+ {
1561
+ "name": "label",
1562
+ "type": "string"
1563
+ },
1564
+ {
1565
+ "name": "pattern",
1566
+ "type": "string"
1567
+ },
1568
+ {
1569
+ "name": "message",
1570
+ "attribute": false,
1571
+ "type": "Record<string, string>"
1572
+ },
1573
+ {
1574
+ "name": "type",
1575
+ "type": "string"
1576
+ },
1577
+ {
1578
+ "name": "max",
1579
+ "type": "number"
1580
+ },
1581
+ {
1582
+ "name": "min",
1583
+ "type": "number"
1584
+ },
1585
+ {
1586
+ "name": "required",
1587
+ "description": "表单项是否为必填",
1588
+ "type": "boolean"
1589
+ },
1590
+ {
1591
+ "name": "value",
1592
+ "description": "初始值",
1593
+ "type": "string"
1594
+ },
1595
+ {
1596
+ "name": "valuePropsName",
1597
+ "type": "string"
1598
+ },
1599
+ {
1600
+ "name": "layout",
1601
+ "type": "Layout"
1602
+ },
1603
+ {
1604
+ "name": "size",
1605
+ "type": "ComponentSize"
1606
+ },
1607
+ {
1608
+ "name": "trim",
1609
+ "description": "是否自动去除前后的空白字符",
1610
+ "default": "true"
1611
+ },
1612
+ {
1613
+ "name": "trigger",
1614
+ "description": "事件触发方法名",
1615
+ "type": "string"
1616
+ },
1617
+ {
1618
+ "name": "validator",
1619
+ "description": "表单项校验方法",
1620
+ "attribute": false,
1621
+ "type": "((value: any) => MessageBody)"
1622
+ },
1623
+ {
1624
+ "name": "needValidate",
1625
+ "description": "值变化时是否主动出发校验",
1626
+ "type": "boolean"
1627
+ },
1628
+ {
1629
+ "name": "textContent",
1630
+ "type": "string",
1631
+ "description": "文本内容"
1632
+ }
1633
+ ],
1634
+ "events": [],
1635
+ "slots": [
1636
+ {
1637
+ "name": null,
1638
+ "description": "表单项内容"
1639
+ }
1640
+ ],
1641
+ "methods": [],
1642
+ "parts": [],
1643
+ "description": "通用输入框构件",
1644
+ "category": "form-input-basic",
1645
+ "insider": true
1646
+ },
1647
+ {
1648
+ "name": "eo-input",
1649
+ "alias": [
1650
+ "form.general-input"
1651
+ ],
1652
+ "properties": [
1653
+ {
1654
+ "name": "name",
1655
+ "description": "字段名称",
1656
+ "type": "string"
1657
+ },
1658
+ {
1659
+ "name": "label",
1660
+ "description": "标签文字",
1661
+ "type": "string"
1662
+ },
1663
+ {
1664
+ "name": "required",
1665
+ "description": "是否必填",
1666
+ "type": "boolean"
1667
+ },
1668
+ {
1669
+ "name": "pattern",
1670
+ "description": "正则校验规则",
1671
+ "type": "string"
1672
+ },
1673
+ {
1674
+ "name": "max",
1675
+ "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1676
+ "type": "number"
1677
+ },
1678
+ {
1679
+ "name": "min",
1680
+ "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1681
+ "type": "number"
1682
+ },
1683
+ {
1684
+ "name": "message",
1685
+ "description": "错误时显示消息",
1686
+ "attribute": false,
1687
+ "type": "Record<string, string>"
1688
+ },
1689
+ {
1690
+ "name": "value",
1691
+ "description": "输入框值",
1692
+ "type": "string"
1693
+ },
1694
+ {
1695
+ "name": "placeholder",
1696
+ "description": "占位说明",
1697
+ "type": "string"
1698
+ },
1699
+ {
1700
+ "name": "disabled",
1701
+ "description": "是否禁用",
1702
+ "type": "boolean"
1703
+ },
1704
+ {
1705
+ "name": "readonly",
1706
+ "description": "是否只读",
1707
+ "type": "boolean"
1708
+ },
1709
+ {
1710
+ "name": "clearable",
1711
+ "description": "是否显示清除按钮",
1712
+ "type": "boolean"
1713
+ },
1714
+ {
1715
+ "name": "autoFocus",
1716
+ "description": "是否自动聚焦",
1717
+ "type": "boolean"
1718
+ },
1719
+ {
1720
+ "name": "type",
1721
+ "description": "类型",
1722
+ "default": "\"text\"",
1723
+ "type": "InputType"
1724
+ },
1725
+ {
1726
+ "name": "size",
1727
+ "description": "大小",
1728
+ "default": "\"medium\"",
1729
+ "type": "ComponentSize"
1730
+ },
1731
+ {
1732
+ "name": "minLength",
1733
+ "description": "最小长度",
1734
+ "type": "number"
1735
+ },
1736
+ {
1737
+ "name": "maxLength",
1738
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1739
+ "type": "number"
1740
+ },
1741
+ {
1742
+ "name": "inputStyle",
1743
+ "description": "输入框样式",
1744
+ "attribute": false,
1745
+ "type": "React.CSSProperties"
1746
+ },
1747
+ {
1748
+ "name": "validator",
1749
+ "description": "表单项校验方法",
1750
+ "attribute": false,
1751
+ "type": "((value: any) => MessageBody)"
1752
+ }
1753
+ ],
1754
+ "events": [
1755
+ {
1756
+ "name": "change",
1757
+ "description": "值改变事件",
1758
+ "detail": {
1759
+ "type": "string"
1760
+ }
1761
+ }
1762
+ ],
1763
+ "slots": [
1764
+ {
1765
+ "name": "addonBefore",
1766
+ "description": "输入框前置标签"
1767
+ },
1768
+ {
1769
+ "name": "addonAfter",
1770
+ "description": "输入框后置标签"
1771
+ },
1772
+ {
1773
+ "name": "prefix",
1774
+ "description": "输入框前缀图标"
1775
+ },
1776
+ {
1777
+ "name": "suffix",
1778
+ "description": "输入框后缀图标"
1779
+ }
1780
+ ],
1781
+ "methods": [
1782
+ {
1783
+ "name": "focusInput",
1784
+ "params": [],
1785
+ "description": "focus",
1786
+ "returns": {}
1787
+ },
1788
+ {
1789
+ "name": "blurInput",
1790
+ "params": [],
1791
+ "description": "blur",
1792
+ "returns": {}
1793
+ }
1794
+ ],
1795
+ "parts": [
1796
+ {
1797
+ "name": "addon-wrapper",
1798
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1799
+ },
1800
+ {
1801
+ "name": "affix-wrapper",
1802
+ "description": "包裹输入组件、前缀和后缀的容器"
1803
+ },
1804
+ {
1805
+ "name": "input",
1806
+ "description": "输入组件"
1807
+ },
1808
+ {
1809
+ "name": "clear-icon",
1810
+ "description": "清除按钮"
1811
+ },
1812
+ {
1813
+ "name": "prefix",
1814
+ "description": "输入框前缀容器"
1815
+ },
1816
+ {
1817
+ "name": "suffix",
1818
+ "description": "输入框后缀容器"
1819
+ },
1820
+ {
1821
+ "name": "before-addon",
1822
+ "description": "输入框前置容器"
1823
+ },
1824
+ {
1825
+ "name": "after-addon",
1826
+ "description": "输入框后置容器"
1827
+ }
1828
+ ],
1829
+ "description": "通用输入框构件",
1830
+ "category": "form-input-basic"
1831
1831
  }
1832
1832
  ],
1833
1833
  "providers": []