@next-bricks/form 1.13.4 → 1.13.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.
Files changed (80) hide show
  1. package/dist/bricks.json +14 -14
  2. package/dist/chunks/{3171.bfa526d0.js → 3171.380e52df.js} +2 -2
  3. package/dist/chunks/{5552.f2e38477.js.map → 3171.380e52df.js.map} +1 -1
  4. package/dist/chunks/{4837.da0fe122.js → 4837.9fd98902.js} +2 -2
  5. package/dist/chunks/{7218.8e41ef02.js.map → 4837.9fd98902.js.map} +1 -1
  6. package/dist/chunks/{5552.f2e38477.js → 5552.e6b1c2b5.js} +2 -2
  7. package/dist/chunks/{3171.bfa526d0.js.map → 5552.e6b1c2b5.js.map} +1 -1
  8. package/dist/chunks/{7218.8e41ef02.js → 7218.7a5b2ece.js} +2 -2
  9. package/dist/chunks/{4837.da0fe122.js.map → 7218.7a5b2ece.js.map} +1 -1
  10. package/dist/chunks/{790.4d902e94.js → 790.2cea152f.js} +2 -2
  11. package/dist/chunks/{790.4d902e94.js.map → 790.2cea152f.js.map} +1 -1
  12. package/dist/chunks/{799.afdb809c.js → 799.a713d5a2.js} +3 -3
  13. package/dist/chunks/799.a713d5a2.js.map +1 -0
  14. package/dist/chunks/9259.73ddc9b8.js +3 -0
  15. package/dist/chunks/9259.73ddc9b8.js.map +1 -0
  16. package/dist/chunks/eo-color-picker.ae936a48.js +2 -0
  17. package/dist/chunks/{eo-color-picker.e5f183c4.js.map → eo-color-picker.ae936a48.js.map} +1 -1
  18. package/dist/chunks/eo-date-picker.a4b02509.js +2 -0
  19. package/dist/chunks/{eo-date-picker.95d1c925.js.map → eo-date-picker.a4b02509.js.map} +1 -1
  20. package/dist/chunks/eo-dynamic-form-item.d2bcd6b2.js +3 -0
  21. package/dist/chunks/{eo-dynamic-form-item.e5bb1558.js.map → eo-dynamic-form-item.d2bcd6b2.js.map} +1 -1
  22. package/dist/chunks/eo-form-item.2630fba8.js +3 -0
  23. package/dist/chunks/eo-form-item.2630fba8.js.map +1 -0
  24. package/dist/chunks/{eo-form.52b0a429.js → eo-form.0218499b.js} +2 -2
  25. package/dist/chunks/eo-form.0218499b.js.map +1 -0
  26. package/dist/chunks/eo-input.721b4ee8.js +3 -0
  27. package/dist/chunks/eo-input.721b4ee8.js.map +1 -0
  28. package/dist/chunks/eo-radio.cf9e433b.js +3 -0
  29. package/dist/chunks/eo-radio.cf9e433b.js.map +1 -0
  30. package/dist/chunks/eo-select.26581a36.js +3 -0
  31. package/dist/chunks/{eo-select.d313c433.js.map → eo-select.26581a36.js.map} +1 -1
  32. package/dist/chunks/eo-time-picker.d0d2997b.js +2 -0
  33. package/dist/chunks/{eo-time-picker.04ef402f.js.map → eo-time-picker.d0d2997b.js.map} +1 -1
  34. package/dist/chunks/eo-time-range-picker.a1f0b8f1.js +2 -0
  35. package/dist/chunks/{eo-time-range-picker.865254af.js.map → eo-time-range-picker.a1f0b8f1.js.map} +1 -1
  36. package/dist/chunks/eo-upload-file.8f1819f7.js +3 -0
  37. package/dist/chunks/{eo-upload-file.e67d3268.js.map → eo-upload-file.8f1819f7.js.map} +1 -1
  38. package/dist/chunks/{eo-upload-image.b866ae24.js → eo-upload-image.4adc50dc.js} +3 -3
  39. package/dist/chunks/{eo-upload-image.b866ae24.js.map → eo-upload-image.4adc50dc.js.map} +1 -1
  40. package/dist/chunks/main.08e92b6b.js +2 -0
  41. package/dist/chunks/{main.b831a2de.js.map → main.08e92b6b.js.map} +1 -1
  42. package/dist/examples.json +3 -3
  43. package/dist/index.8e3bfb8e.js +2 -0
  44. package/dist/index.8e3bfb8e.js.map +1 -0
  45. package/dist/manifest.json +162 -158
  46. package/dist/stories.json +0 -48
  47. package/dist/types.json +7 -0
  48. package/dist-types/form-item/index.d.ts +2 -0
  49. package/dist-types/input/index.d.ts +5 -3
  50. package/dist-types/radio/index.d.ts +1 -1
  51. package/package.json +3 -3
  52. package/dist/chunks/799.afdb809c.js.map +0 -1
  53. package/dist/chunks/9259.db79e3c6.js +0 -3
  54. package/dist/chunks/9259.db79e3c6.js.map +0 -1
  55. package/dist/chunks/eo-color-picker.e5f183c4.js +0 -2
  56. package/dist/chunks/eo-date-picker.95d1c925.js +0 -2
  57. package/dist/chunks/eo-dynamic-form-item.e5bb1558.js +0 -3
  58. package/dist/chunks/eo-form-item.38e2e6cd.js +0 -3
  59. package/dist/chunks/eo-form-item.38e2e6cd.js.map +0 -1
  60. package/dist/chunks/eo-form.52b0a429.js.map +0 -1
  61. package/dist/chunks/eo-input.561ca56a.js +0 -3
  62. package/dist/chunks/eo-input.561ca56a.js.map +0 -1
  63. package/dist/chunks/eo-radio.5a6590c0.js +0 -3
  64. package/dist/chunks/eo-radio.5a6590c0.js.map +0 -1
  65. package/dist/chunks/eo-select.d313c433.js +0 -3
  66. package/dist/chunks/eo-time-picker.04ef402f.js +0 -2
  67. package/dist/chunks/eo-time-range-picker.865254af.js +0 -2
  68. package/dist/chunks/eo-upload-file.e67d3268.js +0 -3
  69. package/dist/chunks/main.b831a2de.js +0 -2
  70. package/dist/index.d99480d8.js +0 -2
  71. package/dist/index.d99480d8.js.map +0 -1
  72. /package/dist/chunks/{799.afdb809c.js.LICENSE.txt → 799.a713d5a2.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{9259.db79e3c6.js.LICENSE.txt → 9259.73ddc9b8.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-dynamic-form-item.e5bb1558.js.LICENSE.txt → eo-dynamic-form-item.d2bcd6b2.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-form-item.38e2e6cd.js.LICENSE.txt → eo-form-item.2630fba8.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{eo-input.561ca56a.js.LICENSE.txt → eo-input.721b4ee8.js.LICENSE.txt} +0 -0
  77. /package/dist/chunks/{eo-radio.5a6590c0.js.LICENSE.txt → eo-radio.cf9e433b.js.LICENSE.txt} +0 -0
  78. /package/dist/chunks/{eo-select.d313c433.js.LICENSE.txt → eo-select.26581a36.js.LICENSE.txt} +0 -0
  79. /package/dist/chunks/{eo-upload-file.e67d3268.js.LICENSE.txt → eo-upload-file.8f1819f7.js.LICENSE.txt} +0 -0
  80. /package/dist/chunks/{eo-upload-image.b866ae24.js.LICENSE.txt → eo-upload-image.4adc50dc.js.LICENSE.txt} +0 -0
package/dist/stories.json CHANGED
@@ -78,10 +78,6 @@
78
78
  "bricks": [
79
79
  {
80
80
  "brick": "eo-checkbox",
81
- "description": {
82
- "title": "设置选项颜色",
83
- "message": "在为checkbox(type = default)传入options时,可传入「checkboxColor」属性设置选框颜色,可用颜色包括:red、orange、amber、yellow、green、teal、cyan、blue、indigo、purple、deep-purple、pink 和 blue-gray。"
84
- },
85
81
  "properties": {
86
82
  "name": "user",
87
83
  "label": "用户",
@@ -127,10 +123,6 @@
127
123
  "bricks": [
128
124
  {
129
125
  "brick": "eo-checkbox",
130
- "description": {
131
- "title": "设置checkbox图标",
132
- "message": "在为checkbox(type = default)传入options时,可传入「icon」属性为其设置图标,图标来源可以为src(httpSrc/DataSrc)或平台的图标库。"
133
- },
134
126
  "properties": {
135
127
  "label": "用户列表",
136
128
  "name": "user",
@@ -187,10 +179,6 @@
187
179
  "bricks": [
188
180
  {
189
181
  "brick": "eo-checkbox",
190
- "description": {
191
- "title": "分组复选框",
192
- "message": "上层复选框仅作为分类标识,不作为表单数据项,勾选/取消勾选上层复选框可全选/取消全选。每个分组下可包含多个复选框。"
193
- },
194
182
  "properties": {
195
183
  "name": "goods",
196
184
  "label": "商品",
@@ -238,10 +226,6 @@
238
226
  {
239
227
  "bricks": [
240
228
  {
241
- "description": {
242
- "title": "使用icon类型样式案例",
243
- "message": "icon图标来源可以为src(httpSrc/DataSrc)或平台的图标库"
244
- },
245
229
  "brick": "eo-checkbox",
246
230
  "properties": {
247
231
  "name": "icon",
@@ -292,9 +276,6 @@
292
276
  {
293
277
  "bricks": [
294
278
  {
295
- "description": {
296
- "title": "在icon模式下自定义样式案例"
297
- },
298
279
  "brick": "eo-checkbox",
299
280
  "properties": {
300
281
  "name": "icon",
@@ -364,9 +345,6 @@
364
345
  {
365
346
  "bricks": [
366
347
  {
367
- "description": {
368
- "title": "基本都用法"
369
- },
370
348
  "brick": "eo-date-picker",
371
349
  "properties": {
372
350
  "name": "date",
@@ -459,10 +437,6 @@
459
437
  {
460
438
  "bricks": [
461
439
  {
462
- "description": {
463
- "title": "基础表单",
464
- "message": "基础用法"
465
- },
466
440
  "brick": "eo-form",
467
441
  "properties": {
468
442
  "name": "basic-form",
@@ -524,10 +498,6 @@
524
498
  {
525
499
  "bricks": [
526
500
  {
527
- "description": {
528
- "title": "动态表单",
529
- "message": "通过表单子项的notRender属性和setNotRender方法,实现动态表单"
530
- },
531
501
  "brick": "eo-form",
532
502
  "properties": {
533
503
  "name": "hello",
@@ -704,9 +674,6 @@
704
674
  "bricks": [
705
675
  {
706
676
  "brick": "eo-input",
707
- "description": {
708
- "title": "基本使用"
709
- },
710
677
  "properties": {
711
678
  "name": "username",
712
679
  "type": "text",
@@ -727,9 +694,6 @@
727
694
  "bricks": [
728
695
  {
729
696
  "brick": "eo-input",
730
- "description": {
731
- "title": "密码框"
732
- },
733
697
  "properties": {
734
698
  "name": "password",
735
699
  "type": "password",
@@ -750,9 +714,6 @@
750
714
  "bricks": [
751
715
  {
752
716
  "brick": "eo-input",
753
- "description": {
754
- "title": "前缀,后缀"
755
- },
756
717
  "properties": {
757
718
  "placeholder": "addon slot"
758
719
  },
@@ -868,9 +829,6 @@
868
829
  "bricks": [
869
830
  {
870
831
  "brick": "eo-radio",
871
- "description": {
872
- "title": "当type = default时,给radio设置图标"
873
- },
874
832
  "properties": {
875
833
  "label": "城市",
876
834
  "name": "city",
@@ -927,9 +885,6 @@
927
885
  {
928
886
  "bricks": [
929
887
  {
930
- "description": {
931
- "title": "使用图标按钮样式"
932
- },
933
888
  "brick": "eo-radio",
934
889
  "events": {
935
890
  "general.radio.change": {
@@ -991,9 +946,6 @@
991
946
  {
992
947
  "bricks": [
993
948
  {
994
- "description": {
995
- "title": "使用icon类型样式案例"
996
- },
997
949
  "brick": "eo-radio",
998
950
  "properties": {
999
951
  "label": "图标",
package/dist/types.json CHANGED
@@ -2706,6 +2706,13 @@
2706
2706
  }
2707
2707
  }
2708
2708
  },
2709
+ {
2710
+ "name": "type",
2711
+ "annotation": {
2712
+ "type": "keyword",
2713
+ "value": "string"
2714
+ }
2715
+ },
2709
2716
  {
2710
2717
  "name": "max",
2711
2718
  "annotation": {
@@ -17,6 +17,7 @@ export interface FormItemProps {
17
17
  current?: HTMLElement;
18
18
  required?: boolean;
19
19
  pattern?: string;
20
+ type?: string;
20
21
  min?: number;
21
22
  max?: number;
22
23
  labelCol?: ColProps;
@@ -54,6 +55,7 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
54
55
  accessor label: string | undefined;
55
56
  accessor pattern: string | undefined;
56
57
  accessor message: Record<string, string> | undefined;
58
+ accessor type: string | undefined;
57
59
  accessor max: number | undefined;
58
60
  accessor min: number | undefined;
59
61
  /**
@@ -12,6 +12,8 @@ export interface InputProps extends FormItemProps {
12
12
  autoFocus?: boolean;
13
13
  type?: InputType;
14
14
  size?: ComponentSize;
15
+ min?: number;
16
+ max?: number;
15
17
  maxLength?: number;
16
18
  minLength?: number;
17
19
  validateState?: string;
@@ -61,11 +63,11 @@ export declare class Input extends FormItemElementBase {
61
63
  */
62
64
  accessor pattern: string | undefined;
63
65
  /**
64
- * 表单校验最大长度
66
+ * 表单校验最大长度(当 type 为 number 时,表示最大值)
65
67
  */
66
68
  accessor max: number | undefined;
67
69
  /**
68
- * 表单校验最小长度
70
+ * 表单校验最小长度(当 type 为 number 时,表示最小值)
69
71
  */
70
72
  accessor min: number | undefined;
71
73
  /**
@@ -111,7 +113,7 @@ export declare class Input extends FormItemElementBase {
111
113
  */
112
114
  accessor minLength: number | undefined;
113
115
  /**
114
- * 最大长度
116
+ * 最大长度(用户无法输入超过此最大长度的字符串)
115
117
  */
116
118
  accessor maxLength: number | undefined;
117
119
  /**
@@ -97,7 +97,7 @@ declare class Radio extends FormItemElementBase {
97
97
  handleChange: (value: any) => void;
98
98
  render(): React.JSX.Element;
99
99
  }
100
- interface RadioComponentProps extends RadioProps, FormItemProps {
100
+ interface RadioComponentProps extends RadioProps, Omit<FormItemProps, "type"> {
101
101
  onChange?: (value: any) => void;
102
102
  optionsChange?: (options: any, name: string) => void;
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.13.4",
3
+ "version": "1.13.7",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "postpublish": "mv package.json.bak package.json"
36
36
  },
37
37
  "devDependencies": {
38
- "@next-core/build-next-bricks": "^1.23.1",
38
+ "@next-core/build-next-bricks": "^1.23.2",
39
39
  "@next-core/test-next": "^1.1.6"
40
40
  },
41
41
  "peerDependencies": {
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/icons": "*",
45
45
  "@next-bricks/illustrations": "*"
46
46
  },
47
- "gitHead": "0642c59fb82dea2ec52c5d8e42e1e0a116aab961"
47
+ "gitHead": "f2f344a2f8d90b99070147e29422fbd08deafe8d"
48
48
  }