vant 2.12.30-beta.1 → 2.12.30

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,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.30-beta.1",
5
+ "version": "2.12.30",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -451,6 +451,118 @@
451
451
  }
452
452
  ]
453
453
  },
454
+ {
455
+ "name": "van-address-list",
456
+ "slots": [
457
+ {
458
+ "name": "default",
459
+ "description": "在列表下方插入内容"
460
+ },
461
+ {
462
+ "name": "top",
463
+ "description": "在顶部插入内容"
464
+ },
465
+ {
466
+ "name": "item-bottom",
467
+ "description": "在列表项底部插入内容"
468
+ },
469
+ {
470
+ "name": "tag",
471
+ "description": "列表项标签内容自定义"
472
+ }
473
+ ],
474
+ "events": [
475
+ {
476
+ "name": "add",
477
+ "description": "点击新增按钮时触发"
478
+ },
479
+ {
480
+ "name": "edit",
481
+ "description": "点击编辑按钮时触发"
482
+ },
483
+ {
484
+ "name": "select",
485
+ "description": "切换选中的地址时触发"
486
+ },
487
+ {
488
+ "name": "edit-disabled",
489
+ "description": "编辑不可配送的地址时触发"
490
+ },
491
+ {
492
+ "name": "select-disabled",
493
+ "description": "选中不可配送的地址时触发"
494
+ },
495
+ {
496
+ "name": "click-item",
497
+ "description": "点击任意地址时触发"
498
+ }
499
+ ],
500
+ "attributes": [
501
+ {
502
+ "name": "v-model",
503
+ "default": "-",
504
+ "description": "当前选中地址的 id",
505
+ "value": {
506
+ "type": "string",
507
+ "kind": "expression"
508
+ }
509
+ },
510
+ {
511
+ "name": "list",
512
+ "default": "`[]`",
513
+ "description": "地址列表",
514
+ "value": {
515
+ "type": "Address[]",
516
+ "kind": "expression"
517
+ }
518
+ },
519
+ {
520
+ "name": "disabled-list",
521
+ "default": "`[]`",
522
+ "description": "不可配送地址列表",
523
+ "value": {
524
+ "type": "Address[]",
525
+ "kind": "expression"
526
+ }
527
+ },
528
+ {
529
+ "name": "disabled-text",
530
+ "default": "-",
531
+ "description": "不可配送提示文案",
532
+ "value": {
533
+ "type": "string",
534
+ "kind": "expression"
535
+ }
536
+ },
537
+ {
538
+ "name": "switchable",
539
+ "default": "`true`",
540
+ "description": "是否允许切换地址",
541
+ "value": {
542
+ "type": "boolean",
543
+ "kind": "expression"
544
+ }
545
+ },
546
+ {
547
+ "name": "add-button-text",
548
+ "default": "`新增地址`",
549
+ "description": "底部按钮文字",
550
+ "value": {
551
+ "type": "string",
552
+ "kind": "expression"
553
+ }
554
+ },
555
+ {
556
+ "name": "default-tag-text",
557
+ "default": "-",
558
+ "description": "默认地址标签文字",
559
+ "value": {
560
+ "type": "string",
561
+ "kind": "expression"
562
+ }
563
+ }
564
+ ]
565
+ },
454
566
  {
455
567
  "name": "van-badge",
456
568
  "slots": [
@@ -880,118 +992,6 @@
880
992
  }
881
993
  ]
882
994
  },
