@next-bricks/form 1.13.0 → 1.13.1
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/4021.954d25ce.js +2 -0
- package/dist/chunks/4021.954d25ce.js.map +1 -0
- package/dist/chunks/4114.511ea433.js +3 -0
- package/dist/chunks/4114.511ea433.js.map +1 -0
- package/dist/chunks/5026.1ef46032.js +3 -0
- package/dist/chunks/5026.1ef46032.js.map +1 -0
- package/dist/chunks/6537.1fc354f4.js +3 -0
- package/dist/chunks/6537.1fc354f4.js.map +1 -0
- package/dist/chunks/6586.7c0a8144.js +3 -0
- package/dist/chunks/{6586.fdcac52b.js.map → 6586.7c0a8144.js.map} +1 -1
- package/dist/chunks/9259.49033ecf.js +3 -0
- package/dist/chunks/9259.49033ecf.js.map +1 -0
- package/dist/chunks/eo-checkbox.53e20010.js +3 -0
- package/dist/chunks/eo-checkbox.53e20010.js.map +1 -0
- package/dist/chunks/eo-textarea.d836fa39.js +2 -0
- package/dist/chunks/eo-textarea.d836fa39.js.map +1 -0
- package/dist/chunks/main.3f10dde8.js +2 -0
- package/dist/chunks/main.3f10dde8.js.map +1 -0
- package/dist/examples.json +7 -7
- package/dist/index.3a1dae93.js +2 -0
- package/dist/index.3a1dae93.js.map +1 -0
- package/dist/manifest.json +328 -328
- package/dist/types.json +1207 -1207
- package/dist-types/textarea/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/5026.2b177335.js +0 -3
- package/dist/chunks/5026.2b177335.js.map +0 -1
- package/dist/chunks/6537.d3dbdd3a.js +0 -3
- package/dist/chunks/6537.d3dbdd3a.js.map +0 -1
- package/dist/chunks/6586.fdcac52b.js +0 -3
- package/dist/chunks/825.5bcac785.js +0 -3
- package/dist/chunks/825.5bcac785.js.map +0 -1
- package/dist/chunks/9259.d31069e0.js +0 -3
- package/dist/chunks/9259.d31069e0.js.map +0 -1
- package/dist/chunks/eo-checkbox.64e5ccfd.js +0 -2
- package/dist/chunks/eo-checkbox.64e5ccfd.js.map +0 -1
- package/dist/chunks/eo-textarea.3ca392a1.js +0 -3
- package/dist/chunks/eo-textarea.3ca392a1.js.map +0 -1
- package/dist/chunks/main.c6215620.js +0 -2
- package/dist/chunks/main.c6215620.js.map +0 -1
- package/dist/index.207c3f7a.js +0 -2
- package/dist/index.207c3f7a.js.map +0 -1
- /package/dist/chunks/{825.5bcac785.js.LICENSE.txt → 4114.511ea433.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5026.2b177335.js.LICENSE.txt → 5026.1ef46032.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6537.d3dbdd3a.js.LICENSE.txt → 6537.1fc354f4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6586.fdcac52b.js.LICENSE.txt → 6586.7c0a8144.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.d31069e0.js.LICENSE.txt → 9259.49033ecf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.3ca392a1.js.LICENSE.txt → eo-checkbox.53e20010.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,259 +189,109 @@
|
|
|
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
197
|
{
|
|
198
198
|
"name": "name",
|
|
199
|
-
"description": "
|
|
199
|
+
"description": "下拉框字段名",
|
|
200
200
|
"type": "string"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "label",
|
|
204
|
-
"description": "
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "value",
|
|
209
|
-
"description": "值",
|
|
210
|
-
"type": "string"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "placeholder",
|
|
214
|
-
"description": "占位说明",
|
|
204
|
+
"description": "单选框字段说明",
|
|
215
205
|
"type": "string"
|
|
216
206
|
},
|
|
217
207
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"description": "
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
"name": "minLength",
|
|
224
|
-
"description": "最小长度",
|
|
225
|
-
"type": "number"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "maxLength",
|
|
229
|
-
"description": "最大长度",
|
|
230
|
-
"type": "number"
|
|
208
|
+
"name": "options",
|
|
209
|
+
"description": "单选框选项表",
|
|
210
|
+
"required": true,
|
|
211
|
+
"attribute": false,
|
|
212
|
+
"type": "GeneralOption[]"
|
|
231
213
|
},
|
|
232
214
|
{
|
|
233
|
-
"name": "
|
|
234
|
-
"description": "
|
|
215
|
+
"name": "value",
|
|
216
|
+
"description": "单选框当前选中始值",
|
|
235
217
|
"attribute": false,
|
|
236
|
-
"type": "
|
|
218
|
+
"type": "any"
|
|
237
219
|
},
|
|
238
220
|
{
|
|
239
221
|
"name": "required",
|
|
240
222
|
"description": "是否必填",
|
|
241
223
|
"type": "boolean"
|
|
242
224
|
},
|
|
243
|
-
{
|
|
244
|
-
"name": "max",
|
|
245
|
-
"description": "表单校验最大长度",
|
|
246
|
-
"type": "number"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"name": "min",
|
|
250
|
-
"description": "表单校验最小长度",
|
|
251
|
-
"type": "number"
|
|
252
|
-
},
|
|
253
225
|
{
|
|
254
226
|
"name": "message",
|
|
255
|
-
"description": "
|
|
227
|
+
"description": "校验文本信息",
|
|
256
228
|
"attribute": false,
|
|
257
229
|
"type": "Record<string, string>"
|
|
258
230
|
},
|
|
259
231
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"events": [
|
|
267
|
-
{
|
|
268
|
-
"name": "change",
|
|
269
|
-
"description": "",
|
|
270
|
-
"detail": {
|
|
271
|
-
"description": null,
|
|
272
|
-
"type": "string"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"slots": [],
|
|
277
|
-
"methods": [
|
|
278
|
-
{
|
|
279
|
-
"name": "focusTextarea",
|
|
280
|
-
"params": [],
|
|
281
|
-
"description": "focus",
|
|
282
|
-
"returns": {}
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
"parts": [],
|
|
286
|
-
"description": "通用多行文本输入框构件",
|
|
287
|
-
"category": "form-input-basic"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "eo-form",
|
|
291
|
-
"alias": [
|
|
292
|
-
"form.general-form"
|
|
293
|
-
],
|
|
294
|
-
"properties": [
|
|
232
|
+
"name": "disabled",
|
|
233
|
+
"description": "是否禁用",
|
|
234
|
+
"type": "boolean"
|
|
235
|
+
},
|
|
295
236
|
{
|
|
296
|
-
"name": "
|
|
297
|
-
"
|
|
298
|
-
"
|
|
237
|
+
"name": "type",
|
|
238
|
+
"description": "单选框样式类型",
|
|
239
|
+
"default": "\"default\"",
|
|
240
|
+
"type": "RadioType"
|
|
299
241
|
},
|
|
300
242
|
{
|
|
301
|
-
"name": "
|
|
302
|
-
"description": "
|
|
303
|
-
"default": "
|
|
304
|
-
"type": "
|
|
243
|
+
"name": "ui",
|
|
244
|
+
"description": "UI样式",
|
|
245
|
+
"default": "\"default\"",
|
|
246
|
+
"type": "UIType"
|
|
305
247
|
},
|
|
306
248
|
{
|
|
307
249
|
"name": "size",
|
|
308
|
-
"description": "
|
|
250
|
+
"description": "大小,只对按钮样式生效",
|
|
251
|
+
"default": "\"medium\"",
|
|
309
252
|
"type": "ComponentSize"
|
|
310
253
|
},
|
|
311
254
|
{
|
|
312
|
-
"name": "
|
|
313
|
-
"description": "
|
|
314
|
-
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
315
|
-
"attribute": false,
|
|
316
|
-
"type": "ColProps"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"name": "wrapperCol",
|
|
320
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
321
|
-
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
255
|
+
"name": "customStyle",
|
|
256
|
+
"description": "自定义radio的外层样式",
|
|
322
257
|
"attribute": false,
|
|
323
|
-
"type": "
|
|
258
|
+
"type": "React.CSSProperties"
|
|
324
259
|
},
|
|
325
260
|
{
|
|
326
|
-
"name": "
|
|
261
|
+
"name": "useBrick",
|
|
262
|
+
"description": "自定义radio的内容",
|
|
327
263
|
"attribute": false,
|
|
328
|
-
"type": "
|
|
264
|
+
"type": "UseSingleBrickConf"
|
|
329
265
|
}
|
|
330
266
|
],
|
|
331
267
|
"events": [
|
|
332
268
|
{
|
|
333
|
-
"name": "
|
|
334
|
-
"description": "
|
|
335
|
-
"detail": {
|
|
336
|
-
"description": null,
|
|
337
|
-
"type": "Record<string, unknown>"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "validate.success",
|
|
342
|
-
"description": "表单验证成功时触发事件",
|
|
269
|
+
"name": "change",
|
|
270
|
+
"description": "值变化事件",
|
|
343
271
|
"detail": {
|
|
344
|
-
"type": "
|
|
272
|
+
"type": "GeneralComplexOption | undefined"
|
|
345
273
|
}
|
|
346
274
|
},
|
|
347
275
|
{
|
|
348
|
-
"name": "
|
|
349
|
-
"description": "
|
|
276
|
+
"name": "options.change",
|
|
277
|
+
"description": "选项列表变化事件",
|
|
350
278
|
"detail": {
|
|
351
|
-
"type": "
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"slots": [
|
|
356
|
-
{
|
|
357
|
-
"name": null,
|
|
358
|
-
"description": "表单内容"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"methods": [
|
|
362
|
-
{
|
|
363
|
-
"name": "validate",
|
|
364
|
-
"params": [],
|
|
365
|
-
"description": "表单校验方法",
|
|
366
|
-
"returns": {
|
|
367
|
-
"type": "boolean | Record<string, unknown>"
|
|
279
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
368
280
|
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"name": "setInitValue",
|
|
372
|
-
"params": [
|
|
373
|
-
{
|
|
374
|
-
"name": "values",
|
|
375
|
-
"type": "Record<string, unknown>"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "options",
|
|
379
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"description": "表单设置值方法",
|
|
383
|
-
"returns": {}
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "resetFields",
|
|
387
|
-
"params": [
|
|
388
|
-
{
|
|
389
|
-
"name": "name",
|
|
390
|
-
"type": "string"
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
"description": "表单重置值方法",
|
|
394
|
-
"returns": {}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"name": "getFieldsValue",
|
|
398
|
-
"params": [
|
|
399
|
-
{
|
|
400
|
-
"name": "name",
|
|
401
|
-
"type": "string"
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"description": "获取表单值方法",
|
|
405
|
-
"returns": {}
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"name": "validateField",
|
|
409
|
-
"params": [
|
|
410
|
-
{
|
|
411
|
-
"name": "name",
|
|
412
|
-
"type": "string"
|
|
413
|
-
}
|
|
414
|
-
],
|
|
415
|
-
"description": "校验表单字段方法",
|
|
416
|
-
"returns": {}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "resetValidateState",
|
|
420
|
-
"params": [],
|
|
421
|
-
"description": "重置表单校验状态方法",
|
|
422
|
-
"returns": {}
|
|
423
281
|
}
|
|
424
282
|
],
|
|
283
|
+
"slots": [],
|
|
284
|
+
"methods": [],
|
|
425
285
|
"parts": [],
|
|
426
|
-
"description": "
|
|
286
|
+
"description": "通用单选构件",
|
|
427
287
|
"category": "form-input-basic"
|
|
428
288
|
},
|
|
429
289
|
{
|
|
430
|
-
"name": "eo-
|
|
290
|
+
"name": "eo-textarea",
|
|
431
291
|
"alias": [
|
|
432
|
-
"form.general-
|
|
292
|
+
"form.general-textarea"
|
|
433
293
|
],
|
|
434
294
|
"properties": [
|
|
435
|
-
{
|
|
436
|
-
"name": "formElement",
|
|
437
|
-
"attribute": false,
|
|
438
|
-
"type": "Form"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"name": "curElement",
|
|
442
|
-
"attribute": false,
|
|
443
|
-
"type": "HTMLElement"
|
|
444
|
-
},
|
|
445
295
|
{
|
|
446
296
|
"name": "name",
|
|
447
297
|
"description": "字段名称",
|
|
@@ -449,178 +299,149 @@
|
|
|
449
299
|
},
|
|
450
300
|
{
|
|
451
301
|
"name": "label",
|
|
302
|
+
"description": "标签文字",
|
|
452
303
|
"type": "string"
|
|
453
304
|
},
|
|
454
305
|
{
|
|
455
|
-
"name": "
|
|
306
|
+
"name": "value",
|
|
307
|
+
"description": "值",
|
|
456
308
|
"type": "string"
|
|
457
309
|
},
|
|
458
310
|
{
|
|
459
|
-
"name": "
|
|
460
|
-
"
|
|
461
|
-
"type": "
|
|
311
|
+
"name": "placeholder",
|
|
312
|
+
"description": "占位说明",
|
|
313
|
+
"type": "string"
|
|
462
314
|
},
|
|
463
315
|
{
|
|
464
|
-
"name": "
|
|
465
|
-
"
|
|
316
|
+
"name": "disabled",
|
|
317
|
+
"description": "是否禁用",
|
|
318
|
+
"type": "boolean"
|
|
466
319
|
},
|
|
467
320
|
{
|
|
468
|
-
"name": "
|
|
321
|
+
"name": "minLength",
|
|
322
|
+
"description": "最小长度",
|
|
469
323
|
"type": "number"
|
|
470
324
|
},
|
|
471
325
|
{
|
|
472
|
-
"name": "
|
|
473
|
-
"description": "
|
|
474
|
-
"type": "
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "value",
|
|
478
|
-
"description": "初始值",
|
|
479
|
-
"type": "string"
|
|
326
|
+
"name": "maxLength",
|
|
327
|
+
"description": "最大长度",
|
|
328
|
+
"type": "number"
|
|
480
329
|
},
|
|
481
330
|
{
|
|
482
|
-
"name": "
|
|
483
|
-
"
|
|
331
|
+
"name": "autoSize",
|
|
332
|
+
"description": "大小自适应",
|
|
333
|
+
"attribute": false,
|
|
334
|
+
"type": "AutoSize"
|
|
484
335
|
},
|
|
485
336
|
{
|
|
486
|
-
"name": "
|
|
487
|
-
"
|
|
337
|
+
"name": "required",
|
|
338
|
+
"description": "是否必填",
|
|
339
|
+
"type": "boolean"
|
|
488
340
|
},
|
|
489
341
|
{
|
|
490
|
-
"name": "
|
|
491
|
-
"
|
|
342
|
+
"name": "max",
|
|
343
|
+
"description": "表单校验最大长度",
|
|
344
|
+
"type": "number"
|
|
492
345
|
},
|
|
493
346
|
{
|
|
494
|
-
"name": "
|
|
495
|
-
"description": "
|
|
496
|
-
"
|
|
347
|
+
"name": "min",
|
|
348
|
+
"description": "表单校验最小长度",
|
|
349
|
+
"type": "number"
|
|
497
350
|
},
|
|
498
351
|
{
|
|
499
|
-
"name": "
|
|
500
|
-
"description": "
|
|
501
|
-
"
|
|
352
|
+
"name": "message",
|
|
353
|
+
"description": "校验信息",
|
|
354
|
+
"attribute": false,
|
|
355
|
+
"type": "Record<string, string>"
|
|
502
356
|
},
|
|
503
357
|
{
|
|
504
|
-
"name": "
|
|
505
|
-
"description": "
|
|
358
|
+
"name": "textareaStyle",
|
|
359
|
+
"description": "自定义样式",
|
|
506
360
|
"attribute": false,
|
|
507
|
-
"type": "
|
|
508
|
-
}
|
|
361
|
+
"type": "React.CSSProperties"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"events": [
|
|
509
365
|
{
|
|
510
|
-
"name": "
|
|
511
|
-
"description": "
|
|
512
|
-
"
|
|
366
|
+
"name": "change",
|
|
367
|
+
"description": "",
|
|
368
|
+
"detail": {
|
|
369
|
+
"description": null,
|
|
370
|
+
"type": "string"
|
|
371
|
+
}
|
|
513
372
|
}
|
|
514
373
|
],
|
|
515
|
-
"
|
|
516
|
-
"
|
|
374
|
+
"slots": [],
|
|
375
|
+
"methods": [
|
|
517
376
|
{
|
|
518
|
-
"name":
|
|
519
|
-
"
|
|
377
|
+
"name": "focusTextarea",
|
|
378
|
+
"params": [],
|
|
379
|
+
"description": "focus",
|
|
380
|
+
"returns": {}
|
|
520
381
|
}
|
|
521
382
|
],
|
|
522
|
-
"methods": [],
|
|
523
383
|
"parts": [],
|
|
524
|
-
"description": "
|
|
525
|
-
"category": "form-input-basic"
|
|
526
|
-
"insider": true
|
|
384
|
+
"description": "通用多行文本输入框构件",
|
|
385
|
+
"category": "form-input-basic"
|
|
527
386
|
},
|
|
528
387
|
{
|
|
529
|
-
"name": "eo-
|
|
388
|
+
"name": "eo-submit-buttons",
|
|
530
389
|
"alias": [
|
|
531
|
-
"form.
|
|
390
|
+
"form.submit-buttons"
|
|
532
391
|
],
|
|
533
392
|
"properties": [
|
|
534
393
|
{
|
|
535
|
-
"name": "
|
|
536
|
-
"description": "
|
|
394
|
+
"name": "submitText",
|
|
395
|
+
"description": "提交按钮的文字",
|
|
396
|
+
"default": "\"提交\"",
|
|
537
397
|
"type": "string"
|
|
538
398
|
},
|
|
539
399
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"description": "
|
|
400
|
+
"name": "cancelText",
|
|
401
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
542
402
|
"type": "string"
|
|
543
403
|
},
|
|
544
404
|
{
|
|
545
|
-
"name": "
|
|
546
|
-
"description": "
|
|
547
|
-
"required": true,
|
|
548
|
-
"attribute": false,
|
|
549
|
-
"type": "GeneralOption[]"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"name": "value",
|
|
553
|
-
"description": "单选框当前选中始值",
|
|
554
|
-
"attribute": false,
|
|
555
|
-
"type": "any"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "required",
|
|
559
|
-
"description": "是否必填",
|
|
405
|
+
"name": "disableAfterClick",
|
|
406
|
+
"description": "点击确定按钮后自动禁用",
|
|
560
407
|
"type": "boolean"
|
|
561
408
|
},
|
|
562
409
|
{
|
|
563
|
-
"name": "
|
|
564
|
-
"description": "
|
|
565
|
-
"attribute": false,
|
|
566
|
-
"type": "Record<string, string>"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"name": "disabled",
|
|
570
|
-
"description": "是否禁用",
|
|
410
|
+
"name": "submitDisabled",
|
|
411
|
+
"description": "禁用提交按钮",
|
|
571
412
|
"type": "boolean"
|
|
572
413
|
},
|
|
573
414
|
{
|
|
574
|
-
"name": "
|
|
575
|
-
"description": "
|
|
576
|
-
"
|
|
577
|
-
"type": "RadioType"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"name": "ui",
|
|
581
|
-
"description": "UI样式",
|
|
582
|
-
"default": "\"default\"",
|
|
583
|
-
"type": "UIType"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"name": "size",
|
|
587
|
-
"description": "大小,只对按钮样式生效",
|
|
588
|
-
"default": "\"medium\"",
|
|
589
|
-
"type": "ComponentSize"
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
"name": "customStyle",
|
|
593
|
-
"description": "自定义radio的外层样式",
|
|
594
|
-
"attribute": false,
|
|
595
|
-
"type": "React.CSSProperties"
|
|
415
|
+
"name": "submitType",
|
|
416
|
+
"description": "提交按钮类型",
|
|
417
|
+
"type": "ButtonType"
|
|
596
418
|
},
|
|
597
419
|
{
|
|
598
|
-
"name": "
|
|
599
|
-
"description": "
|
|
600
|
-
"
|
|
601
|
-
"type": "UseSingleBrickConf"
|
|
420
|
+
"name": "cancelType",
|
|
421
|
+
"description": "取消按钮类型",
|
|
422
|
+
"type": "ButtonType"
|
|
602
423
|
}
|
|
603
424
|
],
|
|
604
425
|
"events": [
|
|
605
426
|
{
|
|
606
|
-
"name": "
|
|
607
|
-
"description": "
|
|
427
|
+
"name": "submit",
|
|
428
|
+
"description": "点击提交按钮触发的事件",
|
|
608
429
|
"detail": {
|
|
609
|
-
"type": "
|
|
430
|
+
"type": "void"
|
|
610
431
|
}
|
|
611
432
|
},
|
|
612
433
|
{
|
|
613
|
-
"name": "
|
|
614
|
-
"description": "
|
|
434
|
+
"name": "cancel",
|
|
435
|
+
"description": "点击取消按钮触发的事件",
|
|
615
436
|
"detail": {
|
|
616
|
-
"type": "
|
|
437
|
+
"type": "void"
|
|
617
438
|
}
|
|
618
439
|
}
|
|
619
440
|
],
|
|
620
441
|
"slots": [],
|
|
621
442
|
"methods": [],
|
|
622
443
|
"parts": [],
|
|
623
|
-
"description": "
|
|
444
|
+
"description": "表单提交按钮",
|
|
624
445
|
"category": "form-input-basic"
|
|
625
446
|
},
|
|
626
447
|
{
|
|
@@ -766,63 +587,143 @@
|
|
|
766
587
|
"category": "form-input-basic"
|
|
767
588
|
},
|
|
768
589
|
{
|
|
769
|
-
"name": "eo-
|
|
590
|
+
"name": "eo-form",
|
|
770
591
|
"alias": [
|
|
771
|
-
"form.
|
|
592
|
+
"form.general-form"
|
|
772
593
|
],
|
|
773
594
|
"properties": [
|
|
774
595
|
{
|
|
775
|
-
"name": "
|
|
776
|
-
"
|
|
777
|
-
"
|
|
778
|
-
"type": "string"
|
|
596
|
+
"name": "staticValues",
|
|
597
|
+
"attribute": false,
|
|
598
|
+
"type": "Record<string, unknown>"
|
|
779
599
|
},
|
|
780
600
|
{
|
|
781
|
-
"name": "
|
|
782
|
-
"description": "
|
|
783
|
-
"
|
|
601
|
+
"name": "layout",
|
|
602
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
603
|
+
"default": "vertical",
|
|
604
|
+
"type": "Layout"
|
|
784
605
|
},
|
|
785
606
|
{
|
|
786
|
-
"name": "
|
|
787
|
-
"description": "
|
|
788
|
-
"type": "
|
|
607
|
+
"name": "size",
|
|
608
|
+
"description": "表单组件尺寸",
|
|
609
|
+
"type": "ComponentSize"
|
|
789
610
|
},
|
|
790
611
|
{
|
|
791
|
-
"name": "
|
|
792
|
-
"description": "
|
|
793
|
-
"
|
|
612
|
+
"name": "labelCol",
|
|
613
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
614
|
+
"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 }",
|
|
615
|
+
"attribute": false,
|
|
616
|
+
"type": "ColProps"
|
|
794
617
|
},
|
|
795
618
|
{
|
|
796
|
-
"name": "
|
|
797
|
-
"description": "
|
|
798
|
-
"
|
|
619
|
+
"name": "wrapperCol",
|
|
620
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
621
|
+
"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 }",
|
|
622
|
+
"attribute": false,
|
|
623
|
+
"type": "ColProps"
|
|
799
624
|
},
|
|
800
625
|
{
|
|
801
|
-
"name": "
|
|
802
|
-
"
|
|
803
|
-
"type": "
|
|
626
|
+
"name": "formStyle",
|
|
627
|
+
"attribute": false,
|
|
628
|
+
"type": "React.CSSProperties"
|
|
804
629
|
}
|
|
805
630
|
],
|
|
806
631
|
"events": [
|
|
807
632
|
{
|
|
808
|
-
"name": "
|
|
809
|
-
"description": "
|
|
633
|
+
"name": "values.change",
|
|
634
|
+
"description": "表单值变更事件",
|
|
810
635
|
"detail": {
|
|
811
|
-
"
|
|
636
|
+
"description": null,
|
|
637
|
+
"type": "Record<string, unknown>"
|
|
812
638
|
}
|
|
813
639
|
},
|
|
814
640
|
{
|
|
815
|
-
"name": "
|
|
816
|
-
"description": "
|
|
641
|
+
"name": "validate.success",
|
|
642
|
+
"description": "表单验证成功时触发事件",
|
|
817
643
|
"detail": {
|
|
818
|
-
"type": "
|
|
644
|
+
"type": "Record<string, unknown>"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "validate.error",
|
|
649
|
+
"description": "表单验证报错时触发事件",
|
|
650
|
+
"detail": {
|
|
651
|
+
"type": "(MessageBody & { name: string })[]"
|
|
819
652
|
}
|
|
820
653
|
}
|
|
821
654
|
],
|
|
822
|
-
"slots": [
|
|
823
|
-
|
|
655
|
+
"slots": [
|
|
656
|
+
{
|
|
657
|
+
"name": null,
|
|
658
|
+
"description": "表单内容"
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
"methods": [
|
|
662
|
+
{
|
|
663
|
+
"name": "validate",
|
|
664
|
+
"params": [],
|
|
665
|
+
"description": "表单校验方法",
|
|
666
|
+
"returns": {
|
|
667
|
+
"type": "boolean | Record<string, unknown>"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "setInitValue",
|
|
672
|
+
"params": [
|
|
673
|
+
{
|
|
674
|
+
"name": "values",
|
|
675
|
+
"type": "Record<string, unknown>"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "options",
|
|
679
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"description": "表单设置值方法",
|
|
683
|
+
"returns": {}
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "resetFields",
|
|
687
|
+
"params": [
|
|
688
|
+
{
|
|
689
|
+
"name": "name",
|
|
690
|
+
"type": "string"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"description": "表单重置值方法",
|
|
694
|
+
"returns": {}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "getFieldsValue",
|
|
698
|
+
"params": [
|
|
699
|
+
{
|
|
700
|
+
"name": "name",
|
|
701
|
+
"type": "string"
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"description": "获取表单值方法",
|
|
705
|
+
"returns": {}
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"name": "validateField",
|
|
709
|
+
"params": [
|
|
710
|
+
{
|
|
711
|
+
"name": "name",
|
|
712
|
+
"type": "string"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"description": "校验表单字段方法",
|
|
716
|
+
"returns": {}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "resetValidateState",
|
|
720
|
+
"params": [],
|
|
721
|
+
"description": "重置表单校验状态方法",
|
|
722
|
+
"returns": {}
|
|
723
|
+
}
|
|
724
|
+
],
|
|
824
725
|
"parts": [],
|
|
825
|
-
"description": "
|
|
726
|
+
"description": "表单构件",
|
|
826
727
|
"category": "form-input-basic"
|
|
827
728
|
},
|
|
828
729
|
{
|
|
@@ -1009,6 +910,105 @@
|
|
|
1009
910
|
"description": "动态表单",
|
|
1010
911
|
"category": "form-input-basic"
|
|
1011
912
|
},
|
|
913
|
+
{
|
|
914
|
+
"name": "eo-form-item",
|
|
915
|
+
"alias": [
|
|
916
|
+
"form.general-form-item"
|
|
917
|
+
],
|
|
918
|
+
"properties": [
|
|
919
|
+
{
|
|
920
|
+
"name": "formElement",
|
|
921
|
+
"attribute": false,
|
|
922
|
+
"type": "Form"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "curElement",
|
|
926
|
+
"attribute": false,
|
|
927
|
+
"type": "HTMLElement"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "name",
|
|
931
|
+
"description": "字段名称",
|
|
932
|
+
"type": "string"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "label",
|
|
936
|
+
"type": "string"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"name": "pattern",
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "message",
|
|
944
|
+
"attribute": false,
|
|
945
|
+
"type": "Record<string, string>"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "max",
|
|
949
|
+
"type": "number"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "min",
|
|
953
|
+
"type": "number"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "required",
|
|
957
|
+
"description": "表单项是否为必填",
|
|
958
|
+
"type": "boolean"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "value",
|
|
962
|
+
"description": "初始值",
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "valuePropsName",
|
|
967
|
+
"type": "string"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "layout",
|
|
971
|
+
"type": "Layout"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"name": "size",
|
|
975
|
+
"type": "ComponentSize"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "trim",
|
|
979
|
+
"description": "是否自动去除前后的空白字符",
|
|
980
|
+
"default": "true"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "trigger",
|
|
984
|
+
"description": "事件触发方法名",
|
|
985
|
+
"type": "string"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "validator",
|
|
989
|
+
"description": "表单项校验方法",
|
|
990
|
+
"attribute": false,
|
|
991
|
+
"type": "((value: any) => MessageBody)"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "needValidate",
|
|
995
|
+
"description": "值变化时是否主动出发校验",
|
|
996
|
+
"type": "boolean"
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"events": [],
|
|
1000
|
+
"slots": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": null,
|
|
1003
|
+
"description": "表单项内容"
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
"methods": [],
|
|
1007
|
+
"parts": [],
|
|
1008
|
+
"description": "通用输入框构件",
|
|
1009
|
+
"category": "form-input-basic",
|
|
1010
|
+
"insider": true
|
|
1011
|
+
},
|
|
1012
1012
|
{
|
|
1013
1013
|
"name": "eo-search",
|
|
1014
1014
|
"alias": [
|