vant 2.12.43 → 2.12.44
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/es/index.js +1 -1
- package/es/utils/validate/email.js +2 -2
- package/lib/index.js +1 -1
- package/lib/utils/validate/email.js +2 -2
- package/lib/vant.js +3 -3
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +431 -431
- package/vetur/tags.json +114 -114
- package/vetur/web-types.json +1056 -1056
package/vetur/web-types.json
CHANGED
@@ -2,83 +2,71 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
3
3
|
"framework": "vue",
|
4
4
|
"name": "vant",
|
5
|
-
"version": "2.12.
|
5
|
+
"version": "2.12.44",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
9
9
|
{
|
10
|
-
"name": "van-
|
10
|
+
"name": "van-area",
|
11
11
|
"slots": [
|
12
12
|
{
|
13
|
-
"name": "
|
14
|
-
"description": "
|
13
|
+
"name": "title",
|
14
|
+
"description": "自定义标题内容"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"name": "
|
18
|
-
"description": "
|
17
|
+
"name": "columns-top",
|
18
|
+
"description": "自定义选项上方内容"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "columns-bottom",
|
22
|
+
"description": "自定义选项下方内容"
|
19
23
|
}
|
20
24
|
],
|
21
25
|
"events": [
|
22
26
|
{
|
23
|
-
"name": "
|
24
|
-
"description": "
|
27
|
+
"name": "confirm",
|
28
|
+
"description": "点击右上方完成按钮"
|
25
29
|
},
|
26
30
|
{
|
27
31
|
"name": "cancel",
|
28
|
-
"description": "
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "open",
|
32
|
-
"description": "打开面板时触发"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"name": "close",
|
36
|
-
"description": "关闭面板时触发"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "opened",
|
40
|
-
"description": "打开面板且动画结束后触发"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"name": "closed",
|
44
|
-
"description": "关闭面板且动画结束后触发"
|
32
|
+
"description": "点击取消按钮时"
|
45
33
|
},
|
46
34
|
{
|
47
|
-
"name": "
|
48
|
-
"description": "
|
35
|
+
"name": "change",
|
36
|
+
"description": "选项改变时触发"
|
49
37
|
}
|
50
38
|
],
|
51
39
|
"attributes": [
|
52
40
|
{
|
53
|
-
"name": "
|
54
|
-
"default": "
|
55
|
-
"description": "
|
41
|
+
"name": "value",
|
42
|
+
"default": "-",
|
43
|
+
"description": "当前选中的省市区`code`",
|
56
44
|
"value": {
|
57
|
-
"type": "
|
45
|
+
"type": "string",
|
58
46
|
"kind": "expression"
|
59
47
|
}
|
60
48
|
},
|
61
49
|
{
|
62
|
-
"name": "
|
63
|
-
"default": "
|
64
|
-
"description": "
|
50
|
+
"name": "title",
|
51
|
+
"default": "-",
|
52
|
+
"description": "顶部栏标题",
|
65
53
|
"value": {
|
66
|
-
"type": "
|
54
|
+
"type": "string",
|
67
55
|
"kind": "expression"
|
68
56
|
}
|
69
57
|
},
|
70
58
|
{
|
71
|
-
"name": "
|
72
|
-
"default": "
|
73
|
-
"description": "
|
59
|
+
"name": "confirm-button-text",
|
60
|
+
"default": "`确认`",
|
61
|
+
"description": "确认按钮文字",
|
74
62
|
"value": {
|
75
63
|
"type": "string",
|
76
64
|
"kind": "expression"
|
77
65
|
}
|
78
66
|
},
|
79
67
|
{
|
80
|
-
"name": "cancel-text",
|
81
|
-
"default": "
|
68
|
+
"name": "cancel-button-text",
|
69
|
+
"default": "`取消`",
|
82
70
|
"description": "取消按钮文字",
|
83
71
|
"value": {
|
84
72
|
"type": "string",
|
@@ -86,204 +74,447 @@
|
|
86
74
|
}
|
87
75
|
},
|
88
76
|
{
|
89
|
-
"name": "
|
77
|
+
"name": "area-list",
|
90
78
|
"default": "-",
|
91
|
-
"description": "
|
79
|
+
"description": "省市区数据,格式见下方",
|
92
80
|
"value": {
|
93
|
-
"type": "
|
81
|
+
"type": "object",
|
94
82
|
"kind": "expression"
|
95
83
|
}
|
96
84
|
},
|
97
85
|
{
|
98
|
-
"name": "
|
99
|
-
"default": "`
|
100
|
-
"description": "
|
86
|
+
"name": "columns-placeholder",
|
87
|
+
"default": "`[]`",
|
88
|
+
"description": "列占位提示文字",
|
101
89
|
"value": {
|
102
|
-
"type": "
|
90
|
+
"type": "string[]",
|
103
91
|
"kind": "expression"
|
104
92
|
}
|
105
93
|
},
|
106
94
|
{
|
107
|
-
"name": "
|
108
|
-
"default": "`
|
109
|
-
"description": "
|
95
|
+
"name": "loading",
|
96
|
+
"default": "`false`",
|
97
|
+
"description": "是否显示加载状态",
|
110
98
|
"value": {
|
111
|
-
"type": "
|
99
|
+
"type": "boolean",
|
112
100
|
"kind": "expression"
|
113
101
|
}
|
114
102
|
},
|
115
103
|
{
|
116
|
-
"name": "
|
117
|
-
"default": "`
|
118
|
-
"description": "
|
104
|
+
"name": "readonly",
|
105
|
+
"default": "`false`",
|
106
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
119
107
|
"value": {
|
120
|
-
"type": "
|
108
|
+
"type": "boolean",
|
121
109
|
"kind": "expression"
|
122
110
|
}
|
123
111
|
},
|
124
112
|
{
|
125
|
-
"name": "
|
126
|
-
"default": "`
|
127
|
-
"description": "
|
113
|
+
"name": "item-height",
|
114
|
+
"default": "`44`",
|
115
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
128
116
|
"value": {
|
129
|
-
"type": "
|
117
|
+
"type": "number | string",
|
130
118
|
"kind": "expression"
|
131
119
|
}
|
132
120
|
},
|
133
121
|
{
|
134
|
-
"name": "
|
135
|
-
"default": "`
|
136
|
-
"description": "
|
122
|
+
"name": "columns-num",
|
123
|
+
"default": "`3`",
|
124
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
137
125
|
"value": {
|
138
|
-
"type": "
|
126
|
+
"type": "number | string",
|
139
127
|
"kind": "expression"
|
140
128
|
}
|
141
129
|
},
|
142
130
|
{
|
143
|
-
"name": "
|
144
|
-
"default": "`
|
145
|
-
"description": "
|
131
|
+
"name": "visible-item-count",
|
132
|
+
"default": "`6`",
|
133
|
+
"description": "可见的选项个数",
|
146
134
|
"value": {
|
147
|
-
"type": "
|
135
|
+
"type": "number | string",
|
148
136
|
"kind": "expression"
|
149
137
|
}
|
150
138
|
},
|
151
139
|
{
|
152
|
-
"name": "
|
153
|
-
"default": "`
|
154
|
-
"description": "
|
140
|
+
"name": "swipe-duration",
|
141
|
+
"default": "`1000`",
|
142
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
155
143
|
"value": {
|
156
|
-
"type": "
|
144
|
+
"type": "number | string",
|
157
145
|
"kind": "expression"
|
158
146
|
}
|
159
147
|
},
|
160
148
|
{
|
161
|
-
"name": "
|
162
|
-
"default": "
|
163
|
-
"description": "
|
149
|
+
"name": "is-oversea-code",
|
150
|
+
"default": "-",
|
151
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
164
152
|
"value": {
|
165
|
-
"type": "boolean",
|
153
|
+
"type": "() => boolean",
|
166
154
|
"kind": "expression"
|
167
155
|
}
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"name": "van-badge",
|
161
|
+
"slots": [
|
162
|
+
{
|
163
|
+
"name": "default",
|
164
|
+
"description": "徽标包裹的子元素"
|
168
165
|
},
|
169
166
|
{
|
170
|
-
"name": "
|
171
|
-
"
|
172
|
-
|
167
|
+
"name": "content",
|
168
|
+
"description": "自定义徽标内容"
|
169
|
+
}
|
170
|
+
],
|
171
|
+
"events": [],
|
172
|
+
"attributes": [
|
173
|
+
{
|
174
|
+
"name": "content",
|
175
|
+
"default": "-",
|
176
|
+
"description": "徽标内容",
|
173
177
|
"value": {
|
174
|
-
"type": "
|
178
|
+
"type": "number | string",
|
175
179
|
"kind": "expression"
|
176
180
|
}
|
177
181
|
},
|
178
182
|
{
|
179
|
-
"name": "
|
180
|
-
"default": "`
|
181
|
-
"description": "
|
183
|
+
"name": "color",
|
184
|
+
"default": "`#ee0a24`",
|
185
|
+
"description": "徽标背景颜色",
|
182
186
|
"value": {
|
183
|
-
"type": "
|
187
|
+
"type": "string",
|
184
188
|
"kind": "expression"
|
185
189
|
}
|
186
190
|
},
|
187
191
|
{
|
188
|
-
"name": "
|
189
|
-
"default": "`
|
190
|
-
"description": "
|
192
|
+
"name": "dot",
|
193
|
+
"default": "`false`",
|
194
|
+
"description": "是否展示为小红点",
|
191
195
|
"value": {
|
192
196
|
"type": "boolean",
|
193
197
|
"kind": "expression"
|
194
198
|
}
|
195
199
|
},
|
196
200
|
{
|
197
|
-
"name": "
|
201
|
+
"name": "max",
|
198
202
|
"default": "-",
|
199
|
-
"description": "
|
203
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
200
204
|
"value": {
|
201
|
-
"type": "
|
205
|
+
"type": "number | string",
|
202
206
|
"kind": "expression"
|
203
207
|
}
|
204
208
|
}
|
205
209
|
]
|
206
210
|
},
|
207
211
|
{
|
208
|
-
"name": "van-
|
212
|
+
"name": "van-button",
|
209
213
|
"slots": [
|
210
214
|
{
|
211
215
|
"name": "default",
|
212
|
-
"description": "
|
213
|
-
}
|
214
|
-
],
|
215
|
-
"events": [
|
216
|
-
{
|
217
|
-
"name": "save",
|
218
|
-
"description": "点击保存按钮时触发"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"name": "focus",
|
222
|
-
"description": "输入框聚焦时触发"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"name": "delete",
|
226
|
-
"description": "确认删除地址时触发"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"name": "cancel-delete",
|
230
|
-
"description": "取消删除地址时触发"
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"name": "select-search",
|
234
|
-
"description": "选中搜索结果时触发"
|
216
|
+
"description": "按钮内容"
|
235
217
|
},
|
236
218
|
{
|
237
|
-
"name": "
|
238
|
-
"description": "
|
219
|
+
"name": "icon",
|
220
|
+
"description": "自定义图标"
|
239
221
|
},
|
240
222
|
{
|
241
|
-
"name": "
|
242
|
-
"description": "
|
243
|
-
}
|
223
|
+
"name": "loading",
|
224
|
+
"description": "自定义加载图标"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"events": [
|
244
228
|
{
|
245
|
-
"name": "
|
246
|
-
"description": "
|
229
|
+
"name": "click",
|
230
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
247
231
|
},
|
248
232
|
{
|
249
|
-
"name": "
|
250
|
-
"description": "
|
233
|
+
"name": "touchstart",
|
234
|
+
"description": "开始触摸按钮时触发"
|
251
235
|
}
|
252
236
|
],
|
253
237
|
"attributes": [
|
254
238
|
{
|
255
|
-
"name": "
|
256
|
-
"default": "
|
257
|
-
"description": "
|
239
|
+
"name": "type",
|
240
|
+
"default": "`default`",
|
241
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
258
242
|
"value": {
|
259
|
-
"type": "
|
243
|
+
"type": "string",
|
260
244
|
"kind": "expression"
|
261
245
|
}
|
262
246
|
},
|
263
247
|
{
|
264
|
-
"name": "
|
265
|
-
"default": "`
|
266
|
-
"description": "
|
248
|
+
"name": "size",
|
249
|
+
"default": "`normal`",
|
250
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
267
251
|
"value": {
|
268
|
-
"type": "string
|
252
|
+
"type": "string",
|
269
253
|
"kind": "expression"
|
270
254
|
}
|
271
255
|
},
|
272
256
|
{
|
273
|
-
"name": "
|
274
|
-
"default": "
|
275
|
-
"description": "
|
257
|
+
"name": "text",
|
258
|
+
"default": "-",
|
259
|
+
"description": "按钮文字",
|
276
260
|
"value": {
|
277
261
|
"type": "string",
|
278
262
|
"kind": "expression"
|
279
263
|
}
|
280
264
|
},
|
281
265
|
{
|
282
|
-
"name": "
|
283
|
-
"default": "
|
284
|
-
"description": "
|
266
|
+
"name": "color",
|
267
|
+
"default": "-",
|
268
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
285
269
|
"value": {
|
286
|
-
"type": "
|
270
|
+
"type": "string",
|
271
|
+
"kind": "expression"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"name": "icon",
|
276
|
+
"default": "-",
|
277
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
278
|
+
"value": {
|
279
|
+
"type": "string",
|
280
|
+
"kind": "expression"
|
281
|
+
}
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "icon-prefix",
|
285
|
+
"default": "`van-icon`",
|
286
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
287
|
+
"value": {
|
288
|
+
"type": "string",
|
289
|
+
"kind": "expression"
|
290
|
+
}
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"name": "icon-position",
|
294
|
+
"default": "`left`",
|
295
|
+
"description": "图标展示位置,可选值为 `right`",
|
296
|
+
"value": {
|
297
|
+
"type": "string",
|
298
|
+
"kind": "expression"
|
299
|
+
}
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"name": "tag",
|
303
|
+
"default": "`button`",
|
304
|
+
"description": "按钮根节点的 HTML 标签",
|
305
|
+
"value": {
|
306
|
+
"type": "string",
|
307
|
+
"kind": "expression"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"name": "native-type",
|
312
|
+
"default": "-",
|
313
|
+
"description": "原生 button 标签的 type 属性",
|
314
|
+
"value": {
|
315
|
+
"type": "string",
|
316
|
+
"kind": "expression"
|
317
|
+
}
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"name": "block",
|
321
|
+
"default": "`false`",
|
322
|
+
"description": "是否为块级元素",
|
323
|
+
"value": {
|
324
|
+
"type": "boolean",
|
325
|
+
"kind": "expression"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"name": "plain",
|
330
|
+
"default": "`false`",
|
331
|
+
"description": "是否为朴素按钮",
|
332
|
+
"value": {
|
333
|
+
"type": "boolean",
|
334
|
+
"kind": "expression"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "square",
|
339
|
+
"default": "`false`",
|
340
|
+
"description": "是否为方形按钮",
|
341
|
+
"value": {
|
342
|
+
"type": "boolean",
|
343
|
+
"kind": "expression"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"name": "round",
|
348
|
+
"default": "`false`",
|
349
|
+
"description": "是否为圆形按钮",
|
350
|
+
"value": {
|
351
|
+
"type": "boolean",
|
352
|
+
"kind": "expression"
|
353
|
+
}
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"name": "disabled",
|
357
|
+
"default": "`false`",
|
358
|
+
"description": "是否禁用按钮",
|
359
|
+
"value": {
|
360
|
+
"type": "boolean",
|
361
|
+
"kind": "expression"
|
362
|
+
}
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"name": "hairline",
|
366
|
+
"default": "`false`",
|
367
|
+
"description": "是否使用 0.5px 边框",
|
368
|
+
"value": {
|
369
|
+
"type": "boolean",
|
370
|
+
"kind": "expression"
|
371
|
+
}
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"name": "loading",
|
375
|
+
"default": "`false`",
|
376
|
+
"description": "是否显示为加载状态",
|
377
|
+
"value": {
|
378
|
+
"type": "boolean",
|
379
|
+
"kind": "expression"
|
380
|
+
}
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"name": "loading-text",
|
384
|
+
"default": "-",
|
385
|
+
"description": "加载状态提示文字",
|
386
|
+
"value": {
|
387
|
+
"type": "string",
|
388
|
+
"kind": "expression"
|
389
|
+
}
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"name": "loading-type",
|
393
|
+
"default": "`circular`",
|
394
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
395
|
+
"value": {
|
396
|
+
"type": "string",
|
397
|
+
"kind": "expression"
|
398
|
+
}
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"name": "loading-size",
|
402
|
+
"default": "`20px`",
|
403
|
+
"description": "加载图标大小",
|
404
|
+
"value": {
|
405
|
+
"type": "string",
|
406
|
+
"kind": "expression"
|
407
|
+
}
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"name": "url",
|
411
|
+
"default": "-",
|
412
|
+
"description": "点击后跳转的链接地址",
|
413
|
+
"value": {
|
414
|
+
"type": "string",
|
415
|
+
"kind": "expression"
|
416
|
+
}
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"name": "to",
|
420
|
+
"default": "-",
|
421
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
422
|
+
"value": {
|
423
|
+
"type": "string | object",
|
424
|
+
"kind": "expression"
|
425
|
+
}
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"name": "replace",
|
429
|
+
"default": "`false`",
|
430
|
+
"description": "是否在跳转时替换当前页面历史",
|
431
|
+
"value": {
|
432
|
+
"type": "boolean",
|
433
|
+
"kind": "expression"
|
434
|
+
}
|
435
|
+
}
|
436
|
+
]
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"name": "van-address-edit",
|
440
|
+
"slots": [
|
441
|
+
{
|
442
|
+
"name": "default",
|
443
|
+
"description": "在邮政编码下方插入内容"
|
444
|
+
}
|
445
|
+
],
|
446
|
+
"events": [
|
447
|
+
{
|
448
|
+
"name": "save",
|
449
|
+
"description": "点击保存按钮时触发"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"name": "focus",
|
453
|
+
"description": "输入框聚焦时触发"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"name": "delete",
|
457
|
+
"description": "确认删除地址时触发"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"name": "cancel-delete",
|
461
|
+
"description": "取消删除地址时触发"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"name": "select-search",
|
465
|
+
"description": "选中搜索结果时触发"
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"name": "click-area",
|
469
|
+
"description": "点击收件地区时触发"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"name": "change-area",
|
473
|
+
"description": "修改收件地区时触发"
|
474
|
+
},
|
475
|
+
{
|
476
|
+
"name": "change-detail",
|
477
|
+
"description": "修改详细地址时触发"
|
478
|
+
},
|
479
|
+
{
|
480
|
+
"name": "change-default",
|
481
|
+
"description": "切换是否使用默认地址时触发"
|
482
|
+
}
|
483
|
+
],
|
484
|
+
"attributes": [
|
485
|
+
{
|
486
|
+
"name": "area-list",
|
487
|
+
"default": "-",
|
488
|
+
"description": "地区列表",
|
489
|
+
"value": {
|
490
|
+
"type": "object",
|
491
|
+
"kind": "expression"
|
492
|
+
}
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"name": "area-columns-placeholder",
|
496
|
+
"default": "`[]`",
|
497
|
+
"description": "地区选择列占位提示文字",
|
498
|
+
"value": {
|
499
|
+
"type": "string[]",
|
500
|
+
"kind": "expression"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"name": "area-placeholder",
|
505
|
+
"default": "`选择省 / 市 / 区`",
|
506
|
+
"description": "地区输入框占位提示文字",
|
507
|
+
"value": {
|
508
|
+
"type": "string",
|
509
|
+
"kind": "expression"
|
510
|
+
}
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"name": "address-info",
|
514
|
+
"default": "`{}`",
|
515
|
+
"description": "收货人信息初始值",
|
516
|
+
"value": {
|
517
|
+
"type": "AddressInfo",
|
287
518
|
"kind": "expression"
|
288
519
|
}
|
289
520
|
},
|
@@ -452,106 +683,73 @@
|
|
452
683
|
]
|
453
684
|
},
|
454
685
|
{
|
455
|
-
"name": "van-
|
686
|
+
"name": "van-calendar",
|
456
687
|
"slots": [
|
457
688
|
{
|
458
|
-
"name": "
|
459
|
-
"description": "
|
689
|
+
"name": "title",
|
690
|
+
"description": "自定义标题"
|
460
691
|
},
|
461
692
|
{
|
462
|
-
"name": "
|
463
|
-
"description": "
|
464
|
-
}
|
465
|
-
],
|
466
|
-
"events": [],
|
467
|
-
"attributes": [
|
693
|
+
"name": "footer",
|
694
|
+
"description": "自定义底部区域内容"
|
695
|
+
},
|
468
696
|
{
|
469
|
-
"name": "
|
470
|
-
"
|
471
|
-
"description": "徽标内容",
|
472
|
-
"value": {
|
473
|
-
"type": "number | string",
|
474
|
-
"kind": "expression"
|
475
|
-
}
|
697
|
+
"name": "top-info",
|
698
|
+
"description": "自定义日期上方的提示信息"
|
476
699
|
},
|
477
700
|
{
|
478
|
-
"name": "
|
479
|
-
"
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
701
|
+
"name": "bottom-info",
|
702
|
+
"description": "自定义日期下方的提示信息"
|
703
|
+
}
|
704
|
+
],
|
705
|
+
"events": [
|
706
|
+
{
|
707
|
+
"name": "select",
|
708
|
+
"description": "点击并选中任意日期时触发"
|
485
709
|
},
|
486
710
|
{
|
487
|
-
"name": "
|
488
|
-
"
|
489
|
-
"description": "是否展示为小红点",
|
490
|
-
"value": {
|
491
|
-
"type": "boolean",
|
492
|
-
"kind": "expression"
|
493
|
-
}
|
711
|
+
"name": "confirm",
|
712
|
+
"description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
|
494
713
|
},
|
495
714
|
{
|
496
|
-
"name": "
|
497
|
-
"
|
498
|
-
|
499
|
-
"value": {
|
500
|
-
"type": "number | string",
|
501
|
-
"kind": "expression"
|
502
|
-
}
|
503
|
-
}
|
504
|
-
]
|
505
|
-
},
|
506
|
-
{
|
507
|
-
"name": "van-button",
|
508
|
-
"slots": [
|
715
|
+
"name": "open",
|
716
|
+
"description": "打开弹出层时触发"
|
717
|
+
},
|
509
718
|
{
|
510
|
-
"name": "
|
511
|
-
"description": "
|
719
|
+
"name": "close",
|
720
|
+
"description": "关闭弹出层时触发"
|
512
721
|
},
|
513
722
|
{
|
514
|
-
"name": "
|
515
|
-
"description": "
|
723
|
+
"name": "opened",
|
724
|
+
"description": "打开弹出层且动画结束后触发"
|
516
725
|
},
|
517
726
|
{
|
518
|
-
"name": "
|
519
|
-
"description": "
|
520
|
-
}
|
521
|
-
],
|
522
|
-
"events": [
|
727
|
+
"name": "closed",
|
728
|
+
"description": "关闭弹出层且动画结束后触发"
|
729
|
+
},
|
523
730
|
{
|
524
|
-
"name": "
|
525
|
-
"description": "
|
731
|
+
"name": "unselect",
|
732
|
+
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
526
733
|
},
|
527
734
|
{
|
528
|
-
"name": "
|
529
|
-
"description": "
|
735
|
+
"name": "month-show",
|
736
|
+
"description": "当某个月份进入可视区域时触发"
|
530
737
|
}
|
531
738
|
],
|
532
739
|
"attributes": [
|
533
740
|
{
|
534
741
|
"name": "type",
|
535
|
-
"default": "`
|
536
|
-
"description": "
|
537
|
-
"value": {
|
538
|
-
"type": "string",
|
539
|
-
"kind": "expression"
|
540
|
-
}
|
541
|
-
},
|
542
|
-
{
|
543
|
-
"name": "size",
|
544
|
-
"default": "`normal`",
|
545
|
-
"description": "尺寸,可选值为 `large` `small` `mini`",
|
742
|
+
"default": "`single`",
|
743
|
+
"description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
|
546
744
|
"value": {
|
547
745
|
"type": "string",
|
548
746
|
"kind": "expression"
|
549
747
|
}
|
550
748
|
},
|
551
749
|
{
|
552
|
-
"name": "
|
553
|
-
"default": "
|
554
|
-
"description": "
|
750
|
+
"name": "title",
|
751
|
+
"default": "`日期选择`",
|
752
|
+
"description": "日历标题",
|
555
753
|
"value": {
|
556
754
|
"type": "string",
|
557
755
|
"kind": "expression"
|
@@ -559,668 +757,582 @@
|
|
559
757
|
},
|
560
758
|
{
|
561
759
|
"name": "color",
|
562
|
-
"default": "
|
563
|
-
"description": "
|
760
|
+
"default": "`#ee0a24`",
|
761
|
+
"description": "主题色,对底部按钮和选中日期生效",
|
564
762
|
"value": {
|
565
763
|
"type": "string",
|
566
764
|
"kind": "expression"
|
567
765
|
}
|
568
766
|
},
|
569
767
|
{
|
570
|
-
"name": "
|
571
|
-
"default": "
|
572
|
-
"description": "
|
768
|
+
"name": "min-date",
|
769
|
+
"default": "当前日期",
|
770
|
+
"description": "可选择的最小日期",
|
573
771
|
"value": {
|
574
|
-
"type": "
|
772
|
+
"type": "Date",
|
575
773
|
"kind": "expression"
|
576
774
|
}
|
577
775
|
},
|
578
776
|
{
|
579
|
-
"name": "
|
580
|
-
"default": "
|
581
|
-
"description": "
|
777
|
+
"name": "max-date",
|
778
|
+
"default": "当前日期的六个月后",
|
779
|
+
"description": "可选择的最大日期",
|
582
780
|
"value": {
|
583
|
-
"type": "
|
781
|
+
"type": "Date",
|
584
782
|
"kind": "expression"
|
585
783
|
}
|
586
784
|
},
|
587
785
|
{
|
588
|
-
"name": "
|
589
|
-
"default": "
|
590
|
-
"description": "
|
786
|
+
"name": "default-date",
|
787
|
+
"default": "null_",
|
788
|
+
"description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
|
591
789
|
"value": {
|
592
|
-
"type": "
|
790
|
+
"type": "Date | Date[] \\",
|
593
791
|
"kind": "expression"
|
594
792
|
}
|
595
793
|
},
|
596
794
|
{
|
597
|
-
"name": "
|
598
|
-
"default": "`
|
599
|
-
"description": "
|
795
|
+
"name": "row-height",
|
796
|
+
"default": "`64`",
|
797
|
+
"description": "日期行高",
|
600
798
|
"value": {
|
601
|
-
"type": "string",
|
799
|
+
"type": "number | string",
|
602
800
|
"kind": "expression"
|
603
801
|
}
|
604
802
|
},
|
605
803
|
{
|
606
|
-
"name": "
|
804
|
+
"name": "formatter",
|
607
805
|
"default": "-",
|
608
|
-
"description": "
|
806
|
+
"description": "日期格式化函数",
|
609
807
|
"value": {
|
610
|
-
"type": "
|
808
|
+
"type": "(day: Day) => Day",
|
611
809
|
"kind": "expression"
|
612
810
|
}
|
613
811
|
},
|
614
812
|
{
|
615
|
-
"name": "
|
616
|
-
"default": "`
|
617
|
-
"description": "
|
813
|
+
"name": "poppable",
|
814
|
+
"default": "`true`",
|
815
|
+
"description": "是否以弹层的形式展示日历",
|
618
816
|
"value": {
|
619
817
|
"type": "boolean",
|
620
818
|
"kind": "expression"
|
621
819
|
}
|
622
820
|
},
|
623
821
|
{
|
624
|
-
"name": "
|
625
|
-
"default": "`
|
626
|
-
"description": "
|
822
|
+
"name": "lazy-render",
|
823
|
+
"default": "`true`",
|
824
|
+
"description": "是否只渲染可视区域的内容",
|
627
825
|
"value": {
|
628
826
|
"type": "boolean",
|
629
827
|
"kind": "expression"
|
630
828
|
}
|
631
829
|
},
|
632
830
|
{
|
633
|
-
"name": "
|
634
|
-
"default": "`
|
635
|
-
"description": "
|
831
|
+
"name": "show-mark",
|
832
|
+
"default": "`true`",
|
833
|
+
"description": "是否显示月份背景水印",
|
636
834
|
"value": {
|
637
835
|
"type": "boolean",
|
638
836
|
"kind": "expression"
|
639
837
|
}
|
640
838
|
},
|
641
839
|
{
|
642
|
-
"name": "
|
643
|
-
"default": "`
|
644
|
-
"description": "
|
840
|
+
"name": "show-title",
|
841
|
+
"default": "`true`",
|
842
|
+
"description": "是否展示日历标题",
|
645
843
|
"value": {
|
646
844
|
"type": "boolean",
|
647
845
|
"kind": "expression"
|
648
846
|
}
|
649
847
|
},
|
650
848
|
{
|
651
|
-
"name": "
|
652
|
-
"default": "`
|
653
|
-
"description": "
|
849
|
+
"name": "show-subtitle",
|
850
|
+
"default": "`true`",
|
851
|
+
"description": "是否展示日历副标题(年月)",
|
654
852
|
"value": {
|
655
853
|
"type": "boolean",
|
656
854
|
"kind": "expression"
|
657
855
|
}
|
658
856
|
},
|
659
857
|
{
|
660
|
-
"name": "
|
661
|
-
"default": "`
|
662
|
-
"description": "
|
858
|
+
"name": "show-confirm",
|
859
|
+
"default": "`true`",
|
860
|
+
"description": "是否展示确认按钮",
|
663
861
|
"value": {
|
664
862
|
"type": "boolean",
|
665
863
|
"kind": "expression"
|
666
864
|
}
|
667
865
|
},
|
668
866
|
{
|
669
|
-
"name": "
|
867
|
+
"name": "readonly",
|
670
868
|
"default": "`false`",
|
671
|
-
"description": "
|
869
|
+
"description": "是否为只读状态,只读状态下不能选择日期",
|
672
870
|
"value": {
|
673
871
|
"type": "boolean",
|
674
872
|
"kind": "expression"
|
675
873
|
}
|
676
874
|
},
|
677
875
|
{
|
678
|
-
"name": "
|
679
|
-
"default": "
|
680
|
-
"description": "
|
876
|
+
"name": "confirm-text",
|
877
|
+
"default": "`确定`",
|
878
|
+
"description": "确认按钮的文字",
|
681
879
|
"value": {
|
682
880
|
"type": "string",
|
683
881
|
"kind": "expression"
|
684
882
|
}
|
685
883
|
},
|
686
884
|
{
|
687
|
-
"name": "
|
688
|
-
"default": "
|
689
|
-
"description": "
|
885
|
+
"name": "confirm-disabled-text",
|
886
|
+
"default": "`确定`",
|
887
|
+
"description": "确认按钮处于禁用状态时的文字",
|
690
888
|
"value": {
|
691
889
|
"type": "string",
|
692
890
|
"kind": "expression"
|
693
891
|
}
|
694
892
|
},
|
695
893
|
{
|
696
|
-
"name": "
|
697
|
-
"default": "`
|
698
|
-
"description": "
|
894
|
+
"name": "first-day-of-week",
|
895
|
+
"default": "`0`",
|
896
|
+
"description": "设置周起始日",
|
699
897
|
"value": {
|
700
|
-
"type": "
|
898
|
+
"type": "0-6",
|
899
|
+
"kind": "expression"
|
900
|
+
}
|
901
|
+
}
|
902
|
+
]
|
903
|
+
},
|
904
|
+
{
|
905
|
+
"name": "van-poppable",
|
906
|
+
"slots": [],
|
907
|
+
"events": [],
|
908
|
+
"attributes": [
|
909
|
+
{
|
910
|
+
"name": "v-model",
|
911
|
+
"default": "`false`",
|
912
|
+
"description": "是否显示日历弹窗",
|
913
|
+
"value": {
|
914
|
+
"type": "boolean",
|
701
915
|
"kind": "expression"
|
702
916
|
}
|
703
917
|
},
|
704
918
|
{
|
705
|
-
"name": "
|
706
|
-
"default": "
|
707
|
-
"description": "
|
919
|
+
"name": "position",
|
920
|
+
"default": "`bottom`",
|
921
|
+
"description": "弹出位置,可选值为 `top` `right` `left`",
|
708
922
|
"value": {
|
709
923
|
"type": "string",
|
710
924
|
"kind": "expression"
|
711
925
|
}
|
712
926
|
},
|
713
927
|
{
|
714
|
-
"name": "
|
715
|
-
"default": "
|
716
|
-
"description": "
|
928
|
+
"name": "round",
|
929
|
+
"default": "`true`",
|
930
|
+
"description": "是否显示圆角弹窗",
|
717
931
|
"value": {
|
718
|
-
"type": "
|
932
|
+
"type": "boolean",
|
719
933
|
"kind": "expression"
|
720
934
|
}
|
721
935
|
},
|
722
936
|
{
|
723
|
-
"name": "
|
724
|
-
"default": "`
|
725
|
-
"description": "
|
937
|
+
"name": "close-on-popstate",
|
938
|
+
"default": "`true`",
|
939
|
+
"description": "是否在页面回退时自动关闭",
|
726
940
|
"value": {
|
727
941
|
"type": "boolean",
|
728
942
|
"kind": "expression"
|
729
943
|
}
|
730
|
-
}
|
731
|
-
]
|
732
|
-
},
|
733
|
-
{
|
734
|
-
"name": "van-area",
|
735
|
-
"slots": [
|
736
|
-
{
|
737
|
-
"name": "title",
|
738
|
-
"description": "自定义标题内容"
|
739
944
|
},
|
740
945
|
{
|
741
|
-
"name": "
|
742
|
-
"
|
946
|
+
"name": "close-on-click-overlay",
|
947
|
+
"default": "`true`",
|
948
|
+
"description": "是否在点击遮罩层后关闭",
|
949
|
+
"value": {
|
950
|
+
"type": "boolean",
|
951
|
+
"kind": "expression"
|
952
|
+
}
|
743
953
|
},
|
744
954
|
{
|
745
|
-
"name": "
|
746
|
-
"
|
747
|
-
|
748
|
-
],
|
749
|
-
"events": [
|
750
|
-
{
|
751
|
-
"name": "confirm",
|
752
|
-
"description": "点击右上方完成按钮"
|
753
|
-
},
|
754
|
-
{
|
755
|
-
"name": "cancel",
|
756
|
-
"description": "点击取消按钮时"
|
757
|
-
},
|
758
|
-
{
|
759
|
-
"name": "change",
|
760
|
-
"description": "选项改变时触发"
|
761
|
-
}
|
762
|
-
],
|
763
|
-
"attributes": [
|
764
|
-
{
|
765
|
-
"name": "value",
|
766
|
-
"default": "-",
|
767
|
-
"description": "当前选中的省市区`code`",
|
955
|
+
"name": "safe-area-inset-bottom",
|
956
|
+
"default": "`true`",
|
957
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
768
958
|
"value": {
|
769
|
-
"type": "
|
959
|
+
"type": "boolean",
|
770
960
|
"kind": "expression"
|
771
961
|
}
|
772
962
|
},
|
773
963
|
{
|
774
|
-
"name": "
|
964
|
+
"name": "get-container",
|
775
965
|
"default": "-",
|
776
|
-
"description": "
|
966
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
777
967
|
"value": {
|
778
|
-
"type": "string",
|
968
|
+
"type": "string | () => Element",
|
779
969
|
"kind": "expression"
|
780
970
|
}
|
781
|
-
}
|
971
|
+
}
|
972
|
+
]
|
973
|
+
},
|
974
|
+
{
|
975
|
+
"name": "van-range",
|
976
|
+
"slots": [],
|
977
|
+
"events": [],
|
978
|
+
"attributes": [
|
782
979
|
{
|
783
|
-
"name": "
|
784
|
-
"default": "
|
785
|
-
"description": "
|
980
|
+
"name": "max-range",
|
981
|
+
"default": "无限制",
|
982
|
+
"description": "日期区间最多可选天数",
|
786
983
|
"value": {
|
787
|
-
"type": "string",
|
984
|
+
"type": "number | string",
|
788
985
|
"kind": "expression"
|
789
986
|
}
|
790
987
|
},
|
791
988
|
{
|
792
|
-
"name": "
|
793
|
-
"default": "
|
794
|
-
"description": "
|
989
|
+
"name": "range-prompt",
|
990
|
+
"default": "`选择天数不能超过 xx 天`",
|
991
|
+
"description": "范围选择超过最多可选天数时的提示文案",
|
795
992
|
"value": {
|
796
993
|
"type": "string",
|
797
994
|
"kind": "expression"
|
798
995
|
}
|
799
996
|
},
|
800
997
|
{
|
801
|
-
"name": "
|
802
|
-
"default": "-",
|
803
|
-
"description": "省市区数据,格式见下方",
|
804
|
-
"value": {
|
805
|
-
"type": "object",
|
806
|
-
"kind": "expression"
|
807
|
-
}
|
808
|
-
},
|
809
|
-
{
|
810
|
-
"name": "columns-placeholder",
|
811
|
-
"default": "`[]`",
|
812
|
-
"description": "列占位提示文字",
|
813
|
-
"value": {
|
814
|
-
"type": "string[]",
|
815
|
-
"kind": "expression"
|
816
|
-
}
|
817
|
-
},
|
818
|
-
{
|
819
|
-
"name": "loading",
|
820
|
-
"default": "`false`",
|
821
|
-
"description": "是否显示加载状态",
|
822
|
-
"value": {
|
823
|
-
"type": "boolean",
|
824
|
-
"kind": "expression"
|
825
|
-
}
|
826
|
-
},
|
827
|
-
{
|
828
|
-
"name": "readonly",
|
998
|
+
"name": "allow-same-day",
|
829
999
|
"default": "`false`",
|
830
|
-
"description": "
|
1000
|
+
"description": "是否允许日期范围的起止时间为同一天",
|
831
1001
|
"value": {
|
832
1002
|
"type": "boolean",
|
833
1003
|
"kind": "expression"
|
834
1004
|
}
|
835
|
-
}
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
}
|
844
|
-
},
|
845
|
-
{
|
846
|
-
"name": "columns-num",
|
847
|
-
"default": "`3`",
|
848
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
849
|
-
"value": {
|
850
|
-
"type": "number | string",
|
851
|
-
"kind": "expression"
|
852
|
-
}
|
853
|
-
},
|
854
|
-
{
|
855
|
-
"name": "visible-item-count",
|
856
|
-
"default": "`6`",
|
857
|
-
"description": "可见的选项个数",
|
858
|
-
"value": {
|
859
|
-
"type": "number | string",
|
860
|
-
"kind": "expression"
|
861
|
-
}
|
862
|
-
},
|
1005
|
+
}
|
1006
|
+
]
|
1007
|
+
},
|
1008
|
+
{
|
1009
|
+
"name": "van-multiple",
|
1010
|
+
"slots": [],
|
1011
|
+
"events": [],
|
1012
|
+
"attributes": [
|
863
1013
|
{
|
864
|
-
"name": "
|
865
|
-
"default": "
|
866
|
-
"description": "
|
1014
|
+
"name": "max-range",
|
1015
|
+
"default": "无限制",
|
1016
|
+
"description": "日期最多可选天数",
|
867
1017
|
"value": {
|
868
1018
|
"type": "number | string",
|
869
1019
|
"kind": "expression"
|
870
1020
|
}
|
871
1021
|
},
|
872
1022
|
{
|
873
|
-
"name": "
|
874
|
-
"default": "
|
875
|
-
"description": "
|
1023
|
+
"name": "range-prompt",
|
1024
|
+
"default": "`选择天数不能超过 xx 天`",
|
1025
|
+
"description": "选择超过最多可选天数时的提示文案",
|
876
1026
|
"value": {
|
877
|
-
"type": "
|
1027
|
+
"type": "string",
|
878
1028
|
"kind": "expression"
|
879
1029
|
}
|
880
1030
|
}
|
881
1031
|
]
|
882
1032
|
},
|
883
1033
|
{
|
884
|
-
"name": "van-
|
1034
|
+
"name": "van-action-sheet",
|
885
1035
|
"slots": [
|
886
1036
|
{
|
887
|
-
"name": "
|
888
|
-
"description": "
|
889
|
-
},
|
890
|
-
{
|
891
|
-
"name": "footer",
|
892
|
-
"description": "自定义底部区域内容"
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"name": "top-info",
|
896
|
-
"description": "自定义日期上方的提示信息"
|
1037
|
+
"name": "default",
|
1038
|
+
"description": "自定义面板的展示内容"
|
897
1039
|
},
|
898
1040
|
{
|
899
|
-
"name": "
|
900
|
-
"description": "
|
1041
|
+
"name": "description",
|
1042
|
+
"description": "自定义描述文案"
|
901
1043
|
}
|
902
1044
|
],
|
903
1045
|
"events": [
|
904
1046
|
{
|
905
1047
|
"name": "select",
|
906
|
-
"description": "
|
1048
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
907
1049
|
},
|
908
1050
|
{
|
909
|
-
"name": "
|
910
|
-
"description": "
|
1051
|
+
"name": "cancel",
|
1052
|
+
"description": "点击取消按钮时触发"
|
911
1053
|
},
|
912
1054
|
{
|
913
1055
|
"name": "open",
|
914
|
-
"description": "
|
1056
|
+
"description": "打开面板时触发"
|
915
1057
|
},
|
916
1058
|
{
|
917
1059
|
"name": "close",
|
918
|
-
"description": "
|
1060
|
+
"description": "关闭面板时触发"
|
919
1061
|
},
|
920
1062
|
{
|
921
1063
|
"name": "opened",
|
922
|
-
"description": "
|
1064
|
+
"description": "打开面板且动画结束后触发"
|
923
1065
|
},
|
924
1066
|
{
|
925
1067
|
"name": "closed",
|
926
|
-
"description": "
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"name": "unselect",
|
930
|
-
"description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
|
1068
|
+
"description": "关闭面板且动画结束后触发"
|
931
1069
|
},
|
932
1070
|
{
|
933
|
-
"name": "
|
934
|
-
"description": "
|
1071
|
+
"name": "click-overlay",
|
1072
|
+
"description": "点击遮罩层时触发"
|
935
1073
|
}
|
936
1074
|
],
|
937
1075
|
"attributes": [
|
938
1076
|
{
|
939
|
-
"name": "
|
940
|
-
"default": "`
|
941
|
-
"description": "
|
1077
|
+
"name": "v-model (value)",
|
1078
|
+
"default": "`false`",
|
1079
|
+
"description": "是否显示动作面板",
|
942
1080
|
"value": {
|
943
|
-
"type": "
|
1081
|
+
"type": "boolean",
|
944
1082
|
"kind": "expression"
|
945
1083
|
}
|
946
1084
|
},
|
947
1085
|
{
|
948
|
-
"name": "
|
949
|
-
"default": "
|
950
|
-
"description": "
|
1086
|
+
"name": "actions",
|
1087
|
+
"default": "`[]`",
|
1088
|
+
"description": "面板选项列表",
|
951
1089
|
"value": {
|
952
|
-
"type": "
|
1090
|
+
"type": "Action[]",
|
953
1091
|
"kind": "expression"
|
954
1092
|
}
|
955
1093
|
},
|
956
1094
|
{
|
957
|
-
"name": "
|
958
|
-
"default": "
|
959
|
-
"description": "
|
1095
|
+
"name": "title",
|
1096
|
+
"default": "-",
|
1097
|
+
"description": "顶部标题",
|
960
1098
|
"value": {
|
961
1099
|
"type": "string",
|
962
1100
|
"kind": "expression"
|
963
1101
|
}
|
964
1102
|
},
|
965
1103
|
{
|
966
|
-
"name": "
|
967
|
-
"default": "
|
968
|
-
"description": "
|
1104
|
+
"name": "cancel-text",
|
1105
|
+
"default": "-",
|
1106
|
+
"description": "取消按钮文字",
|
969
1107
|
"value": {
|
970
|
-
"type": "
|
1108
|
+
"type": "string",
|
971
1109
|
"kind": "expression"
|
972
1110
|
}
|
973
1111
|
},
|
974
1112
|
{
|
975
|
-
"name": "
|
976
|
-
"default": "
|
977
|
-
"description": "
|
1113
|
+
"name": "description",
|
1114
|
+
"default": "-",
|
1115
|
+
"description": "选项上方的描述信息",
|
978
1116
|
"value": {
|
979
|
-
"type": "
|
1117
|
+
"type": "string",
|
980
1118
|
"kind": "expression"
|
981
1119
|
}
|
982
1120
|
},
|
983
1121
|
{
|
984
|
-
"name": "
|
985
|
-
"default": "
|
986
|
-
"description": "
|
1122
|
+
"name": "closeable",
|
1123
|
+
"default": "`true`",
|
1124
|
+
"description": "是否显示关闭图标",
|
987
1125
|
"value": {
|
988
|
-
"type": "
|
1126
|
+
"type": "boolean",
|
989
1127
|
"kind": "expression"
|
990
1128
|
}
|
991
1129
|
},
|
992
1130
|
{
|
993
|
-
"name": "
|
994
|
-
"default": "`
|
995
|
-
"description": "
|
1131
|
+
"name": "close-icon",
|
1132
|
+
"default": "`cross`",
|
1133
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
996
1134
|
"value": {
|
997
|
-
"type": "
|
1135
|
+
"type": "string",
|
998
1136
|
"kind": "expression"
|
999
1137
|
}
|
1000
1138
|
},
|
1001
1139
|
{
|
1002
|
-
"name": "
|
1003
|
-
"default": "
|
1004
|
-
"description": "
|
1140
|
+
"name": "duration",
|
1141
|
+
"default": "`0.3`",
|
1142
|
+
"description": "动画时长,单位秒",
|
1005
1143
|
"value": {
|
1006
|
-
"type": "
|
1144
|
+
"type": "number | string",
|
1007
1145
|
"kind": "expression"
|
1008
1146
|
}
|
1009
1147
|
},
|
1010
1148
|
{
|
1011
|
-
"name": "
|
1149
|
+
"name": "round",
|
1012
1150
|
"default": "`true`",
|
1013
|
-
"description": "
|
1151
|
+
"description": "是否显示圆角",
|
1014
1152
|
"value": {
|
1015
1153
|
"type": "boolean",
|
1016
1154
|
"kind": "expression"
|
1017
1155
|
}
|
1018
1156
|
},
|
1019
1157
|
{
|
1020
|
-
"name": "
|
1158
|
+
"name": "overlay",
|
1021
1159
|
"default": "`true`",
|
1022
|
-
"description": "
|
1160
|
+
"description": "是否显示遮罩层",
|
1023
1161
|
"value": {
|
1024
1162
|
"type": "boolean",
|
1025
1163
|
"kind": "expression"
|
1026
1164
|
}
|
1027
1165
|
},
|
1028
1166
|
{
|
1029
|
-
"name": "
|
1167
|
+
"name": "lock-scroll",
|
1030
1168
|
"default": "`true`",
|
1031
|
-
"description": "
|
1169
|
+
"description": "是否锁定背景滚动",
|
1032
1170
|
"value": {
|
1033
1171
|
"type": "boolean",
|
1034
1172
|
"kind": "expression"
|
1035
1173
|
}
|
1036
1174
|
},
|
1037
1175
|
{
|
1038
|
-
"name": "
|
1176
|
+
"name": "lazy-render",
|
1039
1177
|
"default": "`true`",
|
1040
|
-
"description": "
|
1178
|
+
"description": "是否在显示弹层时才渲染节点",
|
1041
1179
|
"value": {
|
1042
1180
|
"type": "boolean",
|
1043
1181
|
"kind": "expression"
|
1044
1182
|
}
|
1045
1183
|
},
|
1046
1184
|
{
|
1047
|
-
"name": "
|
1048
|
-
"default": "`
|
1049
|
-
"description": "
|
1050
|
-
"value": {
|
1051
|
-
"type": "boolean",
|
1052
|
-
"kind": "expression"
|
1053
|
-
}
|
1054
|
-
},
|
1055
|
-
{
|
1056
|
-
"name": "show-confirm",
|
1057
|
-
"default": "`true`",
|
1058
|
-
"description": "是否展示确认按钮",
|
1185
|
+
"name": "close-on-popstate",
|
1186
|
+
"default": "`false`",
|
1187
|
+
"description": "是否在页面回退时自动关闭",
|
1059
1188
|
"value": {
|
1060
1189
|
"type": "boolean",
|
1061
1190
|
"kind": "expression"
|
1062
1191
|
}
|
1063
1192
|
},
|
1064
1193
|
{
|
1065
|
-
"name": "
|
1194
|
+
"name": "close-on-click-action",
|
1066
1195
|
"default": "`false`",
|
1067
|
-
"description": "
|
1196
|
+
"description": "是否在点击选项后关闭",
|
1068
1197
|
"value": {
|
1069
1198
|
"type": "boolean",
|
1070
1199
|
"kind": "expression"
|
1071
1200
|
}
|
1072
1201
|
},
|
1073
1202
|
{
|
1074
|
-
"name": "
|
1075
|
-
"default": "
|
1076
|
-
"description": "
|
1203
|
+
"name": "close-on-click-overlay",
|
1204
|
+
"default": "`true`",
|
1205
|
+
"description": "是否在点击遮罩层后关闭",
|
1077
1206
|
"value": {
|
1078
|
-
"type": "
|
1207
|
+
"type": "boolean",
|
1079
1208
|
"kind": "expression"
|
1080
1209
|
}
|
1081
1210
|
},
|
1082
1211
|
{
|
1083
|
-
"name": "
|
1084
|
-
"default": "
|
1085
|
-
"description": "
|
1212
|
+
"name": "safe-area-inset-bottom",
|
1213
|
+
"default": "`true`",
|
1214
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1086
1215
|
"value": {
|
1087
|
-
"type": "
|
1216
|
+
"type": "boolean",
|
1088
1217
|
"kind": "expression"
|
1089
1218
|
}
|
1090
1219
|
},
|
1091
1220
|
{
|
1092
|
-
"name": "
|
1093
|
-
"default": "
|
1094
|
-
"description": "
|
1221
|
+
"name": "get-container",
|
1222
|
+
"default": "-",
|
1223
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
1095
1224
|
"value": {
|
1096
|
-
"type": "
|
1225
|
+
"type": "string | () => Element",
|
1097
1226
|
"kind": "expression"
|
1098
1227
|
}
|
1099
1228
|
}
|
1100
1229
|
]
|
1101
1230
|
},
|
1102
1231
|
{
|
1103
|
-
"name": "van-
|
1104
|
-
"slots": [
|
1105
|
-
"events": [],
|
1106
|
-
"attributes": [
|
1232
|
+
"name": "van-address-list",
|
1233
|
+
"slots": [
|
1107
1234
|
{
|
1108
|
-
"name": "
|
1109
|
-
"
|
1110
|
-
"description": "是否显示日历弹窗",
|
1111
|
-
"value": {
|
1112
|
-
"type": "boolean",
|
1113
|
-
"kind": "expression"
|
1114
|
-
}
|
1235
|
+
"name": "default",
|
1236
|
+
"description": "在列表下方插入内容"
|
1115
1237
|
},
|
1116
1238
|
{
|
1117
|
-
"name": "
|
1118
|
-
"
|
1119
|
-
"description": "弹出位置,可选值为 `top` `right` `left`",
|
1120
|
-
"value": {
|
1121
|
-
"type": "string",
|
1122
|
-
"kind": "expression"
|
1123
|
-
}
|
1239
|
+
"name": "top",
|
1240
|
+
"description": "在顶部插入内容"
|
1124
1241
|
},
|
1125
1242
|
{
|
1126
|
-
"name": "
|
1127
|
-
"
|
1128
|
-
"description": "是否显示圆角弹窗",
|
1129
|
-
"value": {
|
1130
|
-
"type": "boolean",
|
1131
|
-
"kind": "expression"
|
1132
|
-
}
|
1243
|
+
"name": "item-bottom",
|
1244
|
+
"description": "在列表项底部插入内容"
|
1133
1245
|
},
|
1134
1246
|
{
|
1135
|
-
"name": "
|
1136
|
-
"
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1247
|
+
"name": "tag",
|
1248
|
+
"description": "列表项标签内容自定义"
|
1249
|
+
}
|
1250
|
+
],
|
1251
|
+
"events": [
|
1252
|
+
{
|
1253
|
+
"name": "add",
|
1254
|
+
"description": "点击新增按钮时触发"
|
1142
1255
|
},
|
1143
1256
|
{
|
1144
|
-
"name": "
|
1145
|
-
"
|
1146
|
-
"description": "是否在点击遮罩层后关闭",
|
1147
|
-
"value": {
|
1148
|
-
"type": "boolean",
|
1149
|
-
"kind": "expression"
|
1150
|
-
}
|
1257
|
+
"name": "edit",
|
1258
|
+
"description": "点击编辑按钮时触发"
|
1151
1259
|
},
|
1152
1260
|
{
|
1153
|
-
"name": "
|
1154
|
-
"
|
1155
|
-
|
1261
|
+
"name": "select",
|
1262
|
+
"description": "切换选中的地址时触发"
|
1263
|
+
},
|
1264
|
+
{
|
1265
|
+
"name": "edit-disabled",
|
1266
|
+
"description": "编辑不可配送的地址时触发"
|
1267
|
+
},
|
1268
|
+
{
|
1269
|
+
"name": "select-disabled",
|
1270
|
+
"description": "选中不可配送的地址时触发"
|
1271
|
+
},
|
1272
|
+
{
|
1273
|
+
"name": "click-item",
|
1274
|
+
"description": "点击任意地址时触发"
|
1275
|
+
}
|
1276
|
+
],
|
1277
|
+
"attributes": [
|
1278
|
+
{
|
1279
|
+
"name": "v-model",
|
1280
|
+
"default": "-",
|
1281
|
+
"description": "当前选中地址的 id",
|
1156
1282
|
"value": {
|
1157
|
-
"type": "
|
1283
|
+
"type": "string",
|
1158
1284
|
"kind": "expression"
|
1159
1285
|
}
|
1160
1286
|
},
|
1161
1287
|
{
|
1162
|
-
"name": "
|
1163
|
-
"default": "
|
1164
|
-
"description": "
|
1288
|
+
"name": "list",
|
1289
|
+
"default": "`[]`",
|
1290
|
+
"description": "地址列表",
|
1165
1291
|
"value": {
|
1166
|
-
"type": "
|
1292
|
+
"type": "Address[]",
|
1167
1293
|
"kind": "expression"
|
1168
1294
|
}
|
1169
|
-
}
|
1170
|
-
]
|
1171
|
-
},
|
1172
|
-
{
|
1173
|
-
"name": "van-range",
|
1174
|
-
"slots": [],
|
1175
|
-
"events": [],
|
1176
|
-
"attributes": [
|
1295
|
+
},
|
1177
1296
|
{
|
1178
|
-
"name": "
|
1179
|
-
"default": "
|
1180
|
-
"description": "
|
1297
|
+
"name": "disabled-list",
|
1298
|
+
"default": "`[]`",
|
1299
|
+
"description": "不可配送地址列表",
|
1181
1300
|
"value": {
|
1182
|
-
"type": "
|
1301
|
+
"type": "Address[]",
|
1183
1302
|
"kind": "expression"
|
1184
1303
|
}
|
1185
1304
|
},
|
1186
1305
|
{
|
1187
|
-
"name": "
|
1188
|
-
"default": "
|
1189
|
-
"description": "
|
1306
|
+
"name": "disabled-text",
|
1307
|
+
"default": "-",
|
1308
|
+
"description": "不可配送提示文案",
|
1190
1309
|
"value": {
|
1191
1310
|
"type": "string",
|
1192
1311
|
"kind": "expression"
|
1193
1312
|
}
|
1194
1313
|
},
|
1195
1314
|
{
|
1196
|
-
"name": "
|
1197
|
-
"default": "`
|
1198
|
-
"description": "
|
1315
|
+
"name": "switchable",
|
1316
|
+
"default": "`true`",
|
1317
|
+
"description": "是否允许切换地址",
|
1199
1318
|
"value": {
|
1200
1319
|
"type": "boolean",
|
1201
1320
|
"kind": "expression"
|
1202
1321
|
}
|
1203
|
-
}
|
1204
|
-
]
|
1205
|
-
},
|
1206
|
-
{
|
1207
|
-
"name": "van-multiple",
|
1208
|
-
"slots": [],
|
1209
|
-
"events": [],
|
1210
|
-
"attributes": [
|
1322
|
+
},
|
1211
1323
|
{
|
1212
|
-
"name": "
|
1213
|
-
"default": "
|
1214
|
-
"description": "
|
1324
|
+
"name": "add-button-text",
|
1325
|
+
"default": "`新增地址`",
|
1326
|
+
"description": "底部按钮文字",
|
1215
1327
|
"value": {
|
1216
|
-
"type": "
|
1328
|
+
"type": "string",
|
1217
1329
|
"kind": "expression"
|
1218
1330
|
}
|
1219
1331
|
},
|
1220
1332
|
{
|
1221
|
-
"name": "
|
1222
|
-
"default": "
|
1223
|
-
"description": "
|
1333
|
+
"name": "default-tag-text",
|
1334
|
+
"default": "-",
|
1335
|
+
"description": "默认地址标签文字",
|
1224
1336
|
"value": {
|
1225
1337
|
"type": "string",
|
1226
1338
|
"kind": "expression"
|
@@ -1389,154 +1501,53 @@
|
|
1389
1501
|
]
|
1390
1502
|
},
|
1391
1503
|
{
|
1392
|
-
"name": "van-
|
1504
|
+
"name": "van-cell-group",
|
1393
1505
|
"slots": [
|
1394
1506
|
{
|
1395
|
-
"name": "
|
1396
|
-
"description": "
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"name": "option",
|
1400
|
-
"description": "自定义选项文字"
|
1401
|
-
}
|
1402
|
-
],
|
1403
|
-
"events": [
|
1404
|
-
{
|
1405
|
-
"name": "change",
|
1406
|
-
"description": "选中项变化时触发"
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
"name": "finish",
|
1410
|
-
"description": "全部选项选择完成后触发"
|
1507
|
+
"name": "default",
|
1508
|
+
"description": "默认插槽"
|
1411
1509
|
},
|
1412
1510
|
{
|
1413
|
-
"name": "
|
1414
|
-
"description": "
|
1511
|
+
"name": "title",
|
1512
|
+
"description": "自定义分组标题"
|
1415
1513
|
}
|
1416
1514
|
],
|
1515
|
+
"events": [],
|
1417
1516
|
"attributes": [
|
1418
1517
|
{
|
1419
1518
|
"name": "title",
|
1420
|
-
"default": "
|
1421
|
-
"description": "
|
1519
|
+
"default": "`-`",
|
1520
|
+
"description": "分组标题",
|
1422
1521
|
"value": {
|
1423
1522
|
"type": "string",
|
1424
1523
|
"kind": "expression"
|
1425
1524
|
}
|
1426
1525
|
},
|
1427
1526
|
{
|
1428
|
-
"name": "
|
1429
|
-
"default": "
|
1430
|
-
"description": "
|
1527
|
+
"name": "border",
|
1528
|
+
"default": "`true`",
|
1529
|
+
"description": "是否显示外边框",
|
1431
1530
|
"value": {
|
1432
|
-
"type": "
|
1531
|
+
"type": "boolean",
|
1433
1532
|
"kind": "expression"
|
1434
1533
|
}
|
1435
|
-
}
|
1534
|
+
}
|
1535
|
+
]
|
1536
|
+
},
|
1537
|
+
{
|
1538
|
+
"name": "van-cell",
|
1539
|
+
"slots": [
|
1436
1540
|
{
|
1437
|
-
"name": "
|
1438
|
-
"
|
1439
|
-
"description": "可选项数据源",
|
1440
|
-
"value": {
|
1441
|
-
"type": "Option[]",
|
1442
|
-
"kind": "expression"
|
1443
|
-
}
|
1541
|
+
"name": "default",
|
1542
|
+
"description": "自定义右侧 value 的内容"
|
1444
1543
|
},
|
1445
1544
|
{
|
1446
|
-
"name": "
|
1447
|
-
"
|
1448
|
-
"description": "未选中时的提示文案",
|
1449
|
-
"value": {
|
1450
|
-
"type": "string",
|
1451
|
-
"kind": "expression"
|
1452
|
-
}
|
1545
|
+
"name": "title",
|
1546
|
+
"description": "自定义左侧 title 的内容"
|
1453
1547
|
},
|
1454
1548
|
{
|
1455
|
-
"name": "
|
1456
|
-
"
|
1457
|
-
"description": "选中状态的高亮颜色",
|
1458
|
-
"value": {
|
1459
|
-
"type": "string",
|
1460
|
-
"kind": "expression"
|
1461
|
-
}
|
1462
|
-
},
|
1463
|
-
{
|
1464
|
-
"name": "closeable",
|
1465
|
-
"default": "`true`",
|
1466
|
-
"description": "是否显示关闭图标",
|
1467
|
-
"value": {
|
1468
|
-
"type": "boolean",
|
1469
|
-
"kind": "expression"
|
1470
|
-
}
|
1471
|
-
},
|
1472
|
-
{
|
1473
|
-
"name": "show-header",
|
1474
|
-
"default": "`true`",
|
1475
|
-
"description": "是否展示标题栏",
|
1476
|
-
"value": {
|
1477
|
-
"type": "boolean",
|
1478
|
-
"kind": "expression"
|
1479
|
-
}
|
1480
|
-
},
|
1481
|
-
{
|
1482
|
-
"name": "field-names",
|
1483
|
-
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1484
|
-
"description": "自定义 `options` 结构中的字段",
|
1485
|
-
"value": {
|
1486
|
-
"type": "object",
|
1487
|
-
"kind": "expression"
|
1488
|
-
}
|
1489
|
-
}
|
1490
|
-
]
|
1491
|
-
},
|
1492
|
-
{
|
1493
|
-
"name": "van-cell-group",
|
1494
|
-
"slots": [
|
1495
|
-
{
|
1496
|
-
"name": "default",
|
1497
|
-
"description": "默认插槽"
|
1498
|
-
},
|
1499
|
-
{
|
1500
|
-
"name": "title",
|
1501
|
-
"description": "自定义分组标题"
|
1502
|
-
}
|
1503
|
-
],
|
1504
|
-
"events": [],
|
1505
|
-
"attributes": [
|
1506
|
-
{
|
1507
|
-
"name": "title",
|
1508
|
-
"default": "`-`",
|
1509
|
-
"description": "分组标题",
|
1510
|
-
"value": {
|
1511
|
-
"type": "string",
|
1512
|
-
"kind": "expression"
|
1513
|
-
}
|
1514
|
-
},
|
1515
|
-
{
|
1516
|
-
"name": "border",
|
1517
|
-
"default": "`true`",
|
1518
|
-
"description": "是否显示外边框",
|
1519
|
-
"value": {
|
1520
|
-
"type": "boolean",
|
1521
|
-
"kind": "expression"
|
1522
|
-
}
|
1523
|
-
}
|
1524
|
-
]
|
1525
|
-
},
|
1526
|
-
{
|
1527
|
-
"name": "van-cell",
|
1528
|
-
"slots": [
|
1529
|
-
{
|
1530
|
-
"name": "default",
|
1531
|
-
"description": "自定义右侧 value 的内容"
|
1532
|
-
},
|
1533
|
-
{
|
1534
|
-
"name": "title",
|
1535
|
-
"description": "自定义左侧 title 的内容"
|
1536
|
-
},
|
1537
|
-
{
|
1538
|
-
"name": "label",
|
1539
|
-
"description": "自定义标题下方 label 的内容"
|
1549
|
+
"name": "label",
|
1550
|
+
"description": "自定义标题下方 label 的内容"
|
1540
1551
|
},
|
1541
1552
|
{
|
1542
1553
|
"name": "icon",
|
@@ -1732,112 +1743,101 @@
|
|
1732
1743
|
]
|
1733
1744
|
},
|
1734
1745
|
{
|
1735
|
-
"name": "van-
|
1746
|
+
"name": "van-cascader",
|
1736
1747
|
"slots": [
|
1737
1748
|
{
|
1738
|
-
"name": "
|
1739
|
-
"description": "
|
1740
|
-
},
|
1741
|
-
{
|
1742
|
-
"name": "top",
|
1743
|
-
"description": "在顶部插入内容"
|
1744
|
-
},
|
1745
|
-
{
|
1746
|
-
"name": "item-bottom",
|
1747
|
-
"description": "在列表项底部插入内容"
|
1749
|
+
"name": "title",
|
1750
|
+
"description": "自定义顶部标题"
|
1748
1751
|
},
|
1749
1752
|
{
|
1750
|
-
"name": "
|
1751
|
-
"description": "
|
1753
|
+
"name": "option",
|
1754
|
+
"description": "自定义选项文字"
|
1752
1755
|
}
|
1753
1756
|
],
|
1754
1757
|
"events": [
|
1755
1758
|
{
|
1756
|
-
"name": "
|
1757
|
-
"description": "
|
1758
|
-
},
|
1759
|
-
{
|
1760
|
-
"name": "edit",
|
1761
|
-
"description": "点击编辑按钮时触发"
|
1762
|
-
},
|
1763
|
-
{
|
1764
|
-
"name": "select",
|
1765
|
-
"description": "切换选中的地址时触发"
|
1766
|
-
},
|
1767
|
-
{
|
1768
|
-
"name": "edit-disabled",
|
1769
|
-
"description": "编辑不可配送的地址时触发"
|
1759
|
+
"name": "change",
|
1760
|
+
"description": "选中项变化时触发"
|
1770
1761
|
},
|
1771
1762
|
{
|
1772
|
-
"name": "
|
1773
|
-
"description": "
|
1763
|
+
"name": "finish",
|
1764
|
+
"description": "全部选项选择完成后触发"
|
1774
1765
|
},
|
1775
1766
|
{
|
1776
|
-
"name": "
|
1777
|
-
"description": "
|
1767
|
+
"name": "close",
|
1768
|
+
"description": "点击关闭图标时触发"
|
1778
1769
|
}
|
1779
1770
|
],
|
1780
1771
|
"attributes": [
|
1781
1772
|
{
|
1782
|
-
"name": "
|
1773
|
+
"name": "title",
|
1783
1774
|
"default": "-",
|
1784
|
-
"description": "
|
1775
|
+
"description": "顶部标题",
|
1785
1776
|
"value": {
|
1786
1777
|
"type": "string",
|
1787
1778
|
"kind": "expression"
|
1788
1779
|
}
|
1789
1780
|
},
|
1790
1781
|
{
|
1791
|
-
"name": "
|
1792
|
-
"default": "
|
1793
|
-
"description": "
|
1782
|
+
"name": "value",
|
1783
|
+
"default": "-",
|
1784
|
+
"description": "选中项的值",
|
1794
1785
|
"value": {
|
1795
|
-
"type": "
|
1786
|
+
"type": "string | number",
|
1796
1787
|
"kind": "expression"
|
1797
1788
|
}
|
1798
1789
|
},
|
1799
1790
|
{
|
1800
|
-
"name": "
|
1791
|
+
"name": "options",
|
1801
1792
|
"default": "`[]`",
|
1802
|
-
"description": "
|
1793
|
+
"description": "可选项数据源",
|
1803
1794
|
"value": {
|
1804
|
-
"type": "
|
1795
|
+
"type": "Option[]",
|
1805
1796
|
"kind": "expression"
|
1806
1797
|
}
|
1807
1798
|
},
|
1808
1799
|
{
|
1809
|
-
"name": "
|
1810
|
-
"default": "
|
1811
|
-
"description": "
|
1800
|
+
"name": "placeholder",
|
1801
|
+
"default": "`请选择`",
|
1802
|
+
"description": "未选中时的提示文案",
|
1812
1803
|
"value": {
|
1813
1804
|
"type": "string",
|
1814
1805
|
"kind": "expression"
|
1815
1806
|
}
|
1816
1807
|
},
|
1817
1808
|
{
|
1818
|
-
"name": "
|
1809
|
+
"name": "active-color",
|
1810
|
+
"default": "`#ee0a24`",
|
1811
|
+
"description": "选中状态的高亮颜色",
|
1812
|
+
"value": {
|
1813
|
+
"type": "string",
|
1814
|
+
"kind": "expression"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
"name": "closeable",
|
1819
1819
|
"default": "`true`",
|
1820
|
-
"description": "
|
1820
|
+
"description": "是否显示关闭图标",
|
1821
1821
|
"value": {
|
1822
1822
|
"type": "boolean",
|
1823
1823
|
"kind": "expression"
|
1824
1824
|
}
|
1825
1825
|
},
|
1826
1826
|
{
|
1827
|
-
"name": "
|
1828
|
-
"default": "
|
1829
|
-
"description": "
|
1827
|
+
"name": "show-header",
|
1828
|
+
"default": "`true`",
|
1829
|
+
"description": "是否展示标题栏",
|
1830
1830
|
"value": {
|
1831
|
-
"type": "
|
1831
|
+
"type": "boolean",
|
1832
1832
|
"kind": "expression"
|
1833
1833
|
}
|
1834
1834
|
},
|
1835
1835
|
{
|
1836
|
-
"name": "
|
1837
|
-
"default": "
|
1838
|
-
"description": "
|
1836
|
+
"name": "field-names",
|
1837
|
+
"default": "`{ text: 'text', value: 'value', children: 'children' }`",
|
1838
|
+
"description": "自定义 `options` 结构中的字段",
|
1839
1839
|
"value": {
|
1840
|
-
"type": "
|
1840
|
+
"type": "object",
|
1841
1841
|
"kind": "expression"
|
1842
1842
|
}
|
1843
1843
|
}
|
@@ -3633,488 +3633,453 @@
|
|
3633
3633
|
]
|
3634
3634
|
},
|
3635
3635
|
{
|
3636
|
-
"name": "van-
|
3636
|
+
"name": "van-field",
|
3637
3637
|
"slots": [
|
3638
3638
|
{
|
3639
|
-
"name": "
|
3640
|
-
"description": "
|
3639
|
+
"name": "label",
|
3640
|
+
"description": "自定义输入框 label 标签"
|
3641
|
+
},
|
3642
|
+
{
|
3643
|
+
"name": "input",
|
3644
|
+
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3645
|
+
},
|
3646
|
+
{
|
3647
|
+
"name": "left-icon",
|
3648
|
+
"description": "自定义输入框头部图标"
|
3649
|
+
},
|
3650
|
+
{
|
3651
|
+
"name": "right-icon",
|
3652
|
+
"description": "自定义输入框尾部图标"
|
3653
|
+
},
|
3654
|
+
{
|
3655
|
+
"name": "button",
|
3656
|
+
"description": "自定义输入框尾部按钮"
|
3657
|
+
},
|
3658
|
+
{
|
3659
|
+
"name": "extra",
|
3660
|
+
"description": "自定义输入框最右侧的额外内容"
|
3641
3661
|
}
|
3642
3662
|
],
|
3643
3663
|
"events": [
|
3644
3664
|
{
|
3645
|
-
"name": "
|
3646
|
-
"description": "
|
3665
|
+
"name": "input",
|
3666
|
+
"description": "输入框内容变化时触发"
|
3647
3667
|
},
|
3648
3668
|
{
|
3649
|
-
"name": "
|
3650
|
-
"description": "
|
3669
|
+
"name": "focus",
|
3670
|
+
"description": "输入框获得焦点时触发"
|
3671
|
+
},
|
3672
|
+
{
|
3673
|
+
"name": "blur",
|
3674
|
+
"description": "输入框失去焦点时触发"
|
3675
|
+
},
|
3676
|
+
{
|
3677
|
+
"name": "clear",
|
3678
|
+
"description": "点击清除按钮时触发"
|
3679
|
+
},
|
3680
|
+
{
|
3681
|
+
"name": "click",
|
3682
|
+
"description": "点击 Field 时触发"
|
3683
|
+
},
|
3684
|
+
{
|
3685
|
+
"name": "click-input",
|
3686
|
+
"description": "点击输入区域时触发"
|
3687
|
+
},
|
3688
|
+
{
|
3689
|
+
"name": "click-left-icon",
|
3690
|
+
"description": "点击左侧图标时触发"
|
3691
|
+
},
|
3692
|
+
{
|
3693
|
+
"name": "click-right-icon",
|
3694
|
+
"description": "点击右侧图标时触发"
|
3651
3695
|
}
|
3652
3696
|
],
|
3653
3697
|
"attributes": [
|
3654
3698
|
{
|
3655
|
-
"name": "
|
3656
|
-
"default": "
|
3657
|
-
"description": "
|
3699
|
+
"name": "v-model (value)",
|
3700
|
+
"default": "-",
|
3701
|
+
"description": "当前输入的值",
|
3658
3702
|
"value": {
|
3659
3703
|
"type": "number | string",
|
3660
3704
|
"kind": "expression"
|
3661
3705
|
}
|
3662
3706
|
},
|
3663
3707
|
{
|
3664
|
-
"name": "label
|
3665
|
-
"default": "
|
3666
|
-
"description": "
|
3708
|
+
"name": "label",
|
3709
|
+
"default": "-",
|
3710
|
+
"description": "输入框左侧文本",
|
3667
3711
|
"value": {
|
3668
3712
|
"type": "string",
|
3669
3713
|
"kind": "expression"
|
3670
3714
|
}
|
3671
3715
|
},
|
3672
3716
|
{
|
3673
|
-
"name": "
|
3674
|
-
"default": "
|
3675
|
-
"description": "
|
3717
|
+
"name": "name",
|
3718
|
+
"default": "-",
|
3719
|
+
"description": "名称,提交表单的标识符",
|
3676
3720
|
"value": {
|
3677
3721
|
"type": "string",
|
3678
3722
|
"kind": "expression"
|
3679
3723
|
}
|
3680
3724
|
},
|
3681
3725
|
{
|
3682
|
-
"name": "
|
3683
|
-
"default": "`
|
3684
|
-
"description": "
|
3726
|
+
"name": "type",
|
3727
|
+
"default": "`text`",
|
3728
|
+
"description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
|
3685
3729
|
"value": {
|
3686
3730
|
"type": "string",
|
3687
3731
|
"kind": "expression"
|
3688
3732
|
}
|
3689
3733
|
},
|
3690
3734
|
{
|
3691
|
-
"name": "
|
3692
|
-
"default": "
|
3693
|
-
"description": "
|
3735
|
+
"name": "size",
|
3736
|
+
"default": "-",
|
3737
|
+
"description": "大小,可选值为 `large`",
|
3694
3738
|
"value": {
|
3695
3739
|
"type": "string",
|
3696
3740
|
"kind": "expression"
|
3697
3741
|
}
|
3698
3742
|
},
|
3699
3743
|
{
|
3700
|
-
"name": "
|
3701
|
-
"default": "
|
3702
|
-
"description": "
|
3744
|
+
"name": "maxlength",
|
3745
|
+
"default": "-",
|
3746
|
+
"description": "输入的最大字符数",
|
3703
3747
|
"value": {
|
3704
|
-
"type": "
|
3748
|
+
"type": "number | string",
|
3705
3749
|
"kind": "expression"
|
3706
3750
|
}
|
3707
3751
|
},
|
3708
3752
|
{
|
3709
|
-
"name": "
|
3710
|
-
"default": "
|
3711
|
-
"description": "
|
3753
|
+
"name": "placeholder",
|
3754
|
+
"default": "-",
|
3755
|
+
"description": "输入框占位提示文字",
|
3712
3756
|
"value": {
|
3713
|
-
"type": "
|
3757
|
+
"type": "string",
|
3714
3758
|
"kind": "expression"
|
3715
3759
|
}
|
3716
3760
|
},
|
3717
3761
|
{
|
3718
|
-
"name": "
|
3719
|
-
"default": "`
|
3720
|
-
"description": "
|
3762
|
+
"name": "border",
|
3763
|
+
"default": "`true`",
|
3764
|
+
"description": "是否显示内边框",
|
3721
3765
|
"value": {
|
3722
3766
|
"type": "boolean",
|
3723
3767
|
"kind": "expression"
|
3724
3768
|
}
|
3725
3769
|
},
|
3726
3770
|
{
|
3727
|
-
"name": "
|
3771
|
+
"name": "disabled",
|
3728
3772
|
"default": "`false`",
|
3729
|
-
"description": "
|
3773
|
+
"description": "是否禁用输入框",
|
3730
3774
|
"value": {
|
3731
3775
|
"type": "boolean",
|
3732
3776
|
"kind": "expression"
|
3733
3777
|
}
|
3734
3778
|
},
|
3735
3779
|
{
|
3736
|
-
"name": "
|
3780
|
+
"name": "readonly",
|
3737
3781
|
"default": "`false`",
|
3738
|
-
"description": "
|
3782
|
+
"description": "是否只读",
|
3739
3783
|
"value": {
|
3740
3784
|
"type": "boolean",
|
3741
3785
|
"kind": "expression"
|
3742
3786
|
}
|
3743
3787
|
},
|
3744
3788
|
{
|
3745
|
-
"name": "
|
3746
|
-
"default": "`
|
3747
|
-
"description": "
|
3789
|
+
"name": "colon",
|
3790
|
+
"default": "`false`",
|
3791
|
+
"description": "是否在 label 后面添加冒号",
|
3748
3792
|
"value": {
|
3749
3793
|
"type": "boolean",
|
3750
3794
|
"kind": "expression"
|
3751
3795
|
}
|
3752
3796
|
},
|
3753
3797
|
{
|
3754
|
-
"name": "
|
3755
|
-
"default": "`
|
3756
|
-
"description": "
|
3798
|
+
"name": "required",
|
3799
|
+
"default": "`false`",
|
3800
|
+
"description": "是否显示表单必填星号",
|
3757
3801
|
"value": {
|
3758
3802
|
"type": "boolean",
|
3759
3803
|
"kind": "expression"
|
3760
3804
|
}
|
3761
3805
|
},
|
3762
3806
|
{
|
3763
|
-
"name": "
|
3764
|
-
"default": "`
|
3765
|
-
"description": "
|
3807
|
+
"name": "center",
|
3808
|
+
"default": "`false`",
|
3809
|
+
"description": "是否使内容垂直居中",
|
3766
3810
|
"value": {
|
3767
3811
|
"type": "boolean",
|
3768
3812
|
"kind": "expression"
|
3769
3813
|
}
|
3770
|
-
}
|
3771
|
-
]
|
3772
|
-
},
|
3773
|
-
{
|
3774
|
-
"name": "van-goods-action",
|
3775
|
-
"slots": [],
|
3776
|
-
"events": [],
|
3777
|
-
"attributes": [
|
3814
|
+
},
|
3778
3815
|
{
|
3779
|
-
"name": "
|
3780
|
-
"default": "`
|
3781
|
-
"description": "
|
3816
|
+
"name": "clearable",
|
3817
|
+
"default": "`false`",
|
3818
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框",
|
3782
3819
|
"value": {
|
3783
3820
|
"type": "boolean",
|
3784
3821
|
"kind": "expression"
|
3785
3822
|
}
|
3786
|
-
}
|
3787
|
-
]
|
3788
|
-
},
|
3789
|
-
{
|
3790
|
-
"name": "van-goods-action-icon",
|
3791
|
-
"slots": [
|
3792
|
-
{
|
3793
|
-
"name": "default",
|
3794
|
-
"description": "文本内容"
|
3795
3823
|
},
|
3796
3824
|
{
|
3797
|
-
"name": "
|
3798
|
-
"
|
3799
|
-
|
3800
|
-
],
|
3801
|
-
"events": [],
|
3802
|
-
"attributes": [
|
3803
|
-
{
|
3804
|
-
"name": "text",
|
3805
|
-
"default": "-",
|
3806
|
-
"description": "按钮文字",
|
3825
|
+
"name": "clear-trigger",
|
3826
|
+
"default": "`focus`",
|
3827
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
3807
3828
|
"value": {
|
3808
3829
|
"type": "string",
|
3809
3830
|
"kind": "expression"
|
3810
3831
|
}
|
3811
3832
|
},
|
3812
3833
|
{
|
3813
|
-
"name": "
|
3814
|
-
"default": "
|
3815
|
-
"description": "
|
3834
|
+
"name": "clickable",
|
3835
|
+
"default": "`false`",
|
3836
|
+
"description": "是否开启点击反馈",
|
3816
3837
|
"value": {
|
3817
|
-
"type": "
|
3838
|
+
"type": "boolean",
|
3818
3839
|
"kind": "expression"
|
3819
3840
|
}
|
3820
3841
|
},
|
3821
3842
|
{
|
3822
|
-
"name": "
|
3823
|
-
"default": "
|
3824
|
-
"description": "
|
3843
|
+
"name": "is-link",
|
3844
|
+
"default": "`false`",
|
3845
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
3825
3846
|
"value": {
|
3826
|
-
"type": "
|
3847
|
+
"type": "boolean",
|
3827
3848
|
"kind": "expression"
|
3828
3849
|
}
|
3829
3850
|
},
|
3830
3851
|
{
|
3831
|
-
"name": "
|
3832
|
-
"default": "
|
3833
|
-
"description": "
|
3852
|
+
"name": "autofocus",
|
3853
|
+
"default": "`false`",
|
3854
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性",
|
3834
3855
|
"value": {
|
3835
|
-
"type": "
|
3856
|
+
"type": "boolean",
|
3836
3857
|
"kind": "expression"
|
3837
3858
|
}
|
3838
3859
|
},
|
3839
3860
|
{
|
3840
|
-
"name": "
|
3861
|
+
"name": "show-word-limit",
|
3841
3862
|
"default": "`false`",
|
3842
|
-
"description": "
|
3863
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性",
|
3843
3864
|
"value": {
|
3844
3865
|
"type": "boolean",
|
3845
3866
|
"kind": "expression"
|
3846
3867
|
}
|
3847
3868
|
},
|
3848
3869
|
{
|
3849
|
-
"name": "
|
3850
|
-
"default": "
|
3851
|
-
"description": "
|
3870
|
+
"name": "error",
|
3871
|
+
"default": "`false`",
|
3872
|
+
"description": "是否将输入内容标红",
|
3852
3873
|
"value": {
|
3853
|
-
"type": "
|
3874
|
+
"type": "boolean",
|
3854
3875
|
"kind": "expression"
|
3855
3876
|
}
|
3856
3877
|
},
|
3857
3878
|
{
|
3858
|
-
"name": "
|
3879
|
+
"name": "error-message",
|
3859
3880
|
"default": "-",
|
3860
|
-
"description": "
|
3881
|
+
"description": "底部错误提示文案,为空时不展示",
|
3861
3882
|
"value": {
|
3862
|
-
"type": "
|
3883
|
+
"type": "string",
|
3863
3884
|
"kind": "expression"
|
3864
3885
|
}
|
3865
3886
|
},
|
3866
3887
|
{
|
3867
|
-
"name": "
|
3888
|
+
"name": "formatter",
|
3868
3889
|
"default": "-",
|
3869
|
-
"description": "
|
3890
|
+
"description": "输入内容格式化函数",
|
3870
3891
|
"value": {
|
3871
|
-
"type": "
|
3892
|
+
"type": "Function",
|
3872
3893
|
"kind": "expression"
|
3873
3894
|
}
|
3874
3895
|
},
|
3875
3896
|
{
|
3876
|
-
"name": "
|
3877
|
-
"default": "
|
3878
|
-
"description": "
|
3897
|
+
"name": "format-trigger",
|
3898
|
+
"default": "`onChange`",
|
3899
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
3879
3900
|
"value": {
|
3880
|
-
"type": "string
|
3901
|
+
"type": "string",
|
3881
3902
|
"kind": "expression"
|
3882
3903
|
}
|
3883
3904
|
},
|
3884
3905
|
{
|
3885
|
-
"name": "
|
3886
|
-
"default": "`
|
3887
|
-
"description": "
|
3906
|
+
"name": "arrow-direction",
|
3907
|
+
"default": "`right`",
|
3908
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
3888
3909
|
"value": {
|
3889
|
-
"type": "
|
3910
|
+
"type": "string",
|
3890
3911
|
"kind": "expression"
|
3891
3912
|
}
|
3892
|
-
}
|
3893
|
-
]
|
3894
|
-
},
|
3895
|
-
{
|
3896
|
-
"name": "van-goods-action-button",
|
3897
|
-
"slots": [
|
3898
|
-
{
|
3899
|
-
"name": "default",
|
3900
|
-
"description": "按钮显示内容"
|
3901
|
-
}
|
3902
|
-
],
|
3903
|
-
"events": [],
|
3904
|
-
"attributes": [
|
3913
|
+
},
|
3905
3914
|
{
|
3906
|
-
"name": "
|
3915
|
+
"name": "label-class",
|
3907
3916
|
"default": "-",
|
3908
|
-
"description": "
|
3917
|
+
"description": "左侧文本额外类名",
|
3909
3918
|
"value": {
|
3910
|
-
"type": "
|
3919
|
+
"type": "any",
|
3911
3920
|
"kind": "expression"
|
3912
3921
|
}
|
3913
3922
|
},
|
3914
3923
|
{
|
3915
|
-
"name": "
|
3916
|
-
"default": "`
|
3917
|
-
"description": "
|
3924
|
+
"name": "label-width",
|
3925
|
+
"default": "`6.2em`",
|
3926
|
+
"description": "左侧文本宽度,默认单位为`px`",
|
3918
3927
|
"value": {
|
3919
|
-
"type": "string",
|
3928
|
+
"type": "number | string",
|
3920
3929
|
"kind": "expression"
|
3921
3930
|
}
|
3922
3931
|
},
|
3923
3932
|
{
|
3924
|
-
"name": "
|
3925
|
-
"default": "
|
3926
|
-
"description": "
|
3933
|
+
"name": "label-align",
|
3934
|
+
"default": "`left`",
|
3935
|
+
"description": "左侧文本对齐方式,可选值为 `center` `right`",
|
3927
3936
|
"value": {
|
3928
3937
|
"type": "string",
|
3929
3938
|
"kind": "expression"
|
3930
3939
|
}
|
3931
3940
|
},
|
3932
3941
|
{
|
3933
|
-
"name": "
|
3934
|
-
"default": "
|
3935
|
-
"description": "
|
3942
|
+
"name": "input-align",
|
3943
|
+
"default": "`left`",
|
3944
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3936
3945
|
"value": {
|
3937
3946
|
"type": "string",
|
3938
3947
|
"kind": "expression"
|
3939
3948
|
}
|
3940
3949
|
},
|
3941
3950
|
{
|
3942
|
-
"name": "
|
3943
|
-
"default": "`
|
3944
|
-
"description": "
|
3951
|
+
"name": "error-message-align",
|
3952
|
+
"default": "`left`",
|
3953
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
3945
3954
|
"value": {
|
3946
|
-
"type": "
|
3955
|
+
"type": "string",
|
3947
3956
|
"kind": "expression"
|
3948
3957
|
}
|
3949
3958
|
},
|
3950
3959
|
{
|
3951
|
-
"name": "
|
3960
|
+
"name": "autosize",
|
3952
3961
|
"default": "`false`",
|
3953
|
-
"description": "
|
3962
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
|
3954
3963
|
"value": {
|
3955
|
-
"type": "boolean",
|
3964
|
+
"type": "boolean | object",
|
3956
3965
|
"kind": "expression"
|
3957
3966
|
}
|
3958
3967
|
},
|
3959
3968
|
{
|
3960
|
-
"name": "
|
3969
|
+
"name": "left-icon",
|
3961
3970
|
"default": "-",
|
3962
|
-
"description": "
|
3971
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
3963
3972
|
"value": {
|
3964
3973
|
"type": "string",
|
3965
3974
|
"kind": "expression"
|
3966
3975
|
}
|
3967
3976
|
},
|
3968
3977
|
{
|
3969
|
-
"name": "
|
3978
|
+
"name": "right-icon",
|
3970
3979
|
"default": "-",
|
3971
|
-
"description": "
|
3980
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
|
3972
3981
|
"value": {
|
3973
|
-
"type": "string
|
3982
|
+
"type": "string",
|
3974
3983
|
"kind": "expression"
|
3975
3984
|
}
|
3976
3985
|
},
|
3977
3986
|
{
|
3978
|
-
"name": "
|
3979
|
-
"default": "`
|
3980
|
-
"description": "
|
3987
|
+
"name": "icon-prefix",
|
3988
|
+
"default": "`van-icon`",
|
3989
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
3981
3990
|
"value": {
|
3982
|
-
"type": "
|
3991
|
+
"type": "string",
|
3983
3992
|
"kind": "expression"
|
3984
3993
|
}
|
3985
|
-
}
|
3986
|
-
]
|
3987
|
-
},
|
3988
|
-
{
|
3989
|
-
"name": "van-field",
|
3990
|
-
"slots": [
|
3991
|
-
{
|
3992
|
-
"name": "label",
|
3993
|
-
"description": "自定义输入框 label 标签"
|
3994
3994
|
},
|
3995
3995
|
{
|
3996
|
-
"name": "
|
3997
|
-
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3998
|
-
},
|
3999
|
-
{
|
4000
|
-
"name": "left-icon",
|
4001
|
-
"description": "自定义输入框头部图标"
|
4002
|
-
},
|
4003
|
-
{
|
4004
|
-
"name": "right-icon",
|
4005
|
-
"description": "自定义输入框尾部图标"
|
4006
|
-
},
|
4007
|
-
{
|
4008
|
-
"name": "button",
|
4009
|
-
"description": "自定义输入框尾部按钮"
|
4010
|
-
},
|
4011
|
-
{
|
4012
|
-
"name": "extra",
|
4013
|
-
"description": "自定义输入框最右侧的额外内容"
|
4014
|
-
}
|
4015
|
-
],
|
4016
|
-
"events": [
|
4017
|
-
{
|
4018
|
-
"name": "input",
|
4019
|
-
"description": "输入框内容变化时触发"
|
4020
|
-
},
|
4021
|
-
{
|
4022
|
-
"name": "focus",
|
4023
|
-
"description": "输入框获得焦点时触发"
|
4024
|
-
},
|
4025
|
-
{
|
4026
|
-
"name": "blur",
|
4027
|
-
"description": "输入框失去焦点时触发"
|
4028
|
-
},
|
4029
|
-
{
|
4030
|
-
"name": "clear",
|
4031
|
-
"description": "点击清除按钮时触发"
|
4032
|
-
},
|
4033
|
-
{
|
4034
|
-
"name": "click",
|
4035
|
-
"description": "点击 Field 时触发"
|
4036
|
-
},
|
4037
|
-
{
|
4038
|
-
"name": "click-input",
|
4039
|
-
"description": "点击输入区域时触发"
|
4040
|
-
},
|
4041
|
-
{
|
4042
|
-
"name": "click-left-icon",
|
4043
|
-
"description": "点击左侧图标时触发"
|
4044
|
-
},
|
4045
|
-
{
|
4046
|
-
"name": "click-right-icon",
|
4047
|
-
"description": "点击右侧图标时触发"
|
4048
|
-
}
|
4049
|
-
],
|
4050
|
-
"attributes": [
|
4051
|
-
{
|
4052
|
-
"name": "v-model (value)",
|
3996
|
+
"name": "rules",
|
4053
3997
|
"default": "-",
|
4054
|
-
"description": "
|
3998
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
|
4055
3999
|
"value": {
|
4056
|
-
"type": "
|
4000
|
+
"type": "Rule[]",
|
4057
4001
|
"kind": "expression"
|
4058
4002
|
}
|
4059
4003
|
},
|
4060
4004
|
{
|
4061
|
-
"name": "
|
4005
|
+
"name": "autocomplete",
|
4062
4006
|
"default": "-",
|
4063
|
-
"description": "
|
4007
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
|
4064
4008
|
"value": {
|
4065
4009
|
"type": "string",
|
4066
4010
|
"kind": "expression"
|
4067
4011
|
}
|
4012
|
+
}
|
4013
|
+
]
|
4014
|
+
},
|
4015
|
+
{
|
4016
|
+
"name": "van-form",
|
4017
|
+
"slots": [
|
4018
|
+
{
|
4019
|
+
"name": "default",
|
4020
|
+
"description": "表单内容"
|
4021
|
+
}
|
4022
|
+
],
|
4023
|
+
"events": [
|
4024
|
+
{
|
4025
|
+
"name": "submit",
|
4026
|
+
"description": "提交表单且验证通过后触发"
|
4068
4027
|
},
|
4069
4028
|
{
|
4070
|
-
"name": "
|
4071
|
-
"
|
4072
|
-
|
4029
|
+
"name": "failed",
|
4030
|
+
"description": "提交表单且验证不通过后触发"
|
4031
|
+
}
|
4032
|
+
],
|
4033
|
+
"attributes": [
|
4034
|
+
{
|
4035
|
+
"name": "label-width",
|
4036
|
+
"default": "`6.2em`",
|
4037
|
+
"description": "表单项 label 宽度,默认单位为`px`",
|
4073
4038
|
"value": {
|
4074
|
-
"type": "string",
|
4039
|
+
"type": "number | string",
|
4075
4040
|
"kind": "expression"
|
4076
4041
|
}
|
4077
4042
|
},
|
4078
4043
|
{
|
4079
|
-
"name": "
|
4080
|
-
"default": "`
|
4081
|
-
"description": "
|
4044
|
+
"name": "label-align",
|
4045
|
+
"default": "`left`",
|
4046
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
|
4082
4047
|
"value": {
|
4083
4048
|
"type": "string",
|
4084
4049
|
"kind": "expression"
|
4085
4050
|
}
|
4086
4051
|
},
|
4087
4052
|
{
|
4088
|
-
"name": "
|
4089
|
-
"default": "
|
4090
|
-
"description": "
|
4053
|
+
"name": "input-align",
|
4054
|
+
"default": "`left`",
|
4055
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
4091
4056
|
"value": {
|
4092
4057
|
"type": "string",
|
4093
4058
|
"kind": "expression"
|
4094
4059
|
}
|
4095
4060
|
},
|
4096
4061
|
{
|
4097
|
-
"name": "
|
4098
|
-
"default": "
|
4099
|
-
"description": "
|
4062
|
+
"name": "error-message-align",
|
4063
|
+
"default": "`left`",
|
4064
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
4100
4065
|
"value": {
|
4101
|
-
"type": "
|
4066
|
+
"type": "string",
|
4102
4067
|
"kind": "expression"
|
4103
4068
|
}
|
4104
4069
|
},
|
4105
4070
|
{
|
4106
|
-
"name": "
|
4107
|
-
"default": "
|
4108
|
-
"description": "
|
4071
|
+
"name": "validate-trigger",
|
4072
|
+
"default": "`onBlur`",
|
4073
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
|
4109
4074
|
"value": {
|
4110
4075
|
"type": "string",
|
4111
4076
|
"kind": "expression"
|
4112
4077
|
}
|
4113
4078
|
},
|
4114
4079
|
{
|
4115
|
-
"name": "
|
4116
|
-
"default": "`
|
4117
|
-
"description": "
|
4080
|
+
"name": "colon",
|
4081
|
+
"default": "`false`",
|
4082
|
+
"description": "是否在 label 后面添加冒号",
|
4118
4083
|
"value": {
|
4119
4084
|
"type": "boolean",
|
4120
4085
|
"kind": "expression"
|
@@ -4123,7 +4088,7 @@
|
|
4123
4088
|
{
|
4124
4089
|
"name": "disabled",
|
4125
4090
|
"default": "`false`",
|
4126
|
-
"description": "
|
4091
|
+
"description": "是否禁用表单中的所有输入框",
|
4127
4092
|
"value": {
|
4128
4093
|
"type": "boolean",
|
4129
4094
|
"kind": "expression"
|
@@ -4132,234 +4097,269 @@
|
|
4132
4097
|
{
|
4133
4098
|
"name": "readonly",
|
4134
4099
|
"default": "`false`",
|
4135
|
-
"description": "
|
4100
|
+
"description": "是否将表单中的所有输入框设置为只读",
|
4136
4101
|
"value": {
|
4137
4102
|
"type": "boolean",
|
4138
4103
|
"kind": "expression"
|
4139
4104
|
}
|
4140
4105
|
},
|
4141
4106
|
{
|
4142
|
-
"name": "
|
4107
|
+
"name": "validate-first",
|
4143
4108
|
"default": "`false`",
|
4144
|
-
"description": "
|
4109
|
+
"description": "是否在某一项校验不通过时停止校验",
|
4145
4110
|
"value": {
|
4146
4111
|
"type": "boolean",
|
4147
4112
|
"kind": "expression"
|
4148
4113
|
}
|
4149
4114
|
},
|
4150
4115
|
{
|
4151
|
-
"name": "
|
4116
|
+
"name": "scroll-to-error",
|
4152
4117
|
"default": "`false`",
|
4153
|
-
"description": "
|
4118
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项",
|
4154
4119
|
"value": {
|
4155
4120
|
"type": "boolean",
|
4156
4121
|
"kind": "expression"
|
4157
4122
|
}
|
4158
4123
|
},
|
4159
4124
|
{
|
4160
|
-
"name": "
|
4161
|
-
"default": "`
|
4162
|
-
"description": "
|
4125
|
+
"name": "show-error",
|
4126
|
+
"default": "`true`",
|
4127
|
+
"description": "是否在校验不通过时标红输入框",
|
4163
4128
|
"value": {
|
4164
4129
|
"type": "boolean",
|
4165
4130
|
"kind": "expression"
|
4166
4131
|
}
|
4167
4132
|
},
|
4168
4133
|
{
|
4169
|
-
"name": "
|
4170
|
-
"default": "`
|
4171
|
-
"description": "
|
4134
|
+
"name": "show-error-message",
|
4135
|
+
"default": "`true`",
|
4136
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示",
|
4172
4137
|
"value": {
|
4173
4138
|
"type": "boolean",
|
4174
4139
|
"kind": "expression"
|
4175
4140
|
}
|
4176
4141
|
},
|
4177
4142
|
{
|
4178
|
-
"name": "
|
4179
|
-
"default": "`
|
4180
|
-
"description": "
|
4143
|
+
"name": "submit-on-enter",
|
4144
|
+
"default": "`true`",
|
4145
|
+
"description": "是否在按下回车键时提交表单",
|
4181
4146
|
"value": {
|
4182
|
-
"type": "
|
4147
|
+
"type": "boolean",
|
4183
4148
|
"kind": "expression"
|
4184
4149
|
}
|
4185
|
-
}
|
4150
|
+
}
|
4151
|
+
]
|
4152
|
+
},
|
4153
|
+
{
|
4154
|
+
"name": "van-goods-action",
|
4155
|
+
"slots": [],
|
4156
|
+
"events": [],
|
4157
|
+
"attributes": [
|
4186
4158
|
{
|
4187
|
-
"name": "
|
4188
|
-
"default": "`
|
4189
|
-
"description": "
|
4159
|
+
"name": "safe-area-inset-bottom",
|
4160
|
+
"default": "`true`",
|
4161
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
4190
4162
|
"value": {
|
4191
4163
|
"type": "boolean",
|
4192
4164
|
"kind": "expression"
|
4193
4165
|
}
|
4166
|
+
}
|
4167
|
+
]
|
4168
|
+
},
|
4169
|
+
{
|
4170
|
+
"name": "van-goods-action-icon",
|
4171
|
+
"slots": [
|
4172
|
+
{
|
4173
|
+
"name": "default",
|
4174
|
+
"description": "文本内容"
|
4194
4175
|
},
|
4195
4176
|
{
|
4196
|
-
"name": "
|
4197
|
-
"
|
4198
|
-
|
4177
|
+
"name": "icon",
|
4178
|
+
"description": "自定义图标"
|
4179
|
+
}
|
4180
|
+
],
|
4181
|
+
"events": [],
|
4182
|
+
"attributes": [
|
4183
|
+
{
|
4184
|
+
"name": "text",
|
4185
|
+
"default": "-",
|
4186
|
+
"description": "按钮文字",
|
4199
4187
|
"value": {
|
4200
|
-
"type": "
|
4188
|
+
"type": "string",
|
4201
4189
|
"kind": "expression"
|
4202
4190
|
}
|
4203
4191
|
},
|
4204
4192
|
{
|
4205
|
-
"name": "
|
4206
|
-
"default": "
|
4207
|
-
"description": "
|
4193
|
+
"name": "icon",
|
4194
|
+
"default": "-",
|
4195
|
+
"description": "图标",
|
4208
4196
|
"value": {
|
4209
|
-
"type": "
|
4197
|
+
"type": "string",
|
4210
4198
|
"kind": "expression"
|
4211
4199
|
}
|
4212
4200
|
},
|
4213
4201
|
{
|
4214
|
-
"name": "
|
4215
|
-
"default": "`
|
4216
|
-
"description": "
|
4202
|
+
"name": "color",
|
4203
|
+
"default": "`#323233`",
|
4204
|
+
"description": "图标颜色",
|
4217
4205
|
"value": {
|
4218
|
-
"type": "
|
4206
|
+
"type": "string",
|
4219
4207
|
"kind": "expression"
|
4220
4208
|
}
|
4221
4209
|
},
|
4222
4210
|
{
|
4223
|
-
"name": "
|
4224
|
-
"default": "
|
4225
|
-
"description": "
|
4211
|
+
"name": "icon-class",
|
4212
|
+
"default": "-",
|
4213
|
+
"description": "图标额外类名",
|
4226
4214
|
"value": {
|
4227
|
-
"type": "
|
4215
|
+
"type": "any",
|
4228
4216
|
"kind": "expression"
|
4229
4217
|
}
|
4230
4218
|
},
|
4231
4219
|
{
|
4232
|
-
"name": "
|
4233
|
-
"default": "
|
4234
|
-
"description": "
|
4220
|
+
"name": "dot",
|
4221
|
+
"default": "`false`",
|
4222
|
+
"description": "是否显示图标右上角小红点",
|
4235
4223
|
"value": {
|
4236
|
-
"type": "
|
4224
|
+
"type": "boolean",
|
4237
4225
|
"kind": "expression"
|
4238
4226
|
}
|
4239
4227
|
},
|
4240
4228
|
{
|
4241
|
-
"name": "
|
4229
|
+
"name": "badge",
|
4242
4230
|
"default": "-",
|
4243
|
-
"description": "
|
4231
|
+
"description": "图标右上角徽标的内容",
|
4244
4232
|
"value": {
|
4245
|
-
"type": "
|
4233
|
+
"type": "number | string",
|
4246
4234
|
"kind": "expression"
|
4247
4235
|
}
|
4248
4236
|
},
|
4249
4237
|
{
|
4250
|
-
"name": "
|
4251
|
-
"default": "
|
4252
|
-
"description": "
|
4238
|
+
"name": "info",
|
4239
|
+
"default": "-",
|
4240
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
4253
4241
|
"value": {
|
4254
|
-
"type": "string",
|
4242
|
+
"type": "number | string",
|
4255
4243
|
"kind": "expression"
|
4256
4244
|
}
|
4257
4245
|
},
|
4258
4246
|
{
|
4259
|
-
"name": "
|
4260
|
-
"default": "
|
4261
|
-
"description": "
|
4247
|
+
"name": "url",
|
4248
|
+
"default": "-",
|
4249
|
+
"description": "点击后跳转的链接地址",
|
4262
4250
|
"value": {
|
4263
4251
|
"type": "string",
|
4264
4252
|
"kind": "expression"
|
4265
4253
|
}
|
4266
4254
|
},
|
4267
4255
|
{
|
4268
|
-
"name": "
|
4256
|
+
"name": "to",
|
4269
4257
|
"default": "-",
|
4270
|
-
"description": "
|
4258
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
4271
4259
|
"value": {
|
4272
|
-
"type": "
|
4260
|
+
"type": "string | object",
|
4273
4261
|
"kind": "expression"
|
4274
4262
|
}
|
4275
4263
|
},
|
4276
4264
|
{
|
4277
|
-
"name": "
|
4278
|
-
"default": "`
|
4279
|
-
"description": "
|
4265
|
+
"name": "replace",
|
4266
|
+
"default": "`false`",
|
4267
|
+
"description": "是否在跳转时替换当前页面历史",
|
4280
4268
|
"value": {
|
4281
|
-
"type": "
|
4269
|
+
"type": "boolean",
|
4282
4270
|
"kind": "expression"
|
4283
4271
|
}
|
4284
|
-
}
|
4272
|
+
}
|
4273
|
+
]
|
4274
|
+
},
|
4275
|
+
{
|
4276
|
+
"name": "van-goods-action-button",
|
4277
|
+
"slots": [
|
4285
4278
|
{
|
4286
|
-
"name": "
|
4287
|
-
"
|
4288
|
-
|
4279
|
+
"name": "default",
|
4280
|
+
"description": "按钮显示内容"
|
4281
|
+
}
|
4282
|
+
],
|
4283
|
+
"events": [],
|
4284
|
+
"attributes": [
|
4285
|
+
{
|
4286
|
+
"name": "text",
|
4287
|
+
"default": "-",
|
4288
|
+
"description": "按钮文字",
|
4289
4289
|
"value": {
|
4290
4290
|
"type": "string",
|
4291
4291
|
"kind": "expression"
|
4292
4292
|
}
|
4293
4293
|
},
|
4294
4294
|
{
|
4295
|
-
"name": "
|
4296
|
-
"default": "`
|
4297
|
-
"description": "
|
4295
|
+
"name": "type",
|
4296
|
+
"default": "`default`",
|
4297
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
|
4298
4298
|
"value": {
|
4299
4299
|
"type": "string",
|
4300
4300
|
"kind": "expression"
|
4301
4301
|
}
|
4302
4302
|
},
|
4303
4303
|
{
|
4304
|
-
"name": "
|
4305
|
-
"default": "
|
4306
|
-
"description": "
|
4304
|
+
"name": "color",
|
4305
|
+
"default": "-",
|
4306
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色",
|
4307
4307
|
"value": {
|
4308
4308
|
"type": "string",
|
4309
4309
|
"kind": "expression"
|
4310
4310
|
}
|
4311
4311
|
},
|
4312
4312
|
{
|
4313
|
-
"name": "
|
4314
|
-
"default": "
|
4315
|
-
"description": "
|
4313
|
+
"name": "icon",
|
4314
|
+
"default": "-",
|
4315
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
4316
4316
|
"value": {
|
4317
|
-
"type": "
|
4317
|
+
"type": "string",
|
4318
4318
|
"kind": "expression"
|
4319
4319
|
}
|
4320
4320
|
},
|
4321
4321
|
{
|
4322
|
-
"name": "
|
4323
|
-
"default": "
|
4324
|
-
"description": "
|
4322
|
+
"name": "disabled",
|
4323
|
+
"default": "`false`",
|
4324
|
+
"description": "是否禁用按钮",
|
4325
4325
|
"value": {
|
4326
|
-
"type": "
|
4326
|
+
"type": "boolean",
|
4327
4327
|
"kind": "expression"
|
4328
4328
|
}
|
4329
4329
|
},
|
4330
4330
|
{
|
4331
|
-
"name": "
|
4332
|
-
"default": "
|
4333
|
-
"description": "
|
4331
|
+
"name": "loading",
|
4332
|
+
"default": "`false`",
|
4333
|
+
"description": "是否显示为加载状态",
|
4334
4334
|
"value": {
|
4335
|
-
"type": "
|
4335
|
+
"type": "boolean",
|
4336
4336
|
"kind": "expression"
|
4337
4337
|
}
|
4338
4338
|
},
|
4339
4339
|
{
|
4340
|
-
"name": "
|
4341
|
-
"default": "
|
4342
|
-
"description": "
|
4340
|
+
"name": "url",
|
4341
|
+
"default": "-",
|
4342
|
+
"description": "点击后跳转的链接地址",
|
4343
4343
|
"value": {
|
4344
4344
|
"type": "string",
|
4345
4345
|
"kind": "expression"
|
4346
4346
|
}
|
4347
4347
|
},
|
4348
4348
|
{
|
4349
|
-
"name": "
|
4349
|
+
"name": "to",
|
4350
4350
|
"default": "-",
|
4351
|
-
"description": "
|
4351
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
4352
4352
|
"value": {
|
4353
|
-
"type": "
|
4353
|
+
"type": "string | object",
|
4354
4354
|
"kind": "expression"
|
4355
4355
|
}
|
4356
4356
|
},
|
4357
4357
|
{
|
4358
|
-
"name": "
|
4359
|
-
"default": "
|
4360
|
-
"description": "
|
4358
|
+
"name": "replace",
|
4359
|
+
"default": "`false`",
|
4360
|
+
"description": "是否在跳转时替换当前页面历史",
|
4361
4361
|
"value": {
|
4362
|
-
"type": "
|
4362
|
+
"type": "boolean",
|
4363
4363
|
"kind": "expression"
|
4364
4364
|
}
|
4365
4365
|
}
|