883
- {
884
- "name": "van-address-list",
885
- "slots": [
886
- {
887
- "name": "default",
888
- "description": "在列表下方插入内容"
889
- },
890
- {
891
- "name": "top",
892
- "description": "在顶部插入内容"
893
- },
894
- {
895
- "name": "item-bottom",
896
- "description": "在列表项底部插入内容"
897
- },
898
- {
899
- "name": "tag",
900
- "description": "列表项标签内容自定义"
901
- }
902
- ],
903
- "events": [
904
- {
905
- "name": "add",
906
- "description": "点击新增按钮时触发"
907
- },
908
- {
909
- "name": "edit",
910
- "description": "点击编辑按钮时触发"
911
- },
912
- {
913
- "name": "select",
914
- "description": "切换选中的地址时触发"
915
- },
916
- {
917
- "name": "edit-disabled",
918
- "description": "编辑不可配送的地址时触发"
919
- },
920
- {
921
- "name": "select-disabled",
922
- "description": "选中不可配送的地址时触发"
923
- },
924
- {
925
- "name": "click-item",
926
- "description": "点击任意地址时触发"
927
- }
928
- ],
929
- "attributes": [
930
- {
931
- "name": "v-model",
932
- "default": "-",
933
- "description": "当前选中地址的 id",
934
- "value": {
935
- "type": "string",
936
- "kind": "expression"
937
- }
938
- },
939
- {
940
- "name": "list",
941
- "default": "`[]`",
942
- "description": "地址列表",
943
- "value": {
944
- "type": "Address[]",
945
- "kind": "expression"
946
- }
947
- },
948
- {
949
- "name": "disabled-list",
950
- "default": "`[]`",
951
- "description": "不可配送地址列表",
952
- "value": {
953
- "type": "Address[]",
954
- "kind": "expression"
955
- }
956
- },
957
- {
958
- "name": "disabled-text",
959
- "default": "-",
960
- "description": "不可配送提示文案",
961
- "value": {
962
- "type": "string",
963
- "kind": "expression"
964
- }
965
- },
966
- {
967
- "name": "switchable",
968
- "default": "`true`",
969
- "description": "是否允许切换地址",
970
- "value": {
971
- "type": "boolean",
972
- "kind": "expression"
973
- }
974
- },
975
- {
976
- "name": "add-button-text",
977
- "default": "`新增地址`",
978
- "description": "底部按钮文字",
979
- "value": {
980
- "type": "string",
981
- "kind": "expression"
982
- }
983
- },
984
- {
985
- "name": "default-tag-text",
986
- "default": "-",
987
- "description": "默认地址标签文字",
988
- "value": {
989
- "type": "string",
990
- "kind": "expression"
991
- }
992
- }
993
- ]
994
- },
995
995
  {
996
996
  "name": "van-calendar",
997
997
  "slots": [
@@ -1341,120 +1341,28 @@
1341
1341
  ]
1342
1342
  },
1343
1343
  {
1344
- "name": "van-cascader",
1344
+ "name": "van-card",
1345
1345
  "slots": [
1346
1346
  {
1347
1347
  "name": "title",
1348
- "description": "自定义顶部标题"
1348
+ "description": "自定义标题"
1349
1349
  },
1350
1350
  {
1351
- "name": "option",
1352
- "description": "自定义选项文字"
1353
- }
1354
- ],
1355
- "events": [
1351
+ "name": "desc",
1352
+ "description": "自定义描述"
1353
+ },
1356
1354
  {
1357
- "name": "change",
1358
- "description": "选中项变化时触发"
1355
+ "name": "num",
1356
+ "description": "自定义数量"
1359
1357
  },
1360
1358
  {
1361
- "name": "finish",
1362
- "description": "全部选项选择完成后触发"
1359
+ "name": "price",
1360
+ "description": "自定义价格"
1363
1361
  },
1364
1362
  {
1365
- "name": "close",
1366
- "description": "点击关闭图标时触发"
1367
- }
1368
- ],
1369
- "attributes": [
1370
- {
1371
- "name": "title",
1372
- "default": "-",
1373
- "description": "顶部标题",
1374
- "value": {
1375
- "type": "string",
1376
- "kind": "expression"
1377
- }
1378
- },
1379
- {
1380
- "name": "value",
1381
- "default": "-",
1382
- "description": "选中项的值",
1383
- "value": {
1384
- "type": "string | number",
1385
- "kind": "expression"
1386
- }
1387
- },
1388
- {
1389
- "name": "options",
1390
- "default": "`[]`",
1391
- "description": "可选项数据源",
1392
- "value": {
1393
- "type": "Option[]",
1394
- "kind": "expression"
1395
- }
1396
- },
1397
- {
1398
- "name": "placeholder",
1399
- "default": "`请选择`",
1400
- "description": "未选中时的提示文案",
1401
- "value": {
1402
- "type": "string",
1403
- "kind": "expression"
1404
- }
1405
- },
1406
- {
1407
- "name": "active-color",
1408
- "default": "`#ee0a24`",
1409
- "description": "选中状态的高亮颜色",
1410
- "value": {
1411
- "type": "string",
1412
- "kind": "expression"
1413
- }
1414
- },
1415
- {
1416
- "name": "closeable",
1417
- "default": "`true`",
1418
- "description": "是否显示关闭图标",
1419
- "value": {
1420
- "type": "boolean",
1421
- "kind": "expression"
1422
- }
1423
- },
1424
- {
1425
- "name": "field-names",
1426
- "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1427
- "description": "自定义 `options` 结构中的字段",
1428
- "value": {
1429
- "type": "object",
1430
- "kind": "expression"
1431
- }
1432
- }
1433
- ]
1434
- },
1435
- {
1436
- "name": "van-card",
1437
- "slots": [
1438
- {
1439
- "name": "title",
1440
- "description": "自定义标题"
1441
- },
1442
- {
1443
- "name": "desc",
1444
- "description": "自定义描述"
1445
- },
1446
- {
1447
- "name": "num",
1448
- "description": "自定义数量"
1449
- },
1450
- {
1451
- "name": "price",
1452
- "description": "自定义价格"
1453
- },
1454
- {
1455
- "name": "origin-price",
1456
- "description": "自定义商品原价"
1457
- },
1363
+ "name": "origin-price",
1364
+ "description": "自定义商品原价"
1365
+ },
1458
1366
  {
1459
1367
  "name": "price-top",
1460
1368
  "description": "自定义价格上方区域"
@@ -1592,6 +1500,98 @@
1592
1500
  }
1593
1501
  ]
