@next-bricks/form 1.9.12 → 1.9.13
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.
- package/dist/bricks.json +23 -23
- package/dist/chunks/1045.246ae518.js +2 -0
- package/dist/chunks/1045.246ae518.js.map +1 -0
- package/dist/chunks/{114.8692fae2.js → 114.61ba5b50.js} +2 -2
- package/dist/chunks/{114.8692fae2.js.map → 114.61ba5b50.js.map} +1 -1
- package/dist/chunks/{1269.3eb7df89.js → 1269.07721a52.js} +2 -2
- package/dist/chunks/{1269.3eb7df89.js.map → 1269.07721a52.js.map} +1 -1
- package/dist/chunks/{1889.df57ce6f.js → 1889.004f20a1.js} +2 -2
- package/dist/chunks/{1889.df57ce6f.js.map → 1889.004f20a1.js.map} +1 -1
- package/dist/chunks/3426.9055d899.js +2 -0
- package/dist/chunks/3426.9055d899.js.map +1 -0
- package/dist/chunks/{7115.a437ff2a.js → 7115.dcf0df96.js} +2 -2
- package/dist/chunks/{7115.a437ff2a.js.map → 7115.dcf0df96.js.map} +1 -1
- package/dist/chunks/{7733.49b773d6.js → 7733.a022f226.js} +2 -2
- package/dist/chunks/{7733.49b773d6.js.map → 7733.a022f226.js.map} +1 -1
- package/dist/chunks/{818.44f4a1f8.js → 818.0e60c75d.js} +3 -3
- package/dist/chunks/{818.44f4a1f8.js.map → 818.0e60c75d.js.map} +1 -1
- package/dist/chunks/9259.4313ee3f.js +3 -0
- package/dist/chunks/{9259.f789387c.js.map → 9259.4313ee3f.js.map} +1 -1
- package/dist/chunks/{9496.02c228ff.js → 9496.d3408683.js} +2 -2
- package/dist/chunks/{9496.02c228ff.js.map → 9496.d3408683.js.map} +1 -1
- package/dist/chunks/eo-auto-complete.6db6aca5.js +3 -0
- package/dist/chunks/{eo-auto-complete.5e6c61c8.js.map → eo-auto-complete.6db6aca5.js.map} +1 -1
- package/dist/chunks/eo-checkbox.6e4de7f0.js +2 -0
- package/dist/chunks/{eo-checkbox.af58e804.js.map → eo-checkbox.6e4de7f0.js.map} +1 -1
- package/dist/chunks/eo-color-picker.cdb362a7.js +2 -0
- package/dist/chunks/{eo-color-picker.5c3dce6b.js.map → eo-color-picker.cdb362a7.js.map} +1 -1
- package/dist/chunks/eo-date-picker.9361e87a.js +2 -0
- package/dist/chunks/{eo-date-picker.5e68a357.js.map → eo-date-picker.9361e87a.js.map} +1 -1
- package/dist/chunks/eo-dynamic-form-item.c2783b20.js +3 -0
- package/dist/chunks/{eo-dynamic-form-item.8d3281ed.js.map → eo-dynamic-form-item.c2783b20.js.map} +1 -1
- package/dist/chunks/{eo-form-item.8f6b3ad7.js → eo-form-item.d1189f7c.js} +3 -3
- package/dist/chunks/{eo-form-item.8f6b3ad7.js.map → eo-form-item.d1189f7c.js.map} +1 -1
- package/dist/chunks/eo-form.f1683fe8.js +2 -0
- package/dist/chunks/{eo-form.4ff09a23.js.map → eo-form.f1683fe8.js.map} +1 -1
- package/dist/chunks/eo-icon-select.ce687969.js +3 -0
- package/dist/chunks/{eo-icon-select.4d714910.js.map → eo-icon-select.ce687969.js.map} +1 -1
- package/dist/chunks/eo-input.6fb8e34e.js +3 -0
- package/dist/chunks/{eo-input.7a21a8bf.js.map → eo-input.6fb8e34e.js.map} +1 -1
- package/dist/chunks/eo-radio.9a162d3d.js +3 -0
- package/dist/chunks/{eo-radio.8cb630e8.js.map → eo-radio.9a162d3d.js.map} +1 -1
- package/dist/chunks/eo-search.12bbc094.js +2 -0
- package/dist/chunks/{eo-search.40491e27.js.map → eo-search.12bbc094.js.map} +1 -1
- package/dist/chunks/eo-select.729ec0cc.js +3 -0
- package/dist/chunks/{eo-select.e02eae32.js.map → eo-select.729ec0cc.js.map} +1 -1
- package/dist/chunks/eo-submit-buttons.30eaa10f.js +2 -0
- package/dist/chunks/{eo-submit-buttons.a14f9dcb.js.map → eo-submit-buttons.30eaa10f.js.map} +1 -1
- package/dist/chunks/eo-switch.5326b853.js +3 -0
- package/dist/chunks/{eo-switch.8818d6ac.js.map → eo-switch.5326b853.js.map} +1 -1
- package/dist/chunks/eo-textarea.70f5d4cf.js +3 -0
- package/dist/chunks/{eo-textarea.06fe9731.js.map → eo-textarea.70f5d4cf.js.map} +1 -1
- package/dist/chunks/eo-time-picker.846a5acc.js +2 -0
- package/dist/chunks/{eo-time-picker.46eeff9d.js.map → eo-time-picker.846a5acc.js.map} +1 -1
- package/dist/chunks/eo-time-range-picker.9062f507.js +2 -0
- package/dist/chunks/{eo-time-range-picker.e00968c4.js.map → eo-time-range-picker.9062f507.js.map} +1 -1
- package/dist/chunks/eo-upload-file.065dde0e.js +3 -0
- package/dist/chunks/{eo-upload-file.340b9a4c.js.map → eo-upload-file.065dde0e.js.map} +1 -1
- package/dist/chunks/eo-upload-image.ec21b2fc.js +3 -0
- package/dist/chunks/{eo-upload-image.be6506c5.js.map → eo-upload-image.ec21b2fc.js.map} +1 -1
- package/dist/chunks/main.873d1f86.js +2 -0
- package/dist/chunks/{main.4ad0fd74.js.map → main.873d1f86.js.map} +1 -1
- package/dist/examples.json +8 -8
- package/dist/index.ea71571d.js +2 -0
- package/dist/index.ea71571d.js.map +1 -0
- package/dist/manifest.json +359 -359
- package/dist/types.json +847 -847
- package/package.json +2 -2
- package/dist/chunks/1045.b1bc5ba1.js +0 -2
- package/dist/chunks/1045.b1bc5ba1.js.map +0 -1
- package/dist/chunks/3426.cf27e18e.js +0 -2
- package/dist/chunks/3426.cf27e18e.js.map +0 -1
- package/dist/chunks/9259.f789387c.js +0 -3
- package/dist/chunks/eo-auto-complete.5e6c61c8.js +0 -3
- package/dist/chunks/eo-checkbox.af58e804.js +0 -2
- package/dist/chunks/eo-color-picker.5c3dce6b.js +0 -2
- package/dist/chunks/eo-date-picker.5e68a357.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.8d3281ed.js +0 -3
- package/dist/chunks/eo-form.4ff09a23.js +0 -2
- package/dist/chunks/eo-icon-select.4d714910.js +0 -3
- package/dist/chunks/eo-input.7a21a8bf.js +0 -3
- package/dist/chunks/eo-radio.8cb630e8.js +0 -3
- package/dist/chunks/eo-search.40491e27.js +0 -2
- package/dist/chunks/eo-select.e02eae32.js +0 -3
- package/dist/chunks/eo-submit-buttons.a14f9dcb.js +0 -2
- package/dist/chunks/eo-switch.8818d6ac.js +0 -3
- package/dist/chunks/eo-textarea.06fe9731.js +0 -3
- package/dist/chunks/eo-time-picker.46eeff9d.js +0 -2
- package/dist/chunks/eo-time-range-picker.e00968c4.js +0 -2
- package/dist/chunks/eo-upload-file.340b9a4c.js +0 -3
- package/dist/chunks/eo-upload-image.be6506c5.js +0 -3
- package/dist/chunks/main.4ad0fd74.js +0 -2
- package/dist/index.ed713f1f.js +0 -2
- package/dist/index.ed713f1f.js.map +0 -1
- /package/dist/chunks/{818.44f4a1f8.js.LICENSE.txt → 818.0e60c75d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.f789387c.js.LICENSE.txt → 9259.4313ee3f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.5e6c61c8.js.LICENSE.txt → eo-auto-complete.6db6aca5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.8d3281ed.js.LICENSE.txt → eo-dynamic-form-item.c2783b20.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.8f6b3ad7.js.LICENSE.txt → eo-form-item.d1189f7c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.4d714910.js.LICENSE.txt → eo-icon-select.ce687969.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.7a21a8bf.js.LICENSE.txt → eo-input.6fb8e34e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.8cb630e8.js.LICENSE.txt → eo-radio.9a162d3d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.e02eae32.js.LICENSE.txt → eo-select.729ec0cc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.8818d6ac.js.LICENSE.txt → eo-switch.5326b853.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.06fe9731.js.LICENSE.txt → eo-textarea.70f5d4cf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.340b9a4c.js.LICENSE.txt → eo-upload-file.065dde0e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.be6506c5.js.LICENSE.txt → eo-upload-image.ec21b2fc.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,237 +189,101 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-radio",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-radio"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
|
-
{
|
|
198
|
-
"name": "formElement",
|
|
199
|
-
"attribute": false,
|
|
200
|
-
"type": "Form"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "curElement",
|
|
204
|
-
"attribute": false,
|
|
205
|
-
"type": "HTMLElement"
|
|
206
|
-
},
|
|
207
197
|
{
|
|
208
198
|
"name": "name",
|
|
209
|
-
"description": "
|
|
199
|
+
"description": "下拉框字段名",
|
|
210
200
|
"type": "string"
|
|
211
201
|
},
|
|
212
202
|
{
|
|
213
203
|
"name": "label",
|
|
204
|
+
"description": "单选框字段说明",
|
|
214
205
|
"type": "string"
|
|
215
206
|
},
|
|
216
207
|
{
|
|
217
|
-
"name": "
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
{
|
|
221
|
-
"name": "message",
|
|
208
|
+
"name": "options",
|
|
209
|
+
"description": "单选框选项表",
|
|
210
|
+
"required": true,
|
|
222
211
|
"attribute": false,
|
|
223
|
-
"type": "
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "max",
|
|
227
|
-
"type": "number"
|
|
212
|
+
"type": "GeneralOption[]"
|
|
228
213
|
},
|
|
229
214
|
{
|
|
230
|
-
"name": "
|
|
231
|
-
"
|
|
215
|
+
"name": "value",
|
|
216
|
+
"description": "单选框当前选中始值",
|
|
217
|
+
"attribute": false,
|
|
218
|
+
"type": "any"
|
|
232
219
|
},
|
|
233
220
|
{
|
|
234
221
|
"name": "required",
|
|
235
|
-
"description": "
|
|
222
|
+
"description": "是否必填",
|
|
236
223
|
"type": "boolean"
|
|
237
224
|
},
|
|
238
225
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"description": "
|
|
241
|
-
"type": "string"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "valuePropsName",
|
|
245
|
-
"type": "string"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "layout",
|
|
249
|
-
"type": "Layout"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "size",
|
|
253
|
-
"type": "ComponentSize"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "trim",
|
|
257
|
-
"description": "是否自动去除前后的空白字符",
|
|
258
|
-
"default": "true"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "trigger",
|
|
262
|
-
"description": "事件触发方法名",
|
|
263
|
-
"type": "string"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "validator",
|
|
267
|
-
"description": "表单项校验方法",
|
|
226
|
+
"name": "message",
|
|
227
|
+
"description": "校验文本信息",
|
|
268
228
|
"attribute": false,
|
|
269
|
-
"type": "
|
|
229
|
+
"type": "Record<string, string>"
|
|
270
230
|
},
|
|
271
231
|
{
|
|
272
|
-
"name": "
|
|
273
|
-
"description": "
|
|
232
|
+
"name": "disabled",
|
|
233
|
+
"description": "是否禁用",
|
|
274
234
|
"type": "boolean"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"events": [],
|
|
278
|
-
"slots": [
|
|
235
|
+
},
|
|
279
236
|
{
|
|
280
|
-
"name":
|
|
281
|
-
"description": "
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"parts": [],
|
|
286
|
-
"description": "通用输入框构件",
|
|
287
|
-
"category": "form-input-basic",
|
|
288
|
-
"insider": true
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "eo-form",
|
|
292
|
-
"alias": [
|
|
293
|
-
"form.general-form"
|
|
294
|
-
],
|
|
295
|
-
"properties": [
|
|
237
|
+
"name": "type",
|
|
238
|
+
"description": "单选框样式类型",
|
|
239
|
+
"default": "\"default\"",
|
|
240
|
+
"type": "RadioType"
|
|
241
|
+
},
|
|
296
242
|
{
|
|
297
|
-
"name": "
|
|
298
|
-
"description": "
|
|
299
|
-
"default": "
|
|
300
|
-
"type": "
|
|
243
|
+
"name": "ui",
|
|
244
|
+
"description": "UI样式",
|
|
245
|
+
"default": "\"default\"",
|
|
246
|
+
"type": "UIType"
|
|
301
247
|
},
|
|
302
248
|
{
|
|
303
249
|
"name": "size",
|
|
304
|
-
"description": "
|
|
250
|
+
"description": "大小,只对按钮样式生效",
|
|
251
|
+
"default": "\"medium\"",
|
|
305
252
|
"type": "ComponentSize"
|
|
306
253
|
},
|
|
307
254
|
{
|
|
308
|
-
"name": "
|
|
309
|
-
"description": "
|
|
310
|
-
"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 }",
|
|
311
|
-
"attribute": false,
|
|
312
|
-
"type": "ColProps"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "wrapperCol",
|
|
316
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
317
|
-
"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 }",
|
|
255
|
+
"name": "customStyle",
|
|
256
|
+
"description": "自定义radio的外层样式",
|
|
318
257
|
"attribute": false,
|
|
319
|
-
"type": "
|
|
258
|
+
"type": "React.CSSProperties"
|
|
320
259
|
},
|
|
321
260
|
{
|
|
322
|
-
"name": "
|
|
261
|
+
"name": "useBrick",
|
|
262
|
+
"description": "自定义radio的内容",
|
|
323
263
|
"attribute": false,
|
|
324
|
-
"type": "
|
|
264
|
+
"type": "UseSingleBrickConf"
|
|
325
265
|
}
|
|
326
266
|
],
|
|
327
267
|
"events": [
|
|
328
268
|
{
|
|
329
|
-
"name": "
|
|
330
|
-
"description": "
|
|
331
|
-
"detail": {
|
|
332
|
-
"description": null,
|
|
333
|
-
"type": "Record<string, unknown>"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"name": "validate.success",
|
|
338
|
-
"description": "表单验证成功时触发事件",
|
|
269
|
+
"name": "change",
|
|
270
|
+
"description": "值变化事件",
|
|
339
271
|
"detail": {
|
|
340
|
-
"type": "
|
|
272
|
+
"type": "GeneralComplexOption | undefined"
|
|
341
273
|
}
|
|
342
274
|
},
|
|
343
275
|
{
|
|
344
|
-
"name": "
|
|
345
|
-
"description": "
|
|
276
|
+
"name": "options.change",
|
|
277
|
+
"description": "选项列表变化事件",
|
|
346
278
|
"detail": {
|
|
347
|
-
"type": "
|
|
279
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
348
280
|
}
|
|
349
281
|
}
|
|
350
282
|
],
|
|
351
|
-
"slots": [
|
|
352
|
-
|
|
353
|
-
"name": null,
|
|
354
|
-
"description": "表单内容"
|
|
355
|
-
}
|
|
356
|
-
],
|
|
357
|
-
"methods": [
|
|
358
|
-
{
|
|
359
|
-
"name": "validate",
|
|
360
|
-
"params": [],
|
|
361
|
-
"description": "表单校验方法",
|
|
362
|
-
"returns": {
|
|
363
|
-
"type": "boolean | Record<string, unknown>"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"name": "setInitValue",
|
|
368
|
-
"params": [
|
|
369
|
-
{
|
|
370
|
-
"name": "values",
|
|
371
|
-
"type": "Record<string, unknown>"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "options",
|
|
375
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
"description": "表单设置值方法",
|
|
379
|
-
"returns": {}
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"name": "resetFields",
|
|
383
|
-
"params": [
|
|
384
|
-
{
|
|
385
|
-
"name": "name",
|
|
386
|
-
"type": "string"
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
"description": "表单重置值方法",
|
|
390
|
-
"returns": {}
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"name": "getFieldsValue",
|
|
394
|
-
"params": [
|
|
395
|
-
{
|
|
396
|
-
"name": "name",
|
|
397
|
-
"type": "string"
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
|
-
"description": "获取表单值方法",
|
|
401
|
-
"returns": {}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "validateField",
|
|
405
|
-
"params": [
|
|
406
|
-
{
|
|
407
|
-
"name": "name",
|
|
408
|
-
"type": "string"
|
|
409
|
-
}
|
|
410
|
-
],
|
|
411
|
-
"description": "校验表单字段方法",
|
|
412
|
-
"returns": {}
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"name": "resetValidateState",
|
|
416
|
-
"params": [],
|
|
417
|
-
"description": "重置表单校验状态方法",
|
|
418
|
-
"returns": {}
|
|
419
|
-
}
|
|
420
|
-
],
|
|
283
|
+
"slots": [],
|
|
284
|
+
"methods": [],
|
|
421
285
|
"parts": [],
|
|
422
|
-
"description": "
|
|
286
|
+
"description": "通用单选构件",
|
|
423
287
|
"category": "form-input-basic"
|
|
424
288
|
},
|
|
425
289
|
{
|
|
@@ -564,6 +428,105 @@
|
|
|
564
428
|
"description": "通用下拉选择构件",
|
|
565
429
|
"category": "form-input-basic"
|
|
566
430
|
},
|
|
431
|
+
{
|
|
432
|
+
"name": "eo-form-item",
|
|
433
|
+
"alias": [
|
|
434
|
+
"form.general-form-item"
|
|
435
|
+
],
|
|
436
|
+
"properties": [
|
|
437
|
+
{
|
|
438
|
+
"name": "formElement",
|
|
439
|
+
"attribute": false,
|
|
440
|
+
"type": "Form"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "curElement",
|
|
444
|
+
"attribute": false,
|
|
445
|
+
"type": "HTMLElement"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "name",
|
|
449
|
+
"description": "字段名称",
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "label",
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "pattern",
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "message",
|
|
462
|
+
"attribute": false,
|
|
463
|
+
"type": "Record<string, string>"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "max",
|
|
467
|
+
"type": "number"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "min",
|
|
471
|
+
"type": "number"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "required",
|
|
475
|
+
"description": "表单项是否必填",
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "value",
|
|
480
|
+
"description": "初始值",
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "valuePropsName",
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "layout",
|
|
489
|
+
"type": "Layout"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "size",
|
|
493
|
+
"type": "ComponentSize"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "trim",
|
|
497
|
+
"description": "是否自动去除前后的空白字符",
|
|
498
|
+
"default": "true"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "trigger",
|
|
502
|
+
"description": "事件触发方法名",
|
|
503
|
+
"type": "string"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "validator",
|
|
507
|
+
"description": "表单项校验方法",
|
|
508
|
+
"attribute": false,
|
|
509
|
+
"type": "((value: any) => MessageBody)"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "needValidate",
|
|
513
|
+
"description": "值变化时是否主动出发校验",
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"events": [],
|
|
518
|
+
"slots": [
|
|
519
|
+
{
|
|
520
|
+
"name": null,
|
|
521
|
+
"description": "表单项内容"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"methods": [],
|
|
525
|
+
"parts": [],
|
|
526
|
+
"description": "通用输入框构件",
|
|
527
|
+
"category": "form-input-basic",
|
|
528
|
+
"insider": true
|
|
529
|
+
},
|
|
567
530
|
{
|
|
568
531
|
"name": "eo-submit-buttons",
|
|
569
532
|
"alias": [
|
|
@@ -625,9 +588,9 @@
|
|
|
625
588
|
"category": "form-input-basic"
|
|
626
589
|
},
|
|
627
590
|
{
|
|
628
|
-
"name": "eo-
|
|
591
|
+
"name": "eo-checkbox",
|
|
629
592
|
"alias": [
|
|
630
|
-
"form.general-
|
|
593
|
+
"form.general-checkbox"
|
|
631
594
|
],
|
|
632
595
|
"properties": [
|
|
633
596
|
{
|
|
@@ -637,18 +600,28 @@
|
|
|
637
600
|
},
|
|
638
601
|
{
|
|
639
602
|
"name": "label",
|
|
640
|
-
"description": "
|
|
603
|
+
"description": "字段说明",
|
|
641
604
|
"type": "string"
|
|
642
605
|
},
|
|
643
606
|
{
|
|
644
607
|
"name": "value",
|
|
645
608
|
"description": "值",
|
|
646
|
-
"
|
|
609
|
+
"attribute": false,
|
|
610
|
+
"type": "CheckboxValueType[]"
|
|
647
611
|
},
|
|
648
612
|
{
|
|
649
|
-
"name": "
|
|
650
|
-
"description": "
|
|
651
|
-
"
|
|
613
|
+
"name": "options",
|
|
614
|
+
"description": "多选框选项表",
|
|
615
|
+
"required": true,
|
|
616
|
+
"default": "[]",
|
|
617
|
+
"attribute": false,
|
|
618
|
+
"type": "CheckboxOptionType[]"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "type",
|
|
622
|
+
"description": "类型",
|
|
623
|
+
"default": "\"default\"",
|
|
624
|
+
"type": "CheckboxType"
|
|
652
625
|
},
|
|
653
626
|
{
|
|
654
627
|
"name": "disabled",
|
|
@@ -656,69 +629,60 @@
|
|
|
656
629
|
"type": "boolean"
|
|
657
630
|
},
|
|
658
631
|
{
|
|
659
|
-
"name": "
|
|
660
|
-
"description": "
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
{
|
|
664
|
-
"name": "maxLength",
|
|
665
|
-
"description": "最大长度",
|
|
666
|
-
"type": "number"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"name": "autoSize",
|
|
670
|
-
"description": "大小自适应",
|
|
671
|
-
"attribute": false,
|
|
672
|
-
"type": "AutoSize"
|
|
632
|
+
"name": "isCustom",
|
|
633
|
+
"description": "是否为自定义",
|
|
634
|
+
"default": "false",
|
|
635
|
+
"type": "boolean"
|
|
673
636
|
},
|
|
674
637
|
{
|
|
675
638
|
"name": "required",
|
|
676
639
|
"description": "是否必填",
|
|
677
640
|
"type": "boolean"
|
|
678
641
|
},
|
|
679
|
-
{
|
|
680
|
-
"name": "max",
|
|
681
|
-
"description": "表单校验最大长度",
|
|
682
|
-
"type": "number"
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
"name": "min",
|
|
686
|
-
"description": "表单校验最小长度",
|
|
687
|
-
"type": "number"
|
|
688
|
-
},
|
|
689
642
|
{
|
|
690
643
|
"name": "message",
|
|
691
|
-
"description": "
|
|
644
|
+
"description": "校验文本",
|
|
692
645
|
"attribute": false,
|
|
693
646
|
"type": "Record<string, string>"
|
|
694
647
|
},
|
|
695
648
|
{
|
|
696
|
-
"name": "
|
|
697
|
-
"description": "
|
|
649
|
+
"name": "isGroup",
|
|
650
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
651
|
+
"type": "boolean"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "optionGroups",
|
|
655
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
698
656
|
"attribute": false,
|
|
699
|
-
"type": "
|
|
657
|
+
"type": "OptionGroup[]"
|
|
700
658
|
}
|
|
701
659
|
],
|
|
702
660
|
"events": [
|
|
703
661
|
{
|
|
704
662
|
"name": "change",
|
|
705
|
-
"description": "",
|
|
663
|
+
"description": "复选框变化事件",
|
|
706
664
|
"detail": {
|
|
707
|
-
"
|
|
708
|
-
|
|
665
|
+
"type": "CheckboxOptionType[]"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"name": "options.change",
|
|
670
|
+
"description": "复选框变化事件",
|
|
671
|
+
"detail": {
|
|
672
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
709
673
|
}
|
|
710
674
|
}
|
|
711
675
|
],
|
|
712
676
|
"slots": [],
|
|
713
677
|
"methods": [],
|
|
714
678
|
"parts": [],
|
|
715
|
-
"description": "
|
|
679
|
+
"description": "表单复选框构件",
|
|
716
680
|
"category": "form-input-basic"
|
|
717
681
|
},
|
|
718
682
|
{
|
|
719
|
-
"name": "eo-
|
|
683
|
+
"name": "eo-textarea",
|
|
720
684
|
"alias": [
|
|
721
|
-
"form.general-
|
|
685
|
+
"form.general-textarea"
|
|
722
686
|
],
|
|
723
687
|
"properties": [
|
|
724
688
|
{
|
|
@@ -728,28 +692,18 @@
|
|
|
728
692
|
},
|
|
729
693
|
{
|
|
730
694
|
"name": "label",
|
|
731
|
-
"description": "
|
|
695
|
+
"description": "标签文字",
|
|
732
696
|
"type": "string"
|
|
733
697
|
},
|
|
734
698
|
{
|
|
735
699
|
"name": "value",
|
|
736
700
|
"description": "值",
|
|
737
|
-
"
|
|
738
|
-
"type": "CheckboxValueType[]"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "options",
|
|
742
|
-
"description": "多选框选项表",
|
|
743
|
-
"required": true,
|
|
744
|
-
"default": "[]",
|
|
745
|
-
"attribute": false,
|
|
746
|
-
"type": "CheckboxOptionType[]"
|
|
701
|
+
"type": "string"
|
|
747
702
|
},
|
|
748
703
|
{
|
|
749
|
-
"name": "
|
|
750
|
-
"description": "
|
|
751
|
-
"
|
|
752
|
-
"type": "CheckboxType"
|
|
704
|
+
"name": "placeholder",
|
|
705
|
+
"description": "占位说明",
|
|
706
|
+
"type": "string"
|
|
753
707
|
},
|
|
754
708
|
{
|
|
755
709
|
"name": "disabled",
|
|
@@ -757,10 +711,20 @@
|
|
|
757
711
|
"type": "boolean"
|
|
758
712
|
},
|
|
759
713
|
{
|
|
760
|
-
"name": "
|
|
761
|
-
"description": "
|
|
762
|
-
"
|
|
763
|
-
|
|
714
|
+
"name": "minLength",
|
|
715
|
+
"description": "最小长度",
|
|
716
|
+
"type": "number"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "maxLength",
|
|
720
|
+
"description": "最大长度",
|
|
721
|
+
"type": "number"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "autoSize",
|
|
725
|
+
"description": "大小自适应",
|
|
726
|
+
"attribute": false,
|
|
727
|
+
"type": "AutoSize"
|
|
764
728
|
},
|
|
765
729
|
{
|
|
766
730
|
"name": "required",
|
|
@@ -768,43 +732,42 @@
|
|
|
768
732
|
"type": "boolean"
|
|
769
733
|
},
|
|
770
734
|
{
|
|
771
|
-
"name": "
|
|
772
|
-
"description": "
|
|
773
|
-
"
|
|
774
|
-
"type": "Record<string, string>"
|
|
735
|
+
"name": "max",
|
|
736
|
+
"description": "表单校验最大长度",
|
|
737
|
+
"type": "number"
|
|
775
738
|
},
|
|
776
739
|
{
|
|
777
|
-
"name": "
|
|
778
|
-
"description": "
|
|
779
|
-
"type": "
|
|
740
|
+
"name": "min",
|
|
741
|
+
"description": "表单校验最小长度",
|
|
742
|
+
"type": "number"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "message",
|
|
746
|
+
"description": "校验信息",
|
|
747
|
+
"attribute": false,
|
|
748
|
+
"type": "Record<string, string>"
|
|
780
749
|
},
|
|
781
750
|
{
|
|
782
|
-
"name": "
|
|
783
|
-
"description": "
|
|
751
|
+
"name": "textareaStyle",
|
|
752
|
+
"description": "自定义样式",
|
|
784
753
|
"attribute": false,
|
|
785
|
-
"type": "
|
|
754
|
+
"type": "React.CSSProperties"
|
|
786
755
|
}
|
|
787
756
|
],
|
|
788
757
|
"events": [
|
|
789
758
|
{
|
|
790
759
|
"name": "change",
|
|
791
|
-
"description": "
|
|
792
|
-
"detail": {
|
|
793
|
-
"type": "CheckboxOptionType[]"
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"name": "options.change",
|
|
798
|
-
"description": "复选框变化事件",
|
|
760
|
+
"description": "",
|
|
799
761
|
"detail": {
|
|
800
|
-
"
|
|
762
|
+
"description": null,
|
|
763
|
+
"type": "string"
|
|
801
764
|
}
|
|
802
765
|
}
|
|
803
766
|
],
|
|
804
767
|
"slots": [],
|
|
805
768
|
"methods": [],
|
|
806
769
|
"parts": [],
|
|
807
|
-
"description": "
|
|
770
|
+
"description": "通用多行文本输入框构件",
|
|
808
771
|
"category": "form-input-basic"
|
|
809
772
|
},
|
|
810
773
|
{
|
|
@@ -899,104 +862,6 @@
|
|
|
899
862
|
"description": "动态表单",
|
|
900
863
|
"category": "form-input-basic"
|
|
901
864
|
},
|
|
902
|
-
{
|
|
903
|
-
"name": "eo-radio",
|
|
904
|
-
"alias": [
|
|
905
|
-
"form.general-radio"
|
|
906
|
-
],
|
|
907
|
-
"properties": [
|
|
908
|
-
{
|
|
909
|
-
"name": "name",
|
|
910
|
-
"description": "下拉框字段名",
|
|
911
|
-
"type": "string"
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
"name": "label",
|
|
915
|
-
"description": "单选框字段说明",
|
|
916
|
-
"type": "string"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"name": "options",
|
|
920
|
-
"description": "单选框选项表",
|
|
921
|
-
"required": true,
|
|
922
|
-
"attribute": false,
|
|
923
|
-
"type": "GeneralOption[]"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
"name": "value",
|
|
927
|
-
"description": "单选框当前选中始值",
|
|
928
|
-
"attribute": false,
|
|
929
|
-
"type": "any"
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"name": "required",
|
|
933
|
-
"description": "是否必填",
|
|
934
|
-
"type": "boolean"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"name": "message",
|
|
938
|
-
"description": "校验文本信息",
|
|
939
|
-
"attribute": false,
|
|
940
|
-
"type": "Record<string, string>"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"name": "disabled",
|
|
944
|
-
"description": "是否禁用",
|
|
945
|
-
"type": "boolean"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"name": "type",
|
|
949
|
-
"description": "单选框样式类型",
|
|
950
|
-
"default": "\"default\"",
|
|
951
|
-
"type": "RadioType"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"name": "ui",
|
|
955
|
-
"description": "UI样式",
|
|
956
|
-
"default": "\"default\"",
|
|
957
|
-
"type": "UIType"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"name": "size",
|
|
961
|
-
"description": "大小,只对按钮样式生效",
|
|
962
|
-
"default": "\"medium\"",
|
|
963
|
-
"type": "ComponentSize"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "customStyle",
|
|
967
|
-
"description": "自定义radio的外层样式",
|
|
968
|
-
"attribute": false,
|
|
969
|
-
"type": "React.CSSProperties"
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
"name": "useBrick",
|
|
973
|
-
"description": "自定义radio的内容",
|
|
974
|
-
"attribute": false,
|
|
975
|
-
"type": "UseSingleBrickConf"
|
|
976
|
-
}
|
|
977
|
-
],
|
|
978
|
-
"events": [
|
|
979
|
-
{
|
|
980
|
-
"name": "change",
|
|
981
|
-
"description": "值变化事件",
|
|
982
|
-
"detail": {
|
|
983
|
-
"type": "GeneralComplexOption | undefined"
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"name": "options.change",
|
|
988
|
-
"description": "选项列表变化事件",
|
|
989
|
-
"detail": {
|
|
990
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
],
|
|
994
|
-
"slots": [],
|
|
995
|
-
"methods": [],
|
|
996
|
-
"parts": [],
|
|
997
|
-
"description": "通用单选构件",
|
|
998
|
-
"category": "form-input-basic"
|
|
999
|
-
},
|
|
1000
865
|
{
|
|
1001
866
|
"name": "eo-search",
|
|
1002
867
|
"alias": [
|
|
@@ -1112,6 +977,141 @@
|
|
|
1112
977
|
"description": "图标选择构件",
|
|
1113
978
|
"category": "form-input-basic"
|
|
1114
979
|
},
|
|
980
|
+
{
|
|
981
|
+
"name": "eo-form",
|
|
982
|
+
"alias": [
|
|
983
|
+
"form.general-form"
|
|
984
|
+
],
|
|
985
|
+
"properties": [
|
|
986
|
+
{
|
|
987
|
+
"name": "layout",
|
|
988
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
989
|
+
"default": "vertical",
|
|
990
|
+
"type": "Layout"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "size",
|
|
994
|
+
"description": "表单组件尺寸",
|
|
995
|
+
"type": "ComponentSize"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "labelCol",
|
|
999
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1000
|
+
"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 }",
|
|
1001
|
+
"attribute": false,
|
|
1002
|
+
"type": "ColProps"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "wrapperCol",
|
|
1006
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1007
|
+
"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 }",
|
|
1008
|
+
"attribute": false,
|
|
1009
|
+
"type": "ColProps"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "formStyle",
|
|
1013
|
+
"attribute": false,
|
|
1014
|
+
"type": "React.CSSProperties"
|
|
1015
|
+
}
|
|
1016
|
+
],
|
|
1017
|
+
"events": [
|
|
1018
|
+
{
|
|
1019
|
+
"name": "values.change",
|
|
1020
|
+
"description": "表单值变更事件",
|
|
1021
|
+
"detail": {
|
|
1022
|
+
"description": null,
|
|
1023
|
+
"type": "Record<string, unknown>"
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"name": "validate.success",
|
|
1028
|
+
"description": "表单验证成功时触发事件",
|
|
1029
|
+
"detail": {
|
|
1030
|
+
"type": "Record<string, unknown>"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "validate.error",
|
|
1035
|
+
"description": "表单验证报错时触发事件",
|
|
1036
|
+
"detail": {
|
|
1037
|
+
"type": "MessageBody[]"
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"slots": [
|
|
1042
|
+
{
|
|
1043
|
+
"name": null,
|
|
1044
|
+
"description": "表单内容"
|
|
1045
|
+
}
|
|
1046
|
+
],
|
|
1047
|
+
"methods": [
|
|
1048
|
+
{
|
|
1049
|
+
"name": "validate",
|
|
1050
|
+
"params": [],
|
|
1051
|
+
"description": "表单校验方法",
|
|
1052
|
+
"returns": {
|
|
1053
|
+
"type": "boolean | Record<string, unknown>"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "setInitValue",
|
|
1058
|
+
"params": [
|
|
1059
|
+
{
|
|
1060
|
+
"name": "values",
|
|
1061
|
+
"type": "Record<string, unknown>"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "options",
|
|
1065
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
"description": "表单设置值方法",
|
|
1069
|
+
"returns": {}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "resetFields",
|
|
1073
|
+
"params": [
|
|
1074
|
+
{
|
|
1075
|
+
"name": "name",
|
|
1076
|
+
"type": "string"
|
|
1077
|
+
}
|
|
1078
|
+
],
|
|
1079
|
+
"description": "表单重置值方法",
|
|
1080
|
+
"returns": {}
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "getFieldsValue",
|
|
1084
|
+
"params": [
|
|
1085
|
+
{
|
|
1086
|
+
"name": "name",
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"description": "获取表单值方法",
|
|
1091
|
+
"returns": {}
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "validateField",
|
|
1095
|
+
"params": [
|
|
1096
|
+
{
|
|
1097
|
+
"name": "name",
|
|
1098
|
+
"type": "string"
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
"description": "校验表单字段方法",
|
|
1102
|
+
"returns": {}
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"name": "resetValidateState",
|
|
1106
|
+
"params": [],
|
|
1107
|
+
"description": "重置表单校验状态方法",
|
|
1108
|
+
"returns": {}
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"parts": [],
|
|
1112
|
+
"description": "表单构件",
|
|
1113
|
+
"category": "form-input-basic"
|
|
1114
|
+
},
|
|
1115
1115
|
{
|
|
1116
1116
|
"name": "eo-upload-image",
|
|
1117
1117
|
"alias": [
|