vant 2.12.39 → 2.12.43

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.
@@ -2,10 +2,208 @@
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.39",
5
+ "version": "2.12.43",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
+ {
10
+ "name": "van-action-sheet",
11
+ "slots": [
12
+ {
13
+ "name": "default",
14
+ "description": "自定义面板的展示内容"
15
+ },
16
+ {
17
+ "name": "description",
18
+ "description": "自定义描述文案"
19
+ }
20
+ ],
21
+ "events": [
22
+ {
23
+ "name": "select",
24
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
25
+ },
26
+ {
27
+ "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": "关闭面板且动画结束后触发"
45
+ },
46
+ {
47
+ "name": "click-overlay",
48
+ "description": "点击遮罩层时触发"
49
+ }
50
+ ],
51
+ "attributes": [
52
+ {
53
+ "name": "v-model (value)",
54
+ "default": "`false`",
55
+ "description": "是否显示动作面板",
56
+ "value": {
57
+ "type": "boolean",
58
+ "kind": "expression"
59
+ }
60
+ },
61
+ {
62
+ "name": "actions",
63
+ "default": "`[]`",
64
+ "description": "面板选项列表",
65
+ "value": {
66
+ "type": "Action[]",
67
+ "kind": "expression"
68
+ }
69
+ },
70
+ {
71
+ "name": "title",
72
+ "default": "-",
73
+ "description": "顶部标题",
74
+ "value": {
75
+ "type": "string",
76
+ "kind": "expression"
77
+ }
78
+ },
79
+ {
80
+ "name": "cancel-text",
81
+ "default": "-",
82
+ "description": "取消按钮文字",
83
+ "value": {
84
+ "type": "string",
85
+ "kind": "expression"
86
+ }
87
+ },
88
+ {
89
+ "name": "description",
90
+ "default": "-",
91
+ "description": "选项上方的描述信息",
92
+ "value": {
93
+ "type": "string",
94
+ "kind": "expression"
95
+ }
96
+ },
97
+ {
98
+ "name": "closeable",
99
+ "default": "`true`",
100
+ "description": "是否显示关闭图标",
101
+ "value": {
102
+ "type": "boolean",
103
+ "kind": "expression"
104
+ }
105
+ },
106
+ {
107
+ "name": "close-icon",
108
+ "default": "`cross`",
109
+ "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
110
+ "value": {
111
+ "type": "string",
112
+ "kind": "expression"
113
+ }
114
+ },
115
+ {
116
+ "name": "duration",
117
+ "default": "`0.3`",
118
+ "description": "动画时长,单位秒",
119
+ "value": {
120
+ "type": "number | string",
121
+ "kind": "expression"
122
+ }
123
+ },
124
+ {
125
+ "name": "round",
126
+ "default": "`true`",
127
+ "description": "是否显示圆角",
128
+ "value": {
129
+ "type": "boolean",
130
+ "kind": "expression"
131
+ }
132
+ },
133
+ {
134
+ "name": "overlay",
135
+ "default": "`true`",
136
+ "description": "是否显示遮罩层",
137
+ "value": {
138
+ "type": "boolean",
139
+ "kind": "expression"
140
+ }
141
+ },
142
+ {
143
+ "name": "lock-scroll",
144
+ "default": "`true`",
145
+ "description": "是否锁定背景滚动",
146
+ "value": {
147
+ "type": "boolean",
148
+ "kind": "expression"
149
+ }
150
+ },
151
+ {
152
+ "name": "lazy-render",
153
+ "default": "`true`",
154
+ "description": "是否在显示弹层时才渲染节点",
155
+ "value": {
156
+ "type": "boolean",
157
+ "kind": "expression"
158
+ }
159
+ },
160
+ {
161
+ "name": "close-on-popstate",
162
+ "default": "`false`",
163
+ "description": "是否在页面回退时自动关闭",
164
+ "value": {
165
+ "type": "boolean",
166
+ "kind": "expression"
167
+ }
168
+ },
169
+ {
170
+ "name": "close-on-click-action",
171
+ "default": "`false`",
172
+ "description": "是否在点击选项后关闭",
173
+ "value": {
174
+ "type": "boolean",
175
+ "kind": "expression"
176
+ }
177
+ },
178
+ {
179
+ "name": "close-on-click-overlay",
180
+ "default": "`true`",
181
+ "description": "是否在点击遮罩层后关闭",
182
+ "value": {
183
+ "type": "boolean",
184
+ "kind": "expression"
185
+ }
186
+ },
187
+ {
188
+ "name": "safe-area-inset-bottom",
189
+ "default": "`true`",
190
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
191
+ "value": {
192
+ "type": "boolean",
193
+ "kind": "expression"
194
+ }
195
+ },
196
+ {
197
+ "name": "get-container",
198
+ "default": "-",
199
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
200
+ "value": {
201
+ "type": "string | () => Element",
202
+ "kind": "expression"
203
+ }
204
+ }
205
+ ]
206
+ },
9
207
  {
10
208
  "name": "van-address-edit",
11
209
  "slots": [
@@ -254,146 +452,34 @@
254
452
  ]
255
453
  },