1594
1502
  },
1503
+ {
1504
+ "name": "van-cascader",
1505
+ "slots": [
1506
+ {
1507
+ "name": "title",
1508
+ "description": "自定义顶部标题"
1509
+ },
1510
+ {
1511
+ "name": "option",
1512
+ "description": "自定义选项文字"
1513
+ }
1514
+ ],
1515
+ "events": [
1516
+ {
1517
+ "name": "change",
1518
+ "description": "选中项变化时触发"
1519
+ },
1520
+ {
1521
+ "name": "finish",
1522
+ "description": "全部选项选择完成后触发"
1523
+ },
1524
+ {
1525
+ "name": "close",
1526
+ "description": "点击关闭图标时触发"
1527
+ }
1528
+ ],
1529
+ "attributes": [
1530
+ {
1531
+ "name": "title",
1532
+ "default": "-",
1533
+ "description": "顶部标题",
1534
+ "value": {
1535
+ "type": "string",
1536
+ "kind": "expression"
1537
+ }
1538
+ },
1539
+ {
1540
+ "name": "value",
1541
+ "default": "-",
1542
+ "description": "选中项的值",
1543
+ "value": {
1544
+ "type": "string | number",
1545
+ "kind": "expression"
1546
+ }
1547
+ },
1548
+ {
1549
+ "name": "options",
1550
+ "default": "`[]`",
1551
+ "description": "可选项数据源",
1552
+ "value": {
1553
+ "type": "Option[]",
1554
+ "kind": "expression"
1555
+ }
1556
+ },
1557
+ {
1558
+ "name": "placeholder",
1559
+ "default": "`请选择`",
1560
+ "description": "未选中时的提示文案",
1561
+ "value": {
1562
+ "type": "string",
1563
+ "kind": "expression"
1564
+ }
1565
+ },
1566
+ {
1567
+ "name": "active-color",
1568
+ "default": "`#ee0a24`",
1569
+ "description": "选中状态的高亮颜色",
1570
+ "value": {
1571
+ "type": "string",
1572
+ "kind": "expression"
1573
+ }
1574
+ },
1575
+ {
1576
+ "name": "closeable",
1577
+ "default": "`true`",
1578
+ "description": "是否显示关闭图标",
1579
+ "value": {
1580
+ "type": "boolean",
1581
+ "kind": "expression"
1582
+ }
1583
+ },
1584
+ {
1585
+ "name": "field-names",
1586
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
1587
+ "description": "自定义 `options` 结构中的字段",
1588
+ "value": {
1589
+ "type": "object",
1590
+ "kind": "expression"
1591
+ }
1592
+ }
1593
+ ]
1594
+ },
1595
1595
  {
1596
1596
  "name": "van-cell-group",
1597
1597
  "slots": [
@@ -3358,6 +3358,45 @@
3358
3358
  }
3359
3359
  ]
