@next-bricks/form 1.13.7 → 1.13.8
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 +26 -26
- package/dist/chunks/1122.f4078280.js +2 -0
- package/dist/chunks/1122.f4078280.js.map +1 -0
- package/dist/chunks/114.531359b5.js +2 -0
- package/dist/chunks/{114.37bf18eb.js.map → 114.531359b5.js.map} +1 -1
- package/dist/chunks/{1269.52b4e847.js → 1269.7e1ba640.js} +2 -2
- package/dist/chunks/{1269.52b4e847.js.map → 1269.7e1ba640.js.map} +1 -1
- package/dist/chunks/1940.a199452a.js +2 -0
- package/dist/chunks/1940.a199452a.js.map +1 -0
- package/dist/chunks/{2277.c39a213c.js → 2277.f9546bd4.js} +2 -2
- package/dist/chunks/{4658.a7becf80.js.map → 2277.f9546bd4.js.map} +1 -1
- package/dist/chunks/{3171.380e52df.js → 3171.8cf6f87a.js} +2 -2
- package/dist/chunks/{5552.e6b1c2b5.js.map → 3171.8cf6f87a.js.map} +1 -1
- package/dist/chunks/3933.f299055e.js +2 -0
- package/dist/chunks/{6314.cd073def.js.map → 3933.f299055e.js.map} +1 -1
- package/dist/chunks/4306.009ee1ec.js +2 -0
- package/dist/chunks/4306.009ee1ec.js.map +1 -0
- package/dist/chunks/{4658.a7becf80.js → 4658.9a12fd73.js} +2 -2
- package/dist/chunks/{2277.c39a213c.js.map → 4658.9a12fd73.js.map} +1 -1
- package/dist/chunks/{4837.9fd98902.js → 4837.5782f5bd.js} +2 -2
- package/dist/chunks/{4837.9fd98902.js.map → 4837.5782f5bd.js.map} +1 -1
- package/dist/chunks/5399.7df199ce.js +2 -0
- package/dist/chunks/5399.7df199ce.js.map +1 -0
- package/dist/chunks/{5552.e6b1c2b5.js → 5552.5899c7ae.js} +2 -2
- package/dist/chunks/{3171.380e52df.js.map → 5552.5899c7ae.js.map} +1 -1
- package/dist/chunks/6314.a9731824.js +2 -0
- package/dist/chunks/{3933.72905659.js.map → 6314.a9731824.js.map} +1 -1
- package/dist/chunks/6519.b03d81cb.js +2 -0
- package/dist/chunks/{6519.512a2834.js.map → 6519.b03d81cb.js.map} +1 -1
- package/dist/chunks/{7218.7a5b2ece.js → 7218.8ed93f51.js} +2 -2
- package/dist/chunks/{7218.7a5b2ece.js.map → 7218.8ed93f51.js.map} +1 -1
- package/dist/chunks/7733.10fcbe3c.js +2 -0
- package/dist/chunks/{7733.cfda832d.js.map → 7733.10fcbe3c.js.map} +1 -1
- package/dist/chunks/{790.2cea152f.js → 790.71e8de18.js} +2 -2
- package/dist/chunks/{790.2cea152f.js.map → 790.71e8de18.js.map} +1 -1
- package/dist/chunks/799.72fa2e89.js +3 -0
- package/dist/chunks/799.72fa2e89.js.map +1 -0
- package/dist/chunks/9259.7778bbaf.js +3 -0
- package/dist/chunks/{9259.73ddc9b8.js.map → 9259.7778bbaf.js.map} +1 -1
- package/dist/chunks/9559.0bd45c4a.js +2 -0
- package/dist/chunks/9559.0bd45c4a.js.map +1 -0
- package/dist/chunks/eo-auto-complete.abd5bb43.js +3 -0
- package/dist/chunks/{eo-auto-complete.f65b6cb6.js.map → eo-auto-complete.abd5bb43.js.map} +1 -1
- package/dist/chunks/eo-checkbox.b96d4223.js +3 -0
- package/dist/chunks/{eo-checkbox.cdcad3e7.js.map → eo-checkbox.b96d4223.js.map} +1 -1
- package/dist/chunks/{eo-color-picker.ae936a48.js → eo-color-picker.9cba3082.js} +2 -2
- package/dist/chunks/{eo-color-picker.ae936a48.js.map → eo-color-picker.9cba3082.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.a4b02509.js → eo-date-picker.1f4e55b2.js} +2 -2
- package/dist/chunks/{eo-date-picker.a4b02509.js.map → eo-date-picker.1f4e55b2.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.d2bcd6b2.js → eo-dynamic-form-item.05008202.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.d2bcd6b2.js.map → eo-dynamic-form-item.05008202.js.map} +1 -1
- package/dist/chunks/{eo-form-item.2630fba8.js → eo-form-item.4ddcda40.js} +3 -3
- package/dist/chunks/{eo-form-item.2630fba8.js.map → eo-form-item.4ddcda40.js.map} +1 -1
- package/dist/chunks/eo-form.21a2008c.js +2 -0
- package/dist/chunks/{eo-form.0218499b.js.map → eo-form.21a2008c.js.map} +1 -1
- package/dist/chunks/eo-icon-select.c1eda0c5.js +3 -0
- package/dist/chunks/{eo-icon-select.4caa9d3a.js.map → eo-icon-select.c1eda0c5.js.map} +1 -1
- package/dist/chunks/eo-input.3c5e9802.js +3 -0
- package/dist/chunks/{eo-input.721b4ee8.js.map → eo-input.3c5e9802.js.map} +1 -1
- package/dist/chunks/{eo-radio.cf9e433b.js → eo-radio.c584bd27.js} +3 -3
- package/dist/chunks/{eo-radio.cf9e433b.js.map → eo-radio.c584bd27.js.map} +1 -1
- package/dist/chunks/eo-search.ed0857b5.js +2 -0
- package/dist/chunks/{eo-search.c98e6353.js.map → eo-search.ed0857b5.js.map} +1 -1
- package/dist/chunks/{eo-select.26581a36.js → eo-select.28c15503.js} +3 -3
- package/dist/chunks/{eo-select.26581a36.js.map → eo-select.28c15503.js.map} +1 -1
- package/dist/chunks/eo-submit-buttons.7cd42251.js +2 -0
- package/dist/chunks/{eo-submit-buttons.fec2f3cb.js.map → eo-submit-buttons.7cd42251.js.map} +1 -1
- package/dist/chunks/eo-switch.342e4f8f.js +3 -0
- package/dist/chunks/{eo-switch.bcf2da15.js.map → eo-switch.342e4f8f.js.map} +1 -1
- package/dist/chunks/eo-textarea.26ac76de.js +2 -0
- package/dist/chunks/{eo-textarea.e5348ca0.js.map → eo-textarea.26ac76de.js.map} +1 -1
- package/dist/chunks/{eo-time-picker.d0d2997b.js → eo-time-picker.d81de579.js} +2 -2
- package/dist/chunks/{eo-time-picker.d0d2997b.js.map → eo-time-picker.d81de579.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.a1f0b8f1.js → eo-time-range-picker.15057d2a.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.a1f0b8f1.js.map → eo-time-range-picker.15057d2a.js.map} +1 -1
- package/dist/chunks/eo-upload-file.15c30d10.js +3 -0
- package/dist/chunks/{eo-upload-file.8f1819f7.js.map → eo-upload-file.15c30d10.js.map} +1 -1
- package/dist/chunks/eo-upload-image.b96a2fcc.js +3 -0
- package/dist/chunks/{eo-upload-image.4adc50dc.js.map → eo-upload-image.b96a2fcc.js.map} +1 -1
- package/dist/chunks/main.0009a6af.js +2 -0
- package/dist/chunks/main.0009a6af.js.map +1 -0
- package/dist/examples.json +8 -8
- package/dist/index.a96799f8.js +2 -0
- package/dist/index.a96799f8.js.map +1 -0
- package/dist/manifest.json +467 -467
- package/dist/types.json +1421 -1421
- package/package.json +4 -4
- package/dist/chunks/1122.eec09eb1.js +0 -2
- package/dist/chunks/1122.eec09eb1.js.map +0 -1
- package/dist/chunks/114.37bf18eb.js +0 -2
- package/dist/chunks/1940.5d3d1dbf.js +0 -2
- package/dist/chunks/1940.5d3d1dbf.js.map +0 -1
- package/dist/chunks/3933.72905659.js +0 -2
- package/dist/chunks/4741.ed462c44.js +0 -2
- package/dist/chunks/4741.ed462c44.js.map +0 -1
- package/dist/chunks/5399.25e83e7f.js +0 -2
- package/dist/chunks/5399.25e83e7f.js.map +0 -1
- package/dist/chunks/6314.cd073def.js +0 -2
- package/dist/chunks/6519.512a2834.js +0 -2
- package/dist/chunks/7733.cfda832d.js +0 -2
- package/dist/chunks/799.a713d5a2.js +0 -3
- package/dist/chunks/799.a713d5a2.js.map +0 -1
- package/dist/chunks/9259.73ddc9b8.js +0 -3
- package/dist/chunks/9559.5d9e9834.js +0 -2
- package/dist/chunks/9559.5d9e9834.js.map +0 -1
- package/dist/chunks/eo-auto-complete.f65b6cb6.js +0 -3
- package/dist/chunks/eo-checkbox.cdcad3e7.js +0 -3
- package/dist/chunks/eo-form.0218499b.js +0 -2
- package/dist/chunks/eo-icon-select.4caa9d3a.js +0 -3
- package/dist/chunks/eo-input.721b4ee8.js +0 -3
- package/dist/chunks/eo-search.c98e6353.js +0 -2
- package/dist/chunks/eo-submit-buttons.fec2f3cb.js +0 -2
- package/dist/chunks/eo-switch.bcf2da15.js +0 -3
- package/dist/chunks/eo-textarea.e5348ca0.js +0 -2
- package/dist/chunks/eo-upload-file.8f1819f7.js +0 -3
- package/dist/chunks/eo-upload-image.4adc50dc.js +0 -3
- package/dist/chunks/main.08e92b6b.js +0 -2
- package/dist/chunks/main.08e92b6b.js.map +0 -1
- package/dist/index.8e3bfb8e.js +0 -2
- package/dist/index.8e3bfb8e.js.map +0 -1
- /package/dist/chunks/{799.a713d5a2.js.LICENSE.txt → 799.72fa2e89.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.73ddc9b8.js.LICENSE.txt → 9259.7778bbaf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.f65b6cb6.js.LICENSE.txt → eo-auto-complete.abd5bb43.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-checkbox.cdcad3e7.js.LICENSE.txt → eo-checkbox.b96d4223.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.d2bcd6b2.js.LICENSE.txt → eo-dynamic-form-item.05008202.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.2630fba8.js.LICENSE.txt → eo-form-item.4ddcda40.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.4caa9d3a.js.LICENSE.txt → eo-icon-select.c1eda0c5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.721b4ee8.js.LICENSE.txt → eo-input.3c5e9802.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.cf9e433b.js.LICENSE.txt → eo-radio.c584bd27.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.26581a36.js.LICENSE.txt → eo-select.28c15503.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.bcf2da15.js.LICENSE.txt → eo-switch.342e4f8f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.8f1819f7.js.LICENSE.txt → eo-upload-file.15c30d10.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.4adc50dc.js.LICENSE.txt → eo-upload-image.b96a2fcc.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,286 +4,143 @@
|
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "eo-
|
|
7
|
+
"name": "eo-form",
|
|
8
8
|
"alias": [
|
|
9
|
-
"form.general-
|
|
9
|
+
"form.general-form"
|
|
10
10
|
],
|
|
11
11
|
"properties": [
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
14
|
-
"description": "字段名称",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "label",
|
|
19
|
-
"description": "标签文字",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "required",
|
|
24
|
-
"description": "是否必填",
|
|
25
|
-
"type": "boolean"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "pattern",
|
|
29
|
-
"description": "正则校验规则",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "max",
|
|
34
|
-
"description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
|
|
35
|
-
"type": "number"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "min",
|
|
39
|
-
"description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
|
|
40
|
-
"type": "number"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "message",
|
|
44
|
-
"description": "错误时显示消息",
|
|
13
|
+
"name": "staticValues",
|
|
45
14
|
"attribute": false,
|
|
46
|
-
"type": "Record<string,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "value",
|
|
50
|
-
"description": "输入框值",
|
|
51
|
-
"type": "string"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "placeholder",
|
|
55
|
-
"description": "占位说明",
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "disabled",
|
|
60
|
-
"description": "是否禁用",
|
|
61
|
-
"type": "boolean"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "readonly",
|
|
65
|
-
"description": "是否只读",
|
|
66
|
-
"type": "boolean"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "clearable",
|
|
70
|
-
"description": "是否显示清除按钮",
|
|
71
|
-
"type": "boolean"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "autoFocus",
|
|
75
|
-
"description": "是否自动聚焦",
|
|
76
|
-
"type": "boolean"
|
|
15
|
+
"type": "Record<string, unknown>"
|
|
77
16
|
},
|
|
78
17
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"description": "
|
|
81
|
-
"default": "
|
|
82
|
-
"type": "
|
|
18
|
+
"name": "layout",
|
|
19
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
20
|
+
"default": "vertical",
|
|
21
|
+
"type": "Layout"
|
|
83
22
|
},
|
|
84
23
|
{
|
|
85
24
|
"name": "size",
|
|
86
|
-
"description": "
|
|
87
|
-
"default": "\"medium\"",
|
|
25
|
+
"description": "表单组件尺寸",
|
|
88
26
|
"type": "ComponentSize"
|
|
89
27
|
},
|
|
90
28
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"description": "
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"name": "maxLength",
|
|
97
|
-
"description": "最大长度(用户无法输入超过此最大长度的字符串)",
|
|
98
|
-
"type": "number"
|
|
29
|
+
"name": "labelCol",
|
|
30
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
31
|
+
"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 }",
|
|
32
|
+
"attribute": false,
|
|
33
|
+
"type": "ColProps"
|
|
99
34
|
},
|
|
100
35
|
{
|
|
101
|
-
"name": "
|
|
102
|
-
"description": "
|
|
36
|
+
"name": "wrapperCol",
|
|
37
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
38
|
+
"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 }",
|
|
103
39
|
"attribute": false,
|
|
104
|
-
"type": "
|
|
40
|
+
"type": "ColProps"
|
|
105
41
|
},
|
|
106
42
|
{
|
|
107
|
-
"name": "
|
|
108
|
-
"description": "表单项校验方法",
|
|
43
|
+
"name": "formStyle",
|
|
109
44
|
"attribute": false,
|
|
110
|
-
"type": "
|
|
45
|
+
"type": "React.CSSProperties"
|
|
111
46
|
}
|
|
112
47
|
],
|
|
113
48
|
"events": [
|
|
114
49
|
{
|
|
115
|
-
"name": "change",
|
|
116
|
-
"description": "
|
|
50
|
+
"name": "values.change",
|
|
51
|
+
"description": "表单值变更事件",
|
|
117
52
|
"detail": {
|
|
118
|
-
"
|
|
53
|
+
"description": null,
|
|
54
|
+
"type": "Record<string, unknown>"
|
|
119
55
|
}
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"slots": [
|
|
123
|
-
{
|
|
124
|
-
"name": "addonBefore",
|
|
125
|
-
"description": "输入框前置标签"
|
|
126
56
|
},
|
|
127
57
|
{
|
|
128
|
-
"name": "
|
|
129
|
-
"description": "
|
|
58
|
+
"name": "validate.success",
|
|
59
|
+
"description": "表单验证成功时触发事件",
|
|
60
|
+
"detail": {
|
|
61
|
+
"type": "Record<string, unknown>"
|
|
62
|
+
}
|
|
130
63
|
},
|
|
131
64
|
{
|
|
132
|
-
"name": "
|
|
133
|
-
"description": "
|
|
134
|
-
|
|
65
|
+
"name": "validate.error",
|
|
66
|
+
"description": "表单验证报错时触发事件",
|
|
67
|
+
"detail": {
|
|
68
|
+
"type": "(MessageBody & { name: string })[]"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"slots": [
|
|
135
73
|
{
|
|
136
|
-
"name":
|
|
137
|
-
"description": "
|
|
74
|
+
"name": null,
|
|
75
|
+
"description": "表单内容"
|
|
138
76
|
}
|
|
139
77
|
],
|
|
140
78
|
"methods": [
|
|
141
79
|
{
|
|
142
|
-
"name": "
|
|
80
|
+
"name": "validate",
|
|
143
81
|
"params": [],
|
|
144
|
-
"description": "
|
|
145
|
-
"returns": {
|
|
82
|
+
"description": "表单校验方法",
|
|
83
|
+
"returns": {
|
|
84
|
+
"type": "boolean | Record<string, unknown>"
|
|
85
|
+
}
|
|
146
86
|
},
|
|
147
87
|
{
|
|
148
|
-
"name": "
|
|
149
|
-
"params": [
|
|
150
|
-
|
|
88
|
+
"name": "setInitValue",
|
|
89
|
+
"params": [
|
|
90
|
+
{
|
|
91
|
+
"name": "values",
|
|
92
|
+
"type": "Record<string, unknown>"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "options",
|
|
96
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"description": "表单设置值方法",
|
|
151
100
|
"returns": {}
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
"parts": [
|
|
155
|
-
{
|
|
156
|
-
"name": "addon-wrapper",
|
|
157
|
-
"description": "包裹输入组件、前缀、后缀、前置和后置的容器"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"name": "affix-wrapper",
|
|
161
|
-
"description": "包裹输入组件、前缀和后缀的容器"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "input",
|
|
165
|
-
"description": "输入组件"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"name": "clear-icon",
|
|
169
|
-
"description": "清除按钮"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "prefix",
|
|
173
|
-
"description": "输入框前缀容器"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"name": "suffix",
|
|
177
|
-
"description": "输入框后缀容器"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "before-addon",
|
|
181
|
-
"description": "输入框前置容器"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"name": "after-addon",
|
|
185
|
-
"description": "输入框后置容器"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"description": "通用输入框构件",
|
|
189
|
-
"category": "form-input-basic"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "eo-textarea",
|
|
193
|
-
"alias": [
|
|
194
|
-
"form.general-textarea"
|
|
195
|
-
],
|
|
196
|
-
"properties": [
|
|
197
|
-
{
|
|
198
|
-
"name": "name",
|
|
199
|
-
"description": "字段名称",
|
|
200
|
-
"type": "string"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "label",
|
|
204
|
-
"description": "标签文字",
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "value",
|
|
209
|
-
"description": "值",
|
|
210
|
-
"type": "string"
|
|
211
101
|
},
|
|
212
102
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
{
|
|
223
|
-
"name": "minLength",
|
|
224
|
-
"description": "最小长度",
|
|
225
|
-
"type": "number"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "maxLength",
|
|
229
|
-
"description": "最大长度",
|
|
230
|
-
"type": "number"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "autoSize",
|
|
234
|
-
"description": "大小自适应",
|
|
235
|
-
"attribute": false,
|
|
236
|
-
"type": "AutoSize"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "required",
|
|
240
|
-
"description": "是否必填",
|
|
241
|
-
"type": "boolean"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "max",
|
|
245
|
-
"description": "表单校验最大长度",
|
|
246
|
-
"type": "number"
|
|
103
|
+
"name": "resetFields",
|
|
104
|
+
"params": [
|
|
105
|
+
{
|
|
106
|
+
"name": "name",
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"description": "表单重置值方法",
|
|
111
|
+
"returns": {}
|
|
247
112
|
},
|
|
248
113
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"
|
|
251
|
-
|
|
114
|
+
"name": "getFieldsValue",
|
|
115
|
+
"params": [
|
|
116
|
+
{
|
|
117
|
+
"name": "name",
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"description": "获取表单值方法",
|
|
122
|
+
"returns": {}
|
|
252
123
|
},
|
|
253
124
|
{
|
|
254
|
-
"name": "
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
125
|
+
"name": "validateField",
|
|
126
|
+
"params": [
|
|
127
|
+
{
|
|
128
|
+
"name": "name",
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"description": "校验表单字段方法",
|
|
133
|
+
"returns": {}
|
|
258
134
|
},
|
|
259
135
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "自定义样式",
|
|
262
|
-
"attribute": false,
|
|
263
|
-
"type": "React.CSSProperties"
|
|
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",
|
|
136
|
+
"name": "resetValidateState",
|
|
280
137
|
"params": [],
|
|
281
|
-
"description": "
|
|
138
|
+
"description": "重置表单校验状态方法",
|
|
282
139
|
"returns": {}
|
|
283
140
|
}
|
|
284
141
|
],
|
|
285
142
|
"parts": [],
|
|
286
|
-
"description": "
|
|
143
|
+
"description": "表单构件",
|
|
287
144
|
"category": "form-input-basic"
|
|
288
145
|
},
|
|
289
146
|
{
|
|
@@ -339,195 +196,55 @@
|
|
|
339
196
|
},
|
|
340
197
|
{
|
|
341
198
|
"name": "value",
|
|
342
|
-
"description": "初始值",
|
|
343
|
-
"type": "string"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"name": "valuePropsName",
|
|
347
|
-
"type": "string"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"name": "layout",
|
|
351
|
-
"type": "Layout"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"name": "size",
|
|
355
|
-
"type": "ComponentSize"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "trim",
|
|
359
|
-
"description": "是否自动去除前后的空白字符",
|
|
360
|
-
"default": "true"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"name": "trigger",
|
|
364
|
-
"description": "事件触发方法名",
|
|
365
|
-
"type": "string"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "validator",
|
|
369
|
-
"description": "表单项校验方法",
|
|
370
|
-
"attribute": false,
|
|
371
|
-
"type": "((value: any) => MessageBody)"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "needValidate",
|
|
375
|
-
"description": "值变化时是否主动出发校验",
|
|
376
|
-
"type": "boolean"
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
|
-
"events": [],
|
|
380
|
-
"slots": [
|
|
381
|
-
{
|
|
382
|
-
"name": null,
|
|
383
|
-
"description": "表单项内容"
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
"methods": [],
|
|
387
|
-
"parts": [],
|
|
388
|
-
"description": "通用输入框构件",
|
|
389
|
-
"category": "form-input-basic",
|
|
390
|
-
"insider": true
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"name": "eo-form",
|
|
394
|
-
"alias": [
|
|
395
|
-
"form.general-form"
|
|
396
|
-
],
|
|
397
|
-
"properties": [
|
|
398
|
-
{
|
|
399
|
-
"name": "staticValues",
|
|
400
|
-
"attribute": false,
|
|
401
|
-
"type": "Record<string, unknown>"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "layout",
|
|
405
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
406
|
-
"default": "vertical",
|
|
407
|
-
"type": "Layout"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "size",
|
|
411
|
-
"description": "表单组件尺寸",
|
|
412
|
-
"type": "ComponentSize"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"name": "labelCol",
|
|
416
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
417
|
-
"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 }",
|
|
418
|
-
"attribute": false,
|
|
419
|
-
"type": "ColProps"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"name": "wrapperCol",
|
|
423
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
424
|
-
"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 }",
|
|
425
|
-
"attribute": false,
|
|
426
|
-
"type": "ColProps"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"name": "formStyle",
|
|
430
|
-
"attribute": false,
|
|
431
|
-
"type": "React.CSSProperties"
|
|
432
|
-
}
|
|
433
|
-
],
|
|
434
|
-
"events": [
|
|
435
|
-
{
|
|
436
|
-
"name": "values.change",
|
|
437
|
-
"description": "表单值变更事件",
|
|
438
|
-
"detail": {
|
|
439
|
-
"description": null,
|
|
440
|
-
"type": "Record<string, unknown>"
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"name": "validate.success",
|
|
445
|
-
"description": "表单验证成功时触发事件",
|
|
446
|
-
"detail": {
|
|
447
|
-
"type": "Record<string, unknown>"
|
|
448
|
-
}
|
|
199
|
+
"description": "初始值",
|
|
200
|
+
"type": "string"
|
|
449
201
|
},
|
|
450
202
|
{
|
|
451
|
-
"name": "
|
|
452
|
-
"
|
|
453
|
-
|
|
454
|
-
"type": "(MessageBody & { name: string })[]"
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
],
|
|
458
|
-
"slots": [
|
|
459
|
-
{
|
|
460
|
-
"name": null,
|
|
461
|
-
"description": "表单内容"
|
|
462
|
-
}
|
|
463
|
-
],
|
|
464
|
-
"methods": [
|
|
203
|
+
"name": "valuePropsName",
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
465
206
|
{
|
|
466
|
-
"name": "
|
|
467
|
-
"
|
|
468
|
-
"description": "表单校验方法",
|
|
469
|
-
"returns": {
|
|
470
|
-
"type": "boolean | Record<string, unknown>"
|
|
471
|
-
}
|
|
207
|
+
"name": "layout",
|
|
208
|
+
"type": "Layout"
|
|
472
209
|
},
|
|
473
210
|
{
|
|
474
|
-
"name": "
|
|
475
|
-
"
|
|
476
|
-
{
|
|
477
|
-
"name": "values",
|
|
478
|
-
"type": "Record<string, unknown>"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "options",
|
|
482
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
483
|
-
}
|
|
484
|
-
],
|
|
485
|
-
"description": "表单设置值方法",
|
|
486
|
-
"returns": {}
|
|
211
|
+
"name": "size",
|
|
212
|
+
"type": "ComponentSize"
|
|
487
213
|
},
|
|
488
214
|
{
|
|
489
|
-
"name": "
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
"name": "name",
|
|
493
|
-
"type": "string"
|
|
494
|
-
}
|
|
495
|
-
],
|
|
496
|
-
"description": "表单重置值方法",
|
|
497
|
-
"returns": {}
|
|
215
|
+
"name": "trim",
|
|
216
|
+
"description": "是否自动去除前后的空白字符",
|
|
217
|
+
"default": "true"
|
|
498
218
|
},
|
|
499
219
|
{
|
|
500
|
-
"name": "
|
|
501
|
-
"
|
|
502
|
-
|
|
503
|
-
"name": "name",
|
|
504
|
-
"type": "string"
|
|
505
|
-
}
|
|
506
|
-
],
|
|
507
|
-
"description": "获取表单值方法",
|
|
508
|
-
"returns": {}
|
|
220
|
+
"name": "trigger",
|
|
221
|
+
"description": "事件触发方法名",
|
|
222
|
+
"type": "string"
|
|
509
223
|
},
|
|
510
224
|
{
|
|
511
|
-
"name": "
|
|
512
|
-
"
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
"type": "string"
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
"description": "校验表单字段方法",
|
|
519
|
-
"returns": {}
|
|
225
|
+
"name": "validator",
|
|
226
|
+
"description": "表单项校验方法",
|
|
227
|
+
"attribute": false,
|
|
228
|
+
"type": "((value: any) => MessageBody)"
|
|
520
229
|
},
|
|
521
230
|
{
|
|
522
|
-
"name": "
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
|
|
231
|
+
"name": "needValidate",
|
|
232
|
+
"description": "值变化时是否主动出发校验",
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"events": [],
|
|
237
|
+
"slots": [
|
|
238
|
+
{
|
|
239
|
+
"name": null,
|
|
240
|
+
"description": "表单项内容"
|
|
526
241
|
}
|
|
527
242
|
],
|
|
243
|
+
"methods": [],
|
|
528
244
|
"parts": [],
|
|
529
|
-
"description": "
|
|
530
|
-
"category": "form-input-basic"
|
|
245
|
+
"description": "通用输入框构件",
|
|
246
|
+
"category": "form-input-basic",
|
|
247
|
+
"insider": true
|
|
531
248
|
},
|
|
532
249
|
{
|
|
533
250
|
"name": "eo-radio",
|
|
@@ -610,21 +327,179 @@
|
|
|
610
327
|
"name": "change",
|
|
611
328
|
"description": "值变化事件",
|
|
612
329
|
"detail": {
|
|
613
|
-
"type": "GeneralComplexOption | undefined"
|
|
330
|
+
"type": "GeneralComplexOption | undefined"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "options.change",
|
|
335
|
+
"description": "选项列表变化事件",
|
|
336
|
+
"detail": {
|
|
337
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"slots": [],
|
|
342
|
+
"methods": [],
|
|
343
|
+
"parts": [],
|
|
344
|
+
"description": "通用单选构件",
|
|
345
|
+
"category": "form-input-basic"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "eo-textarea",
|
|
349
|
+
"alias": [
|
|
350
|
+
"form.general-textarea"
|
|
351
|
+
],
|
|
352
|
+
"properties": [
|
|
353
|
+
{
|
|
354
|
+
"name": "name",
|
|
355
|
+
"description": "字段名称",
|
|
356
|
+
"type": "string"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "label",
|
|
360
|
+
"description": "标签文字",
|
|
361
|
+
"type": "string"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "value",
|
|
365
|
+
"description": "值",
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "placeholder",
|
|
370
|
+
"description": "占位说明",
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "disabled",
|
|
375
|
+
"description": "是否禁用",
|
|
376
|
+
"type": "boolean"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "minLength",
|
|
380
|
+
"description": "最小长度",
|
|
381
|
+
"type": "number"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "maxLength",
|
|
385
|
+
"description": "最大长度",
|
|
386
|
+
"type": "number"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "autoSize",
|
|
390
|
+
"description": "大小自适应",
|
|
391
|
+
"attribute": false,
|
|
392
|
+
"type": "AutoSize"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "required",
|
|
396
|
+
"description": "是否必填",
|
|
397
|
+
"type": "boolean"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "max",
|
|
401
|
+
"description": "表单校验最大长度",
|
|
402
|
+
"type": "number"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "min",
|
|
406
|
+
"description": "表单校验最小长度",
|
|
407
|
+
"type": "number"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "message",
|
|
411
|
+
"description": "校验信息",
|
|
412
|
+
"attribute": false,
|
|
413
|
+
"type": "Record<string, string>"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "textareaStyle",
|
|
417
|
+
"description": "自定义样式",
|
|
418
|
+
"attribute": false,
|
|
419
|
+
"type": "React.CSSProperties"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"events": [
|
|
423
|
+
{
|
|
424
|
+
"name": "change",
|
|
425
|
+
"description": "",
|
|
426
|
+
"detail": {
|
|
427
|
+
"description": null,
|
|
428
|
+
"type": "string"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"slots": [],
|
|
433
|
+
"methods": [
|
|
434
|
+
{
|
|
435
|
+
"name": "focusTextarea",
|
|
436
|
+
"params": [],
|
|
437
|
+
"description": "focus",
|
|
438
|
+
"returns": {}
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"parts": [],
|
|
442
|
+
"description": "通用多行文本输入框构件",
|
|
443
|
+
"category": "form-input-basic"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "eo-submit-buttons",
|
|
447
|
+
"alias": [
|
|
448
|
+
"form.submit-buttons"
|
|
449
|
+
],
|
|
450
|
+
"properties": [
|
|
451
|
+
{
|
|
452
|
+
"name": "submitText",
|
|
453
|
+
"description": "提交按钮的文字",
|
|
454
|
+
"default": "\"提交\"",
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "cancelText",
|
|
459
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
460
|
+
"type": "string"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "disableAfterClick",
|
|
464
|
+
"description": "点击确定按钮后自动禁用",
|
|
465
|
+
"type": "boolean"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "submitDisabled",
|
|
469
|
+
"description": "禁用提交按钮",
|
|
470
|
+
"type": "boolean"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "submitType",
|
|
474
|
+
"description": "提交按钮类型",
|
|
475
|
+
"type": "ButtonType"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "cancelType",
|
|
479
|
+
"description": "取消按钮类型",
|
|
480
|
+
"type": "ButtonType"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"events": [
|
|
484
|
+
{
|
|
485
|
+
"name": "submit",
|
|
486
|
+
"description": "点击提交按钮触发的事件",
|
|
487
|
+
"detail": {
|
|
488
|
+
"type": "void"
|
|
614
489
|
}
|
|
615
490
|
},
|
|
616
491
|
{
|
|
617
|
-
"name": "
|
|
618
|
-
"description": "
|
|
492
|
+
"name": "cancel",
|
|
493
|
+
"description": "点击取消按钮触发的事件",
|
|
619
494
|
"detail": {
|
|
620
|
-
"type": "
|
|
495
|
+
"type": "void"
|
|
621
496
|
}
|
|
622
497
|
}
|
|
623
498
|
],
|
|
624
499
|
"slots": [],
|
|
625
500
|
"methods": [],
|
|
626
501
|
"parts": [],
|
|
627
|
-
"description": "
|
|
502
|
+
"description": "表单提交按钮",
|
|
628
503
|
"category": "form-input-basic"
|
|
629
504
|
},
|
|
630
505
|
{
|
|
@@ -769,66 +644,6 @@
|
|
|
769
644
|
"description": "通用下拉选择构件",
|
|
770
645
|
"category": "form-input-basic"
|
|
771
646
|
},
|
|
772
|
-
{
|
|
773
|
-
"name": "eo-submit-buttons",
|
|
774
|
-
"alias": [
|
|
775
|
-
"form.submit-buttons"
|
|
776
|
-
],
|
|
777
|
-
"properties": [
|
|
778
|
-
{
|
|
779
|
-
"name": "submitText",
|
|
780
|
-
"description": "提交按钮的文字",
|
|
781
|
-
"default": "\"提交\"",
|
|
782
|
-
"type": "string"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"name": "cancelText",
|
|
786
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
787
|
-
"type": "string"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"name": "disableAfterClick",
|
|
791
|
-
"description": "点击确定按钮后自动禁用",
|
|
792
|
-
"type": "boolean"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"name": "submitDisabled",
|
|
796
|
-
"description": "禁用提交按钮",
|
|
797
|
-
"type": "boolean"
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
"name": "submitType",
|
|
801
|
-
"description": "提交按钮类型",
|
|
802
|
-
"type": "ButtonType"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
"name": "cancelType",
|
|
806
|
-
"description": "取消按钮类型",
|
|
807
|
-
"type": "ButtonType"
|
|
808
|
-
}
|
|
809
|
-
],
|
|
810
|
-
"events": [
|
|
811
|
-
{
|
|
812
|
-
"name": "submit",
|
|
813
|
-
"description": "点击提交按钮触发的事件",
|
|
814
|
-
"detail": {
|
|
815
|
-
"type": "void"
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"name": "cancel",
|
|
820
|
-
"description": "点击取消按钮触发的事件",
|
|
821
|
-
"detail": {
|
|
822
|
-
"type": "void"
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
],
|
|
826
|
-
"slots": [],
|
|
827
|
-
"methods": [],
|
|
828
|
-
"parts": [],
|
|
829
|
-
"description": "表单提交按钮",
|
|
830
|
-
"category": "form-input-basic"
|
|
831
|
-
},
|
|
832
647
|
{
|
|
833
648
|
"name": "eo-checkbox",
|
|
834
649
|
"alias": [
|
|
@@ -1472,6 +1287,191 @@
|
|
|
1472
1287
|
"description": "带候选项的输入框",
|
|
1473
1288
|
"category": "form-input-basic"
|
|
1474
1289
|
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "eo-input",
|
|
1292
|
+
"alias": [
|
|
1293
|
+
"form.general-input"
|
|
1294
|
+
],
|
|
1295
|
+
"properties": [
|
|
1296
|
+
{
|
|
1297
|
+
"name": "name",
|
|
1298
|
+
"description": "字段名称",
|
|
1299
|
+
"type": "string"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "label",
|
|
1303
|
+
"description": "标签文字",
|
|
1304
|
+
"type": "string"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "required",
|
|
1308
|
+
"description": "是否必填",
|
|
1309
|
+
"type": "boolean"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "pattern",
|
|
1313
|
+
"description": "正则校验规则",
|
|
1314
|
+
"type": "string"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "max",
|
|
1318
|
+
"description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
|
|
1319
|
+
"type": "number"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "min",
|
|
1323
|
+
"description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
|
|
1324
|
+
"type": "number"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "message",
|
|
1328
|
+
"description": "错误时显示消息",
|
|
1329
|
+
"attribute": false,
|
|
1330
|
+
"type": "Record<string, string>"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "value",
|
|
1334
|
+
"description": "输入框值",
|
|
1335
|
+
"type": "string"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "placeholder",
|
|
1339
|
+
"description": "占位说明",
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "disabled",
|
|
1344
|
+
"description": "是否禁用",
|
|
1345
|
+
"type": "boolean"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "readonly",
|
|
1349
|
+
"description": "是否只读",
|
|
1350
|
+
"type": "boolean"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"name": "clearable",
|
|
1354
|
+
"description": "是否显示清除按钮",
|
|
1355
|
+
"type": "boolean"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "autoFocus",
|
|
1359
|
+
"description": "是否自动聚焦",
|
|
1360
|
+
"type": "boolean"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "type",
|
|
1364
|
+
"description": "类型",
|
|
1365
|
+
"default": "\"text\"",
|
|
1366
|
+
"type": "InputType"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "size",
|
|
1370
|
+
"description": "大小",
|
|
1371
|
+
"default": "\"medium\"",
|
|
1372
|
+
"type": "ComponentSize"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "minLength",
|
|
1376
|
+
"description": "最小长度",
|
|
1377
|
+
"type": "number"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "maxLength",
|
|
1381
|
+
"description": "最大长度(用户无法输入超过此最大长度的字符串)",
|
|
1382
|
+
"type": "number"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "inputStyle",
|
|
1386
|
+
"description": "输入框样式",
|
|
1387
|
+
"attribute": false,
|
|
1388
|
+
"type": "React.CSSProperties"
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"name": "validator",
|
|
1392
|
+
"description": "表单项校验方法",
|
|
1393
|
+
"attribute": false,
|
|
1394
|
+
"type": "((value: any) => MessageBody)"
|
|
1395
|
+
}
|
|
1396
|
+
],
|
|
1397
|
+
"events": [
|
|
1398
|
+
{
|
|
1399
|
+
"name": "change",
|
|
1400
|
+
"description": "值改变事件",
|
|
1401
|
+
"detail": {
|
|
1402
|
+
"type": "string"
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
],
|
|
1406
|
+
"slots": [
|
|
1407
|
+
{
|
|
1408
|
+
"name": "addonBefore",
|
|
1409
|
+
"description": "输入框前置标签"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "addonAfter",
|
|
1413
|
+
"description": "输入框后置标签"
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "prefix",
|
|
1417
|
+
"description": "输入框前缀图标"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "suffix",
|
|
1421
|
+
"description": "输入框后缀图标"
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
"methods": [
|
|
1425
|
+
{
|
|
1426
|
+
"name": "focusInput",
|
|
1427
|
+
"params": [],
|
|
1428
|
+
"description": "focus",
|
|
1429
|
+
"returns": {}
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "blurInput",
|
|
1433
|
+
"params": [],
|
|
1434
|
+
"description": "blur",
|
|
1435
|
+
"returns": {}
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"parts": [
|
|
1439
|
+
{
|
|
1440
|
+
"name": "addon-wrapper",
|
|
1441
|
+
"description": "包裹输入组件、前缀、后缀、前置和后置的容器"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "affix-wrapper",
|
|
1445
|
+
"description": "包裹输入组件、前缀和后缀的容器"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "input",
|
|
1449
|
+
"description": "输入组件"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "clear-icon",
|
|
1453
|
+
"description": "清除按钮"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "prefix",
|
|
1457
|
+
"description": "输入框前缀容器"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "suffix",
|
|
1461
|
+
"description": "输入框后缀容器"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "before-addon",
|
|
1465
|
+
"description": "输入框前置容器"
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "after-addon",
|
|
1469
|
+
"description": "输入框后置容器"
|
|
1470
|
+
}
|
|
1471
|
+
],
|
|
1472
|
+
"description": "通用输入框构件",
|
|
1473
|
+
"category": "form-input-basic"
|
|
1474
|
+
},
|
|
1475
1475
|
{
|
|
1476
1476
|
"name": "eo-time-picker",
|
|
1477
1477
|
"properties": [
|