@next-bricks/form 1.15.3 → 1.15.5

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 (120) hide show
  1. package/dist/bricks.json +34 -34
  2. package/dist/chunks/{1122.4a1f2523.js → 1122.2b3c3cb9.js} +2 -2
  3. package/dist/chunks/{1122.4a1f2523.js.map → 1122.2b3c3cb9.js.map} +1 -1
  4. package/dist/chunks/{114.f6153e0c.js → 114.9c01e471.js} +2 -2
  5. package/dist/chunks/{114.f6153e0c.js.map → 114.9c01e471.js.map} +1 -1
  6. package/dist/chunks/{1269.96575d25.js → 1269.2e0b1d4f.js} +2 -2
  7. package/dist/chunks/{1269.96575d25.js.map → 1269.2e0b1d4f.js.map} +1 -1
  8. package/dist/chunks/{1940.f312096d.js → 1940.391033f5.js} +2 -2
  9. package/dist/chunks/{1940.f312096d.js.map → 1940.391033f5.js.map} +1 -1
  10. package/dist/chunks/{2277.3a72539a.js → 2277.711bdf6f.js} +2 -2
  11. package/dist/chunks/{4658.1c44a3df.js.map → 2277.711bdf6f.js.map} +1 -1
  12. package/dist/chunks/3171.30fac628.js +2 -0
  13. package/dist/chunks/{3171.ad2e5b07.js.map → 3171.30fac628.js.map} +1 -1
  14. package/dist/chunks/{3933.fa788b87.js → 3933.90c09f51.js} +2 -2
  15. package/dist/chunks/{3933.fa788b87.js.map → 3933.90c09f51.js.map} +1 -1
  16. package/dist/chunks/{4114.511ea433.js → 4114.959be48c.js} +3 -3
  17. package/dist/chunks/{4114.511ea433.js.map → 4114.959be48c.js.map} +1 -1
  18. package/dist/chunks/{4306.009ee1ec.js → 4306.5ca13833.js} +2 -2
  19. package/dist/chunks/{4306.009ee1ec.js.map → 4306.5ca13833.js.map} +1 -1
  20. package/dist/chunks/{4658.1c44a3df.js → 4658.1684bc0d.js} +2 -2
  21. package/dist/chunks/{2277.3a72539a.js.map → 4658.1684bc0d.js.map} +1 -1
  22. package/dist/chunks/{4837.39bbd85f.js → 4837.bc14ca08.js} +2 -2
  23. package/dist/chunks/{4837.39bbd85f.js.map → 4837.bc14ca08.js.map} +1 -1
  24. package/dist/chunks/5552.75021017.js +2 -0
  25. package/dist/chunks/{5552.33345fab.js.map → 5552.75021017.js.map} +1 -1
  26. package/dist/chunks/5582.3ae20614.js +3 -0
  27. package/dist/chunks/{5582.8bb7003f.js.map → 5582.3ae20614.js.map} +1 -1
  28. package/dist/chunks/{6314.ae73534e.js → 6314.c745a9a0.js} +2 -2
  29. package/dist/chunks/{6314.ae73534e.js.map → 6314.c745a9a0.js.map} +1 -1
  30. package/dist/chunks/{6519.b03d81cb.js → 6519.8210b094.js} +2 -2
  31. package/dist/chunks/{6519.b03d81cb.js.map → 6519.8210b094.js.map} +1 -1
  32. package/dist/chunks/{7218.631ec3d0.js → 7218.279a9ed1.js} +2 -2
  33. package/dist/chunks/{7218.631ec3d0.js.map → 7218.279a9ed1.js.map} +1 -1
  34. package/dist/chunks/{726.7bf7cb72.js → 726.c71a507f.js} +2 -2
  35. package/dist/chunks/726.c71a507f.js.map +1 -0
  36. package/dist/chunks/7434.47585ccd.js +2 -0
  37. package/dist/chunks/{7434.4471086e.js.map → 7434.47585ccd.js.map} +1 -1
  38. package/dist/chunks/{7623.a65d14f1.js → 7623.414a4117.js} +3 -3
  39. package/dist/chunks/{7623.a65d14f1.js.map → 7623.414a4117.js.map} +1 -1
  40. package/dist/chunks/{7733.cd1fb1fd.js → 7733.2ba89833.js} +2 -2
  41. package/dist/chunks/{7733.cd1fb1fd.js.map → 7733.2ba89833.js.map} +1 -1
  42. package/dist/chunks/{8097.37e7738b.js → 8097.b37b6f9e.js} +2 -2
  43. package/dist/chunks/{8097.37e7738b.js.map → 8097.b37b6f9e.js.map} +1 -1
  44. package/dist/chunks/{8989.93f530e6.js → 8989.e9a501bd.js} +2 -2
  45. package/dist/chunks/{8989.93f530e6.js.map → 8989.e9a501bd.js.map} +1 -1
  46. package/dist/chunks/{9559.3c1fbf3e.js → 9559.68b6693a.js} +2 -2
  47. package/dist/chunks/{9559.3c1fbf3e.js.map → 9559.68b6693a.js.map} +1 -1
  48. package/dist/chunks/{eo-auto-complete.66051e34.js → eo-auto-complete.4c509c51.js} +3 -3
  49. package/dist/chunks/{eo-auto-complete.66051e34.js.map → eo-auto-complete.4c509c51.js.map} +1 -1
  50. package/dist/chunks/{eo-checkbox.081e9a11.js → eo-checkbox.70127b39.js} +3 -3
  51. package/dist/chunks/{eo-checkbox.081e9a11.js.map → eo-checkbox.70127b39.js.map} +1 -1
  52. package/dist/chunks/{eo-color-picker.b55bc5b1.js → eo-color-picker.c23eb480.js} +2 -2
  53. package/dist/chunks/{eo-color-picker.b55bc5b1.js.map → eo-color-picker.c23eb480.js.map} +1 -1
  54. package/dist/chunks/{eo-date-picker.63628969.js → eo-date-picker.4adde775.js} +2 -2
  55. package/dist/chunks/{eo-date-picker.63628969.js.map → eo-date-picker.4adde775.js.map} +1 -1
  56. package/dist/chunks/{eo-dynamic-form-item.d1cfa208.js → eo-dynamic-form-item.dde78a02.js} +3 -3
  57. package/dist/chunks/{eo-dynamic-form-item.d1cfa208.js.map → eo-dynamic-form-item.dde78a02.js.map} +1 -1
  58. package/dist/chunks/{eo-form-item.50c46c4c.js → eo-form-item.1122cb84.js} +3 -3
  59. package/dist/chunks/{eo-form-item.50c46c4c.js.map → eo-form-item.1122cb84.js.map} +1 -1
  60. package/dist/chunks/{eo-form.a61a7fc0.js → eo-form.d1b698bb.js} +2 -2
  61. package/dist/chunks/{eo-form.a61a7fc0.js.map → eo-form.d1b698bb.js.map} +1 -1
  62. package/dist/chunks/{eo-icon-select.762f454c.js → eo-icon-select.970170f1.js} +3 -3
  63. package/dist/chunks/{eo-icon-select.762f454c.js.map → eo-icon-select.970170f1.js.map} +1 -1
  64. package/dist/chunks/{eo-input.b8bd45e7.js → eo-input.acaa31a6.js} +3 -3
  65. package/dist/chunks/{eo-input.b8bd45e7.js.map → eo-input.acaa31a6.js.map} +1 -1
  66. package/dist/chunks/{eo-radio.067d50b5.js → eo-radio.f6a559e3.js} +3 -3
  67. package/dist/chunks/{eo-radio.067d50b5.js.map → eo-radio.f6a559e3.js.map} +1 -1
  68. package/dist/chunks/{eo-search.89c62ba9.js → eo-search.11fc357f.js} +2 -2
  69. package/dist/chunks/{eo-search.89c62ba9.js.map → eo-search.11fc357f.js.map} +1 -1
  70. package/dist/chunks/{eo-select.5bc519bd.js → eo-select.801e1664.js} +3 -3
  71. package/dist/chunks/{eo-select.5bc519bd.js.map → eo-select.801e1664.js.map} +1 -1
  72. package/dist/chunks/{eo-submit-buttons.12d8ce7c.js → eo-submit-buttons.5496d3c7.js} +2 -2
  73. package/dist/chunks/{eo-submit-buttons.12d8ce7c.js.map → eo-submit-buttons.5496d3c7.js.map} +1 -1
  74. package/dist/chunks/{eo-switch.f06ec9d4.js → eo-switch.0a6bccad.js} +3 -3
  75. package/dist/chunks/{eo-switch.f06ec9d4.js.map → eo-switch.0a6bccad.js.map} +1 -1
  76. package/dist/chunks/{eo-textarea.24b6885d.js → eo-textarea.5d3daa42.js} +2 -2
  77. package/dist/chunks/{eo-textarea.24b6885d.js.map → eo-textarea.5d3daa42.js.map} +1 -1
  78. package/dist/chunks/{eo-time-picker.c68edbb8.js → eo-time-picker.d0275ffe.js} +2 -2
  79. package/dist/chunks/{eo-time-picker.c68edbb8.js.map → eo-time-picker.d0275ffe.js.map} +1 -1
  80. package/dist/chunks/{eo-time-range-picker.e2ad3797.js → eo-time-range-picker.c689aba1.js} +2 -2
  81. package/dist/chunks/{eo-time-range-picker.e2ad3797.js.map → eo-time-range-picker.c689aba1.js.map} +1 -1
  82. package/dist/chunks/{eo-upload-file.5a98b80d.js → eo-upload-file.b6fb0084.js} +3 -3
  83. package/dist/chunks/{eo-upload-file.5a98b80d.js.map → eo-upload-file.b6fb0084.js.map} +1 -1
  84. package/dist/chunks/{eo-upload-image.5f8c2993.js → eo-upload-image.ca915af7.js} +3 -3
  85. package/dist/chunks/{eo-upload-image.5f8c2993.js.map → eo-upload-image.ca915af7.js.map} +1 -1
  86. package/dist/chunks/main.e0ab44ce.js +2 -0
  87. package/dist/chunks/main.e0ab44ce.js.map +1 -0
  88. package/dist/examples.json +12 -12
  89. package/dist/index.929db4ba.js +2 -0
  90. package/dist/index.929db4ba.js.map +1 -0
  91. package/dist/manifest.json +859 -859
  92. package/dist/types.json +1377 -1377
  93. package/package.json +6 -6
  94. package/dist/chunks/3171.ad2e5b07.js +0 -2
  95. package/dist/chunks/5053.a529bc9f.js +0 -2
  96. package/dist/chunks/5053.a529bc9f.js.map +0 -1
  97. package/dist/chunks/5552.33345fab.js +0 -2
  98. package/dist/chunks/5582.8bb7003f.js +0 -3
  99. package/dist/chunks/726.7bf7cb72.js.map +0 -1
  100. package/dist/chunks/7434.4471086e.js +0 -2
  101. package/dist/chunks/790.e563b88a.js +0 -2
  102. package/dist/chunks/790.e563b88a.js.map +0 -1
  103. package/dist/chunks/main.76bf032c.js +0 -2
  104. package/dist/chunks/main.76bf032c.js.map +0 -1
  105. package/dist/index.f03166be.js +0 -2
  106. package/dist/index.f03166be.js.map +0 -1
  107. /package/dist/chunks/{4114.511ea433.js.LICENSE.txt → 4114.959be48c.js.LICENSE.txt} +0 -0
  108. /package/dist/chunks/{5582.8bb7003f.js.LICENSE.txt → 5582.3ae20614.js.LICENSE.txt} +0 -0
  109. /package/dist/chunks/{7623.a65d14f1.js.LICENSE.txt → 7623.414a4117.js.LICENSE.txt} +0 -0
  110. /package/dist/chunks/{eo-auto-complete.66051e34.js.LICENSE.txt → eo-auto-complete.4c509c51.js.LICENSE.txt} +0 -0
  111. /package/dist/chunks/{eo-checkbox.081e9a11.js.LICENSE.txt → eo-checkbox.70127b39.js.LICENSE.txt} +0 -0
  112. /package/dist/chunks/{eo-dynamic-form-item.d1cfa208.js.LICENSE.txt → eo-dynamic-form-item.dde78a02.js.LICENSE.txt} +0 -0
  113. /package/dist/chunks/{eo-form-item.50c46c4c.js.LICENSE.txt → eo-form-item.1122cb84.js.LICENSE.txt} +0 -0
  114. /package/dist/chunks/{eo-icon-select.762f454c.js.LICENSE.txt → eo-icon-select.970170f1.js.LICENSE.txt} +0 -0
  115. /package/dist/chunks/{eo-input.b8bd45e7.js.LICENSE.txt → eo-input.acaa31a6.js.LICENSE.txt} +0 -0
  116. /package/dist/chunks/{eo-radio.067d50b5.js.LICENSE.txt → eo-radio.f6a559e3.js.LICENSE.txt} +0 -0
  117. /package/dist/chunks/{eo-select.5bc519bd.js.LICENSE.txt → eo-select.801e1664.js.LICENSE.txt} +0 -0
  118. /package/dist/chunks/{eo-switch.f06ec9d4.js.LICENSE.txt → eo-switch.0a6bccad.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{eo-upload-file.5a98b80d.js.LICENSE.txt → eo-upload-file.b6fb0084.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{eo-upload-image.5f8c2993.js.LICENSE.txt → eo-upload-image.ca915af7.js.LICENSE.txt} +0 -0
@@ -4,9 +4,9 @@
4
4
  "name": "form",
5
5
  "bricks": [
6
6
  {
7
- "name": "eo-textarea",
7
+ "name": "eo-input",
8
8
  "alias": [
9
- "form.general-textarea"
9
+ "form.general-input"
10
10
  ],
11
11
  "properties": [
12
12
  {
@@ -19,9 +19,35 @@
19
19
  "description": "标签文字",
20
20
  "type": "string"
21
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
+ },
22
48
  {
23
49
  "name": "value",
24
- "description": "",
50
+ "description": "输入框值",
25
51
  "type": "string"
26
52
  },
27
53
  {
@@ -35,468 +61,276 @@
35
61
  "type": "boolean"
36
62
  },
37
63
  {
38
- "name": "minLength",
39
- "description": "最小长度",
40
- "type": "number"
64
+ "name": "readonly",
65
+ "description": "是否只读",
66
+ "type": "boolean"
41
67
  },
42
68
  {
43
- "name": "maxLength",
44
- "description": "最大长度",
45
- "type": "number"
69
+ "name": "clearable",
70
+ "description": "是否显示清除按钮",
71
+ "type": "boolean"
46
72
  },
47
73
  {
48
- "name": "autoSize",
49
- "description": "大小自适应",
50
- "attribute": false,
51
- "type": "AutoSize"
74
+ "name": "autoFocus",
75
+ "description": "是否自动聚焦",
76
+ "type": "boolean"
52
77
  },
53
78
  {
54
- "name": "required",
55
- "description": "是否必填",
56
- "type": "boolean"
79
+ "name": "type",
80
+ "description": "类型",
81
+ "default": "\"text\"",
82
+ "type": "InputType"
57
83
  },
58
84
  {
59
- "name": "max",
60
- "description": "表单校验最大长度",
85
+ "name": "size",
86
+ "description": "大小",
87
+ "default": "\"medium\"",
88
+ "type": "ComponentSize"
89
+ },
90
+ {
91
+ "name": "minLength",
92
+ "description": "最小长度",
61
93
  "type": "number"
62
94
  },
63
95
  {
64
- "name": "min",
65
- "description": "表单校验最小长度",
96
+ "name": "maxLength",
97
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
66
98
  "type": "number"
67
99
  },
68
100
  {
69
- "name": "message",
70
- "description": "校验信息",
101
+ "name": "inputStyle",
102
+ "description": "输入框样式",
71
103
  "attribute": false,
72
- "type": "Record<string, string>"
104
+ "type": "React.CSSProperties"
73
105
  },
74
106
  {
75
- "name": "textareaStyle",
76
- "description": "自定义样式",
107
+ "name": "validator",
108
+ "description": "表单项校验方法",
77
109
  "attribute": false,
78
- "type": "React.CSSProperties"
110
+ "type": "((value: any) => MessageBody)"
79
111
  }
80
112
  ],
81
113
  "events": [
82
114
  {
83
115
  "name": "change",
84
- "description": "",
116
+ "description": "值改变事件",
85
117
  "detail": {
86
- "description": null,
87
118
  "type": "string"
88
119
  }
89
120
  }
90
121
  ],
91
- "slots": [],
92
- "methods": [
93
- {
94
- "name": "focusTextarea",
95
- "params": [],
96
- "description": "focus",
97
- "returns": {}
98
- }
99
- ],
100
- "parts": [],
101
- "description": "通用多行文本输入框构件",
102
- "category": "form-input-basic"
103
- },
104
- {
105
- "name": "eo-radio",
106
- "alias": [
107
- "form.general-radio"
108
- ],
109
- "properties": [
122
+ "slots": [
110
123
  {
111
- "name": "name",
112
- "description": "下拉框字段名",
113
- "type": "string"
124
+ "name": "addonBefore",
125
+ "description": "输入框前置标签"
114
126
  },
115
127
  {
116
- "name": "label",
117
- "description": "单选框字段说明",
118
- "type": "string"
128
+ "name": "addonAfter",
129
+ "description": "输入框后置标签"
119
130
  },
120
131
  {
121
- "name": "options",
122
- "description": "单选框选项表",
123
- "required": true,
124
- "attribute": false,
125
- "type": "GeneralOption[]"
132
+ "name": "prefix",
133
+ "description": "输入框前缀图标"
126
134
  },
127
135
  {
128
- "name": "value",
129
- "description": "单选框当前选中始值",
130
- "attribute": false,
131
- "type": "any"
132
- },
136
+ "name": "suffix",
137
+ "description": "输入框后缀图标"
138
+ }
139
+ ],
140
+ "methods": [
133
141
  {
134
- "name": "required",
135
- "description": "是否必填",
136
- "type": "boolean"
142
+ "name": "focusInput",
143
+ "params": [],
144
+ "description": "focus",
145
+ "returns": {}
137
146
  },
138
147
  {
139
- "name": "message",
140
- "description": "校验文本信息",
141
- "attribute": false,
142
- "type": "Record<string, string>"
143
- },
148
+ "name": "blurInput",
149
+ "params": [],
150
+ "description": "blur",
151
+ "returns": {}
152
+ }
153
+ ],
154
+ "parts": [
144
155
  {
145
- "name": "disabled",
146
- "description": "是否禁用",
147
- "type": "boolean"
156
+ "name": "addon-wrapper",
157
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
148
158
  },
149
159
  {
150
- "name": "type",
151
- "description": "单选框样式类型",
152
- "default": "\"default\"",
153
- "type": "RadioType"
160
+ "name": "affix-wrapper",
161
+ "description": "包裹输入组件、前缀和后缀的容器"
154
162
  },
155
163
  {
156
- "name": "ui",
157
- "description": "UI样式",
158
- "default": "\"default\"",
159
- "type": "UIType"
164
+ "name": "input",
165
+ "description": "输入组件"
160
166
  },
161
167
  {
162
- "name": "size",
163
- "description": "大小,只对按钮样式生效",
164
- "default": "\"medium\"",
165
- "type": "ComponentSize"
168
+ "name": "clear-icon",
169
+ "description": "清除按钮"
166
170
  },
167
171
  {
168
- "name": "customStyle",
169
- "description": "自定义radio的外层样式",
170
- "attribute": false,
171
- "type": "React.CSSProperties"
172
+ "name": "prefix",
173
+ "description": "输入框前缀容器"
172
174
  },
173
175
  {
174
- "name": "useBrick",
175
- "description": "自定义radio的内容",
176
- "attribute": false,
177
- "type": "UseSingleBrickConf"
178
- }
179
- ],
180
- "events": [
176
+ "name": "suffix",
177
+ "description": "输入框后缀容器"
178
+ },
181
179
  {
182
- "name": "change",
183
- "description": "值变化事件",
184
- "detail": {
185
- "type": "GeneralComplexOption | undefined"
186
- }
180
+ "name": "before-addon",
181
+ "description": "输入框前置容器"
187
182
  },
188
183
  {
189
- "name": "options.change",
190
- "description": "选项列表变化事件",
191
- "detail": {
192
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
193
- }
184
+ "name": "after-addon",
185
+ "description": "输入框后置容器"
194
186
  }
195
187
  ],
196
- "slots": [],
197
- "methods": [],
198
- "parts": [],
199
- "description": "通用单选构件",
188
+ "description": "通用输入框构件",
200
189
  "category": "form-input-basic"
201
190
  },
202
191
  {
203
- "name": "eo-select",
192
+ "name": "eo-form",
204
193
  "alias": [
205
- "form.general-select"
194
+ "form.general-form"
206
195
  ],
207
196
  "properties": [
208
197
  {
209
- "name": "name",
210
- "description": "字段名称",
211
- "type": "string"
198
+ "name": "staticValues",
199
+ "attribute": false,
200
+ "type": "Record<string, unknown>"
212
201
  },
213
202
  {
214
- "name": "placeholder",
215
- "description": "占位说明",
216
- "type": "string"
203
+ "name": "layout",
204
+ "description": "布局方式(默认 vertical 布局)",
205
+ "default": "vertical",
206
+ "type": "Layout"
217
207
  },
218
208
  {
219
- "name": "label",
220
- "description": "字段文本",
221
- "type": "string"
209
+ "name": "size",
210
+ "description": "表单组件尺寸",
211
+ "type": "ComponentSize"
222
212
  },
223
213
  {
224
- "name": "options",
225
- "description": "选项列表",
226
- "required": true,
214
+ "name": "labelCol",
215
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
216
+ "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 }",
227
217
  "attribute": false,
228
- "type": "GeneralComplexOption[]"
218
+ "type": "ColProps"
229
219
  },
230
220
  {
231
- "name": "value",
232
- "description": "",
221
+ "name": "wrapperCol",
222
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
223
+ "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 }",
233
224
  "attribute": false,
234
- "type": "any"
225
+ "type": "ColProps"
235
226
  },
236
227
  {
237
- "name": "required",
238
- "description": "是否必填",
239
- "type": "boolean"
228
+ "name": "formStyle",
229
+ "attribute": false,
230
+ "type": "React.CSSProperties"
240
231
  },
241
232
  {
242
- "name": "message",
243
- "description": "校验文本信息",
244
- "attribute": false,
245
- "type": "Record<string, string>"
246
- },
247
- {
248
- "name": "disabled",
249
- "description": "是否禁用",
250
- "type": "boolean"
251
- },
252
- {
253
- "name": "mode",
254
- "description": "类型",
255
- "type": "\"tags\" | \"multiple\""
256
- },
257
- {
258
- "name": "tokenSeparators",
259
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
260
- "attribute": false,
261
- "type": "string[]"
262
- },
263
- {
264
- "name": "maxTagCount",
265
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
266
- "type": "number"
267
- },
268
- {
269
- "name": "groupBy",
270
- "description": "分组字段",
271
- "type": "string"
272
- },
273
- {
274
- "name": "suffix",
275
- "description": "",
276
- "attribute": false,
277
- "type": "{ useBrick: UseSingleBrickConf }"
278
- },
279
- {
280
- "name": "clearable",
281
- "description": "是否支持清除",
282
- "default": "true",
283
- "type": "boolean"
284
- },
285
- {
286
- "name": "fields",
287
- "description": "列表指定字段作为 label 和 value",
288
- "attribute": false,
289
- "type": "{ label?: string; value?: string }"
290
- },
291
- {
292
- "name": "useBackend",
293
- "description": "后端搜索",
294
- "attribute": false,
295
- "type": "UseBackendConf"
296
- },
297
- {
298
- "name": "debounceSearchDelay",
299
- "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
300
- "type": "number"
301
- },
302
- {
303
- "name": "inputStyle",
304
- "description": "输入框样式",
305
- "attribute": false,
306
- "type": "React.CSSProperties"
307
- },
308
- {
309
- "name": "dropdownHoist",
310
- "description": "下拉框是否使用固定定位防止内容被裁切",
311
- "type": "boolean"
233
+ "name": "textContent",
234
+ "type": "string",
235
+ "description": "文本内容"
312
236
  }
313
237
  ],
314
238
  "events": [
315
239
  {
316
- "name": "change",
317
- "description": "下拉选择事件",
318
- "detail": {
319
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
320
- }
321
- },
322
- {
323
- "name": "search",
324
- "description": "下拉框search事件",
240
+ "name": "values.change",
241
+ "description": "表单值变更事件",
325
242
  "detail": {
326
- "type": "{\n value: string;\n }"
243
+ "description": null,
244
+ "type": "Record<string, unknown>"
327
245
  }
328
246
  },
329
247
  {
330
- "name": "select.focus",
331
- "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
248
+ "name": "validate.success",
249
+ "description": "表单验证成功时触发事件",
332
250
  "detail": {
333
- "type": "void"
251
+ "type": "Record<string, unknown>"
334
252
  }
335
253
  },
336
254
  {
337
- "name": "options.change",
338
- "description": "选项列表变化事件",
255
+ "name": "validate.error",
256
+ "description": "表单验证报错时触发事件",
339
257
  "detail": {
340
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
258
+ "type": "(MessageBody & { name: string })[]"
341
259
  }
342
260
  }
343
261
  ],
344
- "slots": [],
345
- "methods": [],
346
- "parts": [],
347
- "description": "通用下拉选择构件",
348
- "category": "form-input-basic"
349
- },
350
- {
351
- "name": "eo-submit-buttons",
352
- "alias": [
353
- "form.submit-buttons"
354
- ],
355
- "properties": [
356
- {
357
- "name": "submitText",
358
- "description": "提交按钮的文字",
359
- "default": "\"提交\"",
360
- "type": "string"
361
- },
362
- {
363
- "name": "cancelText",
364
- "description": "取消按钮的文字,不设置则不显示取消按钮",
365
- "type": "string"
366
- },
367
- {
368
- "name": "disableAfterClick",
369
- "description": "点击确定按钮后自动禁用",
370
- "type": "boolean"
371
- },
372
- {
373
- "name": "submitDisabled",
374
- "description": "禁用提交按钮",
375
- "type": "boolean"
376
- },
377
- {
378
- "name": "submitType",
379
- "description": "提交按钮类型",
380
- "type": "ButtonType"
381
- },
262
+ "slots": [
382
263
  {
383
- "name": "cancelType",
384
- "description": "取消按钮类型",
385
- "type": "ButtonType"
264
+ "name": null,
265
+ "description": "表单内容"
386
266
  }
387
267
  ],
388
- "events": [
268
+ "methods": [
389
269
  {
390
- "name": "submit",
391
- "description": "点击提交按钮触发的事件",
392
- "detail": {
393
- "type": "void"
270
+ "name": "validate",
271
+ "params": [],
272
+ "description": "表单校验方法",
273
+ "returns": {
274
+ "type": "boolean | Record<string, unknown>"
394
275
  }
395
276
  },
396
277
  {
397
- "name": "cancel",
398
- "description": "点击取消按钮触发的事件",
399
- "detail": {
400
- "type": "void"
401
- }
402
- }
403
- ],
404
- "slots": [],
405
- "methods": [],
406
- "parts": [],
407
- "description": "表单提交按钮",
408
- "category": "form-input-basic"
409
- },
410
- {
411
- "name": "eo-checkbox",
412
- "alias": [
413
- "form.general-checkbox"
414
- ],
415
- "properties": [
416
- {
417
- "name": "name",
418
- "description": "字段名称",
419
- "type": "string"
420
- },
421
- {
422
- "name": "label",
423
- "description": "字段说明",
424
- "type": "string"
425
- },
426
- {
427
- "name": "value",
428
- "description": "值",
429
- "attribute": false,
430
- "type": "CheckboxValueType[]"
431
- },
432
- {
433
- "name": "options",
434
- "description": "多选框选项表",
435
- "required": true,
436
- "default": "[]",
437
- "attribute": false,
438
- "type": "CheckboxOptionType[]"
439
- },
440
- {
441
- "name": "type",
442
- "description": "类型",
443
- "default": "\"default\"",
444
- "type": "CheckboxType"
445
- },
446
- {
447
- "name": "disabled",
448
- "description": "是否禁用",
449
- "type": "boolean"
450
- },
451
- {
452
- "name": "isCustom",
453
- "description": "是否为自定义",
454
- "default": "false",
455
- "type": "boolean"
456
- },
457
- {
458
- "name": "required",
459
- "description": "是否必填",
460
- "type": "boolean"
278
+ "name": "setInitValue",
279
+ "params": [
280
+ {
281
+ "name": "values",
282
+ "type": "Record<string, unknown>"
283
+ },
284
+ {
285
+ "name": "options",
286
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
287
+ }
288
+ ],
289
+ "description": "表单设置值方法",
290
+ "returns": {}
461
291
  },
462
292
  {
463
- "name": "message",
464
- "description": "校验文本",
465
- "attribute": false,
466
- "type": "Record<string, string>"
293
+ "name": "resetFields",
294
+ "params": [
295
+ {
296
+ "name": "name",
297
+ "type": "string"
298
+ }
299
+ ],
300
+ "description": "表单重置值方法",
301
+ "returns": {}
467
302
  },
468
303
  {
469
- "name": "isGroup",
470
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
471
- "type": "boolean"
304
+ "name": "getFieldsValue",
305
+ "params": [
306
+ {
307
+ "name": "name",
308
+ "type": "string"
309
+ }
310
+ ],
311
+ "description": "获取表单值方法",
312
+ "returns": {}
472
313
  },
473
314
  {
474
- "name": "optionGroups",
475
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
476
- "attribute": false,
477
- "type": "OptionGroup[]"
478
- }
479
- ],
480
- "events": [
481
- {
482
- "name": "change",
483
- "description": "复选框变化事件",
484
- "detail": {
485
- "type": "CheckboxOptionType[]"
486
- }
315
+ "name": "validateField",
316
+ "params": [
317
+ {
318
+ "name": "name",
319
+ "type": "string"
320
+ }
321
+ ],
322
+ "description": "校验表单字段方法",
323
+ "returns": {}
487
324
  },
488
325
  {
489
- "name": "options.change",
490
- "description": "复选框变化事件",
491
- "detail": {
492
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
493
- }
326
+ "name": "resetValidateState",
327
+ "params": [],
328
+ "description": "重置表单校验状态方法",
329
+ "returns": {}
494
330
  }
495
331
  ],
496
- "slots": [],
497
- "methods": [],
498
332
  "parts": [],
499
- "description": "表单复选框构件",
333
+ "description": "表单构件",
500
334
  "category": "form-input-basic"
501
335
  },
502
336
  {
@@ -608,9 +442,9 @@
608
442
  "insider": true
609
443
  },
610
444
  {
611
- "name": "eo-dynamic-form-item",
445
+ "name": "eo-textarea",
612
446
  "alias": [
613
- "form.dynamic-form-item"
447
+ "form.general-textarea"
614
448
  ],
615
449
  "properties": [
616
450
  {
@@ -620,210 +454,401 @@
620
454
  },
621
455
  {
622
456
  "name": "label",
623
- "description": "字段说明",
457
+ "description": "标签文字",
624
458
  "type": "string"
625
459
  },
460
+ {
461
+ "name": "value",
462
+ "description": "值",
463
+ "type": "string"
464
+ },
465
+ {
466
+ "name": "placeholder",
467
+ "description": "占位说明",
468
+ "type": "string"
469
+ },
470
+ {
471
+ "name": "disabled",
472
+ "description": "是否禁用",
473
+ "type": "boolean"
474
+ },
475
+ {
476
+ "name": "minLength",
477
+ "description": "最小长度",
478
+ "type": "number"
479
+ },
480
+ {
481
+ "name": "maxLength",
482
+ "description": "最大长度",
483
+ "type": "number"
484
+ },
485
+ {
486
+ "name": "autoSize",
487
+ "description": "大小自适应",
488
+ "attribute": false,
489
+ "type": "AutoSize"
490
+ },
626
491
  {
627
492
  "name": "required",
628
493
  "description": "是否必填",
629
494
  "type": "boolean"
630
495
  },
631
496
  {
632
- "name": "value",
633
- "description": "",
634
- "attribute": false,
635
- "type": "DynamicFormValuesItem[]"
497
+ "name": "max",
498
+ "description": "表单校验最大长度",
499
+ "type": "number"
500
+ },
501
+ {
502
+ "name": "min",
503
+ "description": "表单校验最小长度",
504
+ "type": "number"
636
505
  },
637
506
  {
638
507
  "name": "message",
639
- "description": "校验文本",
508
+ "description": "校验信息",
640
509
  "attribute": false,
641
510
  "type": "Record<string, string>"
642
511
  },
643
512
  {
644
- "name": "hideRemoveButton",
645
- "description": "是否隐藏每一行删除的按钮",
513
+ "name": "textareaStyle",
514
+ "description": "自定义样式",
646
515
  "attribute": false,
647
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
516
+ "type": "React.CSSProperties"
517
+ }
518
+ ],
519
+ "events": [
520
+ {
521
+ "name": "change",
522
+ "description": "",
523
+ "detail": {
524
+ "description": null,
525
+ "type": "string"
526
+ }
527
+ }
528
+ ],
529
+ "slots": [],
530
+ "methods": [
531
+ {
532
+ "name": "focusTextarea",
533
+ "params": [],
534
+ "description": "focus",
535
+ "returns": {}
536
+ }
537
+ ],
538
+ "parts": [],
539
+ "description": "通用多行文本输入框构件",
540
+ "category": "form-input-basic"
541
+ },
542
+ {
543
+ "name": "eo-radio",
544
+ "alias": [
545
+ "form.general-radio"
546
+ ],
547
+ "properties": [
548
+ {
549
+ "name": "name",
550
+ "description": "下拉框字段名",
551
+ "type": "string"
648
552
  },
649
553
  {
650
- "name": "disabledRemoveButton",
651
- "description": "是否禁止每一行删除的按钮",
554
+ "name": "label",
555
+ "description": "单选框字段说明",
556
+ "type": "string"
557
+ },
558
+ {
559
+ "name": "options",
560
+ "description": "单选框选项表",
561
+ "required": true,
652
562
  "attribute": false,
653
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
563
+ "type": "GeneralOption[]"
654
564
  },
655
565
  {
656
- "name": "hideAddButton",
657
- "description": "是否隐藏添加的按钮",
566
+ "name": "value",
567
+ "description": "单选框当前选中始值",
658
568
  "attribute": false,
659
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
569
+ "type": "any"
660
570
  },
661
571
  {
662
- "name": "disabledAddButton",
663
- "description": "是否禁止添加的按钮",
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"
592
+ },
593
+ {
594
+ "name": "ui",
595
+ "description": "UI样式",
596
+ "default": "\"default\"",
597
+ "type": "UIType"
598
+ },
599
+ {
600
+ "name": "size",
601
+ "description": "大小,只对按钮样式生效",
602
+ "default": "\"medium\"",
603
+ "type": "ComponentSize"
604
+ },
605
+ {
606
+ "name": "customStyle",
607
+ "description": "自定义radio的外层样式",
664
608
  "attribute": false,
665
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
609
+ "type": "React.CSSProperties"
666
610
  },
667
611
  {
668
612
  "name": "useBrick",
669
- "description": "动态表单子项构件列表",
613
+ "description": "自定义radio的内容",
670
614
  "attribute": false,
671
- "type": "UseBrickConf"
615
+ "type": "UseSingleBrickConf"
672
616
  }
673
617
  ],
674
618
  "events": [
675
619
  {
676
620
  "name": "change",
621
+ "description": "值变化事件",
677
622
  "detail": {
678
- "type": "DynamicFormValuesItem[]"
679
- }
680
- },
681
- {
682
- "name": "row.add",
683
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
684
- "detail": {
685
- "type": "rowDataType"
623
+ "type": "GeneralComplexOption | undefined"
686
624
  }
687
625
  },
688
626
  {
689
- "name": "row.remove",
690
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
627
+ "name": "options.change",
628
+ "description": "选项列表变化事件",
691
629
  "detail": {
692
- "type": "rowDataType"
630
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
693
631
  }
694
632
  }
695
633
  ],
696
634
  "slots": [],
697
635
  "methods": [],
698
636
  "parts": [],
699
- "description": "动态表单",
637
+ "description": "通用单选构件",
700
638
  "category": "form-input-basic"
701
639
  },
702
640
  {
703
- "name": "eo-search",
641
+ "name": "eo-select",
704
642
  "alias": [
705
- "form.general-search"
643
+ "form.general-select"
706
644
  ],
707
645
  "properties": [
708
646
  {
709
- "name": "value",
710
- "description": "搜索框的值",
711
- "default": "\"\"",
647
+ "name": "name",
648
+ "description": "字段名称",
712
649
  "type": "string"
713
650
  },
714
651
  {
715
652
  "name": "placeholder",
716
- "description": "提示语",
653
+ "description": "占位说明",
717
654
  "type": "string"
718
655
  },
719
656
  {
720
- "name": "autoFocus",
721
- "description": "是否自动聚焦",
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": "是否必填",
722
677
  "type": "boolean"
723
678
  },
724
679
  {
725
- "name": "clearable",
726
- "description": "可以点击清除图标删除内容",
680
+ "name": "message",
681
+ "description": "校验文本信息",
682
+ "attribute": false,
683
+ "type": "Record<string, string>"
684
+ },
685
+ {
686
+ "name": "disabled",
687
+ "description": "是否禁用",
727
688
  "type": "boolean"
728
689
  },
729
690
  {
730
- "name": "trim",
731
- "description": "是否剔除前后空格",
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"
710
+ },
711
+ {
712
+ "name": "suffix",
713
+ "description": "",
714
+ "attribute": false,
715
+ "type": "{ useBrick: UseSingleBrickConf }"
716
+ },
717
+ {
718
+ "name": "clearable",
719
+ "description": "是否支持清除",
720
+ "default": "true",
732
721
  "type": "boolean"
733
722
  },
734
723
  {
735
- "name": "debounceTime",
736
- "description": "默认延迟时间",
737
- "default": "0",
724
+ "name": "fields",
725
+ "description": "列表指定字段作为 label 和 value",
726
+ "attribute": false,
727
+ "type": "{ label?: string; value?: string }"
728
+ },
729
+ {
730
+ "name": "useBackend",
731
+ "description": "后端搜索",
732
+ "attribute": false,
733
+ "type": "UseBackendConf"
734
+ },
735
+ {
736
+ "name": "debounceSearchDelay",
737
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
738
738
  "type": "number"
739
739
  },
740
740
  {
741
741
  "name": "inputStyle",
742
742
  "description": "输入框样式",
743
743
  "attribute": false,
744
- "type": "CSSProperties"
744
+ "type": "React.CSSProperties"
745
+ },
746
+ {
747
+ "name": "dropdownHoist",
748
+ "description": "下拉框是否使用固定定位防止内容被裁切",
749
+ "type": "boolean"
745
750
  }
746
751
  ],
747
752
  "events": [
748
753
  {
749
754
  "name": "change",
750
- "description": "输入的搜索字符,输入变化时触发",
755
+ "description": "下拉选择事件",
751
756
  "detail": {
752
- "type": "string"
757
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
753
758
  }
754
759
  },
755
760
  {
756
761
  "name": "search",
757
- "description": "搜索时触发",
762
+ "description": "下拉框search事件",
758
763
  "detail": {
759
- "type": "string"
764
+ "type": "{\n value: string;\n }"
765
+ }
766
+ },
767
+ {
768
+ "name": "select.focus",
769
+ "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
770
+ "detail": {
771
+ "type": "void"
772
+ }
773
+ },
774
+ {
775
+ "name": "options.change",
776
+ "description": "选项列表变化事件",
777
+ "detail": {
778
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
760
779
  }
761
780
  }
762
781
  ],
763
782
  "slots": [],
764
783
  "methods": [],
765
784
  "parts": [],
766
- "description": "搜索框",
767
- "category": "interact-basic"
785
+ "description": "通用下拉选择构件",
786
+ "category": "form-input-basic"
768
787
  },
769
788
  {
770
- "name": "eo-icon-select",
789
+ "name": "eo-submit-buttons",
771
790
  "alias": [
772
- "form.icon-select"
791
+ "form.submit-buttons"
773
792
  ],
774
793
  "properties": [
775
794
  {
776
- "name": "name",
777
- "description": "字段名称",
795
+ "name": "submitText",
796
+ "description": "提交按钮的文字",
797
+ "default": "\"提交\"",
778
798
  "type": "string"
779
799
  },
780
800
  {
781
- "name": "label",
782
- "description": "字段说明",
801
+ "name": "cancelText",
802
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
783
803
  "type": "string"
784
804
  },
785
805
  {
786
- "name": "value",
787
- "description": "",
788
- "attribute": false,
789
- "type": "Icon"
806
+ "name": "disableAfterClick",
807
+ "description": "点击确定按钮后自动禁用",
808
+ "type": "boolean"
790
809
  },
791
810
  {
792
- "name": "disabled",
793
- "description": "是否禁用",
811
+ "name": "submitDisabled",
812
+ "description": "禁用提交按钮",
794
813
  "type": "boolean"
795
814
  },
796
815
  {
797
- "name": "required",
798
- "description": "是否必填",
799
- "type": "boolean"
816
+ "name": "submitType",
817
+ "description": "提交按钮类型",
818
+ "type": "ButtonType"
800
819
  },
801
820
  {
802
- "name": "message",
803
- "description": "是否必填",
804
- "attribute": false,
805
- "type": "Record<string, string>"
821
+ "name": "cancelType",
822
+ "description": "取消按钮类型",
823
+ "type": "ButtonType"
806
824
  }
807
825
  ],
808
826
  "events": [
809
827
  {
810
- "name": "change",
811
- "description": "值变化时触发",
828
+ "name": "submit",
829
+ "description": "点击提交按钮触发的事件",
812
830
  "detail": {
813
- "type": "Icon | undefined"
831
+ "type": "void"
832
+ }
833
+ },
834
+ {
835
+ "name": "cancel",
836
+ "description": "点击取消按钮触发的事件",
837
+ "detail": {
838
+ "type": "void"
814
839
  }
815
840
  }
816
841
  ],
817
842
  "slots": [],
818
843
  "methods": [],
819
844
  "parts": [],
820
- "description": "图标选择构件",
845
+ "description": "表单提交按钮",
821
846
  "category": "form-input-basic"
822
847
  },
823
848
  {
824
- "name": "eo-switch",
849
+ "name": "eo-checkbox",
825
850
  "alias": [
826
- "form.general-switch"
851
+ "form.general-checkbox"
827
852
  ],
828
853
  "properties": [
829
854
  {
@@ -833,13 +858,28 @@
833
858
  },
834
859
  {
835
860
  "name": "label",
836
- "description": "字段文本",
861
+ "description": "字段说明",
837
862
  "type": "string"
838
863
  },
839
864
  {
840
865
  "name": "value",
841
- "description": "初始值",
842
- "type": "boolean"
866
+ "description": "",
867
+ "attribute": false,
868
+ "type": "CheckboxValueType[]"
869
+ },
870
+ {
871
+ "name": "options",
872
+ "description": "多选框选项表",
873
+ "required": true,
874
+ "default": "[]",
875
+ "attribute": false,
876
+ "type": "CheckboxOptionType[]"
877
+ },
878
+ {
879
+ "name": "type",
880
+ "description": "类型",
881
+ "default": "\"default\"",
882
+ "type": "CheckboxType"
843
883
  },
844
884
  {
845
885
  "name": "disabled",
@@ -847,52 +887,60 @@
847
887
  "type": "boolean"
848
888
  },
849
889
  {
850
- "name": "size",
851
- "description": "按钮大小,目前只支持small和非small两种大小。",
852
- "type": "ComponentSize"
890
+ "name": "isCustom",
891
+ "description": "是否为自定义",
892
+ "default": "false",
893
+ "type": "boolean"
853
894
  },
854
895
  {
855
- "name": "checkedText",
856
- "description": "选中时的文本",
857
- "type": "string"
896
+ "name": "required",
897
+ "description": "是否必填",
898
+ "type": "boolean"
858
899
  },
859
900
  {
860
- "name": "unCheckedText",
861
- "description": "非选中时的文本",
862
- "type": "string"
901
+ "name": "message",
902
+ "description": "校验文本",
903
+ "attribute": false,
904
+ "type": "Record<string, string>"
863
905
  },
864
906
  {
865
- "name": "checkedIcon",
866
- "description": "选中时的图标",
867
- "attribute": false,
868
- "type": "GeneralIconProps"
907
+ "name": "isGroup",
908
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
909
+ "type": "boolean"
869
910
  },
870
911
  {
871
- "name": "unCheckedIcon",
872
- "description": "非选中时的文本",
912
+ "name": "optionGroups",
913
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
873
914
  "attribute": false,
874
- "type": "GeneralIconProps"
915
+ "type": "OptionGroup[]"
875
916
  }
876
917
  ],
877
918
  "events": [
878
919
  {
879
- "name": "switch",
880
- "description": "开关改变时触发",
920
+ "name": "change",
921
+ "description": "复选框变化事件",
881
922
  "detail": {
882
- "type": "boolean"
923
+ "type": "CheckboxOptionType[]"
924
+ }
925
+ },
926
+ {
927
+ "name": "options.change",
928
+ "description": "复选框变化事件",
929
+ "detail": {
930
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
883
931
  }
884
932
  }
885
933
  ],
886
934
  "slots": [],
887
935
  "methods": [],
888
936
  "parts": [],
889
- "description": "开关",
937
+ "description": "表单复选框构件",
890
938
  "category": "form-input-basic"
891
939
  },
892
940
  {
893
- "name": "eo-upload-image",
941
+ "name": "eo-dynamic-form-item",
894
942
  "alias": [
895
- "form.upload-image"
943
+ "form.dynamic-form-item"
896
944
  ],
897
945
  "properties": [
898
946
  {
@@ -905,205 +953,169 @@
905
953
  "description": "字段说明",
906
954
  "type": "string"
907
955
  },
956
+ {
957
+ "name": "required",
958
+ "description": "是否必填",
959
+ "type": "boolean"
960
+ },
908
961
  {
909
962
  "name": "value",
910
963
  "description": "值",
911
964
  "attribute": false,
912
- "type": "ImageData[]"
965
+ "type": "DynamicFormValuesItem[]"
913
966
  },
914
967
  {
915
- "name": "bucketName",
916
- "description": "对象存储桶名字",
917
- "type": "string"
968
+ "name": "message",
969
+ "description": "校验文本",
970
+ "attribute": false,
971
+ "type": "Record<string, string>"
918
972
  },
919
973
  {
920
- "name": "maxCount",
921
- "description": "最大上传数量",
922
- "type": "number"
974
+ "name": "hideRemoveButton",
975
+ "description": "是否隐藏每一行删除的按钮",
976
+ "attribute": false,
977
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
923
978
  },
924
979
  {
925
- "name": "multiple",
926
- "description": "是否支持选定的多张图片",
927
- "type": "boolean"
980
+ "name": "disabledRemoveButton",
981
+ "description": "是否禁止每一行删除的按钮",
982
+ "attribute": false,
983
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
928
984
  },
929
985
  {
930
- "name": "limitSize",
931
- "description": "上传大小限制(单位为 MB)",
932
- "type": "number"
986
+ "name": "hideAddButton",
987
+ "description": "是否隐藏添加的按钮",
988
+ "attribute": false,
989
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
933
990
  },
934
991
  {
935
- "name": "required",
936
- "description": "是否必填",
937
- "type": "boolean"
992
+ "name": "disabledAddButton",
993
+ "description": "是否禁止添加的按钮",
994
+ "attribute": false,
995
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
938
996
  },
939
997
  {
940
- "name": "message",
941
- "description": "校验文本信息",
998
+ "name": "useBrick",
999
+ "description": "动态表单子项构件列表",
942
1000
  "attribute": false,
943
- "type": "Record<string, string>"
1001
+ "type": "UseBrickConf"
944
1002
  }
945
1003
  ],
946
1004
  "events": [
947
1005
  {
948
1006
  "name": "change",
949
- "description": "值变化时触发",
950
1007
  "detail": {
951
- "type": "ImageData[]"
1008
+ "type": "DynamicFormValuesItem[]"
1009
+ }
1010
+ },
1011
+ {
1012
+ "name": "row.add",
1013
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
1014
+ "detail": {
1015
+ "type": "rowDataType"
1016
+ }
1017
+ },
1018
+ {
1019
+ "name": "row.remove",
1020
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
1021
+ "detail": {
1022
+ "type": "rowDataType"
952
1023
  }
953
1024
  }
954
1025
  ],
955
1026
  "slots": [],
956
1027
  "methods": [],
957
1028
  "parts": [],
958
- "description": "上传图片构件",
1029
+ "description": "动态表单",
959
1030
  "category": "form-input-basic"
960
1031
  },
961
1032
  {
962
- "name": "eo-upload-file",
1033
+ "name": "eo-search",
1034
+ "alias": [
1035
+ "form.general-search"
1036
+ ],
963
1037
  "properties": [
964
1038
  {
965
- "name": "label",
966
- "description": "字段说明",
1039
+ "name": "value",
1040
+ "description": "搜索框的值",
1041
+ "default": "\"\"",
967
1042
  "type": "string"
968
1043
  },
969
1044
  {
970
- "name": "name",
971
- "description": "字段名称",
1045
+ "name": "placeholder",
1046
+ "description": "提示语",
972
1047
  "type": "string"
973
1048
  },
974
1049
  {
975
- "name": "required",
976
- "description": "是否必填",
1050
+ "name": "autoFocus",
1051
+ "description": "是否自动聚焦",
977
1052
  "type": "boolean"
978
1053
  },
979
1054
  {
980
- "name": "message",
981
- "description": "校验文本信息",
982
- "attribute": false,
983
- "type": "Record<string, string>"
984
- },
985
- {
986
- "name": "value",
987
- "description": "值",
988
- "attribute": false,
989
- "type": "FileData[]"
990
- },
991
- {
992
- "name": "multiple",
993
- "description": "是否支持多选",
1055
+ "name": "clearable",
1056
+ "description": "可以点击清除图标删除内容",
994
1057
  "type": "boolean"
995
1058
  },
996
1059
  {
997
- "name": "accept",
998
- "description": "接受上传的文件类型,多个之间用 `,` 连接",
999
- "type": "string"
1000
- },
1001
- {
1002
- "name": "maxCount",
1003
- "description": "最大上传数量",
1004
- "type": "number"
1060
+ "name": "trim",
1061
+ "description": "是否剔除前后空格",
1062
+ "type": "boolean"
1005
1063
  },
1006
1064
  {
1007
- "name": "limitSize",
1008
- "description": "上传大小限制(单位为 MB)",
1065
+ "name": "debounceTime",
1066
+ "description": "默认延迟时间",
1067
+ "default": "0",
1009
1068
  "type": "number"
1010
1069
  },
1011
1070
  {
1012
- "name": "buttonText",
1013
- "description": "上传按钮文本",
1014
- "default": "上传",
1015
- "type": "string"
1016
- },
1017
- {
1018
- "name": "buttonType",
1019
- "description": "上传按钮类型",
1020
- "type": "ButtonProps[\"type\"]"
1021
- },
1022
- {
1023
- "name": "buttonIcon",
1024
- "description": "上传按钮类型",
1025
- "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1071
+ "name": "inputStyle",
1072
+ "description": "输入框样式",
1026
1073
  "attribute": false,
1027
- "type": "GeneralIconProps"
1028
- },
1029
- {
1030
- "name": "overMaxCountMode",
1031
- "description": "超出最大上传数量时文件的保留方式",
1032
- "default": "\"replace\"",
1033
- "type": "\"ignore\" | \"replace\""
1034
- },
1035
- {
1036
- "name": "uploadDraggable",
1037
- "description": "是否可以拖拽上传",
1038
- "type": "boolean"
1039
- },
1040
- {
1041
- "name": "draggableUploadTip",
1042
- "description": "拖拽上传的提示信息",
1043
- "type": "string"
1044
- },
1045
- {
1046
- "name": "autoUpload",
1047
- "description": "是否自动上传",
1048
- "default": "false",
1049
- "type": "boolean"
1050
- },
1051
- {
1052
- "name": "url",
1053
- "description": "自动上传的地址",
1054
- "type": "string"
1055
- },
1056
- {
1057
- "name": "method",
1058
- "description": "自动上传的方法",
1059
- "default": "\"POST\"",
1060
- "type": "string"
1061
- },
1062
- {
1063
- "name": "uploadName",
1064
- "description": "自动上传的文件参数名",
1065
- "default": "\"file\"",
1066
- "type": "string"
1074
+ "type": "CSSProperties"
1067
1075
  }
1068
1076
  ],
1069
1077
  "events": [
1070
1078
  {
1071
1079
  "name": "change",
1072
- "description": "值变化时触发",
1080
+ "description": "输入的搜索字符,输入变化时触发",
1073
1081
  "detail": {
1074
- "type": "FileData[]"
1082
+ "type": "string"
1083
+ }
1084
+ },
1085
+ {
1086
+ "name": "search",
1087
+ "description": "搜索时触发",
1088
+ "detail": {
1089
+ "type": "string"
1075
1090
  }
1076
1091
  }
1077
1092
  ],
1078
1093
  "slots": [],
1079
1094
  "methods": [],
1080
1095
  "parts": [],
1081
- "description": "上传文件",
1082
- "category": "form-input-basic"
1096
+ "description": "搜索框",
1097
+ "category": "interact-basic"
1083
1098
  },
1084
1099
  {
1085
- "name": "eo-auto-complete",
1100
+ "name": "eo-switch",
1101
+ "alias": [
1102
+ "form.general-switch"
1103
+ ],
1086
1104
  "properties": [
1087
1105
  {
1088
1106
  "name": "name",
1089
1107
  "description": "字段名称",
1090
1108
  "type": "string"
1091
1109
  },
1092
- {
1093
- "name": "placeholder",
1094
- "description": "占位说明",
1095
- "type": "string"
1096
- },
1097
1110
  {
1098
1111
  "name": "label",
1099
1112
  "description": "字段文本",
1100
1113
  "type": "string"
1101
1114
  },
1102
1115
  {
1103
- "name": "inputStyle",
1104
- "description": "输入框样式",
1105
- "attribute": false,
1106
- "type": "React.CSSProperties"
1116
+ "name": "value",
1117
+ "description": "初始值",
1118
+ "type": "boolean"
1107
1119
  },
1108
1120
  {
1109
1121
  "name": "disabled",
@@ -1111,81 +1123,65 @@
1111
1123
  "type": "boolean"
1112
1124
  },
1113
1125
  {
1114
- "name": "required",
1115
- "description": "是否必填",
1116
- "type": "boolean"
1126
+ "name": "size",
1127
+ "description": "按钮大小,目前只支持small和非small两种大小。",
1128
+ "type": "ComponentSize"
1117
1129
  },
1118
1130
  {
1119
- "name": "value",
1131
+ "name": "checkedText",
1132
+ "description": "选中时的文本",
1120
1133
  "type": "string"
1121
1134
  },
1122
1135
  {
1123
- "name": "options",
1124
- "description": "选项列表",
1125
- "required": true,
1126
- "attribute": false,
1127
- "type": "string[] | OptionType[]"
1128
- },
1129
- {
1130
- "name": "filterByCaption",
1131
- "description": "搜索时是否根据caption过滤options",
1132
- "type": "boolean"
1133
- },
1134
- {
1135
- "name": "validator",
1136
- "description": "表单项校验方法",
1137
- "attribute": false,
1138
- "type": "((value: any) => MessageBody)"
1136
+ "name": "unCheckedText",
1137
+ "description": "非选中时的文本",
1138
+ "type": "string"
1139
1139
  },
1140
1140
  {
1141
- "name": "pattern",
1142
- "description": "正则校验规则",
1143
- "type": "string"
1141
+ "name": "checkedIcon",
1142
+ "description": "选中时的图标",
1143
+ "attribute": false,
1144
+ "type": "GeneralIconProps"
1144
1145
  },
1145
1146
  {
1146
- "name": "message",
1147
- "description": "校验文本信息",
1147
+ "name": "unCheckedIcon",
1148
+ "description": "非选中时的文本",
1148
1149
  "attribute": false,
1149
- "type": "Record<string, string>"
1150
+ "type": "GeneralIconProps"
1150
1151
  }
1151
1152
  ],
1152
1153
  "events": [
1153
1154
  {
1154
- "name": "change",
1155
- "description": "值改变事件",
1155
+ "name": "switch",
1156
+ "description": "开关改变时触发",
1156
1157
  "detail": {
1157
- "type": "string"
1158
+ "type": "boolean"
1158
1159
  }
1159
1160
  }
1160
1161
  ],
1161
1162
  "slots": [],
1162
1163
  "methods": [],
1163
1164
  "parts": [],
1164
- "description": "带候选项的输入框",
1165
+ "description": "开关",
1165
1166
  "category": "form-input-basic"
1166
1167
  },
1167
1168
  {
1168
- "name": "eo-time-picker",
1169
+ "name": "eo-upload-file",
1169
1170
  "properties": [
1170
- {
1171
- "name": "name",
1172
- "description": "时间选择器字段名",
1173
- "type": "string"
1174
- },
1175
1171
  {
1176
1172
  "name": "label",
1177
- "description": "时间选择器说明",
1173
+ "description": "字段说明",
1178
1174
  "type": "string"
1179
1175
  },
1180
1176
  {
1181
- "name": "value",
1182
- "description": "时间选择器的初始值",
1177
+ "name": "name",
1178
+ "description": "字段名称",
1183
1179
  "type": "string"
1184
1180
  },
1185
1181
  {
1186
- "name": "placeholder",
1187
- "description": "时间选择器占位说明",
1188
- "type": "string"
1182
+ "name": "required",
1183
+ "description": "是否必填",
1184
+ "type": "boolean"
1189
1185
  },
1190
1186
  {
1191
1187
  "name": "message",
@@ -1194,200 +1190,162 @@
1194
1190
  "type": "Record<string, string>"
1195
1191
  },
1196
1192
  {
1197
- "name": "disabled",
1198
- "description": "是否禁用",
1199
- "type": "boolean"
1193
+ "name": "value",
1194
+ "description": "",
1195
+ "attribute": false,
1196
+ "type": "FileData[]"
1200
1197
  },
1201
1198
  {
1202
- "name": "required",
1203
- "description": "是否必填",
1199
+ "name": "multiple",
1200
+ "description": "是否支持多选",
1204
1201
  "type": "boolean"
1205
1202
  },
1206
1203
  {
1207
- "name": "configProps",
1208
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1209
- "attribute": false,
1210
- "type": "Partial<TimePickerProps>"
1211
- }
1212
- ],
1213
- "events": [
1204
+ "name": "accept",
1205
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
1206
+ "type": "string"
1207
+ },
1214
1208
  {
1215
- "name": "change",
1216
- "description": "时间变化时触发",
1217
- "detail": {
1218
- "type": "string"
1219
- }
1209
+ "name": "maxCount",
1210
+ "description": "最大上传数量",
1211
+ "type": "number"
1220
1212
  },
1221
1213
  {
1222
- "name": "open",
1223
- "description": "面板打开时触发, 传出当前时间值",
1224
- "detail": {
1225
- "type": "string"
1226
- }
1214
+ "name": "limitSize",
1215
+ "description": "上传大小限制(单位为 MB)",
1216
+ "type": "number"
1227
1217
  },
1228
1218
  {
1229
- "name": "close",
1230
- "description": "面板关闭时触发,传出当前时间值",
1231
- "detail": {
1232
- "type": "string"
1233
- }
1234
- }
1235
- ],
1236
- "slots": [],
1237
- "methods": [],
1238
- "parts": [],
1239
- "description": "时间选择器",
1240
- "category": "form-input-basic"
1241
- },
1242
- {
1243
- "name": "eo-form",
1244
- "alias": [
1245
- "form.general-form"
1246
- ],
1247
- "properties": [
1219
+ "name": "buttonText",
1220
+ "description": "上传按钮文本",
1221
+ "default": "上传",
1222
+ "type": "string"
1223
+ },
1248
1224
  {
1249
- "name": "staticValues",
1225
+ "name": "buttonType",
1226
+ "description": "上传按钮类型",
1227
+ "type": "ButtonProps[\"type\"]"
1228
+ },
1229
+ {
1230
+ "name": "buttonIcon",
1231
+ "description": "上传按钮类型",
1232
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1250
1233
  "attribute": false,
1251
- "type": "Record<string, unknown>"
1234
+ "type": "GeneralIconProps"
1252
1235
  },
1253
1236
  {
1254
- "name": "layout",
1255
- "description": "布局方式(默认 vertical 布局)",
1256
- "default": "vertical",
1257
- "type": "Layout"
1237
+ "name": "overMaxCountMode",
1238
+ "description": "超出最大上传数量时文件的保留方式",
1239
+ "default": "\"replace\"",
1240
+ "type": "\"ignore\" | \"replace\""
1258
1241
  },
1259
1242
  {
1260
- "name": "size",
1261
- "description": "表单组件尺寸",
1262
- "type": "ComponentSize"
1243
+ "name": "uploadDraggable",
1244
+ "description": "是否可以拖拽上传",
1245
+ "type": "boolean"
1263
1246
  },
1264
1247
  {
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"
1248
+ "name": "draggableUploadTip",
1249
+ "description": "拖拽上传的提示信息",
1250
+ "type": "string"
1270
1251
  },
1271
1252
  {
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"
1253
+ "name": "autoUpload",
1254
+ "description": "是否自动上传",
1255
+ "default": "false",
1256
+ "type": "boolean"
1277
1257
  },
1278
1258
  {
1279
- "name": "formStyle",
1280
- "attribute": false,
1281
- "type": "React.CSSProperties"
1259
+ "name": "url",
1260
+ "description": "自动上传的地址",
1261
+ "type": "string"
1282
1262
  },
1283
1263
  {
1284
- "name": "textContent",
1285
- "type": "string",
1286
- "description": "文本内容"
1264
+ "name": "method",
1265
+ "description": "自动上传的方法",
1266
+ "default": "\"POST\"",
1267
+ "type": "string"
1268
+ },
1269
+ {
1270
+ "name": "uploadName",
1271
+ "description": "自动上传的文件参数名",
1272
+ "default": "\"file\"",
1273
+ "type": "string"
1287
1274
  }
1288
1275
  ],
1289
1276
  "events": [
1290
1277
  {
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": "表单验证报错时触发事件",
1278
+ "name": "change",
1279
+ "description": "值变化时触发",
1308
1280
  "detail": {
1309
- "type": "(MessageBody & { name: string })[]"
1281
+ "type": "FileData[]"
1310
1282
  }
1311
1283
  }
1312
1284
  ],
1313
- "slots": [
1314
- {
1315
- "name": null,
1316
- "description": "表单内容"
1317
- }
1285
+ "slots": [],
1286
+ "methods": [],
1287
+ "parts": [],
1288
+ "description": "上传文件",
1289
+ "category": "form-input-basic"
1290
+ },
1291
+ {
1292
+ "name": "eo-icon-select",
1293
+ "alias": [
1294
+ "form.icon-select"
1318
1295
  ],
1319
- "methods": [
1296
+ "properties": [
1320
1297
  {
1321
- "name": "validate",
1322
- "params": [],
1323
- "description": "表单校验方法",
1324
- "returns": {
1325
- "type": "boolean | Record<string, unknown>"
1326
- }
1298
+ "name": "name",
1299
+ "description": "字段名称",
1300
+ "type": "string"
1327
1301
  },
1328
1302
  {
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": {}
1303
+ "name": "label",
1304
+ "description": "字段说明",
1305
+ "type": "string"
1342
1306
  },
1343
1307
  {
1344
- "name": "resetFields",
1345
- "params": [
1346
- {
1347
- "name": "name",
1348
- "type": "string"
1349
- }
1350
- ],
1351
- "description": "表单重置值方法",
1352
- "returns": {}
1308
+ "name": "value",
1309
+ "description": "值",
1310
+ "attribute": false,
1311
+ "type": "Icon"
1353
1312
  },
1354
1313
  {
1355
- "name": "getFieldsValue",
1356
- "params": [
1357
- {
1358
- "name": "name",
1359
- "type": "string"
1360
- }
1361
- ],
1362
- "description": "获取表单值方法",
1363
- "returns": {}
1314
+ "name": "disabled",
1315
+ "description": "是否禁用",
1316
+ "type": "boolean"
1317
+ },
1318
+ {
1319
+ "name": "required",
1320
+ "description": "是否必填",
1321
+ "type": "boolean"
1364
1322
  },
1365
1323
  {
1366
- "name": "validateField",
1367
- "params": [
1368
- {
1369
- "name": "name",
1370
- "type": "string"
1371
- }
1372
- ],
1373
- "description": "校验表单字段方法",
1374
- "returns": {}
1375
- },
1324
+ "name": "message",
1325
+ "description": "是否必填",
1326
+ "attribute": false,
1327
+ "type": "Record<string, string>"
1328
+ }
1329
+ ],
1330
+ "events": [
1376
1331
  {
1377
- "name": "resetValidateState",
1378
- "params": [],
1379
- "description": "重置表单校验状态方法",
1380
- "returns": {}
1332
+ "name": "change",
1333
+ "description": "值变化时触发",
1334
+ "detail": {
1335
+ "type": "Icon | undefined"
1336
+ }
1381
1337
  }
1382
1338
  ],
1339
+ "slots": [],
1340
+ "methods": [],
1383
1341
  "parts": [],
1384
- "description": "表单构件",
1342
+ "description": "图标选择构件",
1385
1343
  "category": "form-input-basic"
1386
1344
  },
1387
1345
  {
1388
- "name": "eo-input",
1346
+ "name": "eo-upload-image",
1389
1347
  "alias": [
1390
- "form.general-input"
1348
+ "form.upload-image"
1391
1349
  ],
1392
1350
  "properties": [
1393
1351
  {
@@ -1397,38 +1355,68 @@
1397
1355
  },
1398
1356
  {
1399
1357
  "name": "label",
1400
- "description": "标签文字",
1358
+ "description": "字段说明",
1401
1359
  "type": "string"
1402
1360
  },
1403
1361
  {
1404
- "name": "required",
1405
- "description": "是否必填",
1406
- "type": "boolean"
1362
+ "name": "value",
1363
+ "description": "",
1364
+ "attribute": false,
1365
+ "type": "ImageData[]"
1407
1366
  },
1408
1367
  {
1409
- "name": "pattern",
1410
- "description": "正则校验规则",
1368
+ "name": "bucketName",
1369
+ "description": "对象存储桶名字",
1411
1370
  "type": "string"
1412
1371
  },
1413
1372
  {
1414
- "name": "max",
1415
- "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1373
+ "name": "maxCount",
1374
+ "description": "最大上传数量",
1416
1375
  "type": "number"
1417
1376
  },
1418
1377
  {
1419
- "name": "min",
1420
- "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1378
+ "name": "multiple",
1379
+ "description": "是否支持选定的多张图片",
1380
+ "type": "boolean"
1381
+ },
1382
+ {
1383
+ "name": "limitSize",
1384
+ "description": "上传大小限制(单位为 MB)",
1421
1385
  "type": "number"
1422
1386
  },
1387
+ {
1388
+ "name": "required",
1389
+ "description": "是否必填",
1390
+ "type": "boolean"
1391
+ },
1423
1392
  {
1424
1393
  "name": "message",
1425
- "description": "错误时显示消息",
1394
+ "description": "校验文本信息",
1426
1395
  "attribute": false,
1427
1396
  "type": "Record<string, string>"
1428
- },
1397
+ }
1398
+ ],
1399
+ "events": [
1429
1400
  {
1430
- "name": "value",
1431
- "description": "输入框值",
1401
+ "name": "change",
1402
+ "description": "值变化时触发",
1403
+ "detail": {
1404
+ "type": "ImageData[]"
1405
+ }
1406
+ }
1407
+ ],
1408
+ "slots": [],
1409
+ "methods": [],
1410
+ "parts": [],
1411
+ "description": "上传图片构件",
1412
+ "category": "form-input-basic"
1413
+ },
1414
+ {
1415
+ "name": "eo-auto-complete",
1416
+ "properties": [
1417
+ {
1418
+ "name": "name",
1419
+ "description": "字段名称",
1432
1420
  "type": "string"
1433
1421
  },
1434
1422
  {
@@ -1437,58 +1425,58 @@
1437
1425
  "type": "string"
1438
1426
  },
1439
1427
  {
1440
- "name": "disabled",
1441
- "description": "是否禁用",
1442
- "type": "boolean"
1428
+ "name": "label",
1429
+ "description": "字段文本",
1430
+ "type": "string"
1443
1431
  },
1444
1432
  {
1445
- "name": "readonly",
1446
- "description": "是否只读",
1447
- "type": "boolean"
1433
+ "name": "inputStyle",
1434
+ "description": "输入框样式",
1435
+ "attribute": false,
1436
+ "type": "React.CSSProperties"
1448
1437
  },
1449
1438
  {
1450
- "name": "clearable",
1451
- "description": "是否显示清除按钮",
1439
+ "name": "disabled",
1440
+ "description": "是否禁用",
1452
1441
  "type": "boolean"
1453
1442
  },
1454
1443
  {
1455
- "name": "autoFocus",
1456
- "description": "是否自动聚焦",
1444
+ "name": "required",
1445
+ "description": "是否必填",
1457
1446
  "type": "boolean"
1458
1447
  },
1459
1448
  {
1460
- "name": "type",
1461
- "description": "类型",
1462
- "default": "\"text\"",
1463
- "type": "InputType"
1449
+ "name": "value",
1450
+ "type": "string"
1464
1451
  },
1465
1452
  {
1466
- "name": "size",
1467
- "description": "大小",
1468
- "default": "\"medium\"",
1469
- "type": "ComponentSize"
1453
+ "name": "options",
1454
+ "description": "选项列表",
1455
+ "required": true,
1456
+ "attribute": false,
1457
+ "type": "string[] | OptionType[]"
1470
1458
  },
1471
1459
  {
1472
- "name": "minLength",
1473
- "description": "最小长度",
1474
- "type": "number"
1460
+ "name": "filterByCaption",
1461
+ "description": "搜索时是否根据caption过滤options",
1462
+ "type": "boolean"
1475
1463
  },
1476
1464
  {
1477
- "name": "maxLength",
1478
- "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1479
- "type": "number"
1465
+ "name": "validator",
1466
+ "description": "表单项校验方法",
1467
+ "attribute": false,
1468
+ "type": "((value: any) => MessageBody)"
1480
1469
  },
1481
1470
  {
1482
- "name": "inputStyle",
1483
- "description": "输入框样式",
1484
- "attribute": false,
1485
- "type": "React.CSSProperties"
1471
+ "name": "pattern",
1472
+ "description": "正则校验规则",
1473
+ "type": "string"
1486
1474
  },
1487
1475
  {
1488
- "name": "validator",
1489
- "description": "表单项校验方法",
1476
+ "name": "message",
1477
+ "description": "校验文本信息",
1490
1478
  "attribute": false,
1491
- "type": "((value: any) => MessageBody)"
1479
+ "type": "Record<string, string>"
1492
1480
  }
1493
1481
  ],
1494
1482
  "events": [
@@ -1500,73 +1488,85 @@
1500
1488
  }
1501
1489
  }
1502
1490
  ],
1503
- "slots": [
1504
- {
1505
- "name": "addonBefore",
1506
- "description": "输入框前置标签"
1507
- },
1491
+ "slots": [],
1492
+ "methods": [],
1493
+ "parts": [],
1494
+ "description": "带候选项的输入框",
1495
+ "category": "form-input-basic"
1496
+ },
1497
+ {
1498
+ "name": "eo-time-picker",
1499
+ "properties": [
1508
1500
  {
1509
- "name": "addonAfter",
1510
- "description": "输入框后置标签"
1501
+ "name": "name",
1502
+ "description": "时间选择器字段名",
1503
+ "type": "string"
1511
1504
  },
1512
1505
  {
1513
- "name": "prefix",
1514
- "description": "输入框前缀图标"
1506
+ "name": "label",
1507
+ "description": "时间选择器说明",
1508
+ "type": "string"
1515
1509
  },
1516
1510
  {
1517
- "name": "suffix",
1518
- "description": "输入框后缀图标"
1519
- }
1520
- ],
1521
- "methods": [
1522
- {
1523
- "name": "focusInput",
1524
- "params": [],
1525
- "description": "focus",
1526
- "returns": {}
1511
+ "name": "value",
1512
+ "description": "时间选择器的初始值",
1513
+ "type": "string"
1527
1514
  },
1528
1515
  {
1529
- "name": "blurInput",
1530
- "params": [],
1531
- "description": "blur",
1532
- "returns": {}
1533
- }
1534
- ],
1535
- "parts": [
1536
- {
1537
- "name": "addon-wrapper",
1538
- "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1516
+ "name": "placeholder",
1517
+ "description": "时间选择器占位说明",
1518
+ "type": "string"
1539
1519
  },
1540
1520
  {
1541
- "name": "affix-wrapper",
1542
- "description": "包裹输入组件、前缀和后缀的容器"
1521
+ "name": "message",
1522
+ "description": "校验文本信息",
1523
+ "attribute": false,
1524
+ "type": "Record<string, string>"
1543
1525
  },
1544
1526
  {
1545
- "name": "input",
1546
- "description": "输入组件"
1527
+ "name": "disabled",
1528
+ "description": "是否禁用",
1529
+ "type": "boolean"
1547
1530
  },
1548
1531
  {
1549
- "name": "clear-icon",
1550
- "description": "清除按钮"
1532
+ "name": "required",
1533
+ "description": "是否必填",
1534
+ "type": "boolean"
1551
1535
  },
1552
1536
  {
1553
- "name": "prefix",
1554
- "description": "输入框前缀容器"
1555
- },
1537
+ "name": "configProps",
1538
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1539
+ "attribute": false,
1540
+ "type": "Partial<TimePickerProps>"
1541
+ }
1542
+ ],
1543
+ "events": [
1556
1544
  {
1557
- "name": "suffix",
1558
- "description": "输入框后缀容器"
1545
+ "name": "change",
1546
+ "description": "时间变化时触发",
1547
+ "detail": {
1548
+ "type": "string"
1549
+ }
1559
1550
  },
1560
1551
  {
1561
- "name": "before-addon",
1562
- "description": "输入框前置容器"
1552
+ "name": "open",
1553
+ "description": "面板打开时触发, 传出当前时间值",
1554
+ "detail": {
1555
+ "type": "string"
1556
+ }
1563
1557
  },
1564
1558
  {
1565
- "name": "after-addon",
1566
- "description": "输入框后置容器"
1559
+ "name": "close",
1560
+ "description": "面板关闭时触发,传出当前时间值",
1561
+ "detail": {
1562
+ "type": "string"
1563
+ }
1567
1564
  }
1568
1565
  ],
1569
- "description": "通用输入框构件",
1566
+ "slots": [],
1567
+ "methods": [],
1568
+ "parts": [],
1569
+ "description": "时间选择器",
1570
1570
  "category": "form-input-basic"
1571
1571
  },
1572
1572
  {