3360
3360
  },
3361
+ {
3362
+ "name": "van-divider",
3363
+ "slots": [
3364
+ {
3365
+ "name": "default",
3366
+ "description": "内容"
3367
+ }
3368
+ ],
3369
+ "events": [],
3370
+ "attributes": [
3371
+ {
3372
+ "name": "dashed",
3373
+ "default": "`false`",
3374
+ "description": "是否使用虚线",
3375
+ "value": {
3376
+ "type": "boolean",
3377
+ "kind": "expression"
3378
+ }
3379
+ },
3380
+ {
3381
+ "name": "hairline",
3382
+ "default": "`true`",
3383
+ "description": "是否使用 0.5px 线",
3384
+ "value": {
3385
+ "type": "boolean",
3386
+ "kind": "expression"
3387
+ }
3388
+ },
3389
+ {
3390
+ "name": "content-position",
3391
+ "default": "`center`",
3392
+ "description": "内容位置,可选值为`left` `right`",
3393
+ "value": {
3394
+ "type": "string",
3395
+ "kind": "expression"
3396
+ }
3397
+ }
3398
+ ]
3399
+ },
3361
3400
  {
3362
3401
  "name": "van-dropdown-menu",
3363
3402
  "slots": [],
@@ -3528,45 +3567,6 @@
3528
3567
  }
3529
3568
  ]
3530
3569
  },
3531
- {
3532
- "name": "van-divider",
3533
- "slots": [
3534
- {
3535
- "name": "default",
3536
- "description": "内容"
3537
- }
3538
- ],
3539
- "events": [],
3540
- "attributes": [
3541
- {
3542
- "name": "dashed",
3543
- "default": "`false`",
3544
- "description": "是否使用虚线",
3545
- "value": {
3546
- "type": "boolean",
3547
- "kind": "expression"
3548
- }
3549
- },
3550
- {
3551
- "name": "hairline",
3552
- "default": "`true`",
3553
- "description": "是否使用 0.5px 线",
3554
- "value": {
3555
- "type": "boolean",
3556
- "kind": "expression"
3557
- }
3558
- },
3559
- {
3560
- "name": "content-position",
3561
- "default": "`center`",
3562
- "description": "内容位置,可选值为`left` `right`",
3563
- "value": {
3564
- "type": "string",
3565
- "kind": "expression"
3566
- }
3567
- }
3568
- ]
3569
- },
3570
3570
  {
3571
3571
  "name": "van-empty",
3572
3572
  "slots": [
@@ -5026,73 +5026,7 @@
5026
5026
  ]
5027
5027
  },
5028
5028
  {
5029
- "name": "van-loading",
5030
- "slots": [
5031
- {
5032
- "name": "default",
5033
- "description": "加载文案"
5034
- }
5035
- ],
5036
- "events": [],
5037
- "attributes": [
5038
- {
5039
- "name": "color",
5040
- "default": "`#c9c9c9`",
5041
- "description": "颜色",
5042
- "value": {
5043
- "type": "string",
5044
- "kind": "expression"
5045
- }
5046
- },
5047
- {
5048
- "name": "type",
5049
- "default": "`circular`",
5050
- "description": "类型,可选值为 `spinner`",
5051
- "value": {
5052
- "type": "string",
5053
- "kind": "expression"
5054
- }
5055
- },
5056
- {
5057
- "name": "size",
5058
- "default": "`30px`",
5059
- "description": "加载图标大小,默认单位为 `px`",
5060
- "value": {
5061
- "type": "number | string",
5062
- "kind": "expression"
5063
- }
5064
- },
5065
- {
5066
- "name": "text-size",
5067
- "default": "`14px`",
5068
- "description": "文字大小,默认单位为 `px`",
5069
- "value": {
5070
- "type": "number | string",
5071
- "kind": "expression"
5072
- }
5073
- },
5074
- {
5075
- "name": "text-color",
5076
- "default": "`#c9c9c9`",
5077
- "description": "文字颜色",
5078
- "value": {
5079
- "type": "string",
5080
- "kind": "expression"
5081
- }
5082
- },
5083
- {
5084
- "name": "vertical",
5085
- "default": "`false`",
5086
- "description": "是否垂直排列图标和文字内容",
5087
- "value": {
5088
- "type": "boolean",
5089
- "kind": "expression"
5090
- }
5091
- }
5092
- ]
5093
- },
5094
- {
5095
- "name": "van-list",
5029
+ "name": "van-list",
5096
5030
  "slots": [
5097
5031
  {
5098
5032
  "name": "default",
@@ -5201,6 +5135,72 @@
5201
5135
  }
5202
5136
  ]
5203
5137
  },