256
454
  {
257
- "name": "van-address-list",
455
+ "name": "van-badge",
258
456
  "slots": [
259
457
  {
260
458
  "name": "default",
261
- "description": "在列表下方插入内容"
262
- },
263
- {
264
- "name": "top",
265
- "description": "在顶部插入内容"
266
- },
267
- {
268
- "name": "item-bottom",
269
- "description": "在列表项底部插入内容"
270
- },
271
- {
272
- "name": "tag",
273
- "description": "列表项标签内容自定义"
274
- }
275
- ],
276
- "events": [
277
- {
278
- "name": "add",
279
- "description": "点击新增按钮时触发"
280
- },
281
- {
282
- "name": "edit",
283
- "description": "点击编辑按钮时触发"
284
- },
285
- {
286
- "name": "select",
287
- "description": "切换选中的地址时触发"
288
- },
289
- {
290
- "name": "edit-disabled",
291
- "description": "编辑不可配送的地址时触发"
292
- },
293
- {
294
- "name": "select-disabled",
295
- "description": "选中不可配送的地址时触发"
459
+ "description": "徽标包裹的子元素"
296
460
  },
297
461
  {
298
- "name": "click-item",
299
- "description": "点击任意地址时触发"
462
+ "name": "content",
463
+ "description": "自定义徽标内容"
300
464
  }
301
465
  ],
466
+ "events": [],
302
467
  "attributes": [
303
468
  {
304
- "name": "v-model",
469
+ "name": "content",
305
470
  "default": "-",
306
- "description": "当前选中地址的 id",
471
+ "description": "徽标内容",
307
472
  "value": {
308
- "type": "string",
473
+ "type": "number | string",
309
474
  "kind": "expression"
310
475
  }
311
476
  },
312
477
  {
313
- "name": "list",
314
- "default": "`[]`",
315
- "description": "地址列表",
478
+ "name": "color",
479
+ "default": "`#ee0a24`",
480
+ "description": "徽标背景颜色",
316
481
  "value": {
317
- "type": "Address[]",
318
- "kind": "expression"
319
- }
320
- },
321
- {
322
- "name": "disabled-list",
323
- "default": "`[]`",
324
- "description": "不可配送地址列表",
325
- "value": {
326
- "type": "Address[]",
327
- "kind": "expression"
328
- }
329
- },
330
- {
331
- "name": "disabled-text",
332
- "default": "-",
333
- "description": "不可配送提示文案",
334
- "value": {
335
- "type": "string",
336
- "kind": "expression"
337
- }
338
- },
339
- {
340
- "name": "switchable",
341
- "default": "`true`",
342
- "description": "是否允许切换地址",
343
- "value": {
344
- "type": "boolean",
345
- "kind": "expression"
346
- }
347
- },
348
- {
349
- "name": "add-button-text",
350
- "default": "`新增地址`",
351
- "description": "底部按钮文字",
352
- "value": {
353
- "type": "string",
354
- "kind": "expression"
355
- }
356
- },
357
- {
358
- "name": "default-tag-text",
359
- "default": "-",
360
- "description": "默认地址标签文字",
361
- "value": {
362
- "type": "string",
363
- "kind": "expression"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "name": "van-badge",
370
- "slots": [
371
- {
372
- "name": "default",
373
- "description": "徽标包裹的子元素"
374
- },
375
- {
376
- "name": "content",
377
- "description": "自定义徽标内容"
378
- }
379
- ],
380
- "events": [],
381
- "attributes": [
382
- {
383
- "name": "content",
384
- "default": "-",
385
- "description": "徽标内容",
386
- "value": {
387
- "type": "number | string",
388
- "kind": "expression"
389
- }
390
- },
391
- {
392
- "name": "color",
393
- "default": "`#ee0a24`",
394
- "description": "徽标背景颜色",
395
- "value": {
396
- "type": "string",
482
+ "type": "string",
397
483
  "kind": "expression"
398
484
  }
399
485
  },
@@ -417,156 +503,6 @@
417
503
  }
418
504
  ]
419
505
  },
420
- {
421
- "name": "van-area",
422
- "slots": [
423
- {
424
- "name": "title",
425
- "description": "自定义标题内容"
426
- },
427
- {
428
- "name": "columns-top",
429
- "description": "自定义选项上方内容"
430
- },
431
- {
432
- "name": "columns-bottom",
433
- "description": "自定义选项下方内容"
434
- }
435
- ],
436
- "events": [
437
- {
438
- "name": "confirm",
439
- "description": "点击右上方完成按钮"
440
- },
441
- {
442
- "name": "cancel",
443
- "description": "点击取消按钮时"
444
- },
445
- {
446
- "name": "change",
447
- "description": "选项改变时触发"
448
- }
449
- ],
450
- "attributes": [
451
- {
452
- "name": "value",
453
- "default": "-",
454
- "description": "当前选中的省市区`code`",
455
- "value": {
456
- "type": "string",
457
- "kind": "expression"
458
- }
459
- },
460
- {
461
- "name": "title",
462
- "default": "-",
463
- "description": "顶部栏标题",
464
- "value": {
465
- "type": "string",
466
- "kind": "expression"
467
- }
468
- },
469
- {
470
- "name": "confirm-button-text",
471
- "default": "`确认`",
472
- "description": "确认按钮文字",
473
- "value": {
474
- "type": "string",
475
- "kind": "expression"
476
- }
477
- },
478
- {
479
- "name": "cancel-button-text",
480
- "default": "`取消`",
481
- "description": "取消按钮文字",
482
- "value": {
483
- "type": "string",
484
- "kind": "expression"
485
- }
486
- },
487
- {
488
- "name": "area-list",
489
- "default": "-",
490
- "description": "省市区数据,格式见下方",
491
- "value": {
492
- "type": "object",
493
- "kind": "expression"
494
- }
495
- },
496
- {
497
- "name": "columns-placeholder",
498
- "default": "`[]`",
499
- "description": "列占位提示文字",
500
- "value": {
501
- "type": "string[]",
502
- "kind": "expression"
503
- }
504
- },
505
- {
506
- "name": "loading",
507
- "default": "`false`",
508
- "description": "是否显示加载状态",
509
- "value": {
510
- "type": "boolean",
511
- "kind": "expression"
512
- }
513
- },
514
- {
515
- "name": "readonly",
516
- "default": "`false`",
517
- "description": "是否为只读状态,只读状态下无法切换选项",
518
- "value": {
519
- "type": "boolean",
520
- "kind": "expression"
521
- }
522
- },
523
- {
524
- "name": "item-height",
525
- "default": "`44`",
526
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
527
- "value": {
528
- "type": "number | string",
529
- "kind": "expression"
530
- }
531
- },
532
- {
533
- "name": "columns-num",
534
- "default": "`3`",
535
- "description": "显示列数,3-省市区,2-省市,1-省",
536
- "value": {
537
- "type": "number | string",
538
- "kind": "expression"
539
- }
540
- },
541
- {
542
- "name": "visible-item-count",
543
- "default": "`6`",
544
- "description": "可见的选项个数",
545
- "value": {
546
- "type": "number | string",
547
- "kind": "expression"
548
- }
549
- },
550
- {
551
- "name": "swipe-duration",
552
- "default": "`1000`",
553
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
554
- "value": {
555
- "type": "number | string",
556
- "kind": "expression"
557
- }
558
- },
559
- {
560
- "name": "is-oversea-code",
561
- "default": "-",
562
- "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
563
- "value": {
564
- "type": "() => boolean",
565
- "kind": "expression"
566
- }
567
- }
568
- ]
569
- },
570
506
  {
571
507
  "name": "van-button",
572
508
  "slots": [
@@ -795,41 +731,191 @@
795
731
  ]
796
732
  },
797
733
  {
798
- "name": "van-calendar",
734
+ "name": "van-area",
799
735
  "slots": [
800
736
  {
801
737
  "name": "title",
802
- "description": "自定义标题"
803
- },
804
- {
805
- "name": "footer",
806
- "description": "自定义底部区域内容"
738
+ "description": "自定义标题内容"
807
739
  },
808
740
  {
809
- "name": "top-info",
810
- "description": "自定义日期上方的提示信息"
741
+ "name": "columns-top",
742
+ "description": "自定义选项上方内容"
811
743
  },
812
744
  {
813
- "name": "bottom-info",
814
- "description": "自定义日期下方的提示信息"
745
+ "name": "columns-bottom",
746
+ "description": "自定义选项下方内容"
815
747
  }
816
748
  ],
817
749
  "events": [
818
- {
819
- "name": "select",
820
- "description": "点击并选中任意日期时触发"
821
- },
822
750
  {
823
751
  "name": "confirm",
824
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
752
+ "description": "点击右上方完成按钮"
825
753
  },
826
754
  {
827
- "name": "open",
828
- "description": "打开弹出层时触发"
755
+ "name": "cancel",
756
+ "description": "点击取消按钮时"
829
757
  },
830
758
  {
831
- "name": "close",
832
- "description": "关闭弹出层时触发"
759
+ "name": "change",
760
+ "description": "选项改变时触发"
761
+ }
762
+ ],
763
+ "attributes": [
764
+ {
765
+ "name": "value",
766
+ "default": "-",
767
+ "description": "当前选中的省市区`code`",
768
+ "value": {
769
+ "type": "string",
770
+ "kind": "expression"
771
+ }
772
+ },
773
+ {
774
+ "name": "title",
775
+ "default": "-",
776
+ "description": "顶部栏标题",
777
+ "value": {
778
+ "type": "string",
779
+ "kind": "expression"
780
+ }
781
+ },
782
+ {
783
+ "name": "confirm-button-text",
784
+ "default": "`确认`",
785
+ "description": "确认按钮文字",
786
+ "value": {
787
+ "type": "string",
788
+ "kind": "expression"
789
+ }
790
+ },
791
+ {
792
+ "name": "cancel-button-text",
793
+ "default": "`取消`",
794
+ "description": "取消按钮文字",
795
+ "value": {
796
+ "type": "string",
797
+ "kind": "expression"
798
+ }
799
+ },
800
+ {
801
+ "name": "area-list",
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",
829
+ "default": "`false`",
830
+ "description": "是否为只读状态,只读状态下无法切换选项",
831
+ "value": {
832
+ "type": "boolean",
833
+ "kind": "expression"
834
+ }
835
+ },
836
+ {
837
+ "name": "item-height",
838
+ "default": "`44`",
839
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
840
+ "value": {
841
+ "type": "number | string",
842
+ "kind": "expression"
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
+ },
863
+ {
864
+ "name": "swipe-duration",
865
+ "default": "`1000`",
866
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
867
+ "value": {
868
+ "type": "number | string",
869
+ "kind": "expression"
870
+ }
871
+ },
872
+ {
873
+ "name": "is-oversea-code",
874
+ "default": "-",
875
+ "description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
876
+ "value": {
877
+ "type": "() => boolean",
878
+ "kind": "expression"
879
+ }
880
+ }
881
+ ]
882
+ },
883
+ {
884
+ "name": "van-calendar",
885
+ "slots": [
886
+ {
887
+ "name": "title",
888
+ "description": "自定义标题"
889
+ },
890
+ {
891
+ "name": "footer",
892
+ "description": "自定义底部区域内容"
893
+ },
894
+ {
895
+ "name": "top-info",
896
+ "description": "自定义日期上方的提示信息"
897
+ },
898
+ {
899
+ "name": "bottom-info",
900
+ "description": "自定义日期下方的提示信息"
901
+ }
902
+ ],
903
+ "events": [
904
+ {
905
+ "name": "select",
906
+ "description": "点击并选中任意日期时触发"
907
+ },
908
+ {
909
+ "name": "confirm",
910
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
911
+ },
912
+ {
913
+ "name": "open",
914
+ "description": "打开弹出层时触发"
915
+ },
916
+ {
917
+ "name": "close",
918
+ "description": "关闭弹出层时触发"
833
919
  },
834
920
  {
835
921
  "name": "opened",
@@ -1142,98 +1228,6 @@
1142
1228
  }
1143
1229
  ]
1144
1230
  },
1145
- {
1146
- "name": "van-cascader",
1147
- "slots": [
1148
- {
1149
- "name": "title",
1150
- "description": "自定义顶部标题"
1151
- },
1152
- {
1153
- "name": "option",
1154
- "description": "自定义选项文字"
1155
- }
1156
- ],
1157
- "events": [
1158
- {
1159
- "name": "change",
1160
- "description": "选中项变化时触发"
1161
- },
1162
- {
1163
- "name": "finish",
1164
- "description": "全部选项选择完成后触发"
1165
- },
1166
- {
1167
- "name": "close",
1168
- "description": "点击关闭图标时触发"
1169
- }
1170
- ],
1171
- "attributes": [
1172
- {
1173
- "name": "title",
1174
- "default": "-",
1175
- "description": "顶部标题",
1176
- "value": {
1177
- "type": "string",
1178
- "kind": "expression"
1179
- }
1180
- },
1181
- {
1182
- "name": "value",
1183
- "default": "-",
1184
- "description": "选中项的值",
1185
- "value": {
1186
- "type": "string | number",
1187
- "kind": "expression"
1188
- }
1189
- },
1190
- {
1191
- "name": "options",
1192
- "default": "`[]`",
1193
- "description": "可选项数据源",
1194
- "value": {
1195
- "type": "Option[]",
1196
- "kind": "expression"
1197
- }
1198
- },
1199
- {
1200
- "name": "placeholder",
1201
- "default": "`请选择`",
1202
- "description": "未选中时的提示文案",
1203
- "value": {
1204
- "type": "string",
1205
- "kind": "expression"
1206
- }
1207
- },
1208
- {
1209
- "name": "active-color",
1210
- "default": "`#ee0a24`",
1211
- "description": "选中状态的高亮颜色",
1212
- "value": {
1213
- "type": "string",
1214
- "kind": "expression"
1215
- }
1216
- },
1217
- {
1218
- "name": "closeable",
1219
- "default": "`true`",
1220
- "description": "是否显示关闭图标",
1221
- "value": {
1222
- "type": "boolean",
1223
- "kind": "expression"
1224
- }
1225
- },
1226
- {
1227
- "name": "field-names",
1228
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1229
- "description": "自定义 `options` 结构中的字段",
1230
- "value": {
1231
- "type": "object",
1232
- "kind": "expression"
1233
- }
1234
- }
1235
- ]
1236
- },
1237
1231
  {
1238
1232
  "name": "van-card",
1239
1233
  "slots": [
@@ -1395,11 +1389,112 @@
1395
1389
  ]
1396
1390
  },
1397
1391
  {
1398
- "name": "van-cell-group",
1392
+ "name": "van-cascader",
1399
1393
  "slots": [
1400
1394
  {
1401
- "name": "default",
1402
- "description": "默认插槽"
1395
+ "name": "title",
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": "全部选项选择完成后触发"
1411
+ },
1412
+ {
1413
+ "name": "close",
1414
+ "description": "点击关闭图标时触发"
1415
+ }
1416
+ ],
1417
+ "attributes": [
1418
+ {
1419
+ "name": "title",
1420
+ "default": "-",
1421
+ "description": "顶部标题",
1422
+ "value": {
1423
+ "type": "string",
1424
+ "kind": "expression"
1425
+ }
1426
+ },
1427
+ {
1428
+ "name": "value",
1429
+ "default": "-",
1430
+ "description": "选中项的值",
1431
+ "value": {
1432
+ "type": "string | number",
1433
+ "kind": "expression"
1434
+ }
1435
+ },
1436
+ {
1437
+ "name": "options",
1438
+ "default": "`[]`",
1439
+ "description": "可选项数据源",
1440
+ "value": {
1441
+ "type": "Option[]",
1442
+ "kind": "expression"
1443
+ }
1444
+ },
1445
+ {
1446
+ "name": "placeholder",
1447
+ "default": "`请选择`",
1448
+ "description": "未选中时的提示文案",
1449
+ "value": {
1450
+ "type": "string",
1451
+ "kind": "expression"
1452
+ }
1453
+ },
1454
+ {
1455
+ "name": "active-color",
1456
+ "default": "`#ee0a24`",
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": "默认插槽"
1403
1498
  },
1404
1499
  {
1405
1500
  "name": "title",
@@ -1637,266 +1732,180 @@
1637
1732
  ]
1638
1733
  },
1639
1734
  {
1640
- "name": "van-action-sheet",
1735
+ "name": "van-address-list",
1641
1736
  "slots": [
1642
1737
  {
1643
1738
  "name": "default",
1644
- "description": "自定义面板的展示内容"
1739
+ "description": "在列表下方插入内容"
1645
1740
  },
1646
1741
  {
1647
- "name": "description",
1648
- "description": "自定义描述文案"
1742
+ "name": "top",
1743
+ "description": "在顶部插入内容"
1744
+ },
1745
+ {
1746
+ "name": "item-bottom",
1747
+ "description": "在列表项底部插入内容"
1748
+ },
1749
+ {
1750
+ "name": "tag",
1751
+ "description": "列表项标签内容自定义"
1649
1752
  }
1650
1753
  ],
1651
1754
  "events": [
1652
1755
  {
1653
- "name": "select",
1654
- "description": "点击选项时触发,禁用或加载状态下不会触发"
1655
- },
1656
- {
1657
- "name": "cancel",
1658
- "description": "点击取消按钮时触发"
1756
+ "name": "add",
1757
+ "description": "点击新增按钮时触发"
1659
1758
  },
1660
1759
  {
1661
- "name": "open",
1662
- "description": "打开面板时触发"
1760
+ "name": "edit",
1761
+ "description": "点击编辑按钮时触发"
1663
1762
  },
1664
1763
  {
1665
- "name": "close",
1666
- "description": "关闭面板时触发"
1764
+ "name": "select",
1765
+ "description": "切换选中的地址时触发"
1667
1766
  },
1668
1767
  {
1669
- "name": "opened",
1670
- "description": "打开面板且动画结束后触发"
1768
+ "name": "edit-disabled",
1769
+ "description": "编辑不可配送的地址时触发"
1671
1770
  },
1672
1771
  {
1673
- "name": "closed",
1674
- "description": "关闭面板且动画结束后触发"
1772
+ "name": "select-disabled",
1773
+ "description": "选中不可配送的地址时触发"
1675
1774
  },
1676
1775
  {
1677
- "name": "click-overlay",
1678
- "description": "点击遮罩层时触发"
1776
+ "name": "click-item",
1777
+ "description": "点击任意地址时触发"
1679
1778
  }
1680
1779
  ],
1681
1780
  "attributes": [
1682
1781
  {
1683
- "name": "v-model (value)",
1684
- "default": "`false`",
1685
- "description": "是否显示动作面板",
1782
+ "name": "v-model",
1783
+ "default": "-",
1784
+ "description": "当前选中地址的 id",
1686
1785
  "value": {
1687
- "type": "boolean",
1786
+ "type": "string",
1688
1787
  "kind": "expression"
1689
1788
  }
1690
1789
  },
1691
1790
  {
1692
- "name": "actions",
1791
+ "name": "list",
1693
1792
  "default": "`[]`",
1694
- "description": "面板选项列表",
1695
- "value": {
1696
- "type": "Action[]",
1697
- "kind": "expression"
1698
- }
1699
- },
1700
- {
1701
- "name": "title",
1702
- "default": "-",
1703
- "description": "顶部标题",
1793
+ "description": "地址列表",
1704
1794
  "value": {
1705
- "type": "string",
1795
+ "type": "Address[]",
1706
1796
  "kind": "expression"
1707
1797
  }
1708
1798
  },
1709
1799
  {
1710
- "name": "cancel-text",
1711
- "default": "-",
1712
- "description": "取消按钮文字",
1800
+ "name": "disabled-list",
1801
+ "default": "`[]`",
1802
+ "description": "不可配送地址列表",
1713
1803
  "value": {
1714
- "type": "string",
1804
+ "type": "Address[]",
1715
1805
  "kind": "expression"
1716
1806
  }
1717
1807
  },
1718
1808
  {
1719
- "name": "description",
1809
+ "name": "disabled-text",
1720
1810
  "default": "-",
1721
- "description": "选项上方的描述信息",
1811
+ "description": "不可配送提示文案",
1722
1812
  "value": {
1723
1813
  "type": "string",
1724
1814
  "kind": "expression"
1725
1815
  }
1726
1816
  },
1727
1817
  {
1728
- "name": "closeable",
1818
+ "name": "switchable",
1729
1819
  "default": "`true`",
1730
- "description": "是否显示关闭图标",
1820
+ "description": "是否允许切换地址",
1731
1821
  "value": {
1732
1822
  "type": "boolean",
1733
1823
  "kind": "expression"
1734
1824
  }
1735
1825
  },
1736
1826
  {
1737
- "name": "close-icon",
1738
- "default": "`cross`",
1739
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
1827
+ "name": "add-button-text",
1828
+ "default": "`新增地址`",
1829
+ "description": "底部按钮文字",
1740
1830
  "value": {
1741
1831
  "type": "string",
1742
1832
  "kind": "expression"
1743
1833
  }
1744
1834
  },
1745
1835
  {
1746
- "name": "duration",
1747
- "default": "`0.3`",
1748
- "description": "动画时长,单位秒",
1836
+ "name": "default-tag-text",
1837
+ "default": "-",
1838
+ "description": "默认地址标签文字",
1749
1839
  "value": {
1750
- "type": "number | string",
1840
+ "type": "string",
1751
1841
  "kind": "expression"
1752
1842
  }
1843
+ }
1844
+ ]
1845
+ },
1846
+ {
1847
+ "name": "van-checkbox",
1848
+ "slots": [
1849
+ {
1850
+ "name": "default",
1851
+ "description": "自定义文本"
1753
1852
  },
1754
1853
  {
1755
- "name": "round",
1756
- "default": "`true`",
1757
- "description": "是否显示圆角",
1854
+ "name": "icon",
1855
+ "description": "自定义图标"
1856
+ }
1857
+ ],
1858
+ "events": [
1859
+ {
1860
+ "name": "change",
1861
+ "description": "当绑定值变化时触发的事件"
1862
+ },
1863
+ {
1864
+ "name": "click",
1865
+ "description": "点击复选框时触发"
1866
+ }
1867
+ ],
1868
+ "attributes": [
1869
+ {
1870
+ "name": "v-model (value)",
1871
+ "default": "`false`",
1872
+ "description": "是否为选中状态",
1758
1873
  "value": {
1759
1874
  "type": "boolean",
1760
1875
  "kind": "expression"
1761
1876
  }
1762
1877
  },
1763
1878
  {
1764
- "name": "overlay",
1765
- "default": "`true`",
1766
- "description": "是否显示遮罩层",
1879
+ "name": "name",
1880
+ "default": "-",
1881
+ "description": "标识符",
1767
1882
  "value": {
1768
- "type": "boolean",
1883
+ "type": "any",
1769
1884
  "kind": "expression"
1770
1885
  }
1771
1886
  },
1772
1887
  {
1773
- "name": "lock-scroll",
1774
- "default": "`true`",
1775
- "description": "是否锁定背景滚动",
1888
+ "name": "shape",
1889
+ "default": "`round`",
1890
+ "description": "形状,可选值为 `square`",
1776
1891
  "value": {
1777
- "type": "boolean",
1892
+ "type": "string",
1778
1893
  "kind": "expression"
1779
1894
  }
1780
1895
  },
1781
1896
  {
1782
- "name": "lazy-render",
1783
- "default": "`true`",
1784
- "description": "是否在显示弹层时才渲染节点",
1897
+ "name": "disabled",
1898
+ "default": "`false`",
1899
+ "description": "是否禁用复选框",
1785
1900
  "value": {
1786
1901
  "type": "boolean",
1787
1902
  "kind": "expression"
1788
1903
  }
1789
1904
  },
1790
1905
  {
1791
- "name": "close-on-popstate",
1906
+ "name": "label-disabled",
1792
1907
  "default": "`false`",
1793
- "description": "是否在页面回退时自动关闭",
1794
- "value": {
1795
- "type": "boolean",
1796
- "kind": "expression"
1797
- }
1798
- },
1799
- {
1800
- "name": "close-on-click-action",
1801
- "default": "`false`",
1802
- "description": "是否在点击选项后关闭",
1803
- "value": {
1804
- "type": "boolean",
1805
- "kind": "expression"
1806
- }
1807
- },
1808
- {
1809
- "name": "close-on-click-overlay",
1810
- "default": "`true`",
1811
- "description": "是否在点击遮罩层后关闭",
1812
- "value": {
1813
- "type": "boolean",
1814
- "kind": "expression"
1815
- }
1816
- },
1817
- {
1818
- "name": "safe-area-inset-bottom",
1819
- "default": "`true`",
1820
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1821
- "value": {
1822
- "type": "boolean",
1823
- "kind": "expression"
1824
- }
1825
- },
1826
- {
1827
- "name": "get-container",
1828
- "default": "-",
1829
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
1830
- "value": {
1831
- "type": "string | () => Element",
1832
- "kind": "expression"
1833
- }
1834
- }
1835
- ]
1836
- },
1837
- {
1838
- "name": "van-checkbox",
1839
- "slots": [
1840
- {
1841
- "name": "default",
1842
- "description": "自定义文本"
1843
- },
1844
- {
1845
- "name": "icon",
1846
- "description": "自定义图标"
1847
- }
1848
- ],
1849
- "events": [
1850
- {
1851
- "name": "change",
1852
- "description": "当绑定值变化时触发的事件"
1853
- },
1854
- {
1855
- "name": "click",
1856
- "description": "点击复选框时触发"
1857
- }
1858
- ],
1859
- "attributes": [
1860
- {
1861
- "name": "v-model (value)",
1862
- "default": "`false`",
1863
- "description": "是否为选中状态",
1864
- "value": {
1865
- "type": "boolean",
1866
- "kind": "expression"
1867
- }
1868
- },
1869
- {
1870
- "name": "name",
1871
- "default": "-",
1872
- "description": "标识符",
1873
- "value": {
1874
- "type": "any",
1875
- "kind": "expression"
1876
- }
1877
- },
1878
- {
1879
- "name": "shape",
1880
- "default": "`round`",
1881
- "description": "形状,可选值为 `square`",
1882
- "value": {
1883
- "type": "string",
1884
- "kind": "expression"
1885
- }
1886
- },
1887
- {
1888
- "name": "disabled",
1889
- "default": "`false`",
1890
- "description": "是否禁用复选框",
1891
- "value": {
1892
- "type": "boolean",
1893
- "kind": "expression"
1894
- }
1895
- },
1896
- {
1897
- "name": "label-disabled",
1898
- "default": "`false`",
1899
- "description": "是否禁用复选框文本点击",
1908
+ "description": "是否禁用复选框文本点击",
1900
1909
  "value": {
1901
1910
  "type": "boolean",
1902
1911
  "kind": "expression"
@@ -2359,6 +2368,15 @@
2359
2368
  "kind": "expression"
2360
2369
  }
2361
2370
  },
2371
+ {
2372
+ "name": "lazy-render",
2373
+ "default": "`true`",
2374
+ "description": "是否在首次展开时才渲染面板内容",
2375
+ "value": {
2376
+ "type": "boolean",
2377
+ "kind": "expression"
2378
+ }
2379
+ },
2362
2380
  {
2363
2381
  "name": "title-class",
2364
2382
  "default": "-",
@@ -3615,135 +3633,73 @@
3615
3633
  ]
3616
3634
  },
3617
3635
  {
3618
- "name": "van-field",
3636
+ "name": "van-form",
3619
3637
  "slots": [
3620
3638
  {
3621
- "name": "label",
3622
- "description": "自定义输入框 label 标签"
3623
- },
3624
- {
3625
- "name": "input",
3626
- "description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
3627
- },
3628
- {
3629
- "name": "left-icon",
3630
- "description": "自定义输入框头部图标"
3631
- },
3632
- {
3633
- "name": "right-icon",
3634
- "description": "自定义输入框尾部图标"
3635
- },
3636
- {
3637
- "name": "button",
3638
- "description": "自定义输入框尾部按钮"
3639
- },
3640
- {
3641
- "name": "extra",
3642
- "description": "自定义输入框最右侧的额外内容"
3639
+ "name": "default",
3640
+ "description": "表单内容"
3643
3641
  }
3644
3642
  ],
3645
3643
  "events": [
3646
3644
  {
3647
- "name": "input",
3648
- "description": "输入框内容变化时触发"
3649
- },
3650
- {
3651
- "name": "focus",
3652
- "description": "输入框获得焦点时触发"
3653
- },
3654
- {
3655
- "name": "blur",
3656
- "description": "输入框失去焦点时触发"
3657
- },
3658
- {
3659
- "name": "clear",
3660
- "description": "点击清除按钮时触发"
3661
- },
3662
- {
3663
- "name": "click",
3664
- "description": "点击 Field 时触发"
3665
- },
3666
- {
3667
- "name": "click-input",
3668
- "description": "点击输入区域时触发"
3669
- },
3670
- {
3671
- "name": "click-left-icon",
3672
- "description": "点击左侧图标时触发"
3645
+ "name": "submit",
3646
+ "description": "提交表单且验证通过后触发"
3673
3647
  },
3674
3648
  {
3675
- "name": "click-right-icon",
3676
- "description": "点击右侧图标时触发"
3649
+ "name": "failed",
3650
+ "description": "提交表单且验证不通过后触发"
3677
3651
  }
3678
3652
  ],
3679
3653
  "attributes": [
3680
3654
  {
3681
- "name": "v-model (value)",
3682
- "default": "-",
3683
- "description": "当前输入的值",
3655
+ "name": "label-width",
3656
+ "default": "`6.2em`",
3657
+ "description": "表单项 label 宽度,默认单位为`px`",
3684
3658
  "value": {
3685
3659
  "type": "number | string",
3686
3660
  "kind": "expression"
3687
3661
  }
3688
3662
  },
3689
3663
  {
3690
- "name": "label",
3691
- "default": "-",
3692
- "description": "输入框左侧文本",
3693
- "value": {
3694
- "type": "string",
3695
- "kind": "expression"
3696
- }
3697
- },
3698
- {
3699
- "name": "name",
3700
- "default": "-",
3701
- "description": "名称,提交表单的标识符",
3664
+ "name": "label-align",
3665
+ "default": "`left`",
3666
+ "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
3702
3667
  "value": {
3703
3668
  "type": "string",
3704
3669
  "kind": "expression"
3705
3670
  }
3706
3671
  },
3707
3672
  {
3708
- "name": "type",
3709
- "default": "`text`",
3710
- "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
3673
+ "name": "input-align",
3674
+ "default": "`left`",
3675
+ "description": "输入框对齐方式,可选值为 `center` `right`",
3711
3676
  "value": {
3712
3677
  "type": "string",
3713
3678
  "kind": "expression"
3714
3679
  }
3715
3680
  },
3716
3681
  {
3717
- "name": "size",
3718
- "default": "-",
3719
- "description": "大小,可选值为 `large`",
3682
+ "name": "error-message-align",
3683
+ "default": "`left`",
3684
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3720
3685
  "value": {
3721
3686
  "type": "string",
3722
3687
  "kind": "expression"
3723
3688
  }
3724
3689
  },
3725
3690
  {
3726
- "name": "maxlength",
3727
- "default": "-",
3728
- "description": "输入的最大字符数",
3729
- "value": {
3730
- "type": "number | string",
3731
- "kind": "expression"
3732
- }
3733
- },
3734
- {
3735
- "name": "placeholder",
3736
- "default": "-",
3737
- "description": "输入框占位提示文字",
3691
+ "name": "validate-trigger",
3692
+ "default": "`onBlur`",
3693
+ "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
3738
3694
  "value": {
3739
3695
  "type": "string",
3740
3696
  "kind": "expression"
3741
3697
  }
3742
3698
  },
3743
3699
  {
3744
- "name": "border",
3745
- "default": "`true`",
3746
- "description": "是否显示内边框",
3700
+ "name": "colon",
3701
+ "default": "`false`",
3702
+ "description": "是否在 label 后面添加冒号",
3747
3703
  "value": {
3748
3704
  "type": "boolean",
3749
3705
  "kind": "expression"
@@ -3752,7 +3708,7 @@
3752
3708
  {
3753
3709
  "name": "disabled",
3754
3710
  "default": "`false`",
3755
- "description": "是否禁用输入框",
3711
+ "description": "是否禁用表单中的所有输入框",
3756
3712
  "value": {
3757
3713
  "type": "boolean",
3758
3714
  "kind": "expression"
@@ -3761,587 +3717,649 @@
3761
3717
  {
3762
3718
  "name": "readonly",
3763
3719
  "default": "`false`",
3764
- "description": "是否只读",
3720
+ "description": "是否将表单中的所有输入框设置为只读",
3765
3721
  "value": {
3766
3722
  "type": "boolean",
3767
3723
  "kind": "expression"
3768
3724
  }
3769
3725
  },
3770
3726
  {
3771
- "name": "colon",
3727
+ "name": "validate-first",
3772
3728
  "default": "`false`",
3773
- "description": "是否在 label 后面添加冒号",
3729
+ "description": "是否在某一项校验不通过时停止校验",
3774
3730
  "value": {
3775
3731
  "type": "boolean",
3776
3732
  "kind": "expression"
3777
3733
  }
3778
3734
  },
3779
3735
  {
3780
- "name": "required",
3736
+ "name": "scroll-to-error",
3781
3737
  "default": "`false`",
3782
- "description": "是否显示表单必填星号",
3738
+ "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
3783
3739
  "value": {
3784
3740
  "type": "boolean",
3785
3741
  "kind": "expression"
3786
3742
  }
3787
3743
  },
3788
3744
  {
3789
- "name": "center",
3790
- "default": "`false`",
3791
- "description": "是否使内容垂直居中",
3745
+ "name": "show-error",
3746
+ "default": "`true`",
3747
+ "description": "是否在校验不通过时标红输入框",
3792
3748
  "value": {
3793
3749
  "type": "boolean",
3794
3750
  "kind": "expression"
3795
3751
  }
3796
3752
  },
3797
3753
  {
3798
- "name": "clearable",
3799
- "default": "`false`",
3800
- "description": "是否启用清除图标,点击清除图标后会清空输入框",
3754
+ "name": "show-error-message",
3755
+ "default": "`true`",
3756
+ "description": "是否在校验不通过时在输入框下方展示错误提示",
3801
3757
  "value": {
3802
3758
  "type": "boolean",
3803
3759
  "kind": "expression"
3804
3760
  }
3805
3761
  },
3806
3762
  {
3807
- "name": "clear-trigger",
3808
- "default": "`focus`",
3809
- "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
3763
+ "name": "submit-on-enter",
3764
+ "default": "`true`",
3765
+ "description": "是否在按下回车键时提交表单",
3810
3766
  "value": {
3811
- "type": "string",
3767
+ "type": "boolean",
3812
3768
  "kind": "expression"
3813
3769
  }
3814
- },
3770
+ }
3771
+ ]
3772
+ },
3773
+ {
3774
+ "name": "van-goods-action",
3775
+ "slots": [],
3776
+ "events": [],
3777
+ "attributes": [
3815
3778
  {
3816
- "name": "clickable",
3817
- "default": "`false`",
3818
- "description": "是否开启点击反馈",
3779
+ "name": "safe-area-inset-bottom",
3780
+ "default": "`true`",
3781
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
3819
3782
  "value": {
3820
3783
  "type": "boolean",
3821
3784
  "kind": "expression"
3822
3785
  }
3786
+ }
3787
+ ]
3788
+ },
3789
+ {
3790
+ "name": "van-goods-action-icon",
3791
+ "slots": [
3792
+ {
3793
+ "name": "default",
3794
+ "description": "文本内容"
3823
3795
  },
3824
3796
  {
3825
- "name": "is-link",
3826
- "default": "`false`",
3827
- "description": "是否展示右侧箭头并开启点击反馈",
3797
+ "name": "icon",
3798
+ "description": "自定义图标"
3799
+ }
3800
+ ],
3801
+ "events": [],
3802
+ "attributes": [
3803
+ {
3804
+ "name": "text",
3805
+ "default": "-",
3806
+ "description": "按钮文字",
3828
3807
  "value": {
3829
- "type": "boolean",
3808
+ "type": "string",
3830
3809
  "kind": "expression"
3831
3810
  }
3832
3811
  },
3833
3812
  {
3834
- "name": "autofocus",
3835
- "default": "`false`",
3836
- "description": "是否自动聚焦,iOS 系统不支持该属性",
3813
+ "name": "icon",
3814
+ "default": "-",
3815
+ "description": "图标",
3837
3816
  "value": {
3838
- "type": "boolean",
3817
+ "type": "string",
3839
3818
  "kind": "expression"
3840
3819
  }
3841
3820
  },
3842
3821
  {
3843
- "name": "show-word-limit",
3844
- "default": "`false`",
3845
- "description": "是否显示字数统计,需要设置`maxlength`属性",
3822
+ "name": "color",
3823
+ "default": "`#323233`",
3824
+ "description": "图标颜色",
3846
3825
  "value": {
3847
- "type": "boolean",
3826
+ "type": "string",
3848
3827
  "kind": "expression"
3849
3828
  }
3850
3829
  },
3851
3830
  {
3852
- "name": "error",
3853
- "default": "`false`",
3854
- "description": "是否将输入内容标红",
3831
+ "name": "icon-class",
3832
+ "default": "-",
3833
+ "description": "图标额外类名",
3855
3834
  "value": {
3856
- "type": "boolean",
3835
+ "type": "any",
3857
3836
  "kind": "expression"
3858
3837
  }
3859
3838
  },
3860
3839
  {
3861
- "name": "error-message",
3862
- "default": "-",
3863
- "description": "底部错误提示文案,为空时不展示",
3840
+ "name": "dot",
3841
+ "default": "`false`",
3842
+ "description": "是否显示图标右上角小红点",
3864
3843
  "value": {
3865
- "type": "string",
3844
+ "type": "boolean",
3866
3845
  "kind": "expression"
3867
3846
  }
3868
3847
  },
3869
3848
  {
3870
- "name": "formatter",
3849
+ "name": "badge",
3871
3850
  "default": "-",
3872
- "description": "输入内容格式化函数",
3851
+ "description": "图标右上角徽标的内容",
3873
3852
  "value": {
3874
- "type": "Function",
3853
+ "type": "number | string",
3875
3854
  "kind": "expression"
3876
3855
  }
3877
3856
  },
3878
3857
  {
3879
- "name": "format-trigger",
3880
- "default": "`onChange`",
3881
- "description": "格式化函数触发的时机,可选值为 `onBlur`",
3858
+ "name": "info",
3859
+ "default": "-",
3860
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
3882
3861
  "value": {
3883
- "type": "string",
3862
+ "type": "number | string",
3884
3863
  "kind": "expression"
3885
3864
  }
3886
3865
  },
3887
3866
  {
3888
- "name": "arrow-direction",
3889
- "default": "`right`",
3890
- "description": "箭头方向,可选值为 `left` `up` `down`",
3867
+ "name": "url",
3868
+ "default": "-",
3869
+ "description": "点击后跳转的链接地址",
3891
3870
  "value": {
3892
3871
  "type": "string",
3893
3872
  "kind": "expression"
3894
3873
  }
3895
3874
  },
3896
3875
  {
3897
- "name": "label-class",
3876
+ "name": "to",
3898
3877
  "default": "-",
3899
- "description": "左侧文本额外类名",
3878
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3900
3879
  "value": {
3901
- "type": "any",
3880
+ "type": "string | object",
3902
3881
  "kind": "expression"
3903
3882
  }
3904
3883
  },
3905
3884
  {
3906
- "name": "label-width",
3907
- "default": "`6.2em`",
3908
- "description": "左侧文本宽度,默认单位为`px`",
3885
+ "name": "replace",
3886
+ "default": "`false`",
3887
+ "description": "是否在跳转时替换当前页面历史",
3909
3888
  "value": {
3910
- "type": "number | string",
3889
+ "type": "boolean",
3911
3890
  "kind": "expression"
3912
3891
  }
3913
- },
3892
+ }
3893
+ ]
3894
+ },
3895
+ {
3896
+ "name": "van-goods-action-button",
3897
+ "slots": [
3914
3898
  {
3915
- "name": "label-align",
3916
- "default": "`left`",
3917
- "description": "左侧文本对齐方式,可选值为 `center` `right`",
3899
+ "name": "default",
3900
+ "description": "按钮显示内容"
3901
+ }
3902
+ ],
3903
+ "events": [],
3904
+ "attributes": [
3905
+ {
3906
+ "name": "text",
3907
+ "default": "-",
3908
+ "description": "按钮文字",
3918
3909
  "value": {
3919
3910
  "type": "string",
3920
3911
  "kind": "expression"
3921
3912
  }
3922
3913
  },
3923
3914
  {
3924
- "name": "input-align",
3925
- "default": "`left`",
3926
- "description": "输入框对齐方式,可选值为 `center` `right`",
3915
+ "name": "type",
3916
+ "default": "`default`",
3917
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
3927
3918
  "value": {
3928
3919
  "type": "string",
3929
3920
  "kind": "expression"
3930
3921
  }
3931
3922
  },
3932
3923
  {
3933
- "name": "error-message-align",
3934
- "default": "`left`",
3935
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
3924
+ "name": "color",
3925
+ "default": "-",
3926
+ "description": "按钮颜色,支持传入`linear-gradient`渐变色",
3936
3927
  "value": {
3937
3928
  "type": "string",
3938
3929
  "kind": "expression"
3939
3930
  }
3940
3931
  },
3941
3932
  {
3942
- "name": "autosize",
3943
- "default": "`false`",
3944
- "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
3933
+ "name": "icon",
3934
+ "default": "-",
3935
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
3945
3936
  "value": {
3946
- "type": "boolean | object",
3937
+ "type": "string",
3947
3938
  "kind": "expression"
3948
3939
  }
3949
3940
  },
3950
3941
  {
3951
- "name": "left-icon",
3952
- "default": "-",
3953
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
3942
+ "name": "disabled",
3943
+ "default": "`false`",
3944
+ "description": "是否禁用按钮",
3954
3945
  "value": {
3955
- "type": "string",
3946
+ "type": "boolean",
3956
3947
  "kind": "expression"
3957
3948
  }
3958
3949
  },
3959
3950
  {
3960
- "name": "right-icon",
3961
- "default": "-",
3962
- "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
3951
+ "name": "loading",
3952
+ "default": "`false`",
3953
+ "description": "是否显示为加载状态",
3963
3954
  "value": {
3964
- "type": "string",
3955
+ "type": "boolean",
3965
3956
  "kind": "expression"
3966
3957
  }
3967
3958
  },
3968
3959
  {
3969
- "name": "icon-prefix",
3970
- "default": "`van-icon`",
3971
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
3960
+ "name": "url",
3961
+ "default": "-",
3962
+ "description": "点击后跳转的链接地址",
3972
3963
  "value": {
3973
3964
  "type": "string",
3974
3965
  "kind": "expression"
3975
3966
  }
3976
3967
  },
3977
3968
  {
3978
- "name": "rules",
3969
+ "name": "to",
3979
3970
  "default": "-",
3980
- "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
3971
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3981
3972
  "value": {
3982
- "type": "Rule[]",
3973
+ "type": "string | object",
3983
3974
  "kind": "expression"
3984
3975
  }
3985
3976
  },
3986
3977
  {
3987
- "name": "autocomplete",
3988
- "default": "-",
3989
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
3978
+ "name": "replace",
3979
+ "default": "`false`",
3980
+ "description": "是否在跳转时替换当前页面历史",
3990
3981
  "value": {
3991
- "type": "string",
3982
+ "type": "boolean",
3992
3983
  "kind": "expression"
3993
3984
  }
3994
3985
  }
3995
3986
  ]
3996
3987
  },
3997
3988
  {
3998
- "name": "van-form",
3989
+ "name": "van-field",
3999
3990
  "slots": [
4000
3991
  {
4001
- "name": "default",
4002
- "description": "表单内容"
3992
+ "name": "label",
3993
+ "description": "自定义输入框 label 标签"
3994
+ },
3995
+ {
3996
+ "name": "input",
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": "自定义输入框最右侧的额外内容"
4003
4014
  }
4004
4015
  ],
4005
4016
  "events": [
4006
4017
  {
4007
- "name": "submit",
4008
- "description": "提交表单且验证通过后触发"
4018
+ "name": "input",
4019
+ "description": "输入框内容变化时触发"
4009
4020
  },
4010
4021
  {
4011
- "name": "failed",
4012
- "description": "提交表单且验证不通过后触发"
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": "点击右侧图标时触发"
4013
4048
  }
4014
4049
  ],
4015
4050
  "attributes": [
4016
4051
  {
4017
- "name": "label-width",
4018
- "default": "`6.2em`",
4019
- "description": "表单项 label 宽度,默认单位为`px`",
4052
+ "name": "v-model (value)",
4053
+ "default": "-",
4054
+ "description": "当前输入的值",
4020
4055
  "value": {
4021
4056
  "type": "number | string",
4022
4057
  "kind": "expression"
4023
4058
  }
4024
4059
  },
4025
4060
  {
4026
- "name": "label-align",
4027
- "default": "`left`",
4028
- "description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
4061
+ "name": "label",
4062
+ "default": "-",
4063
+ "description": "输入框左侧文本",
4029
4064
  "value": {
4030
4065
  "type": "string",
4031
4066
  "kind": "expression"
4032
4067
  }
4033
4068
  },
4034
4069
  {
4035
- "name": "input-align",
4036
- "default": "`left`",
4037
- "description": "输入框对齐方式,可选值为 `center` `right`",
4070
+ "name": "name",
4071
+ "default": "-",
4072
+ "description": "名称,提交表单的标识符",
4038
4073
  "value": {
4039
4074
  "type": "string",
4040
4075
  "kind": "expression"
4041
4076
  }
4042
4077
  },
4043
4078
  {
4044
- "name": "error-message-align",
4045
- "default": "`left`",
4046
- "description": "错误提示文案对齐方式,可选值为 `center` `right`",
4079
+ "name": "type",
4080
+ "default": "`text`",
4081
+ "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
4047
4082
  "value": {
4048
4083
  "type": "string",
4049
4084
  "kind": "expression"
4050
4085
  }
4051
4086
  },
4052
4087
  {
4053
- "name": "validate-trigger",
4054
- "default": "`onBlur`",
4055
- "description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
4088
+ "name": "size",
4089
+ "default": "-",
4090
+ "description": "大小,可选值为 `large`",
4056
4091
  "value": {
4057
4092
  "type": "string",
4058
4093
  "kind": "expression"
4059
4094
  }
4060
4095
  },
4061
4096
  {
4062
- "name": "colon",
4063
- "default": "`false`",
4064
- "description": "是否在 label 后面添加冒号",
4097
+ "name": "maxlength",
4098
+ "default": "-",
4099
+ "description": "输入的最大字符数",
4065
4100
  "value": {
4066
- "type": "boolean",
4101
+ "type": "number | string",
4067
4102
  "kind": "expression"
4068
4103
  }
4069
4104
  },
4070
4105
  {
4071
- "name": "disabled",
4072
- "default": "`false`",
4073
- "description": "是否禁用表单中的所有输入框",
4106
+ "name": "placeholder",
4107
+ "default": "-",
4108
+ "description": "输入框占位提示文字",
4074
4109
  "value": {
4075
- "type": "boolean",
4110
+ "type": "string",
4076
4111
  "kind": "expression"
4077
4112
  }
4078
4113
  },
4079
4114
  {
4080
- "name": "readonly",
4081
- "default": "`false`",
4082
- "description": "是否将表单中的所有输入框设置为只读",
4115
+ "name": "border",
4116
+ "default": "`true`",
4117
+ "description": "是否显示内边框",
4083
4118
  "value": {
4084
4119
  "type": "boolean",
4085
4120
  "kind": "expression"
4086
4121
  }
4087
4122
  },
4088
4123
  {
4089
- "name": "validate-first",
4124
+ "name": "disabled",
4090
4125
  "default": "`false`",
4091
- "description": "是否在某一项校验不通过时停止校验",
4126
+ "description": "是否禁用输入框",
4092
4127
  "value": {
4093
4128
  "type": "boolean",
4094
4129
  "kind": "expression"
4095
4130
  }
4096
4131
  },
4097
4132
  {
4098
- "name": "scroll-to-error",
4133
+ "name": "readonly",
4099
4134
  "default": "`false`",
4100
- "description": "是否在提交表单且校验不通过时滚动至错误的表单项",
4135
+ "description": "是否只读",
4101
4136
  "value": {
4102
4137
  "type": "boolean",
4103
4138
  "kind": "expression"
4104
4139
  }
4105
4140
  },
4106
4141
  {
4107
- "name": "show-error",
4108
- "default": "`true`",
4109
- "description": "是否在校验不通过时标红输入框",
4142
+ "name": "colon",
4143
+ "default": "`false`",
4144
+ "description": "是否在 label 后面添加冒号",
4110
4145
  "value": {
4111
4146
  "type": "boolean",
4112
4147
  "kind": "expression"
4113
4148
  }
4114
4149
  },
4115
4150
  {
4116
- "name": "show-error-message",
4117
- "default": "`true`",
4118
- "description": "是否在校验不通过时在输入框下方展示错误提示",
4151
+ "name": "required",
4152
+ "default": "`false`",
4153
+ "description": "是否显示表单必填星号",
4119
4154
  "value": {
4120
4155
  "type": "boolean",
4121
4156
  "kind": "expression"
4122
4157
  }
4123
4158
  },
4124
4159
  {
4125
- "name": "submit-on-enter",
4126
- "default": "`true`",
4127
- "description": "是否在按下回车键时提交表单",
4160
+ "name": "center",
4161
+ "default": "`false`",
4162
+ "description": "是否使内容垂直居中",
4128
4163
  "value": {
4129
4164
  "type": "boolean",
4130
4165
  "kind": "expression"
4131
4166
  }
4132
- }
4133
- ]
4134
- },
4135
- {
4136
- "name": "van-goods-action",
4137
- "slots": [],
4138
- "events": [],
4139
- "attributes": [
4167
+ },
4140
4168
  {
4141
- "name": "safe-area-inset-bottom",
4142
- "default": "`true`",
4143
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
4169
+ "name": "clearable",
4170
+ "default": "`false`",
4171
+ "description": "是否启用清除图标,点击清除图标后会清空输入框",
4144
4172
  "value": {
4145
4173
  "type": "boolean",
4146
4174
  "kind": "expression"
4147
4175
  }
4148
- }
4149
- ]
4150
- },
4151
- {
4152
- "name": "van-goods-action-icon",
4153
- "slots": [
4154
- {
4155
- "name": "default",
4156
- "description": "文本内容"
4157
4176
  },
4158
4177
  {
4159
- "name": "icon",
4160
- "description": "自定义图标"
4161
- }
4162
- ],
4163
- "events": [],
4164
- "attributes": [
4165
- {
4166
- "name": "text",
4167
- "default": "-",
4168
- "description": "按钮文字",
4178
+ "name": "clear-trigger",
4179
+ "default": "`focus`",
4180
+ "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
4169
4181
  "value": {
4170
4182
  "type": "string",
4171
4183
  "kind": "expression"
4172
4184
  }
4173
4185
  },
4174
4186
  {
4175
- "name": "icon",
4176
- "default": "-",
4177
- "description": "图标",
4187
+ "name": "clickable",
4188
+ "default": "`false`",
4189
+ "description": "是否开启点击反馈",
4178
4190
  "value": {
4179
- "type": "string",
4191
+ "type": "boolean",
4180
4192
  "kind": "expression"
4181
4193
  }
4182
4194
  },
4183
4195
  {
4184
- "name": "color",
4185
- "default": "`#323233`",
4186
- "description": "图标颜色",
4196
+ "name": "is-link",
4197
+ "default": "`false`",
4198
+ "description": "是否展示右侧箭头并开启点击反馈",
4187
4199
  "value": {
4188
- "type": "string",
4200
+ "type": "boolean",
4189
4201
  "kind": "expression"
4190
4202
  }
4191
4203
  },
4192
4204
  {
4193
- "name": "icon-class",
4194
- "default": "-",
4195
- "description": "图标额外类名",
4205
+ "name": "autofocus",
4206
+ "default": "`false`",
4207
+ "description": "是否自动聚焦,iOS 系统不支持该属性",
4196
4208
  "value": {
4197
- "type": "any",
4209
+ "type": "boolean",
4198
4210
  "kind": "expression"
4199
4211
  }
4200
4212
  },
4201
4213
  {
4202
- "name": "dot",
4214
+ "name": "show-word-limit",
4203
4215
  "default": "`false`",
4204
- "description": "是否显示图标右上角小红点",
4216
+ "description": "是否显示字数统计,需要设置`maxlength`属性",
4205
4217
  "value": {
4206
4218
  "type": "boolean",
4207
4219
  "kind": "expression"
4208
4220
  }
4209
4221
  },
4210
4222
  {
4211
- "name": "badge",
4212
- "default": "-",
4213
- "description": "图标右上角徽标的内容",
4223
+ "name": "error",
4224
+ "default": "`false`",
4225
+ "description": "是否将输入内容标红",
4214
4226
  "value": {
4215
- "type": "number | string",
4227
+ "type": "boolean",
4216
4228
  "kind": "expression"
4217
4229
  }
4218
4230
  },
4219
4231
  {
4220
- "name": "info",
4232
+ "name": "error-message",
4221
4233
  "default": "-",
4222
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
4234
+ "description": "底部错误提示文案,为空时不展示",
4223
4235
  "value": {
4224
- "type": "number | string",
4236
+ "type": "string",
4225
4237
  "kind": "expression"
4226
4238
  }
4227
4239
  },
4228
4240
  {
4229
- "name": "url",
4241
+ "name": "formatter",
4230
4242
  "default": "-",
4231
- "description": "点击后跳转的链接地址",
4243
+ "description": "输入内容格式化函数",
4232
4244
  "value": {
4233
- "type": "string",
4245
+ "type": "Function",
4234
4246
  "kind": "expression"
4235
4247
  }
4236
4248
  },
4237
4249
  {
4238
- "name": "to",
4239
- "default": "-",
4240
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4250
+ "name": "format-trigger",
4251
+ "default": "`onChange`",
4252
+ "description": "格式化函数触发的时机,可选值为 `onBlur`",
4241
4253
  "value": {
4242
- "type": "string | object",
4254
+ "type": "string",
4243
4255
  "kind": "expression"
4244
4256
  }
4245
4257
  },
4246
4258
  {
4247
- "name": "replace",
4248
- "default": "`false`",
4249
- "description": "是否在跳转时替换当前页面历史",
4259
+ "name": "arrow-direction",
4260
+ "default": "`right`",
4261
+ "description": "箭头方向,可选值为 `left` `up` `down`",
4250
4262
  "value": {
4251
- "type": "boolean",
4263
+ "type": "string",
4252
4264
  "kind": "expression"
4253
4265
  }
4254
- }
4255
- ]
4256
- },
4257
- {
4258
- "name": "van-goods-action-button",
4259
- "slots": [
4260
- {
4261
- "name": "default",
4262
- "description": "按钮显示内容"
4263
- }
4264
- ],
4265
- "events": [],
4266
- "attributes": [
4266
+ },
4267
4267
  {
4268
- "name": "text",
4268
+ "name": "label-class",
4269
4269
  "default": "-",
4270
- "description": "按钮文字",
4270
+ "description": "左侧文本额外类名",
4271
4271
  "value": {
4272
- "type": "string",
4272
+ "type": "any",
4273
4273
  "kind": "expression"
4274
4274
  }
4275
4275
  },
4276
4276
  {
4277
- "name": "type",
4278
- "default": "`default`",
4279
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
4277
+ "name": "label-width",
4278
+ "default": "`6.2em`",
4279
+ "description": "左侧文本宽度,默认单位为`px`",
4280
+ "value": {
4281
+ "type": "number | string",
4282
+ "kind": "expression"
4283
+ }
4284
+ },
4285
+ {
4286
+ "name": "label-align",
4287
+ "default": "`left`",
4288
+ "description": "左侧文本对齐方式,可选值为 `center` `right`",
4280
4289
  "value": {
4281
4290
  "type": "string",
4282
4291
  "kind": "expression"
4283
4292
  }
4284
4293
  },
4285
4294
  {
4286
- "name": "color",
4287
- "default": "-",
4288
- "description": "按钮颜色,支持传入`linear-gradient`渐变色",
4295
+ "name": "input-align",
4296
+ "default": "`left`",
4297
+ "description": "输入框对齐方式,可选值为 `center` `right`",
4289
4298
  "value": {
4290
4299
  "type": "string",
4291
4300
  "kind": "expression"
4292
4301
  }
4293
4302
  },
4294
4303
  {
4295
- "name": "icon",
4296
- "default": "-",
4297
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
4304
+ "name": "error-message-align",
4305
+ "default": "`left`",
4306
+ "description": "错误提示文案对齐方式,可选值为 `center` `right`",
4298
4307
  "value": {
4299
4308
  "type": "string",
4300
4309
  "kind": "expression"
4301
4310
  }
4302
4311
  },
4303
4312
  {
4304
- "name": "disabled",
4313
+ "name": "autosize",
4305
4314
  "default": "`false`",
4306
- "description": "是否禁用按钮",
4315
+ "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
4307
4316
  "value": {
4308
- "type": "boolean",
4317
+ "type": "boolean | object",
4309
4318
  "kind": "expression"
4310
4319
  }
4311
4320
  },
4312
4321
  {
4313
- "name": "loading",
4314
- "default": "`false`",
4315
- "description": "是否显示为加载状态",
4322
+ "name": "left-icon",
4323
+ "default": "-",
4324
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
4316
4325
  "value": {
4317
- "type": "boolean",
4326
+ "type": "string",
4318
4327
  "kind": "expression"
4319
4328
  }
4320
4329
  },
4321
4330
  {
4322
- "name": "url",
4331
+ "name": "right-icon",
4323
4332
  "default": "-",
4324
- "description": "点击后跳转的链接地址",
4333
+ "description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
4325
4334
  "value": {
4326
4335
  "type": "string",
4327
4336
  "kind": "expression"
4328
4337
  }
4329
4338
  },
4330
4339
  {
4331
- "name": "to",
4340
+ "name": "icon-prefix",
4341
+ "default": "`van-icon`",
4342
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
4343
+ "value": {
4344
+ "type": "string",
4345
+ "kind": "expression"
4346
+ }
4347
+ },
4348
+ {
4349
+ "name": "rules",
4332
4350
  "default": "-",
4333
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
4351
+ "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
4334
4352
  "value": {
4335
- "type": "string | object",
4353
+ "type": "Rule[]",
4336
4354
  "kind": "expression"
4337
4355
  }
4338
4356
  },
4339
4357
  {
4340
- "name": "replace",
4341
- "default": "`false`",
4342
- "description": "是否在跳转时替换当前页面历史",
4358
+ "name": "autocomplete",
4359
+ "default": "-",
4360
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
4343
4361
  "value": {
4344
- "type": "boolean",
4362
+ "type": "string",
4345
4363
  "kind": "expression"
4346
4364
  }
4347
4365
  }