@next-bricks/form 1.15.2 → 1.15.3

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 (107) hide show
  1. package/dist/bricks.json +25 -25
  2. package/dist/chunks/{114.34571944.js → 114.f6153e0c.js} +2 -2
  3. package/dist/chunks/{114.34571944.js.map → 114.f6153e0c.js.map} +1 -1
  4. package/dist/chunks/{1269.78d33291.js → 1269.96575d25.js} +2 -2
  5. package/dist/chunks/{1269.78d33291.js.map → 1269.96575d25.js.map} +1 -1
  6. package/dist/chunks/{1940.fe06f230.js → 1940.f312096d.js} +2 -2
  7. package/dist/chunks/{1940.fe06f230.js.map → 1940.f312096d.js.map} +1 -1
  8. package/dist/chunks/{2277.b53cada5.js → 2277.3a72539a.js} +2 -2
  9. package/dist/chunks/{2277.b53cada5.js.map → 2277.3a72539a.js.map} +1 -1
  10. package/dist/chunks/{2600.c061d47a.js → 2600.c0a33dd3.js} +3 -3
  11. package/dist/chunks/{2600.c061d47a.js.map → 2600.c0a33dd3.js.map} +1 -1
  12. package/dist/chunks/{3933.090e0e25.js → 3933.fa788b87.js} +2 -2
  13. package/dist/chunks/{3933.090e0e25.js.map → 3933.fa788b87.js.map} +1 -1
  14. package/dist/chunks/{4658.85a4eee9.js → 4658.1c44a3df.js} +2 -2
  15. package/dist/chunks/{4658.85a4eee9.js.map → 4658.1c44a3df.js.map} +1 -1
  16. package/dist/chunks/{4837.99ba6b49.js → 4837.39bbd85f.js} +2 -2
  17. package/dist/chunks/{4837.99ba6b49.js.map → 4837.39bbd85f.js.map} +1 -1
  18. package/dist/chunks/5582.8bb7003f.js +3 -0
  19. package/dist/chunks/5582.8bb7003f.js.map +1 -0
  20. package/dist/chunks/{6314.333038db.js → 6314.ae73534e.js} +2 -2
  21. package/dist/chunks/{6314.333038db.js.map → 6314.ae73534e.js.map} +1 -1
  22. package/dist/chunks/{7218.abb44809.js → 7218.631ec3d0.js} +2 -2
  23. package/dist/chunks/{7218.abb44809.js.map → 7218.631ec3d0.js.map} +1 -1
  24. package/dist/chunks/7623.a65d14f1.js +3 -0
  25. package/dist/chunks/{7623.3cfd20ae.js.map → 7623.a65d14f1.js.map} +1 -1
  26. package/dist/chunks/{7733.09fc7545.js → 7733.cd1fb1fd.js} +2 -2
  27. package/dist/chunks/{7733.09fc7545.js.map → 7733.cd1fb1fd.js.map} +1 -1
  28. package/dist/chunks/{8089.5ff9d1d9.js → 8089.a89bbf70.js} +3 -3
  29. package/dist/chunks/{8089.5ff9d1d9.js.map → 8089.a89bbf70.js.map} +1 -1
  30. package/dist/chunks/{9559.f1ea5a95.js → 9559.3c1fbf3e.js} +2 -2
  31. package/dist/chunks/{9559.f1ea5a95.js.map → 9559.3c1fbf3e.js.map} +1 -1
  32. package/dist/chunks/{eo-auto-complete.63553d54.js → eo-auto-complete.66051e34.js} +3 -3
  33. package/dist/chunks/{eo-auto-complete.63553d54.js.map → eo-auto-complete.66051e34.js.map} +1 -1
  34. package/dist/chunks/{eo-checkbox.dd22a29f.js → eo-checkbox.081e9a11.js} +3 -3
  35. package/dist/chunks/{eo-checkbox.dd22a29f.js.map → eo-checkbox.081e9a11.js.map} +1 -1
  36. package/dist/chunks/eo-color-picker.b55bc5b1.js +2 -0
  37. package/dist/chunks/{eo-color-picker.894384c2.js.map → eo-color-picker.b55bc5b1.js.map} +1 -1
  38. package/dist/chunks/eo-date-picker.63628969.js +2 -0
  39. package/dist/chunks/{eo-date-picker.b0e2f71f.js.map → eo-date-picker.63628969.js.map} +1 -1
  40. package/dist/chunks/eo-dynamic-form-item.d1cfa208.js +3 -0
  41. package/dist/chunks/{eo-dynamic-form-item.27eaab38.js.map → eo-dynamic-form-item.d1cfa208.js.map} +1 -1
  42. package/dist/chunks/eo-form-item.50c46c4c.js +3 -0
  43. package/dist/chunks/{eo-form-item.e19d56f2.js.map → eo-form-item.50c46c4c.js.map} +1 -1
  44. package/dist/chunks/{eo-form.df5345d8.js → eo-form.a61a7fc0.js} +2 -2
  45. package/dist/chunks/{eo-form.df5345d8.js.map → eo-form.a61a7fc0.js.map} +1 -1
  46. package/dist/chunks/{eo-icon-select.85d4651e.js → eo-icon-select.762f454c.js} +3 -3
  47. package/dist/chunks/{eo-icon-select.85d4651e.js.map → eo-icon-select.762f454c.js.map} +1 -1
  48. package/dist/chunks/{eo-input.31a357d0.js → eo-input.b8bd45e7.js} +3 -3
  49. package/dist/chunks/{eo-input.31a357d0.js.map → eo-input.b8bd45e7.js.map} +1 -1
  50. package/dist/chunks/eo-radio.067d50b5.js +3 -0
  51. package/dist/chunks/{eo-radio.df600962.js.map → eo-radio.067d50b5.js.map} +1 -1
  52. package/dist/chunks/{eo-search.27570e91.js → eo-search.89c62ba9.js} +2 -2
  53. package/dist/chunks/{eo-search.27570e91.js.map → eo-search.89c62ba9.js.map} +1 -1
  54. package/dist/chunks/eo-select.5bc519bd.js +3 -0
  55. package/dist/chunks/{eo-select.a77cd87a.js.map → eo-select.5bc519bd.js.map} +1 -1
  56. package/dist/chunks/{eo-submit-buttons.0e010582.js → eo-submit-buttons.12d8ce7c.js} +2 -2
  57. package/dist/chunks/{eo-submit-buttons.0e010582.js.map → eo-submit-buttons.12d8ce7c.js.map} +1 -1
  58. package/dist/chunks/{eo-switch.00bbb693.js → eo-switch.f06ec9d4.js} +3 -3
  59. package/dist/chunks/{eo-switch.00bbb693.js.map → eo-switch.f06ec9d4.js.map} +1 -1
  60. package/dist/chunks/{eo-textarea.c834c651.js → eo-textarea.24b6885d.js} +2 -2
  61. package/dist/chunks/{eo-textarea.c834c651.js.map → eo-textarea.24b6885d.js.map} +1 -1
  62. package/dist/chunks/eo-time-picker.c68edbb8.js +2 -0
  63. package/dist/chunks/{eo-time-picker.ca5206bb.js.map → eo-time-picker.c68edbb8.js.map} +1 -1
  64. package/dist/chunks/eo-time-range-picker.e2ad3797.js +2 -0
  65. package/dist/chunks/{eo-time-range-picker.cb070817.js.map → eo-time-range-picker.e2ad3797.js.map} +1 -1
  66. package/dist/chunks/eo-upload-file.5a98b80d.js +3 -0
  67. package/dist/chunks/{eo-upload-file.e1e302b9.js.map → eo-upload-file.5a98b80d.js.map} +1 -1
  68. package/dist/chunks/{eo-upload-image.dc763654.js → eo-upload-image.5f8c2993.js} +3 -3
  69. package/dist/chunks/{eo-upload-image.dc763654.js.map → eo-upload-image.5f8c2993.js.map} +1 -1
  70. package/dist/chunks/main.76bf032c.js +2 -0
  71. package/dist/chunks/{main.aa417aca.js.map → main.76bf032c.js.map} +1 -1
  72. package/dist/examples.json +9 -9
  73. package/dist/index.f03166be.js +2 -0
  74. package/dist/index.f03166be.js.map +1 -0
  75. package/dist/manifest.json +527 -527
  76. package/dist/types.json +784 -784
  77. package/package.json +3 -3
  78. package/dist/chunks/5582.a2d37704.js +0 -3
  79. package/dist/chunks/5582.a2d37704.js.map +0 -1
  80. package/dist/chunks/7623.3cfd20ae.js +0 -3
  81. package/dist/chunks/eo-color-picker.894384c2.js +0 -2
  82. package/dist/chunks/eo-date-picker.b0e2f71f.js +0 -2
  83. package/dist/chunks/eo-dynamic-form-item.27eaab38.js +0 -3
  84. package/dist/chunks/eo-form-item.e19d56f2.js +0 -3
  85. package/dist/chunks/eo-radio.df600962.js +0 -3
  86. package/dist/chunks/eo-select.a77cd87a.js +0 -3
  87. package/dist/chunks/eo-time-picker.ca5206bb.js +0 -2
  88. package/dist/chunks/eo-time-range-picker.cb070817.js +0 -2
  89. package/dist/chunks/eo-upload-file.e1e302b9.js +0 -3
  90. package/dist/chunks/main.aa417aca.js +0 -2
  91. package/dist/index.507ab014.js +0 -2
  92. package/dist/index.507ab014.js.map +0 -1
  93. /package/dist/chunks/{2600.c061d47a.js.LICENSE.txt → 2600.c0a33dd3.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{5582.a2d37704.js.LICENSE.txt → 5582.8bb7003f.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{7623.3cfd20ae.js.LICENSE.txt → 7623.a65d14f1.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{8089.5ff9d1d9.js.LICENSE.txt → 8089.a89bbf70.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-auto-complete.63553d54.js.LICENSE.txt → eo-auto-complete.66051e34.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-checkbox.dd22a29f.js.LICENSE.txt → eo-checkbox.081e9a11.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-dynamic-form-item.27eaab38.js.LICENSE.txt → eo-dynamic-form-item.d1cfa208.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-form-item.e19d56f2.js.LICENSE.txt → eo-form-item.50c46c4c.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-icon-select.85d4651e.js.LICENSE.txt → eo-icon-select.762f454c.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-input.31a357d0.js.LICENSE.txt → eo-input.b8bd45e7.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-radio.df600962.js.LICENSE.txt → eo-radio.067d50b5.js.LICENSE.txt} +0 -0
  104. /package/dist/chunks/{eo-select.a77cd87a.js.LICENSE.txt → eo-select.5bc519bd.js.LICENSE.txt} +0 -0
  105. /package/dist/chunks/{eo-switch.00bbb693.js.LICENSE.txt → eo-switch.f06ec9d4.js.LICENSE.txt} +0 -0
  106. /package/dist/chunks/{eo-upload-file.e1e302b9.js.LICENSE.txt → eo-upload-file.5a98b80d.js.LICENSE.txt} +0 -0
  107. /package/dist/chunks/{eo-upload-image.dc763654.js.LICENSE.txt → eo-upload-image.5f8c2993.js.LICENSE.txt} +0 -0
@@ -3,191 +3,6 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
- {
7
- "name": "eo-input",
8
- "alias": [
9
- "form.general-input"
10
- ],
11
- "properties": [
12
- {
13
- "name": "name",
14
- "description": "字段名称",
15
- "type": "string"
16
- },
17
- {
18
- "name": "label",
19
- "description": "标签文字",
20
- "type": "string"
21
- },
22
- {
23
- "name": "required",
24
- "description": "是否必填",
25
- "type": "boolean"
26
- },
27
- {
28
- "name": "pattern",
29
- "description": "正则校验规则",
30
- "type": "string"
31
- },
32
- {
33
- "name": "max",
34
- "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
35
- "type": "number"
36
- },
37
- {
38
- "name": "min",
39
- "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
40
- "type": "number"
41
- },
42
- {
43
- "name": "message",
44
- "description": "错误时显示消息",
45
- "attribute": false,
46
- "type": "Record<string, string>"
47
- },
48
- {
49
- "name": "value",
50
- "description": "输入框值",
51
- "type": "string"
52
- },
53
- {
54
- "name": "placeholder",
55
- "description": "占位说明",
56
- "type": "string"
57
- },
58
- {
59
- "name": "disabled",
60
- "description": "是否禁用",
61
- "type": "boolean"
62
- },
63
- {
64
- "name": "readonly",
65
- "description": "是否只读",
66
- "type": "boolean"
67
- },
68
- {
69
- "name": "clearable",
70
- "description": "是否显示清除按钮",
71
- "type": "boolean"
72
- },
73
- {
74
- "name": "autoFocus",
75
- "description": "是否自动聚焦",
76
- "type": "boolean"
77
- },
78
- {
79
- "name": "type",
80
- "description": "类型",
81
- "default": "\"text\"",
82
- "type": "InputType"
83
- },
84
- {
85
- "name": "size",
86
- "description": "大小",
87
- "default": "\"medium\"",
88
- "type": "ComponentSize"
89
- },
90
- {
91
- "name": "minLength",
92
- "description": "最小长度",
93
- "type": "number"
94
- },
95
- {
96
- "name": "maxLength",
97
- "description": "最大长度(用户无法输入超过此最大长度的字符串)",
98
- "type": "number"
99
- },
100
- {
101
- "name": "inputStyle",
102
- "description": "输入框样式",
103
- "attribute": false,
104
- "type": "React.CSSProperties"
105
- },
106
- {
107
- "name": "validator",
108
- "description": "表单项校验方法",
109
- "attribute": false,
110
- "type": "((value: any) => MessageBody)"
111
- }
112
- ],
113
- "events": [
114
- {
115
- "name": "change",
116
- "description": "值改变事件",
117
- "detail": {
118
- "type": "string"
119
- }
120
- }
121
- ],
122
- "slots": [
123
- {
124
- "name": "addonBefore",
125
- "description": "输入框前置标签"
126
- },
127
- {
128
- "name": "addonAfter",
129
- "description": "输入框后置标签"
130
- },
131
- {
132
- "name": "prefix",
133
- "description": "输入框前缀图标"
134
- },
135
- {
136
- "name": "suffix",
137
- "description": "输入框后缀图标"
138
- }
139
- ],
140
- "methods": [
141
- {
142
- "name": "focusInput",
143
- "params": [],
144
- "description": "focus",
145
- "returns": {}
146
- },
147
- {
148
- "name": "blurInput",
149
- "params": [],
150
- "description": "blur",
151
- "returns": {}
152
- }
153
- ],
154
- "parts": [
155
- {
156
- "name": "addon-wrapper",
157
- "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
158
- },
159
- {
160
- "name": "affix-wrapper",
161
- "description": "包裹输入组件、前缀和后缀的容器"
162
- },
163
- {
164
- "name": "input",
165
- "description": "输入组件"
166
- },
167
- {
168
- "name": "clear-icon",
169
- "description": "清除按钮"
170
- },
171
- {
172
- "name": "prefix",
173
- "description": "输入框前缀容器"
174
- },
175
- {
176
- "name": "suffix",
177
- "description": "输入框后缀容器"
178
- },
179
- {
180
- "name": "before-addon",
181
- "description": "输入框前置容器"
182
- },
183
- {
184
- "name": "after-addon",
185
- "description": "输入框后置容器"
186
- }
187
- ],
188
- "description": "通用输入框构件",
189
- "category": "form-input-basic"
190
- },
191
6
  {
192
7
  "name": "eo-textarea",
193
8
  "alias": [
@@ -287,308 +102,55 @@
287
102
  "category": "form-input-basic"
288
103
  },
289
104
  {
290
- "name": "eo-form",
105
+ "name": "eo-radio",
291
106
  "alias": [
292
- "form.general-form"
107
+ "form.general-radio"
293
108
  ],
294
109
  "properties": [
295
110
  {
296
- "name": "staticValues",
297
- "attribute": false,
298
- "type": "Record<string, unknown>"
111
+ "name": "name",
112
+ "description": "下拉框字段名",
113
+ "type": "string"
299
114
  },
300
115
  {
301
- "name": "layout",
302
- "description": "布局方式(默认 vertical 布局)",
303
- "default": "vertical",
304
- "type": "Layout"
116
+ "name": "label",
117
+ "description": "单选框字段说明",
118
+ "type": "string"
305
119
  },
306
120
  {
307
- "name": "size",
308
- "description": "表单组件尺寸",
309
- "type": "ComponentSize"
121
+ "name": "options",
122
+ "description": "单选框选项表",
123
+ "required": true,
124
+ "attribute": false,
125
+ "type": "GeneralOption[]"
310
126
  },
311
127
  {
312
- "name": "labelCol",
313
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
314
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
128
+ "name": "value",
129
+ "description": "单选框当前选中始值",
315
130
  "attribute": false,
316
- "type": "ColProps"
131
+ "type": "any"
317
132
  },
318
133
  {
319
- "name": "wrapperCol",
320
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
321
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
322
- "attribute": false,
323
- "type": "ColProps"
134
+ "name": "required",
135
+ "description": "是否必填",
136
+ "type": "boolean"
324
137
  },
325
138
  {
326
- "name": "formStyle",
139
+ "name": "message",
140
+ "description": "校验文本信息",
327
141
  "attribute": false,
328
- "type": "React.CSSProperties"
142
+ "type": "Record<string, string>"
329
143
  },
330
144
  {
331
- "name": "textContent",
332
- "type": "string",
333
- "description": "文本内容"
334
- }
335
- ],
336
- "events": [
337
- {
338
- "name": "values.change",
339
- "description": "表单值变更事件",
340
- "detail": {
341
- "description": null,
342
- "type": "Record<string, unknown>"
343
- }
145
+ "name": "disabled",
146
+ "description": "是否禁用",
147
+ "type": "boolean"
344
148
  },
345
149
  {
346
- "name": "validate.success",
347
- "description": "表单验证成功时触发事件",
348
- "detail": {
349
- "type": "Record<string, unknown>"
350
- }
351
- },
352
- {
353
- "name": "validate.error",
354
- "description": "表单验证报错时触发事件",
355
- "detail": {
356
- "type": "(MessageBody & { name: string })[]"
357
- }
358
- }
359
- ],
360
- "slots": [
361
- {
362
- "name": null,
363
- "description": "表单内容"
364
- }
365
- ],
366
- "methods": [
367
- {
368
- "name": "validate",
369
- "params": [],
370
- "description": "表单校验方法",
371
- "returns": {
372
- "type": "boolean | Record<string, unknown>"
373
- }
374
- },
375
- {
376
- "name": "setInitValue",
377
- "params": [
378
- {
379
- "name": "values",
380
- "type": "Record<string, unknown>"
381
- },
382
- {
383
- "name": "options",
384
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
385
- }
386
- ],
387
- "description": "表单设置值方法",
388
- "returns": {}
389
- },
390
- {
391
- "name": "resetFields",
392
- "params": [
393
- {
394
- "name": "name",
395
- "type": "string"
396
- }
397
- ],
398
- "description": "表单重置值方法",
399
- "returns": {}
400
- },
401
- {
402
- "name": "getFieldsValue",
403
- "params": [
404
- {
405
- "name": "name",
406
- "type": "string"
407
- }
408
- ],
409
- "description": "获取表单值方法",
410
- "returns": {}
411
- },
412
- {
413
- "name": "validateField",
414
- "params": [
415
- {
416
- "name": "name",
417
- "type": "string"
418
- }
419
- ],
420
- "description": "校验表单字段方法",
421
- "returns": {}
422
- },
423
- {
424
- "name": "resetValidateState",
425
- "params": [],
426
- "description": "重置表单校验状态方法",
427
- "returns": {}
428
- }
429
- ],
430
- "parts": [],
431
- "description": "表单构件",
432
- "category": "form-input-basic"
433
- },
434
- {
435
- "name": "eo-form-item",
436
- "alias": [
437
- "form.general-form-item"
438
- ],
439
- "properties": [
440
- {
441
- "name": "formElement",
442
- "attribute": false,
443
- "type": "Form"
444
- },
445
- {
446
- "name": "curElement",
447
- "attribute": false,
448
- "type": "HTMLElement"
449
- },
450
- {
451
- "name": "name",
452
- "description": "字段名称",
453
- "type": "string"
454
- },
455
- {
456
- "name": "label",
457
- "type": "string"
458
- },
459
- {
460
- "name": "pattern",
461
- "type": "string"
462
- },
463
- {
464
- "name": "message",
465
- "attribute": false,
466
- "type": "Record<string, string>"
467
- },
468
- {
469
- "name": "type",
470
- "type": "string"
471
- },
472
- {
473
- "name": "max",
474
- "type": "number"
475
- },
476
- {
477
- "name": "min",
478
- "type": "number"
479
- },
480
- {
481
- "name": "required",
482
- "description": "表单项是否为必填",
483
- "type": "boolean"
484
- },
485
- {
486
- "name": "value",
487
- "description": "初始值",
488
- "type": "string"
489
- },
490
- {
491
- "name": "valuePropsName",
492
- "type": "string"
493
- },
494
- {
495
- "name": "layout",
496
- "type": "Layout"
497
- },
498
- {
499
- "name": "size",
500
- "type": "ComponentSize"
501
- },
502
- {
503
- "name": "trim",
504
- "description": "是否自动去除前后的空白字符",
505
- "default": "true"
506
- },
507
- {
508
- "name": "trigger",
509
- "description": "事件触发方法名",
510
- "type": "string"
511
- },
512
- {
513
- "name": "validator",
514
- "description": "表单项校验方法",
515
- "attribute": false,
516
- "type": "((value: any) => MessageBody)"
517
- },
518
- {
519
- "name": "needValidate",
520
- "description": "值变化时是否主动出发校验",
521
- "type": "boolean"
522
- },
523
- {
524
- "name": "textContent",
525
- "type": "string",
526
- "description": "文本内容"
527
- }
528
- ],
529
- "events": [],
530
- "slots": [
531
- {
532
- "name": null,
533
- "description": "表单项内容"
534
- }
535
- ],
536
- "methods": [],
537
- "parts": [],
538
- "description": "通用输入框构件",
539
- "category": "form-input-basic",
540
- "insider": true
541
- },
542
- {
543
- "name": "eo-radio",
544
- "alias": [
545
- "form.general-radio"
546
- ],
547
- "properties": [
548
- {
549
- "name": "name",
550
- "description": "下拉框字段名",
551
- "type": "string"
552
- },
553
- {
554
- "name": "label",
555
- "description": "单选框字段说明",
556
- "type": "string"
557
- },
558
- {
559
- "name": "options",
560
- "description": "单选框选项表",
561
- "required": true,
562
- "attribute": false,
563
- "type": "GeneralOption[]"
564
- },
565
- {
566
- "name": "value",
567
- "description": "单选框当前选中始值",
568
- "attribute": false,
569
- "type": "any"
570
- },
571
- {
572
- "name": "required",
573
- "description": "是否必填",
574
- "type": "boolean"
575
- },
576
- {
577
- "name": "message",
578
- "description": "校验文本信息",
579
- "attribute": false,
580
- "type": "Record<string, string>"
581
- },
582
- {
583
- "name": "disabled",
584
- "description": "是否禁用",
585
- "type": "boolean"
586
- },
587
- {
588
- "name": "type",
589
- "description": "单选框样式类型",
590
- "default": "\"default\"",
591
- "type": "RadioType"
150
+ "name": "type",
151
+ "description": "单选框样式类型",
152
+ "default": "\"default\"",
153
+ "type": "RadioType"
592
154
  },
593
155
  {
594
156
  "name": "ui",
@@ -938,11 +500,21 @@
938
500
  "category": "form-input-basic"
939
501
  },
940
502
  {
941
- "name": "eo-dynamic-form-item",
503
+ "name": "eo-form-item",
942
504
  "alias": [
943
- "form.dynamic-form-item"
505
+ "form.general-form-item"
944
506
  ],
945
507
  "properties": [
508
+ {
509
+ "name": "formElement",
510
+ "attribute": false,
511
+ "type": "Form"
512
+ },
513
+ {
514
+ "name": "curElement",
515
+ "attribute": false,
516
+ "type": "HTMLElement"
517
+ },
946
518
  {
947
519
  "name": "name",
948
520
  "description": "字段名称",
@@ -950,11 +522,109 @@
950
522
  },
951
523
  {
952
524
  "name": "label",
953
- "description": "字段说明",
954
525
  "type": "string"
955
526
  },
956
527
  {
957
- "name": "required",
528
+ "name": "pattern",
529
+ "type": "string"
530
+ },
531
+ {
532
+ "name": "message",
533
+ "attribute": false,
534
+ "type": "Record<string, string>"
535
+ },
536
+ {
537
+ "name": "type",
538
+ "type": "string"
539
+ },
540
+ {
541
+ "name": "max",
542
+ "type": "number"
543
+ },
544
+ {
545
+ "name": "min",
546
+ "type": "number"
547
+ },
548
+ {
549
+ "name": "required",
550
+ "description": "表单项是否为必填",
551
+ "type": "boolean"
552
+ },
553
+ {
554
+ "name": "value",
555
+ "description": "初始值",
556
+ "type": "string"
557
+ },
558
+ {
559
+ "name": "valuePropsName",
560
+ "type": "string"
561
+ },
562
+ {
563
+ "name": "layout",
564
+ "type": "Layout"
565
+ },
566
+ {
567
+ "name": "size",
568
+ "type": "ComponentSize"
569
+ },
570
+ {
571
+ "name": "trim",
572
+ "description": "是否自动去除前后的空白字符",
573
+ "default": "true"
574
+ },
575
+ {
576
+ "name": "trigger",
577
+ "description": "事件触发方法名",
578
+ "type": "string"
579
+ },
580
+ {
581
+ "name": "validator",
582
+ "description": "表单项校验方法",
583
+ "attribute": false,
584
+ "type": "((value: any) => MessageBody)"
585
+ },
586
+ {
587
+ "name": "needValidate",
588
+ "description": "值变化时是否主动出发校验",
589
+ "type": "boolean"
590
+ },
591
+ {
592
+ "name": "textContent",
593
+ "type": "string",
594
+ "description": "文本内容"
595
+ }
596
+ ],
597
+ "events": [],
598
+ "slots": [
599
+ {
600
+ "name": null,
601
+ "description": "表单项内容"
602
+ }
603
+ ],
604
+ "methods": [],
605
+ "parts": [],
606
+ "description": "通用输入框构件",
607
+ "category": "form-input-basic",
608
+ "insider": true
609
+ },
610
+ {
611
+ "name": "eo-dynamic-form-item",
612
+ "alias": [
613
+ "form.dynamic-form-item"
614
+ ],
615
+ "properties": [
616
+ {
617
+ "name": "name",
618
+ "description": "字段名称",
619
+ "type": "string"
620
+ },
621
+ {
622
+ "name": "label",
623
+ "description": "字段说明",
624
+ "type": "string"
625
+ },
626
+ {
627
+ "name": "required",
958
628
  "description": "是否必填",
959
629
  "type": "boolean"
960
630
  },
@@ -1151,9 +821,9 @@
1151
821
  "category": "form-input-basic"
1152
822
  },
1153
823
  {
1154
- "name": "eo-upload-image",
824
+ "name": "eo-switch",
1155
825
  "alias": [
1156
- "form.upload-image"
826
+ "form.general-switch"
1157
827
  ],
1158
828
  "properties": [
1159
829
  {
@@ -1163,66 +833,66 @@
1163
833
  },
1164
834
  {
1165
835
  "name": "label",
1166
- "description": "字段说明",
836
+ "description": "字段文本",
1167
837
  "type": "string"
1168
838
  },
1169
839
  {
1170
840
  "name": "value",
1171
- "description": "",
1172
- "attribute": false,
1173
- "type": "ImageData[]"
841
+ "description": "初始值",
842
+ "type": "boolean"
1174
843
  },
1175
844
  {
1176
- "name": "bucketName",
1177
- "description": "对象存储桶名字",
1178
- "type": "string"
845
+ "name": "disabled",
846
+ "description": "是否禁用",
847
+ "type": "boolean"
1179
848
  },
1180
849
  {
1181
- "name": "maxCount",
1182
- "description": "最大上传数量",
1183
- "type": "number"
850
+ "name": "size",
851
+ "description": "按钮大小,目前只支持small和非small两种大小。",
852
+ "type": "ComponentSize"
1184
853
  },
1185
854
  {
1186
- "name": "multiple",
1187
- "description": "是否支持选定的多张图片",
1188
- "type": "boolean"
855
+ "name": "checkedText",
856
+ "description": "选中时的文本",
857
+ "type": "string"
1189
858
  },
1190
859
  {
1191
- "name": "limitSize",
1192
- "description": "上传大小限制(单位为 MB)",
1193
- "type": "number"
860
+ "name": "unCheckedText",
861
+ "description": "非选中时的文本",
862
+ "type": "string"
1194
863
  },
1195
864
  {
1196
- "name": "required",
1197
- "description": "是否必填",
1198
- "type": "boolean"
865
+ "name": "checkedIcon",
866
+ "description": "选中时的图标",
867
+ "attribute": false,
868
+ "type": "GeneralIconProps"
1199
869
  },
1200
870
  {
1201
- "name": "message",
1202
- "description": "校验文本信息",
871
+ "name": "unCheckedIcon",
872
+ "description": "非选中时的文本",
1203
873
  "attribute": false,
1204
- "type": "Record<string, string>"
874
+ "type": "GeneralIconProps"
1205
875
  }
1206
876
  ],
1207
877
  "events": [
1208
878
  {
1209
- "name": "change",
1210
- "description": "值变化时触发",
879
+ "name": "switch",
880
+ "description": "开关改变时触发",
1211
881
  "detail": {
1212
- "type": "ImageData[]"
882
+ "type": "boolean"
1213
883
  }
1214
884
  }
1215
885
  ],
1216
886
  "slots": [],
1217
887
  "methods": [],
1218
888
  "parts": [],
1219
- "description": "上传图片构件",
889
+ "description": "开关",
1220
890
  "category": "form-input-basic"
1221
891
  },
1222
892
  {
1223
- "name": "eo-switch",
893
+ "name": "eo-upload-image",
1224
894
  "alias": [
1225
- "form.general-switch"
895
+ "form.upload-image"
1226
896
  ],
1227
897
  "properties": [
1228
898
  {
@@ -1232,60 +902,60 @@
1232
902
  },
1233
903
  {
1234
904
  "name": "label",
1235
- "description": "字段文本",
905
+ "description": "字段说明",
1236
906
  "type": "string"
1237
907
  },
1238
908
  {
1239
909
  "name": "value",
1240
- "description": "初始值",
1241
- "type": "boolean"
910
+ "description": "",
911
+ "attribute": false,
912
+ "type": "ImageData[]"
1242
913
  },
1243
914
  {
1244
- "name": "disabled",
1245
- "description": "是否禁用",
1246
- "type": "boolean"
915
+ "name": "bucketName",
916
+ "description": "对象存储桶名字",
917
+ "type": "string"
1247
918
  },
1248
919
  {
1249
- "name": "size",
1250
- "description": "按钮大小,目前只支持small和非small两种大小。",
1251
- "type": "ComponentSize"
920
+ "name": "maxCount",
921
+ "description": "最大上传数量",
922
+ "type": "number"
1252
923
  },
1253
924
  {
1254
- "name": "checkedText",
1255
- "description": "选中时的文本",
1256
- "type": "string"
925
+ "name": "multiple",
926
+ "description": "是否支持选定的多张图片",
927
+ "type": "boolean"
1257
928
  },
1258
929
  {
1259
- "name": "unCheckedText",
1260
- "description": "非选中时的文本",
1261
- "type": "string"
930
+ "name": "limitSize",
931
+ "description": "上传大小限制(单位为 MB)",
932
+ "type": "number"
1262
933
  },
1263
934
  {
1264
- "name": "checkedIcon",
1265
- "description": "选中时的图标",
1266
- "attribute": false,
1267
- "type": "GeneralIconProps"
935
+ "name": "required",
936
+ "description": "是否必填",
937
+ "type": "boolean"
1268
938
  },
1269
939
  {
1270
- "name": "unCheckedIcon",
1271
- "description": "非选中时的文本",
940
+ "name": "message",
941
+ "description": "校验文本信息",
1272
942
  "attribute": false,
1273
- "type": "GeneralIconProps"
943
+ "type": "Record<string, string>"
1274
944
  }
1275
945
  ],
1276
946
  "events": [
1277
947
  {
1278
- "name": "switch",
1279
- "description": "开关改变时触发",
948
+ "name": "change",
949
+ "description": "值变化时触发",
1280
950
  "detail": {
1281
- "type": "boolean"
951
+ "type": "ImageData[]"
1282
952
  }
1283
953
  }
1284
954
  ],
1285
955
  "slots": [],
1286
956
  "methods": [],
1287
957
  "parts": [],
1288
- "description": "开关",
958
+ "description": "上传图片构件",
1289
959
  "category": "form-input-basic"
1290
960
  },
1291
961
  {
@@ -1569,6 +1239,336 @@
1569
1239
  "description": "时间选择器",
1570
1240
  "category": "form-input-basic"
1571
1241
  },
1242
+ {
1243
+ "name": "eo-form",
1244
+ "alias": [
1245
+ "form.general-form"
1246
+ ],
1247
+ "properties": [
1248
+ {
1249
+ "name": "staticValues",
1250
+ "attribute": false,
1251
+ "type": "Record<string, unknown>"
1252
+ },
1253
+ {
1254
+ "name": "layout",
1255
+ "description": "布局方式(默认 vertical 布局)",
1256
+ "default": "vertical",
1257
+ "type": "Layout"
1258
+ },
1259
+ {
1260
+ "name": "size",
1261
+ "description": "表单组件尺寸",
1262
+ "type": "ComponentSize"
1263
+ },
1264
+ {
1265
+ "name": "labelCol",
1266
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1267
+ "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
1268
+ "attribute": false,
1269
+ "type": "ColProps"
1270
+ },
1271
+ {
1272
+ "name": "wrapperCol",
1273
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1274
+ "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
1275
+ "attribute": false,
1276
+ "type": "ColProps"
1277
+ },
1278
+ {
1279
+ "name": "formStyle",
1280
+ "attribute": false,
1281
+ "type": "React.CSSProperties"
1282
+ },
1283
+ {
1284
+ "name": "textContent",
1285
+ "type": "string",
1286
+ "description": "文本内容"
1287
+ }
1288
+ ],
1289
+ "events": [
1290
+ {
1291
+ "name": "values.change",
1292
+ "description": "表单值变更事件",
1293
+ "detail": {
1294
+ "description": null,
1295
+ "type": "Record<string, unknown>"
1296
+ }
1297
+ },
1298
+ {
1299
+ "name": "validate.success",
1300
+ "description": "表单验证成功时触发事件",
1301
+ "detail": {
1302
+ "type": "Record<string, unknown>"
1303
+ }
1304
+ },
1305
+ {
1306
+ "name": "validate.error",
1307
+ "description": "表单验证报错时触发事件",
1308
+ "detail": {
1309
+ "type": "(MessageBody & { name: string })[]"
1310
+ }
1311
+ }
1312
+ ],
1313
+ "slots": [
1314
+ {
1315
+ "name": null,
1316
+ "description": "表单内容"
1317
+ }
1318
+ ],
1319
+ "methods": [
1320
+ {
1321
+ "name": "validate",
1322
+ "params": [],
1323
+ "description": "表单校验方法",
1324
+ "returns": {
1325
+ "type": "boolean | Record<string, unknown>"
1326
+ }
1327
+ },
1328
+ {
1329
+ "name": "setInitValue",
1330
+ "params": [
1331
+ {
1332
+ "name": "values",
1333
+ "type": "Record<string, unknown>"
1334
+ },
1335
+ {
1336
+ "name": "options",
1337
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1338
+ }
1339
+ ],
1340
+ "description": "表单设置值方法",
1341
+ "returns": {}
1342
+ },
1343
+ {
1344
+ "name": "resetFields",
1345
+ "params": [
1346
+ {
1347
+ "name": "name",
1348
+ "type": "string"
1349
+ }
1350
+ ],
1351
+ "description": "表单重置值方法",
1352
+ "returns": {}
1353
+ },
1354
+ {
1355
+ "name": "getFieldsValue",
1356
+ "params": [
1357
+ {
1358
+ "name": "name",
1359
+ "type": "string"
1360
+ }
1361
+ ],
1362
+ "description": "获取表单值方法",
1363
+ "returns": {}
1364
+ },
1365
+ {
1366
+ "name": "validateField",
1367
+ "params": [
1368
+ {
1369
+ "name": "name",
1370
+ "type": "string"
1371
+ }
1372
+ ],
1373
+ "description": "校验表单字段方法",
1374
+ "returns": {}
1375
+ },
1376
+ {
1377
+ "name": "resetValidateState",
1378
+ "params": [],
1379
+ "description": "重置表单校验状态方法",
1380
+ "returns": {}
1381
+ }
1382
+ ],
1383
+ "parts": [],
1384
+ "description": "表单构件",
1385
+ "category": "form-input-basic"
1386
+ },
1387
+ {
1388
+ "name": "eo-input",
1389
+ "alias": [
1390
+ "form.general-input"
1391
+ ],
1392
+ "properties": [
1393
+ {
1394
+ "name": "name",
1395
+ "description": "字段名称",
1396
+ "type": "string"
1397
+ },
1398
+ {
1399
+ "name": "label",
1400
+ "description": "标签文字",
1401
+ "type": "string"
1402
+ },
1403
+ {
1404
+ "name": "required",
1405
+ "description": "是否必填",
1406
+ "type": "boolean"
1407
+ },
1408
+ {
1409
+ "name": "pattern",
1410
+ "description": "正则校验规则",
1411
+ "type": "string"
1412
+ },
1413
+ {
1414
+ "name": "max",
1415
+ "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1416
+ "type": "number"
1417
+ },
1418
+ {
1419
+ "name": "min",
1420
+ "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1421
+ "type": "number"
1422
+ },
1423
+ {
1424
+ "name": "message",
1425
+ "description": "错误时显示消息",
1426
+ "attribute": false,
1427
+ "type": "Record<string, string>"
1428
+ },
1429
+ {
1430
+ "name": "value",
1431
+ "description": "输入框值",
1432
+ "type": "string"
1433
+ },
1434
+ {
1435
+ "name": "placeholder",
1436
+ "description": "占位说明",
1437
+ "type": "string"
1438
+ },
1439
+ {
1440
+ "name": "disabled",
1441
+ "description": "是否禁用",
1442
+ "type": "boolean"
1443
+ },
1444
+ {
1445
+ "name": "readonly",
1446
+ "description": "是否只读",
1447
+ "type": "boolean"
1448
+ },
1449
+ {
1450
+ "name": "clearable",
1451
+ "description": "是否显示清除按钮",
1452
+ "type": "boolean"
1453
+ },
1454
+ {
1455
+ "name": "autoFocus",
1456
+ "description": "是否自动聚焦",
1457
+ "type": "boolean"
1458
+ },
1459
+ {
1460
+ "name": "type",
1461
+ "description": "类型",
1462
+ "default": "\"text\"",
1463
+ "type": "InputType"
1464
+ },
1465
+ {
1466
+ "name": "size",
1467
+ "description": "大小",
1468
+ "default": "\"medium\"",
1469
+ "type": "ComponentSize"
1470
+ },
1471
+ {
1472
+ "name": "minLength",
1473
+ "description": "最小长度",
1474
+ "type": "number"
1475
+ },
1476
+ {
1477
+ "name": "maxLength",
1478
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1479
+ "type": "number"
1480
+ },
1481
+ {
1482
+ "name": "inputStyle",
1483
+ "description": "输入框样式",
1484
+ "attribute": false,
1485
+ "type": "React.CSSProperties"
1486
+ },
1487
+ {
1488
+ "name": "validator",
1489
+ "description": "表单项校验方法",
1490
+ "attribute": false,
1491
+ "type": "((value: any) => MessageBody)"
1492
+ }
1493
+ ],
1494
+ "events": [
1495
+ {
1496
+ "name": "change",
1497
+ "description": "值改变事件",
1498
+ "detail": {
1499
+ "type": "string"
1500
+ }
1501
+ }
1502
+ ],
1503
+ "slots": [
1504
+ {
1505
+ "name": "addonBefore",
1506
+ "description": "输入框前置标签"
1507
+ },
1508
+ {
1509
+ "name": "addonAfter",
1510
+ "description": "输入框后置标签"
1511
+ },
1512
+ {
1513
+ "name": "prefix",
1514
+ "description": "输入框前缀图标"
1515
+ },
1516
+ {
1517
+ "name": "suffix",
1518
+ "description": "输入框后缀图标"
1519
+ }
1520
+ ],
1521
+ "methods": [
1522
+ {
1523
+ "name": "focusInput",
1524
+ "params": [],
1525
+ "description": "focus",
1526
+ "returns": {}
1527
+ },
1528
+ {
1529
+ "name": "blurInput",
1530
+ "params": [],
1531
+ "description": "blur",
1532
+ "returns": {}
1533
+ }
1534
+ ],
1535
+ "parts": [
1536
+ {
1537
+ "name": "addon-wrapper",
1538
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1539
+ },
1540
+ {
1541
+ "name": "affix-wrapper",
1542
+ "description": "包裹输入组件、前缀和后缀的容器"
1543
+ },
1544
+ {
1545
+ "name": "input",
1546
+ "description": "输入组件"
1547
+ },
1548
+ {
1549
+ "name": "clear-icon",
1550
+ "description": "清除按钮"
1551
+ },
1552
+ {
1553
+ "name": "prefix",
1554
+ "description": "输入框前缀容器"
1555
+ },
1556
+ {
1557
+ "name": "suffix",
1558
+ "description": "输入框后缀容器"
1559
+ },
1560
+ {
1561
+ "name": "before-addon",
1562
+ "description": "输入框前置容器"
1563
+ },
1564
+ {
1565
+ "name": "after-addon",
1566
+ "description": "输入框后置容器"
1567
+ }
1568
+ ],
1569
+ "description": "通用输入框构件",
1570
+ "category": "form-input-basic"
1571
+ },
1572
1572
  {
1573
1573
  "name": "eo-date-picker",
1574
1574
  "properties": [