5138
+ {
5139
+ "name": "van-loading",
5140
+ "slots": [
5141
+ {
5142
+ "name": "default",
5143
+ "description": "加载文案"
5144
+ }
5145
+ ],
5146
+ "events": [],
5147
+ "attributes": [
5148
+ {
5149
+ "name": "color",
5150
+ "default": "`#c9c9c9`",
5151
+ "description": "颜色",
5152
+ "value": {
5153
+ "type": "string",
5154
+ "kind": "expression"
5155
+ }
5156
+ },
5157
+ {
5158
+ "name": "type",
5159
+ "default": "`circular`",
5160
+ "description": "类型,可选值为 `spinner`",
5161
+ "value": {
5162
+ "type": "string",
5163
+ "kind": "expression"
5164
+ }
5165
+ },
5166
+ {
5167
+ "name": "size",
5168
+ "default": "`30px`",
5169
+ "description": "加载图标大小,默认单位为 `px`",
5170
+ "value": {
5171
+ "type": "number | string",
5172
+ "kind": "expression"
5173
+ }
5174
+ },
5175
+ {
5176
+ "name": "text-size",
5177
+ "default": "`14px`",
5178
+ "description": "文字大小,默认单位为 `px`",
5179
+ "value": {
5180
+ "type": "number | string",
5181
+ "kind": "expression"
5182
+ }
5183
+ },
5184
+ {
5185
+ "name": "text-color",
5186
+ "default": "`#c9c9c9`",
5187
+ "description": "文字颜色",
5188
+ "value": {
5189
+ "type": "string",
5190
+ "kind": "expression"
5191
+ }
5192
+ },
5193
+ {
5194
+ "name": "vertical",
5195
+ "default": "`false`",
5196
+ "description": "是否垂直排列图标和文字内容",
5197
+ "value": {
5198
+ "type": "boolean",
5199
+ "kind": "expression"
5200
+ }
5201
+ }
5202
+ ]
5203
+ },
5204
5204
  {
5205
5205
  "name": "van-nav-bar",
5206
5206
  "slots": [
@@ -8329,300 +8329,300 @@
8329
8329
  ]
8330
8330
  },
