@next-bricks/form 1.13.11 → 1.13.12
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 +18 -18
- package/dist/chunks/9259.5f5e893d.js +3 -0
- package/dist/chunks/9259.5f5e893d.js.map +1 -0
- package/dist/chunks/eo-search.afba9bbb.js +2 -0
- package/dist/chunks/eo-search.afba9bbb.js.map +1 -0
- package/dist/chunks/{eo-select.bd119b6d.js → eo-select.87bab886.js} +3 -3
- package/dist/chunks/{eo-select.bd119b6d.js.map → eo-select.87bab886.js.map} +1 -1
- package/dist/chunks/{main.9be862ee.js → main.a505dfb4.js} +2 -2
- package/dist/chunks/{main.9be862ee.js.map → main.a505dfb4.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.7ba21f4b.js → index.caeb8395.js} +2 -2
- package/dist/{index.7ba21f4b.js.map → index.caeb8395.js.map} +1 -1
- package/dist/manifest.json +316 -310
- package/dist/types.json +77 -67
- package/dist-types/search/index.d.ts +6 -1
- package/package.json +2 -2
- package/dist/chunks/9259.7f75fe03.js +0 -3
- package/dist/chunks/9259.7f75fe03.js.map +0 -1
- package/dist/chunks/eo-search.ed0857b5.js +0 -2
- package/dist/chunks/eo-search.ed0857b5.js.map +0 -1
- /package/dist/chunks/{9259.7f75fe03.js.LICENSE.txt → 9259.5f5e893d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.bd119b6d.js.LICENSE.txt → eo-select.87bab886.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -286,6 +286,146 @@
|
|
|
286
286
|
"description": "通用多行文本输入框构件",
|
|
287
287
|
"category": "form-input-basic"
|
|
288
288
|
},
|
|
289
|
+
{
|
|
290
|
+
"name": "eo-form",
|
|
291
|
+
"alias": [
|
|
292
|
+
"form.general-form"
|
|
293
|
+
],
|
|
294
|
+
"properties": [
|
|
295
|
+
{
|
|
296
|
+
"name": "staticValues",
|
|
297
|
+
"attribute": false,
|
|
298
|
+
"type": "Record<string, unknown>"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "layout",
|
|
302
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
303
|
+
"default": "vertical",
|
|
304
|
+
"type": "Layout"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "size",
|
|
308
|
+
"description": "表单组件尺寸",
|
|
309
|
+
"type": "ComponentSize"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "labelCol",
|
|
313
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
314
|
+
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
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 }",
|
|
322
|
+
"attribute": false,
|
|
323
|
+
"type": "ColProps"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "formStyle",
|
|
327
|
+
"attribute": false,
|
|
328
|
+
"type": "React.CSSProperties"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"events": [
|
|
332
|
+
{
|
|
333
|
+
"name": "values.change",
|
|
334
|
+
"description": "表单值变更事件",
|
|
335
|
+
"detail": {
|
|
336
|
+
"description": null,
|
|
337
|
+
"type": "Record<string, unknown>"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "validate.success",
|
|
342
|
+
"description": "表单验证成功时触发事件",
|
|
343
|
+
"detail": {
|
|
344
|
+
"type": "Record<string, unknown>"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "validate.error",
|
|
349
|
+
"description": "表单验证报错时触发事件",
|
|
350
|
+
"detail": {
|
|
351
|
+
"type": "(MessageBody & { name: string })[]"
|
|
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>"
|
|
368
|
+
}
|
|
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
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"parts": [],
|
|
426
|
+
"description": "表单构件",
|
|
427
|
+
"category": "form-input-basic"
|
|
428
|
+
},
|
|
289
429
|
{
|
|
290
430
|
"name": "eo-form-item",
|
|
291
431
|
"alias": [
|
|
@@ -487,146 +627,6 @@
|
|
|
487
627
|
"description": "通用单选构件",
|
|
488
628
|
"category": "form-input-basic"
|
|
489
629
|
},
|
|
490
|
-
{
|
|
491
|
-
"name": "eo-form",
|
|
492
|
-
"alias": [
|
|
493
|
-
"form.general-form"
|
|
494
|
-
],
|
|
495
|
-
"properties": [
|
|
496
|
-
{
|
|
497
|
-
"name": "staticValues",
|
|
498
|
-
"attribute": false,
|
|
499
|
-
"type": "Record<string, unknown>"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"name": "layout",
|
|
503
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
504
|
-
"default": "vertical",
|
|
505
|
-
"type": "Layout"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"name": "size",
|
|
509
|
-
"description": "表单组件尺寸",
|
|
510
|
-
"type": "ComponentSize"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"name": "labelCol",
|
|
514
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
515
|
-
"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 }",
|
|
516
|
-
"attribute": false,
|
|
517
|
-
"type": "ColProps"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"name": "wrapperCol",
|
|
521
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
522
|
-
"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 }",
|
|
523
|
-
"attribute": false,
|
|
524
|
-
"type": "ColProps"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"name": "formStyle",
|
|
528
|
-
"attribute": false,
|
|
529
|
-
"type": "React.CSSProperties"
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
"events": [
|
|
533
|
-
{
|
|
534
|
-
"name": "values.change",
|
|
535
|
-
"description": "表单值变更事件",
|
|
536
|
-
"detail": {
|
|
537
|
-
"description": null,
|
|
538
|
-
"type": "Record<string, unknown>"
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"name": "validate.success",
|
|
543
|
-
"description": "表单验证成功时触发事件",
|
|
544
|
-
"detail": {
|
|
545
|
-
"type": "Record<string, unknown>"
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"name": "validate.error",
|
|
550
|
-
"description": "表单验证报错时触发事件",
|
|
551
|
-
"detail": {
|
|
552
|
-
"type": "(MessageBody & { name: string })[]"
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"slots": [
|
|
557
|
-
{
|
|
558
|
-
"name": null,
|
|
559
|
-
"description": "表单内容"
|
|
560
|
-
}
|
|
561
|
-
],
|
|
562
|
-
"methods": [
|
|
563
|
-
{
|
|
564
|
-
"name": "validate",
|
|
565
|
-
"params": [],
|
|
566
|
-
"description": "表单校验方法",
|
|
567
|
-
"returns": {
|
|
568
|
-
"type": "boolean | Record<string, unknown>"
|
|
569
|
-
}
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"name": "setInitValue",
|
|
573
|
-
"params": [
|
|
574
|
-
{
|
|
575
|
-
"name": "values",
|
|
576
|
-
"type": "Record<string, unknown>"
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"name": "options",
|
|
580
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
581
|
-
}
|
|
582
|
-
],
|
|
583
|
-
"description": "表单设置值方法",
|
|
584
|
-
"returns": {}
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"name": "resetFields",
|
|
588
|
-
"params": [
|
|
589
|
-
{
|
|
590
|
-
"name": "name",
|
|
591
|
-
"type": "string"
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
"description": "表单重置值方法",
|
|
595
|
-
"returns": {}
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
"name": "getFieldsValue",
|
|
599
|
-
"params": [
|
|
600
|
-
{
|
|
601
|
-
"name": "name",
|
|
602
|
-
"type": "string"
|
|
603
|
-
}
|
|
604
|
-
],
|
|
605
|
-
"description": "获取表单值方法",
|
|
606
|
-
"returns": {}
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"name": "validateField",
|
|
610
|
-
"params": [
|
|
611
|
-
{
|
|
612
|
-
"name": "name",
|
|
613
|
-
"type": "string"
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"description": "校验表单字段方法",
|
|
617
|
-
"returns": {}
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"name": "resetValidateState",
|
|
621
|
-
"params": [],
|
|
622
|
-
"description": "重置表单校验状态方法",
|
|
623
|
-
"returns": {}
|
|
624
|
-
}
|
|
625
|
-
],
|
|
626
|
-
"parts": [],
|
|
627
|
-
"description": "表单构件",
|
|
628
|
-
"category": "form-input-basic"
|
|
629
|
-
},
|
|
630
630
|
{
|
|
631
631
|
"name": "eo-select",
|
|
632
632
|
"alias": [
|
|
@@ -788,46 +788,138 @@
|
|
|
788
788
|
"type": "string"
|
|
789
789
|
},
|
|
790
790
|
{
|
|
791
|
-
"name": "disableAfterClick",
|
|
792
|
-
"description": "点击确定按钮后自动禁用",
|
|
791
|
+
"name": "disableAfterClick",
|
|
792
|
+
"description": "点击确定按钮后自动禁用",
|
|
793
|
+
"type": "boolean"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "submitDisabled",
|
|
797
|
+
"description": "禁用提交按钮",
|
|
798
|
+
"type": "boolean"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "submitType",
|
|
802
|
+
"description": "提交按钮类型",
|
|
803
|
+
"type": "ButtonType"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "cancelType",
|
|
807
|
+
"description": "取消按钮类型",
|
|
808
|
+
"type": "ButtonType"
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"events": [
|
|
812
|
+
{
|
|
813
|
+
"name": "submit",
|
|
814
|
+
"description": "点击提交按钮触发的事件",
|
|
815
|
+
"detail": {
|
|
816
|
+
"type": "void"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"name": "cancel",
|
|
821
|
+
"description": "点击取消按钮触发的事件",
|
|
822
|
+
"detail": {
|
|
823
|
+
"type": "void"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"slots": [],
|
|
828
|
+
"methods": [],
|
|
829
|
+
"parts": [],
|
|
830
|
+
"description": "表单提交按钮",
|
|
831
|
+
"category": "form-input-basic"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "eo-checkbox",
|
|
835
|
+
"alias": [
|
|
836
|
+
"form.general-checkbox"
|
|
837
|
+
],
|
|
838
|
+
"properties": [
|
|
839
|
+
{
|
|
840
|
+
"name": "name",
|
|
841
|
+
"description": "字段名称",
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"name": "label",
|
|
846
|
+
"description": "字段说明",
|
|
847
|
+
"type": "string"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "value",
|
|
851
|
+
"description": "值",
|
|
852
|
+
"attribute": false,
|
|
853
|
+
"type": "CheckboxValueType[]"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "options",
|
|
857
|
+
"description": "多选框选项表",
|
|
858
|
+
"required": true,
|
|
859
|
+
"default": "[]",
|
|
860
|
+
"attribute": false,
|
|
861
|
+
"type": "CheckboxOptionType[]"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "type",
|
|
865
|
+
"description": "类型",
|
|
866
|
+
"default": "\"default\"",
|
|
867
|
+
"type": "CheckboxType"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "disabled",
|
|
871
|
+
"description": "是否禁用",
|
|
872
|
+
"type": "boolean"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "isCustom",
|
|
876
|
+
"description": "是否为自定义",
|
|
877
|
+
"default": "false",
|
|
878
|
+
"type": "boolean"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "required",
|
|
882
|
+
"description": "是否必填",
|
|
793
883
|
"type": "boolean"
|
|
794
884
|
},
|
|
795
885
|
{
|
|
796
|
-
"name": "
|
|
797
|
-
"description": "
|
|
798
|
-
"
|
|
886
|
+
"name": "message",
|
|
887
|
+
"description": "校验文本",
|
|
888
|
+
"attribute": false,
|
|
889
|
+
"type": "Record<string, string>"
|
|
799
890
|
},
|
|
800
891
|
{
|
|
801
|
-
"name": "
|
|
802
|
-
"description": "
|
|
803
|
-
"type": "
|
|
892
|
+
"name": "isGroup",
|
|
893
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
894
|
+
"type": "boolean"
|
|
804
895
|
},
|
|
805
896
|
{
|
|
806
|
-
"name": "
|
|
807
|
-
"description": "
|
|
808
|
-
"
|
|
897
|
+
"name": "optionGroups",
|
|
898
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
899
|
+
"attribute": false,
|
|
900
|
+
"type": "OptionGroup[]"
|
|
809
901
|
}
|
|
810
902
|
],
|
|
811
903
|
"events": [
|
|
812
904
|
{
|
|
813
|
-
"name": "
|
|
814
|
-
"description": "
|
|
905
|
+
"name": "change",
|
|
906
|
+
"description": "复选框变化事件",
|
|
815
907
|
"detail": {
|
|
816
|
-
"type": "
|
|
908
|
+
"type": "CheckboxOptionType[]"
|
|
817
909
|
}
|
|
818
910
|
},
|
|
819
911
|
{
|
|
820
|
-
"name": "
|
|
821
|
-
"description": "
|
|
912
|
+
"name": "options.change",
|
|
913
|
+
"description": "复选框变化事件",
|
|
822
914
|
"detail": {
|
|
823
|
-
"type": "
|
|
915
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
824
916
|
}
|
|
825
917
|
}
|
|
826
918
|
],
|
|
827
919
|
"slots": [],
|
|
828
920
|
"methods": [],
|
|
829
921
|
"parts": [],
|
|
830
|
-
"description": "
|
|
922
|
+
"description": "表单复选框构件",
|
|
831
923
|
"category": "form-input-basic"
|
|
832
924
|
},
|
|
833
925
|
{
|
|
@@ -959,6 +1051,12 @@
|
|
|
959
1051
|
"description": "默认延迟时间",
|
|
960
1052
|
"default": "0",
|
|
961
1053
|
"type": "number"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "inputStyle",
|
|
1057
|
+
"description": "输入框样式",
|
|
1058
|
+
"attribute": false,
|
|
1059
|
+
"type": "CSSProperties"
|
|
962
1060
|
}
|
|
963
1061
|
],
|
|
964
1062
|
"events": [
|
|
@@ -983,98 +1081,6 @@
|
|
|
983
1081
|
"description": "搜索框",
|
|
984
1082
|
"category": "interact-basic"
|
|
985
1083
|
},
|
|
986
|
-
{
|
|
987
|
-
"name": "eo-checkbox",
|
|
988
|
-
"alias": [
|
|
989
|
-
"form.general-checkbox"
|
|
990
|
-
],
|
|
991
|
-
"properties": [
|
|
992
|
-
{
|
|
993
|
-
"name": "name",
|
|
994
|
-
"description": "字段名称",
|
|
995
|
-
"type": "string"
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"name": "label",
|
|
999
|
-
"description": "字段说明",
|
|
1000
|
-
"type": "string"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
"name": "value",
|
|
1004
|
-
"description": "值",
|
|
1005
|
-
"attribute": false,
|
|
1006
|
-
"type": "CheckboxValueType[]"
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
"name": "options",
|
|
1010
|
-
"description": "多选框选项表",
|
|
1011
|
-
"required": true,
|
|
1012
|
-
"default": "[]",
|
|
1013
|
-
"attribute": false,
|
|
1014
|
-
"type": "CheckboxOptionType[]"
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
"name": "type",
|
|
1018
|
-
"description": "类型",
|
|
1019
|
-
"default": "\"default\"",
|
|
1020
|
-
"type": "CheckboxType"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
"name": "disabled",
|
|
1024
|
-
"description": "是否禁用",
|
|
1025
|
-
"type": "boolean"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"name": "isCustom",
|
|
1029
|
-
"description": "是否为自定义",
|
|
1030
|
-
"default": "false",
|
|
1031
|
-
"type": "boolean"
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"name": "required",
|
|
1035
|
-
"description": "是否必填",
|
|
1036
|
-
"type": "boolean"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
"name": "message",
|
|
1040
|
-
"description": "校验文本",
|
|
1041
|
-
"attribute": false,
|
|
1042
|
-
"type": "Record<string, string>"
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
"name": "isGroup",
|
|
1046
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
1047
|
-
"type": "boolean"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"name": "optionGroups",
|
|
1051
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
1052
|
-
"attribute": false,
|
|
1053
|
-
"type": "OptionGroup[]"
|
|
1054
|
-
}
|
|
1055
|
-
],
|
|
1056
|
-
"events": [
|
|
1057
|
-
{
|
|
1058
|
-
"name": "change",
|
|
1059
|
-
"description": "复选框变化事件",
|
|
1060
|
-
"detail": {
|
|
1061
|
-
"type": "CheckboxOptionType[]"
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"name": "options.change",
|
|
1066
|
-
"description": "复选框变化事件",
|
|
1067
|
-
"detail": {
|
|
1068
|
-
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
],
|
|
1072
|
-
"slots": [],
|
|
1073
|
-
"methods": [],
|
|
1074
|
-
"parts": [],
|
|
1075
|
-
"description": "表单复选框构件",
|
|
1076
|
-
"category": "form-input-basic"
|
|
1077
|
-
},
|
|
1078
1084
|
{
|
|
1079
1085
|
"name": "eo-icon-select",
|
|
1080
1086
|
"alias": [
|
|
@@ -1649,27 +1655,24 @@
|
|
|
1649
1655
|
"category": "form-input-basic"
|
|
1650
1656
|
},
|
|
1651
1657
|
{
|
|
1652
|
-
"name": "eo-
|
|
1658
|
+
"name": "eo-time-range-picker",
|
|
1653
1659
|
"properties": [
|
|
1654
1660
|
{
|
|
1655
1661
|
"name": "name",
|
|
1656
|
-
"description": "
|
|
1662
|
+
"description": "时间段选择器字段名",
|
|
1657
1663
|
"type": "string"
|
|
1658
1664
|
},
|
|
1659
1665
|
{
|
|
1660
1666
|
"name": "label",
|
|
1661
|
-
"description": "
|
|
1667
|
+
"description": "时间段选择器说明",
|
|
1662
1668
|
"type": "string"
|
|
1663
1669
|
},
|
|
1664
1670
|
{
|
|
1665
1671
|
"name": "value",
|
|
1666
|
-
"description": "
|
|
1667
|
-
"
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
"name": "defaultValue",
|
|
1671
|
-
"description": "颜色默认的值",
|
|
1672
|
-
"type": "string | Color"
|
|
1672
|
+
"description": "时间段选择器的初始值",
|
|
1673
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1674
|
+
"attribute": false,
|
|
1675
|
+
"type": "TimeRange"
|
|
1673
1676
|
},
|
|
1674
1677
|
{
|
|
1675
1678
|
"name": "required",
|
|
@@ -1677,74 +1680,72 @@
|
|
|
1677
1680
|
"type": "boolean"
|
|
1678
1681
|
},
|
|
1679
1682
|
{
|
|
1680
|
-
"name": "
|
|
1681
|
-
"description": "
|
|
1682
|
-
"type": "boolean"
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
"name": "size",
|
|
1686
|
-
"description": "设置触发器大小",
|
|
1687
|
-
"default": "middle",
|
|
1683
|
+
"name": "rangeType",
|
|
1684
|
+
"description": "时间段类型",
|
|
1688
1685
|
"attribute": false,
|
|
1689
|
-
"type": "
|
|
1686
|
+
"type": "RangeType"
|
|
1690
1687
|
},
|
|
1691
1688
|
{
|
|
1692
|
-
"name": "
|
|
1693
|
-
"description": "
|
|
1694
|
-
"type": "
|
|
1689
|
+
"name": "selectNearDays",
|
|
1690
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1691
|
+
"type": "number"
|
|
1695
1692
|
},
|
|
1696
1693
|
{
|
|
1697
|
-
"name": "
|
|
1698
|
-
"description": "
|
|
1694
|
+
"name": "emitChangeOnInit",
|
|
1695
|
+
"description": "",
|
|
1696
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1699
1697
|
"type": "boolean"
|
|
1700
1698
|
},
|
|
1701
1699
|
{
|
|
1702
|
-
"name": "
|
|
1703
|
-
"description": "
|
|
1704
|
-
"default": "
|
|
1700
|
+
"name": "presetRanges",
|
|
1701
|
+
"description": "",
|
|
1702
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1705
1703
|
"attribute": false,
|
|
1706
|
-
"type": "
|
|
1704
|
+
"type": "presetRangeType[]"
|
|
1707
1705
|
},
|
|
1708
1706
|
{
|
|
1709
|
-
"name": "
|
|
1710
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1707
|
+
"name": "validator",
|
|
1711
1708
|
"attribute": false,
|
|
1712
|
-
"type": "
|
|
1709
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1713
1710
|
}
|
|
1714
1711
|
],
|
|
1715
1712
|
"events": [
|
|
1716
1713
|
{
|
|
1717
1714
|
"name": "change",
|
|
1718
|
-
"description": "
|
|
1715
|
+
"description": "时间段变化时触发",
|
|
1719
1716
|
"detail": {
|
|
1720
|
-
"type": "
|
|
1717
|
+
"type": "TimeRange"
|
|
1721
1718
|
}
|
|
1722
1719
|
}
|
|
1723
1720
|
],
|
|
1724
1721
|
"slots": [],
|
|
1725
1722
|
"methods": [],
|
|
1726
1723
|
"parts": [],
|
|
1727
|
-
"description": "
|
|
1724
|
+
"description": "时间区间选择器",
|
|
1725
|
+
"category": "form-input-basic"
|
|
1728
1726
|
},
|
|
1729
1727
|
{
|
|
1730
|
-
"name": "eo-
|
|
1728
|
+
"name": "eo-color-picker",
|
|
1731
1729
|
"properties": [
|
|
1732
1730
|
{
|
|
1733
1731
|
"name": "name",
|
|
1734
|
-
"description": "
|
|
1732
|
+
"description": "字段名称",
|
|
1735
1733
|
"type": "string"
|
|
1736
1734
|
},
|
|
1737
1735
|
{
|
|
1738
1736
|
"name": "label",
|
|
1739
|
-
"description": "
|
|
1737
|
+
"description": "字段说明",
|
|
1740
1738
|
"type": "string"
|
|
1741
1739
|
},
|
|
1742
1740
|
{
|
|
1743
1741
|
"name": "value",
|
|
1744
|
-
"description": "
|
|
1745
|
-
"
|
|
1746
|
-
|
|
1747
|
-
|
|
1742
|
+
"description": "值",
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "defaultValue",
|
|
1747
|
+
"description": "颜色默认的值",
|
|
1748
|
+
"type": "string | Color"
|
|
1748
1749
|
},
|
|
1749
1750
|
{
|
|
1750
1751
|
"name": "required",
|
|
@@ -1752,49 +1753,54 @@
|
|
|
1752
1753
|
"type": "boolean"
|
|
1753
1754
|
},
|
|
1754
1755
|
{
|
|
1755
|
-
"name": "
|
|
1756
|
-
"description": "
|
|
1756
|
+
"name": "allowClear",
|
|
1757
|
+
"description": "允许清除选择的颜色",
|
|
1758
|
+
"type": "boolean"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "size",
|
|
1762
|
+
"description": "设置触发器大小",
|
|
1763
|
+
"default": "middle",
|
|
1757
1764
|
"attribute": false,
|
|
1758
|
-
"type": "
|
|
1765
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1759
1766
|
},
|
|
1760
1767
|
{
|
|
1761
|
-
"name": "
|
|
1762
|
-
"description": "
|
|
1763
|
-
"type": "
|
|
1768
|
+
"name": "showText",
|
|
1769
|
+
"description": "显示颜色文本",
|
|
1770
|
+
"type": "boolean"
|
|
1764
1771
|
},
|
|
1765
1772
|
{
|
|
1766
|
-
"name": "
|
|
1767
|
-
"description": "",
|
|
1768
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1773
|
+
"name": "disabled",
|
|
1774
|
+
"description": "是否禁用",
|
|
1769
1775
|
"type": "boolean"
|
|
1770
1776
|
},
|
|
1771
1777
|
{
|
|
1772
|
-
"name": "
|
|
1773
|
-
"description": "",
|
|
1774
|
-
"default": "
|
|
1778
|
+
"name": "format",
|
|
1779
|
+
"description": "颜色格式",
|
|
1780
|
+
"default": "hex",
|
|
1775
1781
|
"attribute": false,
|
|
1776
|
-
"type": "
|
|
1782
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1777
1783
|
},
|
|
1778
1784
|
{
|
|
1779
|
-
"name": "
|
|
1785
|
+
"name": "configProps",
|
|
1786
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1780
1787
|
"attribute": false,
|
|
1781
|
-
"type": "
|
|
1788
|
+
"type": "Partial<ColorPickerProps>"
|
|
1782
1789
|
}
|
|
1783
1790
|
],
|
|
1784
1791
|
"events": [
|
|
1785
1792
|
{
|
|
1786
1793
|
"name": "change",
|
|
1787
|
-
"description": "
|
|
1794
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1788
1795
|
"detail": {
|
|
1789
|
-
"type": "
|
|
1796
|
+
"type": "string | undefined"
|
|
1790
1797
|
}
|
|
1791
1798
|
}
|
|
1792
1799
|
],
|
|
1793
1800
|
"slots": [],
|
|
1794
1801
|
"methods": [],
|
|
1795
1802
|
"parts": [],
|
|
1796
|
-
"description": "
|
|
1797
|
-
"category": "form-input-basic"
|
|
1803
|
+
"description": "构件 `eo-color-picker`"
|
|
1798
1804
|
}
|
|
1799
1805
|
],
|
|
1800
1806
|
"providers": []
|