vant 2.12.42 → 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.
- package/README.md +3 -3
- package/README.zh-CN.md +4 -4
- package/es/collapse-item/index.js +5 -1
- package/es/index.js +1 -1
- package/lib/collapse-item/index.js +5 -1
- package/lib/index.js +1 -1
- package/lib/vant.js +6 -2
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +247 -243
- package/vetur/tags.json +82 -81
- package/vetur/web-types.json +663 -654
package/vetur/web-types.json
CHANGED
@@ -2,7 +2,7 @@
|
|
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.43",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -204,156 +204,6 @@
|
|
204
204
|
}
|
205
205
|
]
|
206
206
|
},
|
207
|
-
{
|
208
|
-
"name": "van-area",
|
209
|
-
"slots": [
|
210
|
-
{
|
211
|
-
"name": "title",
|
212
|
-
"description": "自定义标题内容"
|
213
|
-
},
|
214
|
-
{
|
215
|
-
"name": "columns-top",
|
216
|
-
"description": "自定义选项上方内容"
|
217
|
-
},
|
218
|
-
{
|
219
|
-
"name": "columns-bottom",
|
220
|
-
"description": "自定义选项下方内容"
|
221
|
-
}
|
222
|
-
],
|
223
|
-
"events": [
|
224
|
-
{
|
225
|
-
"name": "confirm",
|
226
|
-
"description": "点击右上方完成按钮"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"name": "cancel",
|
230
|
-
"description": "点击取消按钮时"
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"name": "change",
|
234
|
-
"description": "选项改变时触发"
|
235
|
-
}
|
236
|
-
],
|
237
|
-
"attributes": [
|
238
|
-
{
|
239
|
-
"name": "value",
|
240
|
-
"default": "-",
|
241
|
-
"description": "当前选中的省市区`code`",
|
242
|
-
"value": {
|
243
|
-
"type": "string",
|
244
|
-
"kind": "expression"
|
245
|
-
}
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"name": "title",
|
249
|
-
"default": "-",
|
250
|
-
"description": "顶部栏标题",
|
251
|
-
"value": {
|
252
|
-
"type": "string",
|
253
|
-
"kind": "expression"
|
254
|
-
}
|
255
|
-
},
|
256
|
-
{
|
257
|
-
"name": "confirm-button-text",
|
258
|
-
"default": "`确认`",
|
259
|
-
"description": "确认按钮文字",
|
260
|
-
"value": {
|
261
|
-
"type": "string",
|
262
|
-
"kind": "expression"
|
263
|
-
}
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"name": "cancel-button-text",
|
267
|
-
"default": "`取消`",
|
268
|
-
"description": "取消按钮文字",
|
269
|
-
"value": {
|
270
|
-
"type": "string",
|
271
|
-
"kind": "expression"
|
272
|
-
}
|
273
|
-
},
|
274
|
-
{
|
275
|
-
"name": "area-list",
|
276
|
-
"default": "-",
|
277
|
-
"description": "省市区数据,格式见下方",
|
278
|
-
"value": {
|
279
|
-
"type": "object",
|
280
|
-
"kind": "expression"
|
281
|
-
}
|
282
|
-
},
|
283
|
-
{
|
284
|
-
"name": "columns-placeholder",
|
285
|
-
"default": "`[]`",
|
286
|
-
"description": "列占位提示文字",
|
287
|
-
"value": {
|
288
|
-
"type": "string[]",
|
289
|
-
"kind": "expression"
|
290
|
-
}
|
291
|
-
},
|
292
|
-
{
|
293
|
-
"name": "loading",
|
294
|
-
"default": "`false`",
|
295
|
-
"description": "是否显示加载状态",
|
296
|
-
"value": {
|
297
|
-
"type": "boolean",
|
298
|
-
"kind": "expression"
|
299
|
-
}
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"name": "readonly",
|
303
|
-
"default": "`false`",
|
304
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
305
|
-
"value": {
|
306
|
-
"type": "boolean",
|
307
|
-
"kind": "expression"
|
308
|
-
}
|
309
|
-
},
|
310
|
-
{
|
311
|
-
"name": "item-height",
|
312
|
-
"default": "`44`",
|
313
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
314
|
-
"value": {
|
315
|
-
"type": "number | string",
|
316
|
-
"kind": "expression"
|
317
|
-
}
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"name": "columns-num",
|
321
|
-
"default": "`3`",
|
322
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
323
|
-
"value": {
|
324
|
-
"type": "number | string",
|
325
|
-
"kind": "expression"
|
326
|
-
}
|
327
|
-
},
|
328
|
-
{
|
329
|
-
"name": "visible-item-count",
|
330
|
-
"default": "`6`",
|
331
|
-
"description": "可见的选项个数",
|
332
|
-
"value": {
|
333
|
-
"type": "number | string",
|
334
|
-
"kind": "expression"
|
335
|
-
}
|
336
|
-
},
|
337
|
-
{
|
338
|
-
"name": "swipe-duration",
|
339
|
-
"default": "`1000`",
|
340
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
341
|
-
"value": {
|
342
|
-
"type": "number | string",
|
343
|
-
"kind": "expression"
|
344
|
-
}
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"name": "is-oversea-code",
|
348
|
-
"default": "-",
|
349
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
350
|
-
"value": {
|
351
|
-
"type": "() => boolean",
|
352
|
-
"kind": "expression"
|
353
|
-
}
|
354
|
-
}
|
355
|
-
]
|
356
|
-
},
|
357
207
|
{
|
358
208
|
"name": "van-address-edit",
|
359
209
|
"slots": [
|
@@ -602,112 +452,52 @@
|
|
602
452
|
]
|
603
453
|
},
|
604
454
|
{
|
605
|
-
"name": "van-
|
455
|
+
"name": "van-badge",
|
606
456
|
"slots": [
|
607
457
|
{
|
608
458
|
"name": "default",
|
609
|
-
"description": "
|
610
|
-
},
|
611
|
-
{
|
612
|
-
"name": "top",
|
613
|
-
"description": "在顶部插入内容"
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"name": "item-bottom",
|
617
|
-
"description": "在列表项底部插入内容"
|
618
|
-
},
|
619
|
-
{
|
620
|
-
"name": "tag",
|
621
|
-
"description": "列表项标签内容自定义"
|
622
|
-
}
|
623
|
-
],
|
624
|
-
"events": [
|
625
|
-
{
|
626
|
-
"name": "add",
|
627
|
-
"description": "点击新增按钮时触发"
|
628
|
-
},
|
629
|
-
{
|
630
|
-
"name": "edit",
|
631
|
-
"description": "点击编辑按钮时触发"
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"name": "select",
|
635
|
-
"description": "切换选中的地址时触发"
|
636
|
-
},
|
637
|
-
{
|
638
|
-
"name": "edit-disabled",
|
639
|
-
"description": "编辑不可配送的地址时触发"
|
640
|
-
},
|
641
|
-
{
|
642
|
-
"name": "select-disabled",
|
643
|
-
"description": "选中不可配送的地址时触发"
|
459
|
+
"description": "徽标包裹的子元素"
|
644
460
|
},
|
645
461
|
{
|
646
|
-
"name": "
|
647
|
-
"description": "
|
462
|
+
"name": "content",
|
463
|
+
"description": "自定义徽标内容"
|
648
464
|
}
|
649
465
|
],
|
466
|
+
"events": [],
|
650
467
|
"attributes": [
|
651
468
|
{
|
652
|
-
"name": "
|
469
|
+
"name": "content",
|
653
470
|
"default": "-",
|
654
|
-
"description": "
|
655
|
-
"value": {
|
656
|
-
"type": "string",
|
657
|
-
"kind": "expression"
|
658
|
-
}
|
659
|
-
},
|
660
|
-
{
|
661
|
-
"name": "list",
|
662
|
-
"default": "`[]`",
|
663
|
-
"description": "地址列表",
|
664
|
-
"value": {
|
665
|
-
"type": "Address[]",
|
666
|
-
"kind": "expression"
|
667
|
-
}
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"name": "disabled-list",
|
671
|
-
"default": "`[]`",
|
672
|
-
"description": "不可配送地址列表",
|
471
|
+
"description": "徽标内容",
|
673
472
|
"value": {
|
674
|
-
"type": "
|
473
|
+
"type": "number | string",
|
675
474
|
"kind": "expression"
|
676
475
|
}
|
677
476
|
},
|
678
477
|
{
|
679
|
-
"name": "
|
680
|
-
"default": "
|
681
|
-
"description": "
|
478
|
+
"name": "color",
|
479
|
+
"default": "`#ee0a24`",
|
480
|
+
"description": "徽标背景颜色",
|
682
481
|
"value": {
|
683
482
|
"type": "string",
|
684
483
|
"kind": "expression"
|
685
484
|
}
|
686
485
|
},
|
687
486
|
{
|
688
|
-
"name": "
|
689
|
-
"default": "`
|
690
|
-
"description": "
|
487
|
+
"name": "dot",
|
488
|
+
"default": "`false`",
|
489
|
+
"description": "是否展示为小红点",
|
691
490
|
"value": {
|
692
491
|
"type": "boolean",
|
693
492
|
"kind": "expression"
|
694
493
|
}
|
695
494
|
},
|
696
495
|
{
|
697
|
-
"name": "
|
698
|
-
"default": "`新增地址`",
|
699
|
-
"description": "底部按钮文字",
|
700
|
-
"value": {
|
701
|
-
"type": "string",
|
702
|
-
"kind": "expression"
|
703
|
-
}
|
704
|
-
},
|
705
|
-
{
|
706
|
-
"name": "default-tag-text",
|
496
|
+
"name": "max",
|
707
497
|
"default": "-",
|
708
|
-
"description": "
|
498
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
|
709
499
|
"value": {
|
710
|
-
"type": "string",
|
500
|
+
"type": "number | string",
|
711
501
|
"kind": "expression"
|
712
502
|
}
|
713
503
|
}
|
@@ -941,19 +731,169 @@
|
|
941
731
|
]
|
942
732
|
},
|
943
733
|
{
|
944
|
-
"name": "van-
|
734
|
+
"name": "van-area",
|
945
735
|
"slots": [
|
946
736
|
{
|
947
737
|
"name": "title",
|
948
|
-
"description": "
|
949
|
-
},
|
950
|
-
{
|
951
|
-
"name": "footer",
|
952
|
-
"description": "自定义底部区域内容"
|
738
|
+
"description": "自定义标题内容"
|
953
739
|
},
|
954
740
|
{
|
955
|
-
"name": "top
|
956
|
-
"description": "
|
741
|
+
"name": "columns-top",
|
742
|
+
"description": "自定义选项上方内容"
|
743
|
+
},
|
744
|
+
{
|
745
|
+
"name": "columns-bottom",
|
746
|
+
"description": "自定义选项下方内容"
|
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`",
|
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": "自定义日期上方的提示信息"
|
957
897
|
},
|
958
898
|
{
|
959
899
|
"name": "bottom-info",
|
@@ -1448,6 +1388,107 @@
|
|
1448
1388
|
}
|
1449
1389
|
]
|
1450
1390
|
},
|
1391
|
+
{
|
1392
|
+
"name": "van-cascader",
|
1393
|
+
"slots": [
|
1394
|
+
{
|
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
|
+
},
|
1451
1492
|
{
|
1452
1493
|
"name": "van-cell-group",
|
1453
1494
|
"slots": [
|
@@ -1691,153 +1732,112 @@
|
|
1691
1732
|
]
|
1692
1733
|
},
|
1693
1734
|
{
|
1694
|
-
"name": "van-
|
1735
|
+
"name": "van-address-list",
|
1695
1736
|
"slots": [
|
1696
1737
|
{
|
1697
|
-
"name": "
|
1698
|
-
"description": "
|
1738
|
+
"name": "default",
|
1739
|
+
"description": "在列表下方插入内容"
|
1699
1740
|
},
|
1700
1741
|
{
|
1701
|
-
"name": "
|
1702
|
-
"description": "
|
1742
|
+
"name": "top",
|
1743
|
+
"description": "在顶部插入内容"
|
1744
|
+
},
|
1745
|
+
{
|
1746
|
+
"name": "item-bottom",
|
1747
|
+
"description": "在列表项底部插入内容"
|
1748
|
+
},
|
1749
|
+
{
|
1750
|
+
"name": "tag",
|
1751
|
+
"description": "列表项标签内容自定义"
|
1703
1752
|
}
|
1704
1753
|
],
|
1705
1754
|
"events": [
|
1706
1755
|
{
|
1707
|
-
"name": "
|
1708
|
-
"description": "
|
1756
|
+
"name": "add",
|
1757
|
+
"description": "点击新增按钮时触发"
|
1709
1758
|
},
|
1710
1759
|
{
|
1711
|
-
"name": "
|
1712
|
-
"description": "
|
1760
|
+
"name": "edit",
|
1761
|
+
"description": "点击编辑按钮时触发"
|
1713
1762
|
},
|
1714
1763
|
{
|
1715
|
-
"name": "
|
1716
|
-
"description": "
|
1764
|
+
"name": "select",
|
1765
|
+
"description": "切换选中的地址时触发"
|
1766
|
+
},
|
1767
|
+
{
|
1768
|
+
"name": "edit-disabled",
|
1769
|
+
"description": "编辑不可配送的地址时触发"
|
1770
|
+
},
|
1771
|
+
{
|
1772
|
+
"name": "select-disabled",
|
1773
|
+
"description": "选中不可配送的地址时触发"
|
1774
|
+
},
|
1775
|
+
{
|
1776
|
+
"name": "click-item",
|
1777
|
+
"description": "点击任意地址时触发"
|
1717
1778
|
}
|
1718
1779
|
],
|
1719
1780
|
"attributes": [
|
1720
1781
|
{
|
1721
|
-
"name": "
|
1782
|
+
"name": "v-model",
|
1722
1783
|
"default": "-",
|
1723
|
-
"description": "
|
1784
|
+
"description": "当前选中地址的 id",
|
1724
1785
|
"value": {
|
1725
1786
|
"type": "string",
|
1726
1787
|
"kind": "expression"
|
1727
1788
|
}
|
1728
1789
|
},
|
1729
1790
|
{
|
1730
|
-
"name": "
|
1731
|
-
"default": "-",
|
1732
|
-
"description": "选中项的值",
|
1733
|
-
"value": {
|
1734
|
-
"type": "string | number",
|
1735
|
-
"kind": "expression"
|
1736
|
-
}
|
1737
|
-
},
|
1738
|
-
{
|
1739
|
-
"name": "options",
|
1791
|
+
"name": "list",
|
1740
1792
|
"default": "`[]`",
|
1741
|
-
"description": "
|
1793
|
+
"description": "地址列表",
|
1742
1794
|
"value": {
|
1743
|
-
"type": "
|
1795
|
+
"type": "Address[]",
|
1744
1796
|
"kind": "expression"
|
1745
1797
|
}
|
1746
1798
|
},
|
1747
1799
|
{
|
1748
|
-
"name": "
|
1749
|
-
"default": "
|
1750
|
-
"description": "
|
1800
|
+
"name": "disabled-list",
|
1801
|
+
"default": "`[]`",
|
1802
|
+
"description": "不可配送地址列表",
|
1751
1803
|
"value": {
|
1752
|
-
"type": "
|
1804
|
+
"type": "Address[]",
|
1753
1805
|
"kind": "expression"
|
1754
1806
|
}
|
1755
1807
|
},
|
1756
1808
|
{
|
1757
|
-
"name": "
|
1758
|
-
"default": "
|
1759
|
-
"description": "
|
1809
|
+
"name": "disabled-text",
|
1810
|
+
"default": "-",
|
1811
|
+
"description": "不可配送提示文案",
|
1760
1812
|
"value": {
|
1761
1813
|
"type": "string",
|
1762
1814
|
"kind": "expression"
|
1763
1815
|
}
|
1764
1816
|
},
|
1765
1817
|
{
|
1766
|
-
"name": "
|
1767
|
-
"default": "`true`",
|
1768
|
-
"description": "是否显示关闭图标",
|
1769
|
-
"value": {
|
1770
|
-
"type": "boolean",
|
1771
|
-
"kind": "expression"
|
1772
|
-
}
|
1773
|
-
},
|
1774
|
-
{
|
1775
|
-
"name": "show-header",
|
1818
|
+
"name": "switchable",
|
1776
1819
|
"default": "`true`",
|
1777
|
-
"description": "
|
1820
|
+
"description": "是否允许切换地址",
|
1778
1821
|
"value": {
|
1779
1822
|
"type": "boolean",
|
1780
1823
|
"kind": "expression"
|
1781
1824
|
}
|
1782
1825
|
},
|
1783
1826
|
{
|
1784
|
-
"name": "
|
1785
|
-
"default": "
|
1786
|
-
"description": "
|
1787
|
-
"value": {
|
1788
|
-
"type": "object",
|
1789
|
-
"kind": "expression"
|
1790
|
-
}
|
1791
|
-
}
|
1792
|
-
]
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"name": "van-badge",
|
1796
|
-
"slots": [
|
1797
|
-
{
|
1798
|
-
"name": "default",
|
1799
|
-
"description": "徽标包裹的子元素"
|
1800
|
-
},
|
1801
|
-
{
|
1802
|
-
"name": "content",
|
1803
|
-
"description": "自定义徽标内容"
|
1804
|
-
}
|
1805
|
-
],
|
1806
|
-
"events": [],
|
1807
|
-
"attributes": [
|
1808
|
-
{
|
1809
|
-
"name": "content",
|
1810
|
-
"default": "-",
|
1811
|
-
"description": "徽标内容",
|
1812
|
-
"value": {
|
1813
|
-
"type": "number | string",
|
1814
|
-
"kind": "expression"
|
1815
|
-
}
|
1816
|
-
},
|
1817
|
-
{
|
1818
|
-
"name": "color",
|
1819
|
-
"default": "`#ee0a24`",
|
1820
|
-
"description": "徽标背景颜色",
|
1827
|
+
"name": "add-button-text",
|
1828
|
+
"default": "`新增地址`",
|
1829
|
+
"description": "底部按钮文字",
|
1821
1830
|
"value": {
|
1822
1831
|
"type": "string",
|
1823
1832
|
"kind": "expression"
|
1824
1833
|
}
|
1825
1834
|
},
|
1826
1835
|
{
|
1827
|
-
"name": "
|
1828
|
-
"default": "`false`",
|
1829
|
-
"description": "是否展示为小红点",
|
1830
|
-
"value": {
|
1831
|
-
"type": "boolean",
|
1832
|
-
"kind": "expression"
|
1833
|
-
}
|
1834
|
-
},
|
1835
|
-
{
|
1836
|
-
"name": "max",
|
1836
|
+
"name": "default-tag-text",
|
1837
1837
|
"default": "-",
|
1838
|
-
"description": "
|
1838
|
+
"description": "默认地址标签文字",
|
1839
1839
|
"value": {
|
1840
|
-
"type": "
|
1840
|
+
"type": "string",
|
1841
1841
|
"kind": "expression"
|
1842
1842
|
}
|
1843
1843
|
}
|
@@ -2368,6 +2368,15 @@
|
|
2368
2368
|
"kind": "expression"
|
2369
2369
|
}
|
2370
2370
|
},
|
2371
|
+
{
|
2372
|
+
"name": "lazy-render",
|
2373
|
+
"default": "`true`",
|
2374
|
+
"description": "是否在首次展开时才渲染面板内容",
|
2375
|
+
"value": {
|
2376
|
+
"type": "boolean",
|
2377
|
+
"kind": "expression"
|
2378
|
+
}
|
2379
|
+
},
|
2371
2380
|
{
|
2372
2381
|
"name": "title-class",
|
2373
2382
|
"default": "-",
|
@@ -3624,453 +3633,488 @@
|
|
3624
3633
|
]
|
3625
3634
|
},
|
3626
3635
|
{
|
3627
|
-
"name": "van-
|
3636
|
+
"name": "van-form",
|
3628
3637
|
"slots": [
|
3629
3638
|
{
|
3630
|
-
"name": "
|
3631
|
-
"description": "
|
3632
|
-
},
|
3633
|
-
{
|
3634
|
-
"name": "input",
|
3635
|
-
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3636
|
-
},
|
3637
|
-
{
|
3638
|
-
"name": "left-icon",
|
3639
|
-
"description": "自定义输入框头部图标"
|
3640
|
-
},
|
3641
|
-
{
|
3642
|
-
"name": "right-icon",
|
3643
|
-
"description": "自定义输入框尾部图标"
|
3644
|
-
},
|
3645
|
-
{
|
3646
|
-
"name": "button",
|
3647
|
-
"description": "自定义输入框尾部按钮"
|
3648
|
-
},
|
3649
|
-
{
|
3650
|
-
"name": "extra",
|
3651
|
-
"description": "自定义输入框最右侧的额外内容"
|
3639
|
+
"name": "default",
|
3640
|
+
"description": "表单内容"
|
3652
3641
|
}
|
3653
3642
|
],
|
3654
3643
|
"events": [
|
3655
3644
|
{
|
3656
|
-
"name": "
|
3657
|
-
"description": "
|
3658
|
-
},
|
3659
|
-
{
|
3660
|
-
"name": "focus",
|
3661
|
-
"description": "输入框获得焦点时触发"
|
3662
|
-
},
|
3663
|
-
{
|
3664
|
-
"name": "blur",
|
3665
|
-
"description": "输入框失去焦点时触发"
|
3666
|
-
},
|
3667
|
-
{
|
3668
|
-
"name": "clear",
|
3669
|
-
"description": "点击清除按钮时触发"
|
3670
|
-
},
|
3671
|
-
{
|
3672
|
-
"name": "click",
|
3673
|
-
"description": "点击 Field 时触发"
|
3674
|
-
},
|
3675
|
-
{
|
3676
|
-
"name": "click-input",
|
3677
|
-
"description": "点击输入区域时触发"
|
3678
|
-
},
|
3679
|
-
{
|
3680
|
-
"name": "click-left-icon",
|
3681
|
-
"description": "点击左侧图标时触发"
|
3645
|
+
"name": "submit",
|
3646
|
+
"description": "提交表单且验证通过后触发"
|
3682
3647
|
},
|
3683
3648
|
{
|
3684
|
-
"name": "
|
3685
|
-
"description": "
|
3649
|
+
"name": "failed",
|
3650
|
+
"description": "提交表单且验证不通过后触发"
|
3686
3651
|
}
|
3687
3652
|
],
|
3688
3653
|
"attributes": [
|
3689
3654
|
{
|
3690
|
-
"name": "
|
3691
|
-
"default": "
|
3692
|
-
"description": "
|
3655
|
+
"name": "label-width",
|
3656
|
+
"default": "`6.2em`",
|
3657
|
+
"description": "表单项 label 宽度,默认单位为`px`",
|
3693
3658
|
"value": {
|
3694
3659
|
"type": "number | string",
|
3695
3660
|
"kind": "expression"
|
3696
3661
|
}
|
3697
3662
|
},
|
3698
3663
|
{
|
3699
|
-
"name": "label",
|
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": "
|
3709
|
-
"default": "
|
3710
|
-
"description": "
|
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": "
|
3718
|
-
"default": "`
|
3719
|
-
"description": "
|
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": "
|
3727
|
-
"default": "
|
3728
|
-
"description": "
|
3691
|
+
"name": "validate-trigger",
|
3692
|
+
"default": "`onBlur`",
|
3693
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
|
3729
3694
|
"value": {
|
3730
3695
|
"type": "string",
|
3731
3696
|
"kind": "expression"
|
3732
3697
|
}
|
3733
3698
|
},
|
3734
3699
|
{
|
3735
|
-
"name": "
|
3736
|
-
"default": "
|
3737
|
-
"description": "
|
3700
|
+
"name": "colon",
|
3701
|
+
"default": "`false`",
|
3702
|
+
"description": "是否在 label 后面添加冒号",
|
3738
3703
|
"value": {
|
3739
|
-
"type": "
|
3704
|
+
"type": "boolean",
|
3740
3705
|
"kind": "expression"
|
3741
3706
|
}
|
3742
3707
|
},
|
3743
3708
|
{
|
3744
|
-
"name": "
|
3745
|
-
"default": "
|
3746
|
-
"description": "
|
3709
|
+
"name": "disabled",
|
3710
|
+
"default": "`false`",
|
3711
|
+
"description": "是否禁用表单中的所有输入框",
|
3747
3712
|
"value": {
|
3748
|
-
"type": "
|
3713
|
+
"type": "boolean",
|
3749
3714
|
"kind": "expression"
|
3750
3715
|
}
|
3751
3716
|
},
|
3752
3717
|
{
|
3753
|
-
"name": "
|
3754
|
-
"default": "`
|
3755
|
-
"description": "
|
3718
|
+
"name": "readonly",
|
3719
|
+
"default": "`false`",
|
3720
|
+
"description": "是否将表单中的所有输入框设置为只读",
|
3756
3721
|
"value": {
|
3757
3722
|
"type": "boolean",
|
3758
3723
|
"kind": "expression"
|
3759
3724
|
}
|
3760
3725
|
},
|
3761
3726
|
{
|
3762
|
-
"name": "
|
3727
|
+
"name": "validate-first",
|
3763
3728
|
"default": "`false`",
|
3764
|
-
"description": "
|
3729
|
+
"description": "是否在某一项校验不通过时停止校验",
|
3765
3730
|
"value": {
|
3766
3731
|
"type": "boolean",
|
3767
3732
|
"kind": "expression"
|
3768
3733
|
}
|
3769
3734
|
},
|
3770
3735
|
{
|
3771
|
-
"name": "
|
3736
|
+
"name": "scroll-to-error",
|
3772
3737
|
"default": "`false`",
|
3773
|
-
"description": "
|
3738
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项",
|
3774
3739
|
"value": {
|
3775
3740
|
"type": "boolean",
|
3776
3741
|
"kind": "expression"
|
3777
3742
|
}
|
3778
3743
|
},
|
3779
3744
|
{
|
3780
|
-
"name": "
|
3781
|
-
"default": "`
|
3782
|
-
"description": "
|
3745
|
+
"name": "show-error",
|
3746
|
+
"default": "`true`",
|
3747
|
+
"description": "是否在校验不通过时标红输入框",
|
3783
3748
|
"value": {
|
3784
3749
|
"type": "boolean",
|
3785
3750
|
"kind": "expression"
|
3786
3751
|
}
|
3787
3752
|
},
|
3788
3753
|
{
|
3789
|
-
"name": "
|
3790
|
-
"default": "`
|
3791
|
-
"description": "
|
3754
|
+
"name": "show-error-message",
|
3755
|
+
"default": "`true`",
|
3756
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示",
|
3792
3757
|
"value": {
|
3793
3758
|
"type": "boolean",
|
3794
3759
|
"kind": "expression"
|
3795
3760
|
}
|
3796
3761
|
},
|
3797
3762
|
{
|
3798
|
-
"name": "
|
3799
|
-
"default": "`
|
3800
|
-
"description": "
|
3763
|
+
"name": "submit-on-enter",
|
3764
|
+
"default": "`true`",
|
3765
|
+
"description": "是否在按下回车键时提交表单",
|
3801
3766
|
"value": {
|
3802
3767
|
"type": "boolean",
|
3803
3768
|
"kind": "expression"
|
3804
3769
|
}
|
3805
|
-
}
|
3770
|
+
}
|
3771
|
+
]
|
3772
|
+
},
|
3773
|
+
{
|
3774
|
+
"name": "van-goods-action",
|
3775
|
+
"slots": [],
|
3776
|
+
"events": [],
|
3777
|
+
"attributes": [
|
3806
3778
|
{
|
3807
|
-
"name": "
|
3808
|
-
"default": "`
|
3809
|
-
"description": "
|
3779
|
+
"name": "safe-area-inset-bottom",
|
3780
|
+
"default": "`true`",
|
3781
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
3810
3782
|
"value": {
|
3811
3783
|
"type": "boolean",
|
3812
3784
|
"kind": "expression"
|
3813
3785
|
}
|
3814
|
-
}
|
3786
|
+
}
|
3787
|
+
]
|
3788
|
+
},
|
3789
|
+
{
|
3790
|
+
"name": "van-goods-action-icon",
|
3791
|
+
"slots": [
|
3815
3792
|
{
|
3816
|
-
"name": "
|
3817
|
-
"
|
3818
|
-
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
3819
|
-
"value": {
|
3820
|
-
"type": "string",
|
3821
|
-
"kind": "expression"
|
3822
|
-
}
|
3793
|
+
"name": "default",
|
3794
|
+
"description": "文本内容"
|
3823
3795
|
},
|
3824
3796
|
{
|
3825
|
-
"name": "
|
3826
|
-
"
|
3827
|
-
|
3797
|
+
"name": "icon",
|
3798
|
+
"description": "自定义图标"
|
3799
|
+
}
|
3800
|
+
],
|
3801
|
+
"events": [],
|
3802
|
+
"attributes": [
|
3803
|
+
{
|
3804
|
+
"name": "text",
|
3805
|
+
"default": "-",
|
3806
|
+
"description": "按钮文字",
|
3828
3807
|
"value": {
|
3829
|
-
"type": "
|
3808
|
+
"type": "string",
|
3830
3809
|
"kind": "expression"
|
3831
3810
|
}
|
3832
3811
|
},
|
3833
3812
|
{
|
3834
|
-
"name": "
|
3835
|
-
"default": "
|
3836
|
-
"description": "
|
3813
|
+
"name": "icon",
|
3814
|
+
"default": "-",
|
3815
|
+
"description": "图标",
|
3837
3816
|
"value": {
|
3838
|
-
"type": "
|
3817
|
+
"type": "string",
|
3839
3818
|
"kind": "expression"
|
3840
3819
|
}
|
3841
3820
|
},
|
3842
3821
|
{
|
3843
|
-
"name": "
|
3844
|
-
"default": "`
|
3845
|
-
"description": "
|
3822
|
+
"name": "color",
|
3823
|
+
"default": "`#323233`",
|
3824
|
+
"description": "图标颜色",
|
3846
3825
|
"value": {
|
3847
|
-
"type": "
|
3826
|
+
"type": "string",
|
3848
3827
|
"kind": "expression"
|
3849
3828
|
}
|
3850
3829
|
},
|
3851
3830
|
{
|
3852
|
-
"name": "
|
3853
|
-
"default": "
|
3854
|
-
"description": "
|
3831
|
+
"name": "icon-class",
|
3832
|
+
"default": "-",
|
3833
|
+
"description": "图标额外类名",
|
3855
3834
|
"value": {
|
3856
|
-
"type": "
|
3835
|
+
"type": "any",
|
3857
3836
|
"kind": "expression"
|
3858
3837
|
}
|
3859
3838
|
},
|
3860
3839
|
{
|
3861
|
-
"name": "
|
3840
|
+
"name": "dot",
|
3862
3841
|
"default": "`false`",
|
3863
|
-
"description": "
|
3842
|
+
"description": "是否显示图标右上角小红点",
|
3864
3843
|
"value": {
|
3865
3844
|
"type": "boolean",
|
3866
3845
|
"kind": "expression"
|
3867
3846
|
}
|
3868
3847
|
},
|
3869
3848
|
{
|
3870
|
-
"name": "
|
3849
|
+
"name": "badge",
|
3871
3850
|
"default": "-",
|
3872
|
-
"description": "
|
3851
|
+
"description": "图标右上角徽标的内容",
|
3873
3852
|
"value": {
|
3874
|
-
"type": "string",
|
3853
|
+
"type": "number | string",
|
3875
3854
|
"kind": "expression"
|
3876
3855
|
}
|
3877
3856
|
},
|
3878
3857
|
{
|
3879
|
-
"name": "
|
3858
|
+
"name": "info",
|
3880
3859
|
"default": "-",
|
3881
|
-
"description": "
|
3860
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
3882
3861
|
"value": {
|
3883
|
-
"type": "
|
3862
|
+
"type": "number | string",
|
3884
3863
|
"kind": "expression"
|
3885
3864
|
}
|
3886
3865
|
},
|
3887
3866
|
{
|
3888
|
-
"name": "
|
3889
|
-
"default": "
|
3890
|
-
"description": "
|
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": "
|
3898
|
-
"default": "
|
3899
|
-
"description": "
|
3876
|
+
"name": "to",
|
3877
|
+
"default": "-",
|
3878
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3900
3879
|
"value": {
|
3901
|
-
"type": "string",
|
3880
|
+
"type": "string | object",
|
3902
3881
|
"kind": "expression"
|
3903
3882
|
}
|
3904
3883
|
},
|
3905
3884
|
{
|
3906
|
-
"name": "
|
3907
|
-
"default": "
|
3908
|
-
"description": "
|
3885
|
+
"name": "replace",
|
3886
|
+
"default": "`false`",
|
3887
|
+
"description": "是否在跳转时替换当前页面历史",
|
3909
3888
|
"value": {
|
3910
|
-
"type": "
|
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": "
|
3916
|
-
"
|
3917
|
-
|
3899
|
+
"name": "default",
|
3900
|
+
"description": "按钮显示内容"
|
3901
|
+
}
|
3902
|
+
],
|
3903
|
+
"events": [],
|
3904
|
+
"attributes": [
|
3905
|
+
{
|
3906
|
+
"name": "text",
|
3907
|
+
"default": "-",
|
3908
|
+
"description": "按钮文字",
|
3918
3909
|
"value": {
|
3919
|
-
"type": "
|
3910
|
+
"type": "string",
|
3920
3911
|
"kind": "expression"
|
3921
3912
|
}
|
3922
3913
|
},
|
3923
3914
|
{
|
3924
|
-
"name": "
|
3925
|
-
"default": "`
|
3926
|
-
"description": "
|
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": "
|
3934
|
-
"default": "
|
3935
|
-
"description": "
|
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": "
|
3943
|
-
"default": "
|
3944
|
-
"description": "
|
3933
|
+
"name": "icon",
|
3934
|
+
"default": "-",
|
3935
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
3945
3936
|
"value": {
|
3946
3937
|
"type": "string",
|
3947
3938
|
"kind": "expression"
|
3948
3939
|
}
|
3949
3940
|
},
|
3950
3941
|
{
|
3951
|
-
"name": "
|
3942
|
+
"name": "disabled",
|
3952
3943
|
"default": "`false`",
|
3953
|
-
"description": "
|
3944
|
+
"description": "是否禁用按钮",
|
3954
3945
|
"value": {
|
3955
|
-
"type": "boolean
|
3946
|
+
"type": "boolean",
|
3956
3947
|
"kind": "expression"
|
3957
3948
|
}
|
3958
3949
|
},
|
3959
3950
|
{
|
3960
|
-
"name": "
|
3961
|
-
"default": "
|
3962
|
-
"description": "
|
3951
|
+
"name": "loading",
|
3952
|
+
"default": "`false`",
|
3953
|
+
"description": "是否显示为加载状态",
|
3963
3954
|
"value": {
|
3964
|
-
"type": "
|
3955
|
+
"type": "boolean",
|
3965
3956
|
"kind": "expression"
|
3966
3957
|
}
|
3967
3958
|
},
|
3968
3959
|
{
|
3969
|
-
"name": "
|
3960
|
+
"name": "url",
|
3970
3961
|
"default": "-",
|
3971
|
-
"description": "
|
3972
|
-
"value": {
|
3973
|
-
"type": "string",
|
3974
|
-
"kind": "expression"
|
3975
|
-
}
|
3976
|
-
},
|
3977
|
-
{
|
3978
|
-
"name": "icon-prefix",
|
3979
|
-
"default": "`van-icon`",
|
3980
|
-
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
3962
|
+
"description": "点击后跳转的链接地址",
|
3981
3963
|
"value": {
|
3982
3964
|
"type": "string",
|
3983
3965
|
"kind": "expression"
|
3984
3966
|
}
|
3985
3967
|
},
|
3986
3968
|
{
|
3987
|
-
"name": "
|
3969
|
+
"name": "to",
|
3988
3970
|
"default": "-",
|
3989
|
-
"description": "
|
3971
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3990
3972
|
"value": {
|
3991
|
-
"type": "
|
3973
|
+
"type": "string | object",
|
3992
3974
|
"kind": "expression"
|
3993
3975
|
}
|
3994
3976
|
},
|
3995
3977
|
{
|
3996
|
-
"name": "
|
3997
|
-
"default": "
|
3998
|
-
"description": "
|
3978
|
+
"name": "replace",
|
3979
|
+
"default": "`false`",
|
3980
|
+
"description": "是否在跳转时替换当前页面历史",
|
3999
3981
|
"value": {
|
4000
|
-
"type": "
|
3982
|
+
"type": "boolean",
|
4001
3983
|
"kind": "expression"
|
4002
3984
|
}
|
4003
3985
|
}
|
4004
3986
|
]
|
4005
3987
|
},
|
4006
3988
|
{
|
4007
|
-
"name": "van-
|
3989
|
+
"name": "van-field",
|
4008
3990
|
"slots": [
|
4009
3991
|
{
|
4010
|
-
"name": "
|
4011
|
-
"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": "自定义输入框最右侧的额外内容"
|
4012
4014
|
}
|
4013
4015
|
],
|
4014
4016
|
"events": [
|
4015
4017
|
{
|
4016
|
-
"name": "
|
4017
|
-
"description": "
|
4018
|
+
"name": "input",
|
4019
|
+
"description": "输入框内容变化时触发"
|
4018
4020
|
},
|
4019
4021
|
{
|
4020
|
-
"name": "
|
4021
|
-
"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": "点击右侧图标时触发"
|
4022
4048
|
}
|
4023
4049
|
],
|
4024
4050
|
"attributes": [
|
4025
4051
|
{
|
4026
|
-
"name": "
|
4027
|
-
"default": "
|
4028
|
-
"description": "
|
4052
|
+
"name": "v-model (value)",
|
4053
|
+
"default": "-",
|
4054
|
+
"description": "当前输入的值",
|
4055
|
+
"value": {
|
4056
|
+
"type": "number | string",
|
4057
|
+
"kind": "expression"
|
4058
|
+
}
|
4059
|
+
},
|
4060
|
+
{
|
4061
|
+
"name": "label",
|
4062
|
+
"default": "-",
|
4063
|
+
"description": "输入框左侧文本",
|
4029
4064
|
"value": {
|
4030
|
-
"type": "
|
4065
|
+
"type": "string",
|
4031
4066
|
"kind": "expression"
|
4032
4067
|
}
|
4033
4068
|
},
|
4034
4069
|
{
|
4035
|
-
"name": "
|
4036
|
-
"default": "
|
4037
|
-
"description": "
|
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": "
|
4045
|
-
"default": "`
|
4046
|
-
"description": "
|
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": "
|
4054
|
-
"default": "
|
4055
|
-
"description": "
|
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": "
|
4063
|
-
"default": "
|
4064
|
-
"description": "
|
4097
|
+
"name": "maxlength",
|
4098
|
+
"default": "-",
|
4099
|
+
"description": "输入的最大字符数",
|
4100
|
+
"value": {
|
4101
|
+
"type": "number | string",
|
4102
|
+
"kind": "expression"
|
4103
|
+
}
|
4104
|
+
},
|
4105
|
+
{
|
4106
|
+
"name": "placeholder",
|
4107
|
+
"default": "-",
|
4108
|
+
"description": "输入框占位提示文字",
|
4065
4109
|
"value": {
|
4066
4110
|
"type": "string",
|
4067
4111
|
"kind": "expression"
|
4068
4112
|
}
|
4069
4113
|
},
|
4070
4114
|
{
|
4071
|
-
"name": "
|
4072
|
-
"default": "`
|
4073
|
-
"description": "
|
4115
|
+
"name": "border",
|
4116
|
+
"default": "`true`",
|
4117
|
+
"description": "是否显示内边框",
|
4074
4118
|
"value": {
|
4075
4119
|
"type": "boolean",
|
4076
4120
|
"kind": "expression"
|
@@ -4079,7 +4123,7 @@
|
|
4079
4123
|
{
|
4080
4124
|
"name": "disabled",
|
4081
4125
|
"default": "`false`",
|
4082
|
-
"description": "
|
4126
|
+
"description": "是否禁用输入框",
|
4083
4127
|
"value": {
|
4084
4128
|
"type": "boolean",
|
4085
4129
|
"kind": "expression"
|
@@ -4088,269 +4132,234 @@
|
|
4088
4132
|
{
|
4089
4133
|
"name": "readonly",
|
4090
4134
|
"default": "`false`",
|
4091
|
-
"description": "
|
4135
|
+
"description": "是否只读",
|
4092
4136
|
"value": {
|
4093
4137
|
"type": "boolean",
|
4094
4138
|
"kind": "expression"
|
4095
4139
|
}
|
4096
4140
|
},
|
4097
4141
|
{
|
4098
|
-
"name": "
|
4142
|
+
"name": "colon",
|
4099
4143
|
"default": "`false`",
|
4100
|
-
"description": "
|
4144
|
+
"description": "是否在 label 后面添加冒号",
|
4101
4145
|
"value": {
|
4102
4146
|
"type": "boolean",
|
4103
4147
|
"kind": "expression"
|
4104
4148
|
}
|
4105
4149
|
},
|
4106
4150
|
{
|
4107
|
-
"name": "
|
4151
|
+
"name": "required",
|
4108
4152
|
"default": "`false`",
|
4109
|
-
"description": "
|
4153
|
+
"description": "是否显示表单必填星号",
|
4110
4154
|
"value": {
|
4111
4155
|
"type": "boolean",
|
4112
4156
|
"kind": "expression"
|
4113
4157
|
}
|
4114
4158
|
},
|
4115
4159
|
{
|
4116
|
-
"name": "
|
4117
|
-
"default": "`
|
4118
|
-
"description": "
|
4160
|
+
"name": "center",
|
4161
|
+
"default": "`false`",
|
4162
|
+
"description": "是否使内容垂直居中",
|
4119
4163
|
"value": {
|
4120
4164
|
"type": "boolean",
|
4121
4165
|
"kind": "expression"
|
4122
4166
|
}
|
4123
4167
|
},
|
4124
4168
|
{
|
4125
|
-
"name": "
|
4126
|
-
"default": "`
|
4127
|
-
"description": "
|
4169
|
+
"name": "clearable",
|
4170
|
+
"default": "`false`",
|
4171
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框",
|
4128
4172
|
"value": {
|
4129
4173
|
"type": "boolean",
|
4130
4174
|
"kind": "expression"
|
4131
4175
|
}
|
4132
4176
|
},
|
4133
4177
|
{
|
4134
|
-
"name": "
|
4135
|
-
"default": "`
|
4136
|
-
"description": "
|
4178
|
+
"name": "clear-trigger",
|
4179
|
+
"default": "`focus`",
|
4180
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
4137
4181
|
"value": {
|
4138
|
-
"type": "
|
4182
|
+
"type": "string",
|
4139
4183
|
"kind": "expression"
|
4140
4184
|
}
|
4141
|
-
}
|
4142
|
-
]
|
4143
|
-
},
|
4144
|
-
{
|
4145
|
-
"name": "van-goods-action",
|
4146
|
-
"slots": [],
|
4147
|
-
"events": [],
|
4148
|
-
"attributes": [
|
4185
|
+
},
|
4149
4186
|
{
|
4150
|
-
"name": "
|
4151
|
-
"default": "`
|
4152
|
-
"description": "
|
4187
|
+
"name": "clickable",
|
4188
|
+
"default": "`false`",
|
4189
|
+
"description": "是否开启点击反馈",
|
4153
4190
|
"value": {
|
4154
4191
|
"type": "boolean",
|
4155
4192
|
"kind": "expression"
|
4156
4193
|
}
|
4157
|
-
}
|
4158
|
-
]
|
4159
|
-
},
|
4160
|
-
{
|
4161
|
-
"name": "van-goods-action-icon",
|
4162
|
-
"slots": [
|
4163
|
-
{
|
4164
|
-
"name": "default",
|
4165
|
-
"description": "文本内容"
|
4166
4194
|
},
|
4167
4195
|
{
|
4168
|
-
"name": "
|
4169
|
-
"
|
4170
|
-
|
4171
|
-
],
|
4172
|
-
"events": [],
|
4173
|
-
"attributes": [
|
4174
|
-
{
|
4175
|
-
"name": "text",
|
4176
|
-
"default": "-",
|
4177
|
-
"description": "按钮文字",
|
4196
|
+
"name": "is-link",
|
4197
|
+
"default": "`false`",
|
4198
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
4178
4199
|
"value": {
|
4179
|
-
"type": "
|
4200
|
+
"type": "boolean",
|
4180
4201
|
"kind": "expression"
|
4181
4202
|
}
|
4182
4203
|
},
|
4183
4204
|
{
|
4184
|
-
"name": "
|
4185
|
-
"default": "
|
4186
|
-
"description": "
|
4205
|
+
"name": "autofocus",
|
4206
|
+
"default": "`false`",
|
4207
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性",
|
4187
4208
|
"value": {
|
4188
|
-
"type": "
|
4209
|
+
"type": "boolean",
|
4189
4210
|
"kind": "expression"
|
4190
4211
|
}
|
4191
4212
|
},
|
4192
4213
|
{
|
4193
|
-
"name": "
|
4194
|
-
"default": "
|
4195
|
-
"description": "
|
4214
|
+
"name": "show-word-limit",
|
4215
|
+
"default": "`false`",
|
4216
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性",
|
4196
4217
|
"value": {
|
4197
|
-
"type": "
|
4218
|
+
"type": "boolean",
|
4198
4219
|
"kind": "expression"
|
4199
4220
|
}
|
4200
4221
|
},
|
4201
4222
|
{
|
4202
|
-
"name": "
|
4203
|
-
"default": "
|
4204
|
-
"description": "
|
4223
|
+
"name": "error",
|
4224
|
+
"default": "`false`",
|
4225
|
+
"description": "是否将输入内容标红",
|
4205
4226
|
"value": {
|
4206
|
-
"type": "
|
4227
|
+
"type": "boolean",
|
4207
4228
|
"kind": "expression"
|
4208
4229
|
}
|
4209
4230
|
},
|
4210
4231
|
{
|
4211
|
-
"name": "
|
4212
|
-
"default": "
|
4213
|
-
"description": "
|
4232
|
+
"name": "error-message",
|
4233
|
+
"default": "-",
|
4234
|
+
"description": "底部错误提示文案,为空时不展示",
|
4214
4235
|
"value": {
|
4215
|
-
"type": "
|
4236
|
+
"type": "string",
|
4216
4237
|
"kind": "expression"
|
4217
4238
|
}
|
4218
4239
|
},
|
4219
4240
|
{
|
4220
|
-
"name": "
|
4241
|
+
"name": "formatter",
|
4221
4242
|
"default": "-",
|
4222
|
-
"description": "
|
4243
|
+
"description": "输入内容格式化函数",
|
4223
4244
|
"value": {
|
4224
|
-
"type": "
|
4245
|
+
"type": "Function",
|
4225
4246
|
"kind": "expression"
|
4226
4247
|
}
|
4227
4248
|
},
|
4228
4249
|
{
|
4229
|
-
"name": "
|
4230
|
-
"default": "
|
4231
|
-
"description": "
|
4250
|
+
"name": "format-trigger",
|
4251
|
+
"default": "`onChange`",
|
4252
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
4232
4253
|
"value": {
|
4233
|
-
"type": "
|
4254
|
+
"type": "string",
|
4234
4255
|
"kind": "expression"
|
4235
4256
|
}
|
4236
4257
|
},
|
4237
4258
|
{
|
4238
|
-
"name": "
|
4239
|
-
"default": "
|
4240
|
-
"description": "
|
4259
|
+
"name": "arrow-direction",
|
4260
|
+
"default": "`right`",
|
4261
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
4241
4262
|
"value": {
|
4242
4263
|
"type": "string",
|
4243
4264
|
"kind": "expression"
|
4244
4265
|
}
|
4245
4266
|
},
|
4246
4267
|
{
|
4247
|
-
"name": "
|
4268
|
+
"name": "label-class",
|
4248
4269
|
"default": "-",
|
4249
|
-
"description": "
|
4270
|
+
"description": "左侧文本额外类名",
|
4250
4271
|
"value": {
|
4251
|
-
"type": "
|
4272
|
+
"type": "any",
|
4252
4273
|
"kind": "expression"
|
4253
4274
|
}
|
4254
4275
|
},
|
4255
4276
|
{
|
4256
|
-
"name": "
|
4257
|
-
"default": "`
|
4258
|
-
"description": "
|
4277
|
+
"name": "label-width",
|
4278
|
+
"default": "`6.2em`",
|
4279
|
+
"description": "左侧文本宽度,默认单位为`px`",
|
4259
4280
|
"value": {
|
4260
|
-
"type": "
|
4281
|
+
"type": "number | string",
|
4261
4282
|
"kind": "expression"
|
4262
4283
|
}
|
4263
|
-
}
|
4264
|
-
]
|
4265
|
-
},
|
4266
|
-
{
|
4267
|
-
"name": "van-goods-action-button",
|
4268
|
-
"slots": [
|
4269
|
-
{
|
4270
|
-
"name": "default",
|
4271
|
-
"description": "按钮显示内容"
|
4272
|
-
}
|
4273
|
-
],
|
4274
|
-
"events": [],
|
4275
|
-
"attributes": [
|
4284
|
+
},
|
4276
4285
|
{
|
4277
|
-
"name": "
|
4278
|
-
"default": "
|
4279
|
-
"description": "
|
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": "
|
4287
|
-
"default": "`
|
4288
|
-
"description": "
|
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": "
|
4296
|
-
"default": "
|
4297
|
-
"description": "
|
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": "
|
4305
|
-
"default": "
|
4306
|
-
"description": "
|
4313
|
+
"name": "autosize",
|
4314
|
+
"default": "`false`",
|
4315
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
|
4307
4316
|
"value": {
|
4308
|
-
"type": "
|
4317
|
+
"type": "boolean | object",
|
4309
4318
|
"kind": "expression"
|
4310
4319
|
}
|
4311
4320
|
},
|
4312
4321
|
{
|
4313
|
-
"name": "
|
4314
|
-
"default": "
|
4315
|
-
"description": "
|
4322
|
+
"name": "left-icon",
|
4323
|
+
"default": "-",
|
4324
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
4316
4325
|
"value": {
|
4317
|
-
"type": "
|
4326
|
+
"type": "string",
|
4318
4327
|
"kind": "expression"
|
4319
4328
|
}
|
4320
4329
|
},
|
4321
4330
|
{
|
4322
|
-
"name": "
|
4323
|
-
"default": "
|
4324
|
-
"description": "
|
4331
|
+
"name": "right-icon",
|
4332
|
+
"default": "-",
|
4333
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
|
4325
4334
|
"value": {
|
4326
|
-
"type": "
|
4335
|
+
"type": "string",
|
4327
4336
|
"kind": "expression"
|
4328
4337
|
}
|
4329
4338
|
},
|
4330
4339
|
{
|
4331
|
-
"name": "
|
4332
|
-
"default": "-",
|
4333
|
-
"description": "
|
4340
|
+
"name": "icon-prefix",
|
4341
|
+
"default": "`van-icon`",
|
4342
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
4334
4343
|
"value": {
|
4335
4344
|
"type": "string",
|
4336
4345
|
"kind": "expression"
|
4337
4346
|
}
|
4338
4347
|
},
|
4339
4348
|
{
|
4340
|
-
"name": "
|
4349
|
+
"name": "rules",
|
4341
4350
|
"default": "-",
|
4342
|
-
"description": "
|
4351
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
|
4343
4352
|
"value": {
|
4344
|
-
"type": "
|
4353
|
+
"type": "Rule[]",
|
4345
4354
|
"kind": "expression"
|
4346
4355
|
}
|
4347
4356
|
},
|
4348
4357
|
{
|
4349
|
-
"name": "
|
4350
|
-
"default": "
|
4351
|
-
"description": "
|
4358
|
+
"name": "autocomplete",
|
4359
|
+
"default": "-",
|
4360
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
|
4352
4361
|
"value": {
|
4353
|
-
"type": "
|
4362
|
+
"type": "string",
|
4354
4363
|
"kind": "expression"
|
4355
4364
|
}
|
4356
4365
|
}
|