8331
8331
  {
8332
- "name": "van-swipe",
8332
+ "name": "van-submit-bar",
8333
8333
  "slots": [
8334
8334
  {
8335
8335
  "name": "default",
8336
- "description": "轮播内容"
8336
+ "description": "自定义订单栏左侧内容"
8337
8337
  },
8338
8338
  {
8339
- "name": "indicator",
8340
- "description": "自定义指示器"
8339
+ "name": "button",
8340
+ "description": "自定义按钮"
8341
+ },
8342
+ {
8343
+ "name": "top",
8344
+ "description": "自定义订单栏上方内容"
8345
+ },
8346
+ {
8347
+ "name": "tip",
8348
+ "description": "提示文案中的额外内容"
8341
8349
  }
8342
8350
  ],
8343
8351
  "events": [
8344
8352
  {
8345
- "name": "change",
8346
- "description": "每一页轮播结束后触发"
8353
+ "name": "submit",
8354
+ "description": "按钮点击事件回调"
8347
8355
  }
8348
8356
  ],
8349
8357
  "attributes": [
8350
8358
  {
8351
- "name": "autoplay",
8359
+ "name": "price",
8352
8360
  "default": "-",
8353
- "description": "自动轮播间隔,单位为 ms",
8361
+ "description": "价格(单位分)",
8354
8362
  "value": {
8355
- "type": "number | string",
8363
+ "type": "number",
8356
8364
  "kind": "expression"
8357
8365
  }
8358
8366
  },
8359
8367
  {
8360
- "name": "duration",
8361
- "default": "`500`",
8362
- "description": "动画时长,单位为 ms",
8368
+ "name": "decimal-length",
8369
+ "default": "`2`",
8370
+ "description": "价格小数点位数",
8363
8371
  "value": {
8364
8372
  "type": "number | string",
8365
8373
  "kind": "expression"
8366
8374
  }
8367
8375
  },
8368
8376
  {
8369
- "name": "initial-swipe",
8370
- "default": "`0`",
8371
- "description": "初始位置索引值",
8377
+ "name": "label",
8378
+ "default": "`合计:`",
8379
+ "description": "价格左侧文案",
8372
8380
  "value": {
8373
- "type": "number | string",
8381
+ "type": "string",
8374
8382
  "kind": "expression"
8375
8383
  }
8376
8384
  },
8377
8385
  {
8378
- "name": "width",
8379
- "default": "`auto`",
8380
- "description": "滑块宽度,单位为`px`",
8386
+ "name": "suffix-label",
8387
+ "default": "-",
8388
+ "description": "价格右侧文案",
8381
8389
  "value": {
8382
- "type": "number | string",
8390
+ "type": "string",
8383
8391
  "kind": "expression"
8384
8392
  }
8385
8393
  },
8386
8394
  {
8387
- "name": "height",
8388
- "default": "`auto`",
8389
- "description": "滑块高度,单位为`px`",
8395
+ "name": "text-align",
8396
+ "default": "`right`",
8397
+ "description": "价格文案对齐方向,可选值为 `left`",
8390
8398
  "value": {
8391
- "type": "number | string",
8399
+ "type": "string",
8392
8400
  "kind": "expression"
8393
8401
  }
8394
8402
  },
8395
8403
  {
8396
- "name": "loop",
8397
- "default": "`true`",
8398
- "description": "是否开启循环播放",
8404
+ "name": "button-text",
8405
+ "default": "-",
8406
+ "description": "按钮文字",
8399
8407
  "value": {
8400
- "type": "boolean",
8408
+ "type": "string",
8401
8409
  "kind": "expression"
8402
8410
  }
8403
8411
  },
8404
8412
  {
8405
- "name": "show-indicators",
8406
- "default": "`true`",
8407
- "description": "是否显示指示器",
8413
+ "name": "button-type",
8414
+ "default": "`danger`",
8415
+ "description": "按钮类型",
8408
8416
  "value": {
8409
- "type": "boolean",
8417
+ "type": "string",
8410
8418
  "kind": "expression"
8411
8419
  }
8412
8420
  },
8413
8421
  {
8414
- "name": "vertical",
8415
- "default": "`false`",
8416
- "description": "是否为纵向滚动",
8422
+ "name": "button-color",
8423
+ "default": "-",
8424
+ "description": "自定义按钮颜色",
8417
8425
  "value": {
8418
- "type": "boolean",
8426
+ "type": "string",
8419
8427
  "kind": "expression"
8420
8428
  }
8421
8429
  },
8422
8430
  {
8423
- "name": "touchable",
8424
- "default": "`true`",
8425
- "description": "是否可以通过手势滑动",
8431
+ "name": "tip",
8432
+ "default": "-",
8433
+ "description": "在订单栏上方的提示文案",
8426
8434
  "value": {
8427
- "type": "boolean",
8435
+ "type": "string",
8428
8436
  "kind": "expression"
8429
8437
  }
8430
8438
  },
8431
8439
  {
8432
- "name": "stop-propagation",
8433
- "default": "`true`",
8434
- "description": "是否阻止滑动事件冒泡",
8440
+ "name": "tip-icon",
8441
+ "default": "-",
8442
+ "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8443
+ "value": {
8444
+ "type": "string",
8445
+ "kind": "expression"
8446
+ }
8447
+ },
8448
+ {
8449
+ "name": "currency",
8450
+ "default": "`¥`",
8451
+ "description": "货币符号",
8452
+ "value": {
8453
+ "type": "string",
8454
+ "kind": "expression"
8455
+ }
8456
+ },
8457
+ {
8458
+ "name": "disabled",
8459
+ "default": "`false`",
8460
+ "description": "是否禁用按钮",
8435
8461
  "value": {
8436
8462
  "type": "boolean",
8437
8463
  "kind": "expression"
8438
8464
  }
8439
8465
  },
8440
8466
  {
8441
- "name": "lazy-render",
8467
+ "name": "loading",
8442
8468
  "default": "`false`",
8443
- "description": "是否延迟渲染未展示的轮播",
8469
+ "description": "是否显示将按钮显示为加载中状态",
8444
8470
  "value": {
8445
8471
  "type": "boolean",
8446
8472
  "kind": "expression"
8447
8473
  }
8448
8474
  },
8449
8475
  {
8450
- "name": "indicator-color",
8451
- "default": "`#1989fa`",
8452
- "description": "指示器颜色",
8476
+ "name": "safe-area-inset-bottom",
8477
+ "default": "`true`",
8478
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8453
8479
  "value": {
8454
- "type": "string",
8480
+ "type": "boolean",
8455
8481
  "kind": "expression"
8456
8482
  }
8457
8483
  }
8458
8484
  ]
8459
8485
  },
