@next-bricks/form 1.21.5 → 1.21.7
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 +27 -27
- package/dist/chunks/{2537.5bbad3eb.js → 2537.d25d0532.js} +2 -2
- package/dist/chunks/{2537.5bbad3eb.js.map → 2537.d25d0532.js.map} +1 -1
- package/dist/chunks/9949.753e2720.js +3 -0
- package/dist/chunks/9949.753e2720.js.map +1 -0
- package/dist/chunks/{eo-select.78631f61.js → eo-select.9c05c45b.js} +3 -3
- package/dist/chunks/eo-select.9c05c45b.js.map +1 -0
- package/dist/chunks/{main.fa0b7eba.js → main.87225246.js} +2 -2
- package/dist/chunks/{main.fa0b7eba.js.map → main.87225246.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.b8233f50.js → index.6bd92494.js} +2 -2
- package/dist/{index.b8233f50.js.map → index.6bd92494.js.map} +1 -1
- package/dist/manifest.json +431 -431
- package/dist/types.json +1128 -1128
- package/package.json +2 -2
- package/dist/chunks/9949.e2b33c07.js +0 -3
- package/dist/chunks/9949.e2b33c07.js.map +0 -1
- package/dist/chunks/eo-select.78631f61.js.map +0 -1
- /package/dist/chunks/{9949.e2b33c07.js.LICENSE.txt → 9949.753e2720.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.78631f61.js.LICENSE.txt → eo-select.9c05c45b.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -3,114 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-textarea",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-textarea"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "name",
|
|
14
|
-
"description": "字段名称",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "label",
|
|
19
|
-
"description": "标签文字",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "value",
|
|
24
|
-
"description": "值",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "placeholder",
|
|
29
|
-
"description": "占位说明",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "disabled",
|
|
34
|
-
"description": "是否禁用",
|
|
35
|
-
"type": "boolean"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "minLength",
|
|
39
|
-
"description": "最小长度",
|
|
40
|
-
"type": "number"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "maxLength",
|
|
44
|
-
"description": "最大长度",
|
|
45
|
-
"type": "number"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "autoSize",
|
|
49
|
-
"description": "大小自适应",
|
|
50
|
-
"attribute": false,
|
|
51
|
-
"type": "AutoSize"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "required",
|
|
55
|
-
"description": "是否必填",
|
|
56
|
-
"type": "boolean"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "max",
|
|
60
|
-
"description": "表单校验最大长度",
|
|
61
|
-
"type": "number"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "min",
|
|
65
|
-
"description": "表单校验最小长度",
|
|
66
|
-
"type": "number"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "message",
|
|
70
|
-
"description": "校验信息",
|
|
71
|
-
"attribute": false,
|
|
72
|
-
"type": "Record<string, string>"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "textareaStyle",
|
|
76
|
-
"description": "自定义样式",
|
|
77
|
-
"attribute": false,
|
|
78
|
-
"type": "React.CSSProperties"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "variant",
|
|
82
|
-
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
83
|
-
"type": "\"default\" | \"muted\""
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "themeVariant",
|
|
87
|
-
"description": "主题变体",
|
|
88
|
-
"type": "\"default\" | \"elevo\""
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"events": [
|
|
92
|
-
{
|
|
93
|
-
"name": "change",
|
|
94
|
-
"description": "",
|
|
95
|
-
"detail": {
|
|
96
|
-
"description": null,
|
|
97
|
-
"type": "string"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"slots": [],
|
|
102
|
-
"methods": [
|
|
103
|
-
{
|
|
104
|
-
"name": "focusTextarea",
|
|
105
|
-
"params": [],
|
|
106
|
-
"description": "focus",
|
|
107
|
-
"returns": {}
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"parts": [],
|
|
111
|
-
"description": "通用多行文本输入框构件",
|
|
112
|
-
"category": "form-input-basic"
|
|
113
|
-
},
|
|
114
6
|
{
|
|
115
7
|
"name": "eo-form",
|
|
116
8
|
"alias": [
|
|
@@ -364,305 +256,138 @@
|
|
|
364
256
|
"category": "form-input-basic"
|
|
365
257
|
},
|
|
366
258
|
{
|
|
367
|
-
"name": "eo-
|
|
259
|
+
"name": "eo-submit-buttons",
|
|
368
260
|
"alias": [
|
|
369
|
-
"form.
|
|
261
|
+
"form.submit-buttons"
|
|
370
262
|
],
|
|
371
263
|
"properties": [
|
|
372
264
|
{
|
|
373
|
-
"name": "
|
|
374
|
-
"description": "
|
|
265
|
+
"name": "submitText",
|
|
266
|
+
"description": "提交按钮的文字",
|
|
267
|
+
"default": "\"提交\"",
|
|
375
268
|
"type": "string"
|
|
376
269
|
},
|
|
377
270
|
{
|
|
378
|
-
"name": "
|
|
379
|
-
"description": "
|
|
271
|
+
"name": "cancelText",
|
|
272
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
380
273
|
"type": "string"
|
|
381
274
|
},
|
|
382
275
|
{
|
|
383
|
-
"name": "
|
|
384
|
-
"description": "
|
|
385
|
-
"type": "
|
|
276
|
+
"name": "disableAfterClick",
|
|
277
|
+
"description": "点击确定按钮后自动禁用",
|
|
278
|
+
"type": "boolean"
|
|
386
279
|
},
|
|
387
280
|
{
|
|
388
|
-
"name": "
|
|
389
|
-
"description": "
|
|
390
|
-
"
|
|
391
|
-
"attribute": false,
|
|
392
|
-
"type": "GeneralComplexOption[]"
|
|
281
|
+
"name": "submitDisabled",
|
|
282
|
+
"description": "禁用提交按钮",
|
|
283
|
+
"type": "boolean"
|
|
393
284
|
},
|
|
394
285
|
{
|
|
395
|
-
"name": "
|
|
396
|
-
"description": "
|
|
397
|
-
"
|
|
398
|
-
"type": "any"
|
|
286
|
+
"name": "submitType",
|
|
287
|
+
"description": "提交按钮类型",
|
|
288
|
+
"type": "ButtonType"
|
|
399
289
|
},
|
|
400
290
|
{
|
|
401
|
-
"name": "
|
|
402
|
-
"description": "
|
|
403
|
-
"type": "
|
|
291
|
+
"name": "cancelType",
|
|
292
|
+
"description": "取消按钮类型",
|
|
293
|
+
"type": "ButtonType"
|
|
404
294
|
},
|
|
405
295
|
{
|
|
406
|
-
"name": "
|
|
407
|
-
"description": "
|
|
408
|
-
"
|
|
409
|
-
|
|
296
|
+
"name": "themeVariant",
|
|
297
|
+
"description": "主题变体",
|
|
298
|
+
"type": "\"default\" | \"elevo\""
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"events": [
|
|
302
|
+
{
|
|
303
|
+
"name": "submit",
|
|
304
|
+
"description": "点击提交按钮触发的事件",
|
|
305
|
+
"detail": {
|
|
306
|
+
"type": "void"
|
|
307
|
+
}
|
|
410
308
|
},
|
|
411
309
|
{
|
|
412
|
-
"name": "
|
|
413
|
-
"description": "
|
|
414
|
-
"
|
|
310
|
+
"name": "cancel",
|
|
311
|
+
"description": "点击取消按钮触发的事件",
|
|
312
|
+
"detail": {
|
|
313
|
+
"type": "void"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"slots": [],
|
|
318
|
+
"methods": [],
|
|
319
|
+
"parts": [],
|
|
320
|
+
"description": "表单提交按钮",
|
|
321
|
+
"category": "form-input-basic"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "eo-checkbox",
|
|
325
|
+
"alias": [
|
|
326
|
+
"form.general-checkbox"
|
|
327
|
+
],
|
|
328
|
+
"properties": [
|
|
329
|
+
{
|
|
330
|
+
"name": "name",
|
|
331
|
+
"description": "字段名称",
|
|
332
|
+
"type": "string"
|
|
415
333
|
},
|
|
416
334
|
{
|
|
417
|
-
"name": "
|
|
418
|
-
"description": "
|
|
419
|
-
"type": "
|
|
335
|
+
"name": "label",
|
|
336
|
+
"description": "字段说明",
|
|
337
|
+
"type": "string"
|
|
420
338
|
},
|
|
421
339
|
{
|
|
422
|
-
"name": "
|
|
423
|
-
"description": "
|
|
340
|
+
"name": "value",
|
|
341
|
+
"description": "值",
|
|
424
342
|
"attribute": false,
|
|
425
|
-
"type": "
|
|
343
|
+
"type": "CheckboxValueType[]"
|
|
426
344
|
},
|
|
427
345
|
{
|
|
428
|
-
"name": "
|
|
429
|
-
"description": "
|
|
430
|
-
"
|
|
346
|
+
"name": "options",
|
|
347
|
+
"description": "多选框选项表",
|
|
348
|
+
"required": true,
|
|
349
|
+
"default": "[]",
|
|
350
|
+
"attribute": false,
|
|
351
|
+
"type": "CheckboxOptionType[]"
|
|
431
352
|
},
|
|
432
353
|
{
|
|
433
|
-
"name": "
|
|
434
|
-
"description": "
|
|
435
|
-
"
|
|
354
|
+
"name": "type",
|
|
355
|
+
"description": "类型",
|
|
356
|
+
"default": "\"default\"",
|
|
357
|
+
"type": "CheckboxType"
|
|
436
358
|
},
|
|
437
359
|
{
|
|
438
|
-
"name": "
|
|
439
|
-
"description": "",
|
|
440
|
-
"
|
|
441
|
-
"type": "{ useBrick: UseSingleBrickConf }"
|
|
360
|
+
"name": "disabled",
|
|
361
|
+
"description": "是否禁用",
|
|
362
|
+
"type": "boolean"
|
|
442
363
|
},
|
|
443
364
|
{
|
|
444
|
-
"name": "
|
|
445
|
-
"description": "
|
|
446
|
-
"default": "
|
|
365
|
+
"name": "isCustom",
|
|
366
|
+
"description": "是否为自定义",
|
|
367
|
+
"default": "false",
|
|
447
368
|
"type": "boolean"
|
|
448
369
|
},
|
|
449
370
|
{
|
|
450
|
-
"name": "
|
|
451
|
-
"description": "
|
|
452
|
-
"
|
|
453
|
-
"type": "{ label?: string; value?: string }"
|
|
371
|
+
"name": "required",
|
|
372
|
+
"description": "是否必填",
|
|
373
|
+
"type": "boolean"
|
|
454
374
|
},
|
|
455
375
|
{
|
|
456
|
-
"name": "
|
|
457
|
-
"description": "
|
|
376
|
+
"name": "message",
|
|
377
|
+
"description": "校验文本",
|
|
458
378
|
"attribute": false,
|
|
459
|
-
"type": "
|
|
379
|
+
"type": "Record<string, string>"
|
|
460
380
|
},
|
|
461
381
|
{
|
|
462
|
-
"name": "
|
|
463
|
-
"description": "
|
|
464
|
-
"type": "
|
|
382
|
+
"name": "isGroup",
|
|
383
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
384
|
+
"type": "boolean"
|
|
465
385
|
},
|
|
466
386
|
{
|
|
467
|
-
"name": "
|
|
468
|
-
"description": "
|
|
387
|
+
"name": "optionGroups",
|
|
388
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
469
389
|
"attribute": false,
|
|
470
|
-
"type": "
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"name": "dropdownStyle",
|
|
474
|
-
"description": "下拉框样式",
|
|
475
|
-
"attribute": false,
|
|
476
|
-
"type": "React.CSSProperties"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"name": "dropdownHoist",
|
|
480
|
-
"description": "下拉框是否使用固定定位防止内容被裁切",
|
|
481
|
-
"type": "boolean"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"name": "themeVariant",
|
|
485
|
-
"description": "主题变体",
|
|
486
|
-
"type": "\"default\" | \"elevo\""
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"events": [
|
|
490
|
-
{
|
|
491
|
-
"name": "change",
|
|
492
|
-
"description": "下拉选择事件",
|
|
493
|
-
"detail": {
|
|
494
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"name": "change.v2",
|
|
499
|
-
"description": "下拉选择事件 v2(仅传递选中的值)",
|
|
500
|
-
"detail": {
|
|
501
|
-
"description": "选中的值",
|
|
502
|
-
"type": "string | string[]"
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"name": "search",
|
|
507
|
-
"description": "下拉框search事件",
|
|
508
|
-
"detail": {
|
|
509
|
-
"type": "{\n value: string;\n }"
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"name": "select.focus",
|
|
514
|
-
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
515
|
-
"detail": {
|
|
516
|
-
"type": "void"
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"name": "options.change",
|
|
521
|
-
"description": "选项列表变化事件",
|
|
522
|
-
"detail": {
|
|
523
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
"slots": [],
|
|
528
|
-
"methods": [],
|
|
529
|
-
"parts": [],
|
|
530
|
-
"description": "通用下拉选择构件",
|
|
531
|
-
"category": "form-input-basic"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"name": "eo-submit-buttons",
|
|
535
|
-
"alias": [
|
|
536
|
-
"form.submit-buttons"
|
|
537
|
-
],
|
|
538
|
-
"properties": [
|
|
539
|
-
{
|
|
540
|
-
"name": "submitText",
|
|
541
|
-
"description": "提交按钮的文字",
|
|
542
|
-
"default": "\"提交\"",
|
|
543
|
-
"type": "string"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "cancelText",
|
|
547
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
548
|
-
"type": "string"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"name": "disableAfterClick",
|
|
552
|
-
"description": "点击确定按钮后自动禁用",
|
|
553
|
-
"type": "boolean"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"name": "submitDisabled",
|
|
557
|
-
"description": "禁用提交按钮",
|
|
558
|
-
"type": "boolean"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"name": "submitType",
|
|
562
|
-
"description": "提交按钮类型",
|
|
563
|
-
"type": "ButtonType"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "cancelType",
|
|
567
|
-
"description": "取消按钮类型",
|
|
568
|
-
"type": "ButtonType"
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"name": "themeVariant",
|
|
572
|
-
"description": "主题变体",
|
|
573
|
-
"type": "\"default\" | \"elevo\""
|
|
574
|
-
}
|
|
575
|
-
],
|
|
576
|
-
"events": [
|
|
577
|
-
{
|
|
578
|
-
"name": "submit",
|
|
579
|
-
"description": "点击提交按钮触发的事件",
|
|
580
|
-
"detail": {
|
|
581
|
-
"type": "void"
|
|
582
|
-
}
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"name": "cancel",
|
|
586
|
-
"description": "点击取消按钮触发的事件",
|
|
587
|
-
"detail": {
|
|
588
|
-
"type": "void"
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"slots": [],
|
|
593
|
-
"methods": [],
|
|
594
|
-
"parts": [],
|
|
595
|
-
"description": "表单提交按钮",
|
|
596
|
-
"category": "form-input-basic"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"name": "eo-checkbox",
|
|
600
|
-
"alias": [
|
|
601
|
-
"form.general-checkbox"
|
|
602
|
-
],
|
|
603
|
-
"properties": [
|
|
604
|
-
{
|
|
605
|
-
"name": "name",
|
|
606
|
-
"description": "字段名称",
|
|
607
|
-
"type": "string"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "label",
|
|
611
|
-
"description": "字段说明",
|
|
612
|
-
"type": "string"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"name": "value",
|
|
616
|
-
"description": "值",
|
|
617
|
-
"attribute": false,
|
|
618
|
-
"type": "CheckboxValueType[]"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "options",
|
|
622
|
-
"description": "多选框选项表",
|
|
623
|
-
"required": true,
|
|
624
|
-
"default": "[]",
|
|
625
|
-
"attribute": false,
|
|
626
|
-
"type": "CheckboxOptionType[]"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"name": "type",
|
|
630
|
-
"description": "类型",
|
|
631
|
-
"default": "\"default\"",
|
|
632
|
-
"type": "CheckboxType"
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"name": "disabled",
|
|
636
|
-
"description": "是否禁用",
|
|
637
|
-
"type": "boolean"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"name": "isCustom",
|
|
641
|
-
"description": "是否为自定义",
|
|
642
|
-
"default": "false",
|
|
643
|
-
"type": "boolean"
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
"name": "required",
|
|
647
|
-
"description": "是否必填",
|
|
648
|
-
"type": "boolean"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"name": "message",
|
|
652
|
-
"description": "校验文本",
|
|
653
|
-
"attribute": false,
|
|
654
|
-
"type": "Record<string, string>"
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
"name": "isGroup",
|
|
658
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
659
|
-
"type": "boolean"
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"name": "optionGroups",
|
|
663
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
664
|
-
"attribute": false,
|
|
665
|
-
"type": "OptionGroup[]"
|
|
390
|
+
"type": "OptionGroup[]"
|
|
666
391
|
},
|
|
667
392
|
{
|
|
668
393
|
"name": "themeVariant",
|
|
@@ -857,9 +582,9 @@
|
|
|
857
582
|
"category": "interact-basic"
|
|
858
583
|
},
|
|
859
584
|
{
|
|
860
|
-
"name": "eo-
|
|
585
|
+
"name": "eo-textarea",
|
|
861
586
|
"alias": [
|
|
862
|
-
"form.
|
|
587
|
+
"form.general-textarea"
|
|
863
588
|
],
|
|
864
589
|
"properties": [
|
|
865
590
|
{
|
|
@@ -869,31 +594,72 @@
|
|
|
869
594
|
},
|
|
870
595
|
{
|
|
871
596
|
"name": "label",
|
|
872
|
-
"description": "
|
|
597
|
+
"description": "标签文字",
|
|
873
598
|
"type": "string"
|
|
874
599
|
},
|
|
875
600
|
{
|
|
876
601
|
"name": "value",
|
|
877
602
|
"description": "值",
|
|
878
|
-
"
|
|
879
|
-
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "placeholder",
|
|
607
|
+
"description": "占位说明",
|
|
608
|
+
"type": "string"
|
|
880
609
|
},
|
|
881
610
|
{
|
|
882
611
|
"name": "disabled",
|
|
883
612
|
"description": "是否禁用",
|
|
884
613
|
"type": "boolean"
|
|
885
614
|
},
|
|
615
|
+
{
|
|
616
|
+
"name": "minLength",
|
|
617
|
+
"description": "最小长度",
|
|
618
|
+
"type": "number"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "maxLength",
|
|
622
|
+
"description": "最大长度",
|
|
623
|
+
"type": "number"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "autoSize",
|
|
627
|
+
"description": "大小自适应",
|
|
628
|
+
"attribute": false,
|
|
629
|
+
"type": "AutoSize"
|
|
630
|
+
},
|
|
886
631
|
{
|
|
887
632
|
"name": "required",
|
|
888
633
|
"description": "是否必填",
|
|
889
634
|
"type": "boolean"
|
|
890
635
|
},
|
|
636
|
+
{
|
|
637
|
+
"name": "max",
|
|
638
|
+
"description": "表单校验最大长度",
|
|
639
|
+
"type": "number"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "min",
|
|
643
|
+
"description": "表单校验最小长度",
|
|
644
|
+
"type": "number"
|
|
645
|
+
},
|
|
891
646
|
{
|
|
892
647
|
"name": "message",
|
|
893
|
-
"description": "
|
|
648
|
+
"description": "校验信息",
|
|
894
649
|
"attribute": false,
|
|
895
650
|
"type": "Record<string, string>"
|
|
896
651
|
},
|
|
652
|
+
{
|
|
653
|
+
"name": "textareaStyle",
|
|
654
|
+
"description": "自定义样式",
|
|
655
|
+
"attribute": false,
|
|
656
|
+
"type": "React.CSSProperties"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "variant",
|
|
660
|
+
"description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
|
|
661
|
+
"type": "\"default\" | \"muted\""
|
|
662
|
+
},
|
|
897
663
|
{
|
|
898
664
|
"name": "themeVariant",
|
|
899
665
|
"description": "主题变体",
|
|
@@ -903,16 +669,83 @@
|
|
|
903
669
|
"events": [
|
|
904
670
|
{
|
|
905
671
|
"name": "change",
|
|
906
|
-
"description": "
|
|
672
|
+
"description": "",
|
|
907
673
|
"detail": {
|
|
908
|
-
"
|
|
674
|
+
"description": null,
|
|
675
|
+
"type": "string"
|
|
909
676
|
}
|
|
910
677
|
}
|
|
911
678
|
],
|
|
912
679
|
"slots": [],
|
|
913
|
-
"methods": [
|
|
914
|
-
|
|
915
|
-
|
|
680
|
+
"methods": [
|
|
681
|
+
{
|
|
682
|
+
"name": "focusTextarea",
|
|
683
|
+
"params": [],
|
|
684
|
+
"description": "focus",
|
|
685
|
+
"returns": {}
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"parts": [],
|
|
689
|
+
"description": "通用多行文本输入框构件",
|
|
690
|
+
"category": "form-input-basic"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "eo-icon-select",
|
|
694
|
+
"alias": [
|
|
695
|
+
"form.icon-select"
|
|
696
|
+
],
|
|
697
|
+
"properties": [
|
|
698
|
+
{
|
|
699
|
+
"name": "name",
|
|
700
|
+
"description": "字段名称",
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "label",
|
|
705
|
+
"description": "字段说明",
|
|
706
|
+
"type": "string"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "value",
|
|
710
|
+
"description": "值",
|
|
711
|
+
"attribute": false,
|
|
712
|
+
"type": "Icon"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "disabled",
|
|
716
|
+
"description": "是否禁用",
|
|
717
|
+
"type": "boolean"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "required",
|
|
721
|
+
"description": "是否必填",
|
|
722
|
+
"type": "boolean"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "message",
|
|
726
|
+
"description": "是否必填",
|
|
727
|
+
"attribute": false,
|
|
728
|
+
"type": "Record<string, string>"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "themeVariant",
|
|
732
|
+
"description": "主题变体",
|
|
733
|
+
"type": "\"default\" | \"elevo\""
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"events": [
|
|
737
|
+
{
|
|
738
|
+
"name": "change",
|
|
739
|
+
"description": "值变化时触发",
|
|
740
|
+
"detail": {
|
|
741
|
+
"type": "Icon | undefined"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"slots": [],
|
|
746
|
+
"methods": [],
|
|
747
|
+
"parts": [],
|
|
748
|
+
"description": "图标选择构件",
|
|
916
749
|
"category": "form-input-basic"
|
|
917
750
|
},
|
|
918
751
|
{
|
|
@@ -1197,28 +1030,33 @@
|
|
|
1197
1030
|
"category": "form-input-basic"
|
|
1198
1031
|
},
|
|
1199
1032
|
{
|
|
1200
|
-
"name": "eo-
|
|
1033
|
+
"name": "eo-time-picker",
|
|
1201
1034
|
"properties": [
|
|
1202
1035
|
{
|
|
1203
1036
|
"name": "name",
|
|
1204
|
-
"description": "
|
|
1037
|
+
"description": "时间选择器字段名",
|
|
1205
1038
|
"type": "string"
|
|
1206
1039
|
},
|
|
1207
1040
|
{
|
|
1208
|
-
"name": "
|
|
1209
|
-
"description": "
|
|
1041
|
+
"name": "label",
|
|
1042
|
+
"description": "时间选择器说明",
|
|
1210
1043
|
"type": "string"
|
|
1211
1044
|
},
|
|
1212
1045
|
{
|
|
1213
|
-
"name": "
|
|
1214
|
-
"description": "
|
|
1046
|
+
"name": "value",
|
|
1047
|
+
"description": "时间选择器的初始值",
|
|
1215
1048
|
"type": "string"
|
|
1216
1049
|
},
|
|
1217
1050
|
{
|
|
1218
|
-
"name": "
|
|
1219
|
-
"description": "
|
|
1051
|
+
"name": "placeholder",
|
|
1052
|
+
"description": "时间选择器占位说明",
|
|
1053
|
+
"type": "string"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "message",
|
|
1057
|
+
"description": "校验文本信息",
|
|
1220
1058
|
"attribute": false,
|
|
1221
|
-
"type": "
|
|
1059
|
+
"type": "Record<string, string>"
|
|
1222
1060
|
},
|
|
1223
1061
|
{
|
|
1224
1062
|
"name": "disabled",
|
|
@@ -1231,7 +1069,60 @@
|
|
|
1231
1069
|
"type": "boolean"
|
|
1232
1070
|
},
|
|
1233
1071
|
{
|
|
1234
|
-
"name": "
|
|
1072
|
+
"name": "configProps",
|
|
1073
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1074
|
+
"attribute": false,
|
|
1075
|
+
"type": "Partial<TimePickerProps>"
|
|
1076
|
+
}
|
|
1077
|
+
],
|
|
1078
|
+
"events": [
|
|
1079
|
+
{
|
|
1080
|
+
"name": "change",
|
|
1081
|
+
"description": "时间变化时触发",
|
|
1082
|
+
"detail": {
|
|
1083
|
+
"type": "string"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "open",
|
|
1088
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1089
|
+
"detail": {
|
|
1090
|
+
"type": "string"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "close",
|
|
1095
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1096
|
+
"detail": {
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
"slots": [],
|
|
1102
|
+
"methods": [],
|
|
1103
|
+
"parts": [],
|
|
1104
|
+
"description": "时间选择器",
|
|
1105
|
+
"category": "form-input-basic"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"name": "eo-select",
|
|
1109
|
+
"alias": [
|
|
1110
|
+
"form.general-select"
|
|
1111
|
+
],
|
|
1112
|
+
"properties": [
|
|
1113
|
+
{
|
|
1114
|
+
"name": "name",
|
|
1115
|
+
"description": "字段名称",
|
|
1116
|
+
"type": "string"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"name": "placeholder",
|
|
1120
|
+
"description": "占位说明",
|
|
1121
|
+
"type": "string"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "label",
|
|
1125
|
+
"description": "字段文本",
|
|
1235
1126
|
"type": "string"
|
|
1236
1127
|
},
|
|
1237
1128
|
{
|
|
@@ -1239,74 +1130,170 @@
|
|
|
1239
1130
|
"description": "选项列表",
|
|
1240
1131
|
"required": true,
|
|
1241
1132
|
"attribute": false,
|
|
1242
|
-
"type": "
|
|
1133
|
+
"type": "GeneralComplexOption[]"
|
|
1243
1134
|
},
|
|
1244
1135
|
{
|
|
1245
|
-
"name": "
|
|
1246
|
-
"description": "
|
|
1136
|
+
"name": "value",
|
|
1137
|
+
"description": "值",
|
|
1138
|
+
"attribute": false,
|
|
1139
|
+
"type": "any"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "required",
|
|
1143
|
+
"description": "是否必填",
|
|
1247
1144
|
"type": "boolean"
|
|
1248
1145
|
},
|
|
1249
1146
|
{
|
|
1250
|
-
"name": "
|
|
1251
|
-
"description": "
|
|
1147
|
+
"name": "message",
|
|
1148
|
+
"description": "校验文本信息",
|
|
1252
1149
|
"attribute": false,
|
|
1253
|
-
"type": "
|
|
1150
|
+
"type": "Record<string, string>"
|
|
1254
1151
|
},
|
|
1255
1152
|
{
|
|
1256
|
-
"name": "
|
|
1257
|
-
"description": "
|
|
1153
|
+
"name": "disabled",
|
|
1154
|
+
"description": "是否禁用",
|
|
1155
|
+
"type": "boolean"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"name": "mode",
|
|
1159
|
+
"description": "类型",
|
|
1160
|
+
"type": "\"tags\" | \"multiple\""
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "tokenSeparators",
|
|
1164
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
1165
|
+
"attribute": false,
|
|
1166
|
+
"type": "string[]"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"name": "maxTagCount",
|
|
1170
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
1171
|
+
"type": "number"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"name": "groupBy",
|
|
1175
|
+
"description": "分组字段",
|
|
1258
1176
|
"type": "string"
|
|
1259
1177
|
},
|
|
1260
1178
|
{
|
|
1261
|
-
"name": "
|
|
1262
|
-
"description": "
|
|
1179
|
+
"name": "suffix",
|
|
1180
|
+
"description": "",
|
|
1263
1181
|
"attribute": false,
|
|
1264
|
-
"type": "
|
|
1182
|
+
"type": "{ useBrick: UseSingleBrickConf }"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"name": "clearable",
|
|
1186
|
+
"description": "是否支持清除",
|
|
1187
|
+
"default": "true",
|
|
1188
|
+
"type": "boolean"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "fields",
|
|
1192
|
+
"description": "列表指定字段作为 label 和 value",
|
|
1193
|
+
"attribute": false,
|
|
1194
|
+
"type": "{ label?: string; value?: string }"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "useBackend",
|
|
1198
|
+
"description": "后端搜索",
|
|
1199
|
+
"attribute": false,
|
|
1200
|
+
"type": "UseBackendConf"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "debounceSearchDelay",
|
|
1204
|
+
"description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
|
|
1205
|
+
"type": "number"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "inputStyle",
|
|
1209
|
+
"description": "输入框样式",
|
|
1210
|
+
"attribute": false,
|
|
1211
|
+
"type": "React.CSSProperties"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"name": "dropdownStyle",
|
|
1215
|
+
"description": "下拉框样式",
|
|
1216
|
+
"attribute": false,
|
|
1217
|
+
"type": "React.CSSProperties"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "dropdownHoist",
|
|
1221
|
+
"description": "下拉框是否使用固定定位防止内容被裁切",
|
|
1222
|
+
"type": "boolean"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"name": "themeVariant",
|
|
1226
|
+
"description": "主题变体",
|
|
1227
|
+
"type": "\"default\" | \"elevo\""
|
|
1265
1228
|
}
|
|
1266
1229
|
],
|
|
1267
1230
|
"events": [
|
|
1268
1231
|
{
|
|
1269
1232
|
"name": "change",
|
|
1270
|
-
"description": "
|
|
1233
|
+
"description": "下拉选择事件",
|
|
1271
1234
|
"detail": {
|
|
1272
|
-
"type": "string"
|
|
1235
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "change.v2",
|
|
1240
|
+
"description": "下拉选择事件 v2(仅传递选中的值)",
|
|
1241
|
+
"detail": {
|
|
1242
|
+
"description": "选中的值",
|
|
1243
|
+
"type": "string | string[]"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "search",
|
|
1248
|
+
"description": "下拉框search事件",
|
|
1249
|
+
"detail": {
|
|
1250
|
+
"type": "{\n value: string;\n }"
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "select.focus",
|
|
1255
|
+
"description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
|
|
1256
|
+
"detail": {
|
|
1257
|
+
"type": "void"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "options.change",
|
|
1262
|
+
"description": "选项列表变化事件",
|
|
1263
|
+
"detail": {
|
|
1264
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
1273
1265
|
}
|
|
1274
1266
|
}
|
|
1275
1267
|
],
|
|
1276
1268
|
"slots": [],
|
|
1277
1269
|
"methods": [],
|
|
1278
1270
|
"parts": [],
|
|
1279
|
-
"description": "
|
|
1271
|
+
"description": "通用下拉选择构件",
|
|
1280
1272
|
"category": "form-input-basic"
|
|
1281
1273
|
},
|
|
1282
1274
|
{
|
|
1283
|
-
"name": "eo-
|
|
1275
|
+
"name": "eo-auto-complete",
|
|
1284
1276
|
"properties": [
|
|
1285
1277
|
{
|
|
1286
1278
|
"name": "name",
|
|
1287
|
-
"description": "
|
|
1288
|
-
"type": "string"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
"name": "label",
|
|
1292
|
-
"description": "时间选择器说明",
|
|
1279
|
+
"description": "字段名称",
|
|
1293
1280
|
"type": "string"
|
|
1294
1281
|
},
|
|
1295
1282
|
{
|
|
1296
|
-
"name": "
|
|
1297
|
-
"description": "
|
|
1283
|
+
"name": "placeholder",
|
|
1284
|
+
"description": "占位说明",
|
|
1298
1285
|
"type": "string"
|
|
1299
1286
|
},
|
|
1300
1287
|
{
|
|
1301
|
-
"name": "
|
|
1302
|
-
"description": "
|
|
1288
|
+
"name": "label",
|
|
1289
|
+
"description": "字段文本",
|
|
1303
1290
|
"type": "string"
|
|
1304
1291
|
},
|
|
1305
1292
|
{
|
|
1306
|
-
"name": "
|
|
1307
|
-
"description": "
|
|
1293
|
+
"name": "inputStyle",
|
|
1294
|
+
"description": "输入框样式",
|
|
1308
1295
|
"attribute": false,
|
|
1309
|
-
"type": "
|
|
1296
|
+
"type": "React.CSSProperties"
|
|
1310
1297
|
},
|
|
1311
1298
|
{
|
|
1312
1299
|
"name": "disabled",
|
|
@@ -1319,30 +1306,43 @@
|
|
|
1319
1306
|
"type": "boolean"
|
|
1320
1307
|
},
|
|
1321
1308
|
{
|
|
1322
|
-
"name": "
|
|
1323
|
-
"
|
|
1309
|
+
"name": "value",
|
|
1310
|
+
"type": "string"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"name": "options",
|
|
1314
|
+
"description": "选项列表",
|
|
1315
|
+
"required": true,
|
|
1324
1316
|
"attribute": false,
|
|
1325
|
-
"type": "
|
|
1326
|
-
}
|
|
1327
|
-
],
|
|
1328
|
-
"events": [
|
|
1317
|
+
"type": "string[] | OptionType[]"
|
|
1318
|
+
},
|
|
1329
1319
|
{
|
|
1330
|
-
"name": "
|
|
1331
|
-
"description": "
|
|
1332
|
-
"
|
|
1333
|
-
"type": "string"
|
|
1334
|
-
}
|
|
1320
|
+
"name": "filterByCaption",
|
|
1321
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1322
|
+
"type": "boolean"
|
|
1335
1323
|
},
|
|
1336
1324
|
{
|
|
1337
|
-
"name": "
|
|
1338
|
-
"description": "
|
|
1339
|
-
"
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1325
|
+
"name": "validator",
|
|
1326
|
+
"description": "表单项校验方法",
|
|
1327
|
+
"attribute": false,
|
|
1328
|
+
"type": "((value: any) => MessageBody)"
|
|
1342
1329
|
},
|
|
1343
1330
|
{
|
|
1344
|
-
"name": "
|
|
1345
|
-
"description": "
|
|
1331
|
+
"name": "pattern",
|
|
1332
|
+
"description": "正则校验规则",
|
|
1333
|
+
"type": "string"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "message",
|
|
1337
|
+
"description": "校验文本信息",
|
|
1338
|
+
"attribute": false,
|
|
1339
|
+
"type": "Record<string, string>"
|
|
1340
|
+
}
|
|
1341
|
+
],
|
|
1342
|
+
"events": [
|
|
1343
|
+
{
|
|
1344
|
+
"name": "change",
|
|
1345
|
+
"description": "值改变事件",
|
|
1346
1346
|
"detail": {
|
|
1347
1347
|
"type": "string"
|
|
1348
1348
|
}
|
|
@@ -1351,7 +1351,7 @@
|
|
|
1351
1351
|
"slots": [],
|
|
1352
1352
|
"methods": [],
|
|
1353
1353
|
"parts": [],
|
|
1354
|
-
"description": "
|
|
1354
|
+
"description": "带候选项的输入框",
|
|
1355
1355
|
"category": "form-input-basic"
|
|
1356
1356
|
},
|
|
1357
1357
|
{
|