@next-bricks/form 1.15.21 → 1.16.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.
@@ -3,104 +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
- "events": [
82
- {
83
- "name": "change",
84
- "description": "",
85
- "detail": {
86
- "description": null,
87
- "type": "string"
88
- }
89
- }
90
- ],
91
- "slots": [],
92
- "methods": [
93
- {
94
- "name": "focusTextarea",
95
- "params": [],
96
- "description": "focus",
97
- "returns": {}
98
- }
99
- ],
100
- "parts": [],
101
- "description": "通用多行文本输入框构件",
102
- "category": "form-input-basic"
103
- },
104
6
  {
105
7
  "name": "eo-radio",
106
8
  "alias": [
@@ -305,6 +207,12 @@
305
207
  "attribute": false,
306
208
  "type": "React.CSSProperties"
307
209
  },
210
+ {
211
+ "name": "dropdownStyle",
212
+ "description": "下拉框样式",
213
+ "attribute": false,
214
+ "type": "React.CSSProperties"
215
+ },
308
216
  {
309
217
  "name": "dropdownHoist",
310
218
  "description": "下拉框是否使用固定定位防止内容被裁切",
@@ -407,6 +315,104 @@
407
315
  "description": "表单提交按钮",
408
316
  "category": "form-input-basic"
409
317
  },
318
+ {
319
+ "name": "eo-textarea",
320
+ "alias": [
321
+ "form.general-textarea"
322
+ ],
323
+ "properties": [
324
+ {
325
+ "name": "name",
326
+ "description": "字段名称",
327
+ "type": "string"
328
+ },
329
+ {
330
+ "name": "label",
331
+ "description": "标签文字",
332
+ "type": "string"
333
+ },
334
+ {
335
+ "name": "value",
336
+ "description": "值",
337
+ "type": "string"
338
+ },
339
+ {
340
+ "name": "placeholder",
341
+ "description": "占位说明",
342
+ "type": "string"
343
+ },
344
+ {
345
+ "name": "disabled",
346
+ "description": "是否禁用",
347
+ "type": "boolean"
348
+ },
349
+ {
350
+ "name": "minLength",
351
+ "description": "最小长度",
352
+ "type": "number"
353
+ },
354
+ {
355
+ "name": "maxLength",
356
+ "description": "最大长度",
357
+ "type": "number"
358
+ },
359
+ {
360
+ "name": "autoSize",
361
+ "description": "大小自适应",
362
+ "attribute": false,
363
+ "type": "AutoSize"
364
+ },
365
+ {
366
+ "name": "required",
367
+ "description": "是否必填",
368
+ "type": "boolean"
369
+ },
370
+ {
371
+ "name": "max",
372
+ "description": "表单校验最大长度",
373
+ "type": "number"
374
+ },
375
+ {
376
+ "name": "min",
377
+ "description": "表单校验最小长度",
378
+ "type": "number"
379
+ },
380
+ {
381
+ "name": "message",
382
+ "description": "校验信息",
383
+ "attribute": false,
384
+ "type": "Record<string, string>"
385
+ },
386
+ {
387
+ "name": "textareaStyle",
388
+ "description": "自定义样式",
389
+ "attribute": false,
390
+ "type": "React.CSSProperties"
391
+ }
392
+ ],
393
+ "events": [
394
+ {
395
+ "name": "change",
396
+ "description": "",
397
+ "detail": {
398
+ "description": null,
399
+ "type": "string"
400
+ }
401
+ }
402
+ ],
403
+ "slots": [],
404
+ "methods": [
405
+ {
406
+ "name": "focusTextarea",
407
+ "params": [],
408
+ "description": "focus",
409
+ "returns": {}
410
+ }
411
+ ],
412
+ "parts": [],
413
+ "description": "通用多行文本输入框构件",
414
+ "category": "form-input-basic"
415
+ },
410
416
  {
411
417
  "name": "eo-form",
412
418
  "alias": [
@@ -552,98 +558,6 @@
552
558
  "description": "表单构件",
553
559
  "category": "form-input-basic"
554
560
  },
555
- {
556
- "name": "eo-checkbox",
557
- "alias": [
558
- "form.general-checkbox"
559
- ],
560
- "properties": [
561
- {
562
- "name": "name",
563
- "description": "字段名称",
564
- "type": "string"
565
- },
566
- {
567
- "name": "label",
568
- "description": "字段说明",
569
- "type": "string"
570
- },
571
- {
572
- "name": "value",
573
- "description": "值",
574
- "attribute": false,
575
- "type": "CheckboxValueType[]"
576
- },
577
- {
578
- "name": "options",
579
- "description": "多选框选项表",
580
- "required": true,
581
- "default": "[]",
582
- "attribute": false,
583
- "type": "CheckboxOptionType[]"
584
- },
585
- {
586
- "name": "type",
587
- "description": "类型",
588
- "default": "\"default\"",
589
- "type": "CheckboxType"
590
- },
591
- {
592
- "name": "disabled",
593
- "description": "是否禁用",
594
- "type": "boolean"
595
- },
596
- {
597
- "name": "isCustom",
598
- "description": "是否为自定义",
599
- "default": "false",
600
- "type": "boolean"
601
- },
602
- {
603
- "name": "required",
604
- "description": "是否必填",
605
- "type": "boolean"
606
- },
607
- {
608
- "name": "message",
609
- "description": "校验文本",
610
- "attribute": false,
611
- "type": "Record<string, string>"
612
- },
613
- {
614
- "name": "isGroup",
615
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
616
- "type": "boolean"
617
- },
618
- {
619
- "name": "optionGroups",
620
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
621
- "attribute": false,
622
- "type": "OptionGroup[]"
623
- }
624
- ],
625
- "events": [
626
- {
627
- "name": "change",
628
- "description": "复选框变化事件",
629
- "detail": {
630
- "type": "CheckboxOptionType[]"
631
- }
632
- },
633
- {
634
- "name": "options.change",
635
- "description": "复选框变化事件",
636
- "detail": {
637
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
638
- }
639
- }
640
- ],
641
- "slots": [],
642
- "methods": [],
643
- "parts": [],
644
- "description": "表单复选框构件",
645
- "category": "form-input-basic"
646
- },
647
561
  {
648
562
  "name": "eo-dynamic-form-item",
649
563
  "alias": [
@@ -803,6 +717,98 @@
803
717
  "description": "搜索框",
804
718
  "category": "interact-basic"
805
719
  },
720
+ {
721
+ "name": "eo-checkbox",
722
+ "alias": [
723
+ "form.general-checkbox"
724
+ ],
725
+ "properties": [
726
+ {
727
+ "name": "name",
728
+ "description": "字段名称",
729
+ "type": "string"
730
+ },
731
+ {
732
+ "name": "label",
733
+ "description": "字段说明",
734
+ "type": "string"
735
+ },
736
+ {
737
+ "name": "value",
738
+ "description": "值",
739
+ "attribute": false,
740
+ "type": "CheckboxValueType[]"
741
+ },
742
+ {
743
+ "name": "options",
744
+ "description": "多选框选项表",
745
+ "required": true,
746
+ "default": "[]",
747
+ "attribute": false,
748
+ "type": "CheckboxOptionType[]"
749
+ },
750
+ {
751
+ "name": "type",
752
+ "description": "类型",
753
+ "default": "\"default\"",
754
+ "type": "CheckboxType"
755
+ },
756
+ {
757
+ "name": "disabled",
758
+ "description": "是否禁用",
759
+ "type": "boolean"
760
+ },
761
+ {
762
+ "name": "isCustom",
763
+ "description": "是否为自定义",
764
+ "default": "false",
765
+ "type": "boolean"
766
+ },
767
+ {
768
+ "name": "required",
769
+ "description": "是否必填",
770
+ "type": "boolean"
771
+ },
772
+ {
773
+ "name": "message",
774
+ "description": "校验文本",
775
+ "attribute": false,
776
+ "type": "Record<string, string>"
777
+ },
778
+ {
779
+ "name": "isGroup",
780
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
781
+ "type": "boolean"
782
+ },
783
+ {
784
+ "name": "optionGroups",
785
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
786
+ "attribute": false,
787
+ "type": "OptionGroup[]"
788
+ }
789
+ ],
790
+ "events": [
791
+ {
792
+ "name": "change",
793
+ "description": "复选框变化事件",
794
+ "detail": {
795
+ "type": "CheckboxOptionType[]"
796
+ }
797
+ },
798
+ {
799
+ "name": "options.change",
800
+ "description": "复选框变化事件",
801
+ "detail": {
802
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
803
+ }
804
+ }
805
+ ],
806
+ "slots": [],
807
+ "methods": [],
808
+ "parts": [],
809
+ "description": "表单复选框构件",
810
+ "category": "form-input-basic"
811
+ },
806
812
  {
807
813
  "name": "eo-icon-select",
808
814
  "alias": [