8460
8486
  {
8461
- "name": "van-swipe-item",
8462
- "slots": [],
8463
- "events": [
8464
- {
8465
- "name": "click",
8466
- "description": "点击时触发"
8467
- }
8468
- ],
8469
- "attributes": []
8470
- },
8471
- {
8472
- "name": "van-submit-bar",
8487
+ "name": "van-swipe",
8473
8488
  "slots": [
8474
8489
  {
8475
8490
  "name": "default",
8476
- "description": "自定义订单栏左侧内容"
8477
- },
8478
- {
8479
- "name": "button",
8480
- "description": "自定义按钮"
8481
- },
8482
- {
8483
- "name": "top",
8484
- "description": "自定义订单栏上方内容"
8491
+ "description": "轮播内容"
8485
8492
  },
8486
8493
  {
8487
- "name": "tip",
8488
- "description": "提示文案中的额外内容"
8494
+ "name": "indicator",
8495
+ "description": "自定义指示器"
8489
8496
  }
8490
8497
  ],
8491
8498
  "events": [
8492
8499
  {
8493
- "name": "submit",
8494
- "description": "按钮点击事件回调"
8500
+ "name": "change",
8501
+ "description": "每一页轮播结束后触发"
8495
8502
  }
8496
8503
  ],
8497
8504
  "attributes": [
8498
8505
  {
8499
- "name": "price",
8506
+ "name": "autoplay",
8500
8507
  "default": "-",
8501
- "description": "价格(单位分)",
8502
- "value": {
8503
- "type": "number",
8504
- "kind": "expression"
8505
- }
8506
- },
8507
- {
8508
- "name": "decimal-length",
8509
- "default": "`2`",
8510
- "description": "价格小数点位数",
8508
+ "description": "自动轮播间隔,单位为 ms",
8511
8509
  "value": {
8512
8510
  "type": "number | string",
8513
8511
  "kind": "expression"
8514
8512
  }
8515
8513
  },
8516
8514
  {
8517
- "name": "label",
8518
- "default": "`合计:`",
8519
- "description": "价格左侧文案",
8520
- "value": {
8521
- "type": "string",
8522
- "kind": "expression"
8523
- }
8524
- },
8525
- {
8526
- "name": "suffix-label",
8527
- "default": "-",
8528
- "description": "价格右侧文案",
8515
+ "name": "duration",
8516
+ "default": "`500`",
8517
+ "description": "动画时长,单位为 ms",
8529
8518
  "value": {
8530
- "type": "string",
8519
+ "type": "number | string",
8531
8520
  "kind": "expression"
8532
8521
  }
8533
8522
  },
8534
8523
  {
8535
- "name": "text-align",
8536
- "default": "`right`",
8537
- "description": "价格文案对齐方向,可选值为 `left`",
8524
+ "name": "initial-swipe",
8525
+ "default": "`0`",
8526
+ "description": "初始位置索引值",
8538
8527
  "value": {
8539
- "type": "string",
8528
+ "type": "number | string",
8540
8529
  "kind": "expression"
8541
8530
  }
8542
8531
  },
8543
8532
  {
8544
- "name": "button-text",
8545
- "default": "-",
8546
- "description": "按钮文字",
8533
+ "name": "width",
8534
+ "default": "`auto`",
8535
+ "description": "滑块宽度,单位为`px`",
8547
8536
  "value": {
8548
- "type": "string",
8537
+ "type": "number | string",
8549
8538
  "kind": "expression"
8550
8539
  }
8551
8540
  },
8552
8541
  {
8553
- "name": "button-type",
8554
- "default": "`danger`",
8555
- "description": "按钮类型",
8542
+ "name": "height",
8543
+ "default": "`auto`",
8544
+ "description": "滑块高度,单位为`px`",
8556
8545
  "value": {
8557
- "type": "string",
8546
+ "type": "number | string",
8558
8547
  "kind": "expression"
8559
8548
  }
8560
8549
  },
8561
8550
  {
8562
- "name": "button-color",
8563
- "default": "-",
8564
- "description": "自定义按钮颜色",
8551
+ "name": "loop",
8552
+ "default": "`true`",
8553
+ "description": "是否开启循环播放",
8565
8554
  "value": {
8566
- "type": "string",
8555
+ "type": "boolean",
8567
8556
  "kind": "expression"
8568
8557
  }
8569
8558
  },
8570
8559
  {
8571
- "name": "tip",
8572
- "default": "-",
8573
- "description": "在订单栏上方的提示文案",
8560
+ "name": "show-indicators",
8561
+ "default": "`true`",
8562
+ "description": "是否显示指示器",
8574
8563
  "value": {
8575
- "type": "string",
8564
+ "type": "boolean",
8576
8565
  "kind": "expression"
8577
8566
  }
8578
8567
  },
8579
8568
  {
8580
- "name": "tip-icon",
8581
- "default": "-",
8582
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接",
8569
+ "name": "vertical",
8570
+ "default": "`false`",
8571
+ "description": "是否为纵向滚动",
8583
8572
  "value": {
8584
- "type": "string",
8573
+ "type": "boolean",
8585
8574
  "kind": "expression"
8586
8575
  }
8587
8576
  },
8588
8577
  {
8589
- "name": "currency",
8590
- "default": "`¥`",
8591
- "description": "货币符号",
8578
+ "name": "touchable",
8579
+ "default": "`true`",
8580
+ "description": "是否可以通过手势滑动",
8592
8581
  "value": {
8593
- "type": "string",
8582
+ "type": "boolean",
8594
8583
  "kind": "expression"
8595
8584
  }
8596
8585
  },
8597
8586
  {
8598
- "name": "disabled",
8599
- "default": "`false`",
8600
- "description": "是否禁用按钮",
8587
+ "name": "stop-propagation",
8588
+ "default": "`true`",
8589
+ "description": "是否阻止滑动事件冒泡",
8601
8590
  "value": {
8602
8591
  "type": "boolean",
8603
8592
  "kind": "expression"
8604
8593
  }
8605
8594
  },
8606
8595
  {
8607
- "name": "loading",
8596
+ "name": "lazy-render",
8608
8597
  "default": "`false`",
8609
- "description": "是否显示将按钮显示为加载中状态",
8598
+ "description": "是否延迟渲染未展示的轮播",
8610
8599
  "value": {
8611
8600
  "type": "boolean",
8612
8601
  "kind": "expression"
8613
8602
  }
8614
8603
  },
8615
8604
  {
8616
- "name": "safe-area-inset-bottom",
8617
- "default": "`true`",
8618
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
8605
+ "name": "indicator-color",
8606
+ "default": "`#1989fa`",
8607
+ "description": "指示器颜色",
8619
8608
  "value": {
8620
- "type": "boolean",
8609
+ "type": "string",
8621
8610
  "kind": "expression"
8622
8611
  }
8623
8612
  }
8624
8613
  ]
8625
8614
  },
8615
+ {
8616
+ "name": "van-swipe-item",
8617
+ "slots": [],
8618
+ "events": [
8619
+ {
8620
+ "name": "click",
8621
+ "description": "点击时触发"
8622
+ }
8623
+ ],
8624
+ "attributes": []
8625
+ },
8626
8626
  {
8627
8627
  "name": "van-swipe-cell",
8628
8628
  "slots": [