vant 3.5.2 → 3.6.0
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 +17 -13
- package/changelog.generated.md +85 -0
- package/es/badge/Badge.mjs +1 -1
- package/es/button/index.less +1 -1
- package/es/calendar/Calendar.mjs +6 -5
- package/es/calendar/types.d.ts +1 -0
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +8 -1
- package/es/collapse/Collapse.mjs +28 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/CollapseItem.mjs +3 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/index.less +1 -1
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-height.mjs +8 -2
- package/es/composables/use-lock-scroll.mjs +3 -1
- package/es/composables/use-placeholder.mjs +1 -1
- package/es/config-provider/ConfigProvider.d.ts +3 -0
- package/es/config-provider/ConfigProvider.mjs +8 -1
- package/es/config-provider/index.d.ts +2 -0
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/Empty.mjs +281 -16
- package/es/field/Field.d.ts +1 -1
- package/es/field/Field.mjs +4 -1
- package/es/field/index.d.ts +1 -1
- package/es/field/index.less +1 -1
- package/es/field/types.d.ts +1 -0
- package/es/field/utils.d.ts +1 -0
- package/es/field/utils.mjs +8 -2
- package/es/grid-item/index.less +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/locale/index.d.ts +1 -1
- package/es/popover/Popover.mjs +28 -27
- package/es/popup/Popup.mjs +6 -5
- package/es/pull-refresh/PullRefresh.mjs +10 -3
- package/es/search/index.css +1 -1
- package/es/search/index.less +3 -1
- package/es/sidebar-item/index.less +1 -1
- package/es/space/Space.d.ts +48 -0
- package/es/space/Space.mjs +87 -0
- package/es/space/index.css +1 -0
- package/es/space/index.d.ts +37 -0
- package/es/space/index.less +38 -0
- package/es/space/index.mjs +8 -0
- package/es/space/style/index.d.ts +1 -0
- package/es/space/style/index.mjs +2 -0
- package/es/space/style/less.d.ts +1 -0
- package/es/space/style/less.mjs +2 -0
- package/es/swipe/index.less +1 -1
- package/es/switch/index.less +1 -1
- package/es/toast/index.less +1 -1
- package/es/uploader/Uploader.mjs +1 -1
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/create.d.ts +1 -1
- package/lib/badge/Badge.js +1 -1
- package/lib/button/index.less +1 -1
- package/lib/calendar/Calendar.js +6 -5
- package/lib/calendar/types.d.ts +1 -0
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +8 -1
- package/lib/collapse/Collapse.js +28 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.js +3 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/index.less +1 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-height.js +8 -2
- package/lib/composables/use-lock-scroll.js +3 -1
- package/lib/composables/use-placeholder.js +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +3 -0
- package/lib/config-provider/ConfigProvider.js +7 -0
- package/lib/config-provider/index.d.ts +2 -0
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/Empty.js +281 -16
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/Field.js +3 -0
- package/lib/field/index.d.ts +1 -1
- package/lib/field/index.less +1 -1
- package/lib/field/types.d.ts +1 -0
- package/lib/field/utils.d.ts +1 -0
- package/lib/field/utils.js +8 -2
- package/lib/grid-item/index.less +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.less +1 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/popover/Popover.js +27 -26
- package/lib/popup/Popup.js +6 -5
- package/lib/pull-refresh/PullRefresh.js +9 -2
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +3 -1
- package/lib/sidebar-item/index.less +1 -1
- package/lib/space/Space.d.ts +48 -0
- package/lib/space/Space.js +106 -0
- package/lib/space/index.css +1 -0
- package/lib/space/index.d.ts +37 -0
- package/lib/space/index.js +30 -0
- package/lib/space/index.less +38 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/space/style/index.js +2 -0
- package/lib/space/style/less.d.ts +1 -0
- package/lib/space/style/less.js +2 -0
- package/lib/swipe/index.less +1 -1
- package/lib/switch/index.less +1 -1
- package/lib/toast/index.less +1 -1
- package/lib/uploader/Uploader.js +1 -1
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/create.d.ts +1 -1
- package/lib/vant.cjs.js +1305 -1084
- package/lib/vant.es.js +1394 -1083
- package/lib/vant.js +1235 -1083
- package/lib/vant.min.js +1 -1
- package/{vetur → lib}/web-types.json +738 -666
- package/package.json +10 -15
- package/es/empty/Images.d.ts +0 -4
- package/es/empty/Images.mjs +0 -271
- package/lib/empty/Images.d.ts +0 -4
- package/lib/empty/Images.js +0 -290
- package/vetur/attributes.json +0 -3482
- package/vetur/tags.json +0 -1204
@@ -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": "3.
|
5
|
+
"version": "3.6.0",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -262,101 +262,115 @@
|
|
262
262
|
]
|
263
263
|
},
|
264
264
|
{
|
265
|
-
"name": "van-
|
265
|
+
"name": "van-address-edit",
|
266
266
|
"slots": [
|
267
267
|
{
|
268
268
|
"name": "default",
|
269
|
-
"description": "Custom content"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"name": "description",
|
273
|
-
"description": "Custom description above the options"
|
274
|
-
},
|
275
|
-
{
|
276
|
-
"name": "cancel",
|
277
|
-
"description": "Custom the content of cancel button"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"name": "action",
|
281
|
-
"description": "Custom the content of action"
|
269
|
+
"description": "Custom content below postal"
|
282
270
|
}
|
283
271
|
],
|
284
272
|
"events": [
|
285
273
|
{
|
286
|
-
"name": "
|
287
|
-
"description": "Emitted when
|
274
|
+
"name": "save",
|
275
|
+
"description": "Emitted when the save button is clicked",
|
288
276
|
"arguments": [
|
289
277
|
{
|
290
|
-
"name": "
|
291
|
-
"type": "
|
292
|
-
}
|
278
|
+
"name": "content",
|
279
|
+
"type": "form content"
|
280
|
+
}
|
281
|
+
]
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "focus",
|
285
|
+
"description": "Emitted when field is focused",
|
286
|
+
"arguments": [
|
293
287
|
{
|
294
|
-
"name": "
|
295
|
-
"type": "
|
288
|
+
"name": "key",
|
289
|
+
"type": "field name"
|
296
290
|
}
|
297
291
|
]
|
298
292
|
},
|
299
293
|
{
|
300
|
-
"name": "
|
301
|
-
"description": "Emitted when
|
302
|
-
"arguments": [
|
294
|
+
"name": "delete",
|
295
|
+
"description": "Emitted when confirming delete",
|
296
|
+
"arguments": [
|
297
|
+
{
|
298
|
+
"name": "content",
|
299
|
+
"type": "form content"
|
300
|
+
}
|
301
|
+
]
|
303
302
|
},
|
304
303
|
{
|
305
|
-
"name": "
|
306
|
-
"description": "Emitted when
|
307
|
-
"arguments": [
|
304
|
+
"name": "select-search",
|
305
|
+
"description": "Emitted when a search result is selected",
|
306
|
+
"arguments": [
|
307
|
+
{
|
308
|
+
"name": "value",
|
309
|
+
"type": "search content"
|
310
|
+
}
|
311
|
+
]
|
308
312
|
},
|
309
313
|
{
|
310
|
-
"name": "
|
311
|
-
"description": "Emitted when
|
314
|
+
"name": "click-area",
|
315
|
+
"description": "Emitted when the area field is clicked",
|
312
316
|
"arguments": []
|
313
317
|
},
|
314
318
|
{
|
315
|
-
"name": "
|
316
|
-
"description": "Emitted when
|
317
|
-
"arguments": [
|
319
|
+
"name": "change-area",
|
320
|
+
"description": "Emitted when area changed",
|
321
|
+
"arguments": [
|
322
|
+
{
|
323
|
+
"name": "values",
|
324
|
+
"type": "area values"
|
325
|
+
}
|
326
|
+
]
|
318
327
|
},
|
319
328
|
{
|
320
|
-
"name": "
|
321
|
-
"description": "Emitted when
|
322
|
-
"arguments": [
|
329
|
+
"name": "change-detail",
|
330
|
+
"description": "Emitted when address detail changed",
|
331
|
+
"arguments": [
|
332
|
+
{
|
333
|
+
"name": "value",
|
334
|
+
"type": "address detail"
|
335
|
+
}
|
336
|
+
]
|
323
337
|
},
|
324
338
|
{
|
325
|
-
"name": "
|
326
|
-
"description": "Emitted when
|
339
|
+
"name": "change-default",
|
340
|
+
"description": "Emitted when switching default address",
|
327
341
|
"arguments": [
|
328
342
|
{
|
329
|
-
"name": "
|
330
|
-
"type": "
|
343
|
+
"name": "value",
|
344
|
+
"type": "checked"
|
331
345
|
}
|
332
346
|
]
|
333
347
|
}
|
334
348
|
],
|
335
349
|
"attributes": [
|
336
350
|
{
|
337
|
-
"name": "
|
338
|
-
"default": "
|
339
|
-
"description": "
|
351
|
+
"name": "area-list",
|
352
|
+
"default": "-",
|
353
|
+
"description": "Area List",
|
340
354
|
"options": [],
|
341
355
|
"value": {
|
342
|
-
"type": "
|
356
|
+
"type": "object",
|
343
357
|
"kind": "expression"
|
344
358
|
}
|
345
359
|
},
|
346
360
|
{
|
347
|
-
"name": "
|
361
|
+
"name": "area-columns-placeholder",
|
348
362
|
"default": "`[]`",
|
349
|
-
"description": "
|
363
|
+
"description": "placeholder of area columns",
|
350
364
|
"options": [],
|
351
365
|
"value": {
|
352
|
-
"type": "
|
366
|
+
"type": "string[]",
|
353
367
|
"kind": "expression"
|
354
368
|
}
|
355
369
|
},
|
356
370
|
{
|
357
|
-
"name": "
|
358
|
-
"default": "
|
359
|
-
"description": "
|
371
|
+
"name": "area-placeholder",
|
372
|
+
"default": "`Area`",
|
373
|
+
"description": "placeholder of area input field",
|
360
374
|
"options": [],
|
361
375
|
"value": {
|
362
376
|
"type": "string",
|
@@ -364,29 +378,29 @@
|
|
364
378
|
}
|
365
379
|
},
|
366
380
|
{
|
367
|
-
"name": "
|
368
|
-
"default": "
|
369
|
-
"description": "
|
381
|
+
"name": "address-info",
|
382
|
+
"default": "`{}`",
|
383
|
+
"description": "Address Info",
|
370
384
|
"options": [],
|
371
385
|
"value": {
|
372
|
-
"type": "
|
386
|
+
"type": "AddressEditInfo",
|
373
387
|
"kind": "expression"
|
374
388
|
}
|
375
389
|
},
|
376
390
|
{
|
377
|
-
"name": "
|
378
|
-
"default": "
|
379
|
-
"description": "
|
391
|
+
"name": "search-result",
|
392
|
+
"default": "`[]`",
|
393
|
+
"description": "Address search result",
|
380
394
|
"options": [],
|
381
395
|
"value": {
|
382
|
-
"type": "
|
396
|
+
"type": "AddressEditSearchItem[]",
|
383
397
|
"kind": "expression"
|
384
398
|
}
|
385
399
|
},
|
386
400
|
{
|
387
|
-
"name": "
|
388
|
-
"default": "`
|
389
|
-
"description": "Whether to show
|
401
|
+
"name": "show-postal",
|
402
|
+
"default": "`false`",
|
403
|
+
"description": "Whether to show postal field",
|
390
404
|
"options": [],
|
391
405
|
"value": {
|
392
406
|
"type": "boolean",
|
@@ -394,29 +408,39 @@
|
|
394
408
|
}
|
395
409
|
},
|
396
410
|
{
|
397
|
-
"name": "
|
398
|
-
"default": "`
|
399
|
-
"description": "
|
411
|
+
"name": "show-delete",
|
412
|
+
"default": "`false`",
|
413
|
+
"description": "Whether to show delete button",
|
400
414
|
"options": [],
|
401
415
|
"value": {
|
402
|
-
"type": "
|
416
|
+
"type": "boolean",
|
403
417
|
"kind": "expression"
|
404
418
|
}
|
405
419
|
},
|
406
420
|
{
|
407
|
-
"name": "
|
408
|
-
"default": "`
|
409
|
-
"description": "
|
421
|
+
"name": "show-set-default",
|
422
|
+
"default": "`false`",
|
423
|
+
"description": "Whether to show default address switch",
|
410
424
|
"options": [],
|
411
425
|
"value": {
|
412
|
-
"type": "
|
426
|
+
"type": "boolean",
|
413
427
|
"kind": "expression"
|
414
428
|
}
|
415
429
|
},
|
416
430
|
{
|
417
|
-
"name": "
|
431
|
+
"name": "show-search-result",
|
432
|
+
"default": "`false`",
|
433
|
+
"description": "Whether to show address search result",
|
434
|
+
"options": [],
|
435
|
+
"value": {
|
436
|
+
"type": "boolean",
|
437
|
+
"kind": "expression"
|
438
|
+
}
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"name": "show-area",
|
418
442
|
"default": "`true`",
|
419
|
-
"description": "Whether to show
|
443
|
+
"description": "Whether to show area cell",
|
420
444
|
"options": [],
|
421
445
|
"value": {
|
422
446
|
"type": "boolean",
|
@@ -424,9 +448,9 @@
|
|
424
448
|
}
|
425
449
|
},
|
426
450
|
{
|
427
|
-
"name": "
|
451
|
+
"name": "show-detail",
|
428
452
|
"default": "`true`",
|
429
|
-
"description": "Whether to show
|
453
|
+
"description": "Whether to show detail field",
|
430
454
|
"options": [],
|
431
455
|
"value": {
|
432
456
|
"type": "boolean",
|
@@ -434,59 +458,59 @@
|
|
434
458
|
}
|
435
459
|
},
|
436
460
|
{
|
437
|
-
"name": "
|
438
|
-
"default": "
|
439
|
-
"description": "
|
461
|
+
"name": "disable-area",
|
462
|
+
"default": "`false`",
|
463
|
+
"description": "Whether to disable area select",
|
440
464
|
"options": [],
|
441
465
|
"value": {
|
442
|
-
"type": "
|
466
|
+
"type": "boolean",
|
443
467
|
"kind": "expression"
|
444
468
|
}
|
445
469
|
},
|
446
470
|
{
|
447
|
-
"name": "
|
448
|
-
"default": "
|
449
|
-
"description": "
|
471
|
+
"name": "save-button-text",
|
472
|
+
"default": "`Save`",
|
473
|
+
"description": "Save button text",
|
450
474
|
"options": [],
|
451
475
|
"value": {
|
452
|
-
"type": "
|
476
|
+
"type": "string",
|
453
477
|
"kind": "expression"
|
454
478
|
}
|
455
479
|
},
|
456
480
|
{
|
457
|
-
"name": "
|
458
|
-
"default": "`
|
459
|
-
"description": "
|
481
|
+
"name": "delete-button-text",
|
482
|
+
"default": "`Delete`",
|
483
|
+
"description": "Delete button text",
|
460
484
|
"options": [],
|
461
485
|
"value": {
|
462
|
-
"type": "
|
486
|
+
"type": "string",
|
463
487
|
"kind": "expression"
|
464
488
|
}
|
465
489
|
},
|
466
490
|
{
|
467
|
-
"name": "
|
468
|
-
"default": "`
|
469
|
-
"description": "
|
491
|
+
"name": "detail-rows",
|
492
|
+
"default": "`1`",
|
493
|
+
"description": "Detail input rows",
|
470
494
|
"options": [],
|
471
495
|
"value": {
|
472
|
-
"type": "
|
496
|
+
"type": "number | string",
|
473
497
|
"kind": "expression"
|
474
498
|
}
|
475
499
|
},
|
476
500
|
{
|
477
|
-
"name": "
|
478
|
-
"default": "`
|
479
|
-
"description": "
|
501
|
+
"name": "detail-maxlength",
|
502
|
+
"default": "`200`",
|
503
|
+
"description": "Detail maxlength",
|
480
504
|
"options": [],
|
481
505
|
"value": {
|
482
|
-
"type": "
|
506
|
+
"type": "number | string",
|
483
507
|
"kind": "expression"
|
484
508
|
}
|
485
509
|
},
|
486
510
|
{
|
487
|
-
"name": "
|
511
|
+
"name": "is-saving",
|
488
512
|
"default": "`false`",
|
489
|
-
"description": "Whether to
|
513
|
+
"description": "Whether to show save button loading status",
|
490
514
|
"options": [],
|
491
515
|
"value": {
|
492
516
|
"type": "boolean",
|
@@ -494,9 +518,9 @@
|
|
494
518
|
}
|
495
519
|
},
|
496
520
|
{
|
497
|
-
"name": "
|
498
|
-
"default": "`
|
499
|
-
"description": "Whether to
|
521
|
+
"name": "is-deleting",
|
522
|
+
"default": "`false`",
|
523
|
+
"description": "Whether to show delete button loading status",
|
500
524
|
"options": [],
|
501
525
|
"value": {
|
502
526
|
"type": "boolean",
|
@@ -504,257 +528,281 @@
|
|
504
528
|
}
|
505
529
|
},
|
506
530
|
{
|
507
|
-
"name": "
|
508
|
-
"default": "
|
509
|
-
"description": "
|
531
|
+
"name": "tel-validator",
|
532
|
+
"default": "-",
|
533
|
+
"description": "The method to validate tel",
|
510
534
|
"options": [],
|
511
535
|
"value": {
|
512
|
-
"type": "boolean",
|
536
|
+
"type": "(tel: string) => boolean",
|
513
537
|
"kind": "expression"
|
514
538
|
}
|
515
539
|
},
|
516
540
|
{
|
517
|
-
"name": "
|
541
|
+
"name": "tel-maxlength",
|
518
542
|
"default": "-",
|
519
|
-
"description": "
|
543
|
+
"description": "Tel maxlength",
|
520
544
|
"options": [],
|
521
545
|
"value": {
|
522
|
-
"type": "
|
546
|
+
"type": "number | string",
|
523
547
|
"kind": "expression"
|
524
548
|
}
|
525
549
|
},
|
526
550
|
{
|
527
|
-
"name": "
|
551
|
+
"name": "postal-validator",
|
528
552
|
"default": "-",
|
529
|
-
"description": "
|
553
|
+
"description": "The method to validate postal",
|
530
554
|
"options": [],
|
531
555
|
"value": {
|
532
|
-
"type": "(
|
556
|
+
"type": "(tel: string) => boolean",
|
557
|
+
"kind": "expression"
|
558
|
+
}
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"name": "validator",
|
562
|
+
"default": "-",
|
563
|
+
"description": "Custom validator",
|
564
|
+
"options": [],
|
565
|
+
"value": {
|
566
|
+
"type": "(key, val) => string",
|
533
567
|
"kind": "expression"
|
534
568
|
}
|
535
569
|
}
|
536
570
|
]
|
537
571
|
},
|
538
572
|
{
|
539
|
-
"name": "van-address-
|
573
|
+
"name": "van-address-list",
|
540
574
|
"slots": [
|
541
575
|
{
|
542
576
|
"name": "default",
|
543
|
-
"description": "Custom content
|
544
|
-
}
|
545
|
-
],
|
546
|
-
"events": [
|
577
|
+
"description": "Custom content after list"
|
578
|
+
},
|
547
579
|
{
|
548
|
-
"name": "
|
549
|
-
"description": "
|
550
|
-
"arguments": [
|
551
|
-
{
|
552
|
-
"name": "content",
|
553
|
-
"type": "form content"
|
554
|
-
}
|
555
|
-
]
|
580
|
+
"name": "top",
|
581
|
+
"description": "Custom content before list"
|
556
582
|
},
|
557
583
|
{
|
558
|
-
"name": "
|
559
|
-
"description": "
|
560
|
-
"arguments": [
|
561
|
-
{
|
562
|
-
"name": "key",
|
563
|
-
"type": "field name"
|
564
|
-
}
|
565
|
-
]
|
584
|
+
"name": "item-bottom",
|
585
|
+
"description": "Custom content after list item"
|
566
586
|
},
|
567
587
|
{
|
568
|
-
"name": "
|
569
|
-
"description": "
|
588
|
+
"name": "tag",
|
589
|
+
"description": "Custom tag of list item"
|
590
|
+
}
|
591
|
+
],
|
592
|
+
"events": [
|
593
|
+
{
|
594
|
+
"name": "add",
|
595
|
+
"description": "Emitted when the add button is clicked",
|
596
|
+
"arguments": []
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"name": "edit",
|
600
|
+
"description": "Emitted when the edit icon of address is clicked",
|
570
601
|
"arguments": [
|
571
602
|
{
|
572
|
-
"name": "
|
573
|
-
"type": "
|
603
|
+
"name": "item",
|
604
|
+
"type": "Address"
|
605
|
+
},
|
606
|
+
{
|
607
|
+
"name": "index",
|
608
|
+
"type": "number"
|
574
609
|
}
|
575
610
|
]
|
576
611
|
},
|
577
612
|
{
|
578
|
-
"name": "select
|
579
|
-
"description": "Emitted when
|
613
|
+
"name": "select",
|
614
|
+
"description": "Emitted when an address is selected",
|
580
615
|
"arguments": [
|
581
616
|
{
|
582
|
-
"name": "
|
583
|
-
"type": "
|
617
|
+
"name": "item",
|
618
|
+
"type": "Address"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"name": "index",
|
622
|
+
"type": "number"
|
584
623
|
}
|
585
624
|
]
|
586
625
|
},
|
587
626
|
{
|
588
|
-
"name": "
|
589
|
-
"description": "Emitted when the
|
590
|
-
"arguments": []
|
591
|
-
},
|
592
|
-
{
|
593
|
-
"name": "change-area",
|
594
|
-
"description": "Emitted when area changed",
|
627
|
+
"name": "edit-disabled",
|
628
|
+
"description": "Emitted when the edit icon of disabled address is clicked",
|
595
629
|
"arguments": [
|
596
630
|
{
|
597
|
-
"name": "
|
598
|
-
"type": "
|
631
|
+
"name": "item",
|
632
|
+
"type": "Address"
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"name": "index",
|
636
|
+
"type": "number"
|
599
637
|
}
|
600
638
|
]
|
601
639
|
},
|
602
640
|
{
|
603
|
-
"name": "
|
604
|
-
"description": "Emitted when address
|
641
|
+
"name": "select-disabled",
|
642
|
+
"description": "Emitted when a disabled address is selected",
|
605
643
|
"arguments": [
|
606
644
|
{
|
607
|
-
"name": "
|
608
|
-
"type": "
|
645
|
+
"name": "item",
|
646
|
+
"type": "Address"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"name": "index",
|
650
|
+
"type": "number"
|
609
651
|
}
|
610
652
|
]
|
611
653
|
},
|
612
654
|
{
|
613
|
-
"name": "
|
614
|
-
"description": "Emitted when
|
655
|
+
"name": "click-item",
|
656
|
+
"description": "Emitted when an address item is clicked",
|
615
657
|
"arguments": [
|
616
658
|
{
|
617
|
-
"name": "
|
618
|
-
"type": "
|
659
|
+
"name": "item",
|
660
|
+
"type": "Address"
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"name": "index",
|
664
|
+
"type": "number"
|
619
665
|
}
|
620
666
|
]
|
621
667
|
}
|
622
668
|
],
|
623
669
|
"attributes": [
|
624
670
|
{
|
625
|
-
"name": "
|
671
|
+
"name": "v-model",
|
626
672
|
"default": "-",
|
627
|
-
"description": "
|
673
|
+
"description": "Id of chosen address",
|
628
674
|
"options": [],
|
629
675
|
"value": {
|
630
|
-
"type": "
|
676
|
+
"type": "string",
|
631
677
|
"kind": "expression"
|
632
678
|
}
|
633
679
|
},
|
634
680
|
{
|
635
|
-
"name": "
|
681
|
+
"name": "list",
|
636
682
|
"default": "`[]`",
|
637
|
-
"description": "
|
683
|
+
"description": "Address list",
|
638
684
|
"options": [],
|
639
685
|
"value": {
|
640
|
-
"type": "
|
686
|
+
"type": "Address[]",
|
641
687
|
"kind": "expression"
|
642
688
|
}
|
643
689
|
},
|
644
690
|
{
|
645
|
-
"name": "
|
646
|
-
"default": "`
|
647
|
-
"description": "
|
691
|
+
"name": "disabled-list",
|
692
|
+
"default": "`[]`",
|
693
|
+
"description": "Disabled address list",
|
648
694
|
"options": [],
|
649
695
|
"value": {
|
650
|
-
"type": "
|
696
|
+
"type": "Address[]",
|
651
697
|
"kind": "expression"
|
652
698
|
}
|
653
699
|
},
|
654
700
|
{
|
655
|
-
"name": "
|
656
|
-
"default": "
|
657
|
-
"description": "
|
701
|
+
"name": "disabled-text",
|
702
|
+
"default": "-",
|
703
|
+
"description": "Disabled text",
|
658
704
|
"options": [],
|
659
705
|
"value": {
|
660
|
-
"type": "
|
706
|
+
"type": "string",
|
661
707
|
"kind": "expression"
|
662
708
|
}
|
663
709
|
},
|
664
710
|
{
|
665
|
-
"name": "
|
666
|
-
"default": "`
|
667
|
-
"description": "
|
711
|
+
"name": "switchable",
|
712
|
+
"default": "`true`",
|
713
|
+
"description": "Whether to allow switch address",
|
668
714
|
"options": [],
|
669
715
|
"value": {
|
670
|
-
"type": "
|
716
|
+
"type": "boolean",
|
671
717
|
"kind": "expression"
|
672
718
|
}
|
673
719
|
},
|
674
720
|
{
|
675
|
-
"name": "
|
676
|
-
"default": "`
|
677
|
-
"description": "
|
721
|
+
"name": "add-button-text",
|
722
|
+
"default": "`Add new address`",
|
723
|
+
"description": "Add button text",
|
678
724
|
"options": [],
|
679
725
|
"value": {
|
680
|
-
"type": "
|
726
|
+
"type": "string",
|
681
727
|
"kind": "expression"
|
682
728
|
}
|
683
729
|
},
|
684
730
|
{
|
685
|
-
"name": "
|
686
|
-
"default": "
|
687
|
-
"description": "
|
731
|
+
"name": "default-tag-text",
|
732
|
+
"default": "-",
|
733
|
+
"description": "Default tag text",
|
688
734
|
"options": [],
|
689
735
|
"value": {
|
690
|
-
"type": "
|
736
|
+
"type": "string",
|
691
737
|
"kind": "expression"
|
692
738
|
}
|
739
|
+
}
|
740
|
+
]
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"name": "van-area",
|
744
|
+
"slots": [
|
745
|
+
{
|
746
|
+
"name": "toolbar",
|
747
|
+
"description": "Custom toolbar content"
|
693
748
|
},
|
694
749
|
{
|
695
|
-
"name": "
|
696
|
-
"
|
697
|
-
"description": "Whether to show default address switch",
|
698
|
-
"options": [],
|
699
|
-
"value": {
|
700
|
-
"type": "boolean",
|
701
|
-
"kind": "expression"
|
702
|
-
}
|
750
|
+
"name": "title",
|
751
|
+
"description": "Custom title"
|
703
752
|
},
|
704
753
|
{
|
705
|
-
"name": "
|
706
|
-
"
|
707
|
-
"description": "Whether to show address search result",
|
708
|
-
"options": [],
|
709
|
-
"value": {
|
710
|
-
"type": "boolean",
|
711
|
-
"kind": "expression"
|
712
|
-
}
|
754
|
+
"name": "confirm",
|
755
|
+
"description": "Custom confirm button text"
|
713
756
|
},
|
714
757
|
{
|
715
|
-
"name": "
|
716
|
-
"
|
717
|
-
"description": "Whether to show area cell",
|
718
|
-
"options": [],
|
719
|
-
"value": {
|
720
|
-
"type": "boolean",
|
721
|
-
"kind": "expression"
|
722
|
-
}
|
758
|
+
"name": "cancel",
|
759
|
+
"description": "Custom cancel button text"
|
723
760
|
},
|
724
761
|
{
|
725
|
-
"name": "
|
726
|
-
"
|
727
|
-
"description": "Whether to show detail field",
|
728
|
-
"options": [],
|
729
|
-
"value": {
|
730
|
-
"type": "boolean",
|
731
|
-
"kind": "expression"
|
732
|
-
}
|
762
|
+
"name": "columns-top",
|
763
|
+
"description": "Custom content above columns"
|
733
764
|
},
|
734
765
|
{
|
735
|
-
"name": "
|
736
|
-
"
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
766
|
+
"name": "columns-bottom",
|
767
|
+
"description": "Custom content below columns"
|
768
|
+
}
|
769
|
+
],
|
770
|
+
"events": [
|
771
|
+
{
|
772
|
+
"name": "confirm",
|
773
|
+
"description": "Emitted when the confirm button is clicked",
|
774
|
+
"arguments": [
|
775
|
+
{
|
776
|
+
"name": "result",
|
777
|
+
"type": "ConfirmResult"
|
778
|
+
}
|
779
|
+
]
|
743
780
|
},
|
744
781
|
{
|
745
|
-
"name": "
|
746
|
-
"
|
747
|
-
"
|
748
|
-
"options": [],
|
749
|
-
"value": {
|
750
|
-
"type": "string",
|
751
|
-
"kind": "expression"
|
752
|
-
}
|
782
|
+
"name": "cancel",
|
783
|
+
"description": "Emitted when the cancel button is clicked",
|
784
|
+
"arguments": []
|
753
785
|
},
|
754
786
|
{
|
755
|
-
"name": "
|
756
|
-
"
|
757
|
-
"
|
787
|
+
"name": "change",
|
788
|
+
"description": "Emitted when current option changed",
|
789
|
+
"arguments": [
|
790
|
+
{
|
791
|
+
"name": "current",
|
792
|
+
"type": "values"
|
793
|
+
},
|
794
|
+
{
|
795
|
+
"name": "column",
|
796
|
+
"type": "index"
|
797
|
+
}
|
798
|
+
]
|
799
|
+
}
|
800
|
+
],
|
801
|
+
"attributes": [
|
802
|
+
{
|
803
|
+
"name": "value",
|
804
|
+
"default": "-",
|
805
|
+
"description": "the `code` of selected area",
|
758
806
|
"options": [],
|
759
807
|
"value": {
|
760
808
|
"type": "string",
|
@@ -762,249 +810,205 @@
|
|
762
810
|
}
|
763
811
|
},
|
764
812
|
{
|
765
|
-
"name": "
|
766
|
-
"default": "
|
767
|
-
"description": "
|
813
|
+
"name": "title",
|
814
|
+
"default": "-",
|
815
|
+
"description": "Toolbar title",
|
768
816
|
"options": [],
|
769
817
|
"value": {
|
770
|
-
"type": "
|
818
|
+
"type": "string",
|
771
819
|
"kind": "expression"
|
772
820
|
}
|
773
821
|
},
|
774
822
|
{
|
775
|
-
"name": "
|
776
|
-
"default": "`
|
777
|
-
"description": "
|
823
|
+
"name": "confirm-button-text",
|
824
|
+
"default": "`Confirm`",
|
825
|
+
"description": "Text of confirm button",
|
778
826
|
"options": [],
|
779
827
|
"value": {
|
780
|
-
"type": "
|
828
|
+
"type": "string",
|
781
829
|
"kind": "expression"
|
782
830
|
}
|
783
831
|
},
|
784
832
|
{
|
785
|
-
"name": "
|
786
|
-
"default": "`
|
787
|
-
"description": "
|
833
|
+
"name": "cancel-button-text",
|
834
|
+
"default": "`Cancel`",
|
835
|
+
"description": "Text of cancel button",
|
788
836
|
"options": [],
|
789
837
|
"value": {
|
790
|
-
"type": "
|
838
|
+
"type": "string",
|
791
839
|
"kind": "expression"
|
792
840
|
}
|
793
841
|
},
|
794
842
|
{
|
795
|
-
"name": "
|
796
|
-
"default": "
|
797
|
-
"description": "
|
843
|
+
"name": "area-list",
|
844
|
+
"default": "-",
|
845
|
+
"description": "Area list data",
|
798
846
|
"options": [],
|
799
847
|
"value": {
|
800
|
-
"type": "
|
848
|
+
"type": "object",
|
801
849
|
"kind": "expression"
|
802
850
|
}
|
803
851
|
},
|
804
852
|
{
|
805
|
-
"name": "
|
806
|
-
"default": "
|
807
|
-
"description": "
|
853
|
+
"name": "columns-placeholder",
|
854
|
+
"default": "`[]`",
|
855
|
+
"description": "Placeholder of columns",
|
808
856
|
"options": [],
|
809
857
|
"value": {
|
810
|
-
"type": "
|
858
|
+
"type": "string[]",
|
811
859
|
"kind": "expression"
|
812
860
|
}
|
813
861
|
},
|
814
862
|
{
|
815
|
-
"name": "
|
816
|
-
"default": "
|
817
|
-
"description": "
|
863
|
+
"name": "loading",
|
864
|
+
"default": "`false`",
|
865
|
+
"description": "Whether to show loading prompt",
|
818
866
|
"options": [],
|
819
867
|
"value": {
|
820
|
-
"type": "
|
868
|
+
"type": "boolean",
|
821
869
|
"kind": "expression"
|
822
870
|
}
|
823
871
|
},
|
824
872
|
{
|
825
|
-
"name": "
|
826
|
-
"default": "
|
827
|
-
"description": "
|
873
|
+
"name": "readonly",
|
874
|
+
"default": "`false`",
|
875
|
+
"description": "Whether to be readonly",
|
828
876
|
"options": [],
|
829
877
|
"value": {
|
830
|
-
"type": "
|
878
|
+
"type": "boolean",
|
831
879
|
"kind": "expression"
|
832
880
|
}
|
833
881
|
},
|
834
882
|
{
|
835
|
-
"name": "
|
836
|
-
"default": "
|
837
|
-
"description": "
|
883
|
+
"name": "item-height",
|
884
|
+
"default": "`44`",
|
885
|
+
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
|
838
886
|
"options": [],
|
839
887
|
"value": {
|
840
|
-
"type": "
|
888
|
+
"type": "number | string",
|
841
889
|
"kind": "expression"
|
842
890
|
}
|
843
|
-
}
|
844
|
-
]
|
845
|
-
},
|
846
|
-
{
|
847
|
-
"name": "van-address-list",
|
848
|
-
"slots": [
|
849
|
-
{
|
850
|
-
"name": "default",
|
851
|
-
"description": "Custom content after list"
|
852
|
-
},
|
853
|
-
{
|
854
|
-
"name": "top",
|
855
|
-
"description": "Custom content before list"
|
856
|
-
},
|
857
|
-
{
|
858
|
-
"name": "item-bottom",
|
859
|
-
"description": "Custom content after list item"
|
860
|
-
},
|
861
|
-
{
|
862
|
-
"name": "tag",
|
863
|
-
"description": "Custom tag of list item"
|
864
|
-
}
|
865
|
-
],
|
866
|
-
"events": [
|
867
|
-
{
|
868
|
-
"name": "add",
|
869
|
-
"description": "Emitted when the add button is clicked",
|
870
|
-
"arguments": []
|
871
891
|
},
|
872
892
|
{
|
873
|
-
"name": "
|
874
|
-
"
|
875
|
-
"
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
"name": "index",
|
882
|
-
"type": "number"
|
883
|
-
}
|
884
|
-
]
|
893
|
+
"name": "columns-num",
|
894
|
+
"default": "`3`",
|
895
|
+
"description": "Level of picker",
|
896
|
+
"options": [],
|
897
|
+
"value": {
|
898
|
+
"type": "number | string",
|
899
|
+
"kind": "expression"
|
900
|
+
}
|
885
901
|
},
|
886
902
|
{
|
887
|
-
"name": "
|
888
|
-
"
|
889
|
-
"
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
"name": "index",
|
896
|
-
"type": "number"
|
897
|
-
}
|
898
|
-
]
|
903
|
+
"name": "visible-item-count",
|
904
|
+
"default": "`6`",
|
905
|
+
"description": "Count of visible columns",
|
906
|
+
"options": [],
|
907
|
+
"value": {
|
908
|
+
"type": "number | string",
|
909
|
+
"kind": "expression"
|
910
|
+
}
|
899
911
|
},
|
900
912
|
{
|
901
|
-
"name": "
|
902
|
-
"
|
903
|
-
"
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
"name": "index",
|
910
|
-
"type": "number"
|
911
|
-
}
|
912
|
-
]
|
913
|
+
"name": "swipe-duration",
|
914
|
+
"default": "`1000`",
|
915
|
+
"description": "Duration of the momentum animation, unit `ms`",
|
916
|
+
"options": [],
|
917
|
+
"value": {
|
918
|
+
"type": "number | string",
|
919
|
+
"kind": "expression"
|
920
|
+
}
|
913
921
|
},
|
914
922
|
{
|
915
|
-
"name": "
|
916
|
-
"
|
917
|
-
"
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
923
|
+
"name": "is-oversea-code",
|
924
|
+
"default": "-",
|
925
|
+
"description": "The method to validate oversea code",
|
926
|
+
"options": [],
|
927
|
+
"value": {
|
928
|
+
"type": "() => boolean",
|
929
|
+
"kind": "expression"
|
930
|
+
}
|
931
|
+
}
|
932
|
+
]
|
933
|
+
},
|
934
|
+
{
|
935
|
+
"name": "van-badge",
|
936
|
+
"slots": [
|
937
|
+
{
|
938
|
+
"name": "default",
|
939
|
+
"description": "Default slot"
|
927
940
|
},
|
928
941
|
{
|
929
|
-
"name": "
|
930
|
-
"description": "
|
931
|
-
"arguments": [
|
932
|
-
{
|
933
|
-
"name": "item",
|
934
|
-
"type": "Address"
|
935
|
-
},
|
936
|
-
{
|
937
|
-
"name": "index",
|
938
|
-
"type": "number"
|
939
|
-
}
|
940
|
-
]
|
942
|
+
"name": "content",
|
943
|
+
"description": "Custom badge content"
|
941
944
|
}
|
942
945
|
],
|
946
|
+
"events": [],
|
943
947
|
"attributes": [
|
944
948
|
{
|
945
|
-
"name": "
|
949
|
+
"name": "content",
|
946
950
|
"default": "-",
|
947
|
-
"description": "
|
951
|
+
"description": "Badge content",
|
948
952
|
"options": [],
|
949
953
|
"value": {
|
950
|
-
"type": "string",
|
954
|
+
"type": "number | string",
|
951
955
|
"kind": "expression"
|
952
956
|
}
|
953
957
|
},
|
954
958
|
{
|
955
|
-
"name": "
|
956
|
-
"default": "`
|
957
|
-
"description": "
|
959
|
+
"name": "color",
|
960
|
+
"default": "`#ee0a24`",
|
961
|
+
"description": "Background color",
|
958
962
|
"options": [],
|
959
963
|
"value": {
|
960
|
-
"type": "
|
964
|
+
"type": "string",
|
961
965
|
"kind": "expression"
|
962
966
|
}
|
963
967
|
},
|
964
968
|
{
|
965
|
-
"name": "
|
966
|
-
"default": "`
|
967
|
-
"description": "
|
969
|
+
"name": "dot",
|
970
|
+
"default": "`false`",
|
971
|
+
"description": "Whether to show dot",
|
968
972
|
"options": [],
|
969
973
|
"value": {
|
970
|
-
"type": "
|
974
|
+
"type": "boolean",
|
971
975
|
"kind": "expression"
|
972
976
|
}
|
973
977
|
},
|
974
978
|
{
|
975
|
-
"name": "
|
979
|
+
"name": "max",
|
976
980
|
"default": "-",
|
977
|
-
"description": "
|
981
|
+
"description": "Max value, show `{max}+` when exceed, only works when content is number",
|
978
982
|
"options": [],
|
979
983
|
"value": {
|
980
|
-
"type": "string",
|
984
|
+
"type": "number | string",
|
981
985
|
"kind": "expression"
|
982
986
|
}
|
983
987
|
},
|
984
988
|
{
|
985
|
-
"name": "
|
986
|
-
"default": "
|
987
|
-
"description": "
|
989
|
+
"name": "offset",
|
990
|
+
"default": "-",
|
991
|
+
"description": "Offset of badge dot",
|
988
992
|
"options": [],
|
989
993
|
"value": {
|
990
|
-
"type": "
|
994
|
+
"type": "[number | string, number | string]",
|
991
995
|
"kind": "expression"
|
992
996
|
}
|
993
997
|
},
|
994
998
|
{
|
995
|
-
"name": "
|
996
|
-
"default": "`
|
997
|
-
"description": "
|
999
|
+
"name": "show-zero",
|
1000
|
+
"default": "`true`",
|
1001
|
+
"description": "Whether to show badge when content is zero",
|
998
1002
|
"options": [],
|
999
1003
|
"value": {
|
1000
|
-
"type": "
|
1004
|
+
"type": "boolean",
|
1001
1005
|
"kind": "expression"
|
1002
1006
|
}
|
1003
1007
|
},
|
1004
1008
|
{
|
1005
|
-
"name": "
|
1006
|
-
"default": "-",
|
1007
|
-
"description": "
|
1009
|
+
"name": "position",
|
1010
|
+
"default": "`top-right`",
|
1011
|
+
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
|
1008
1012
|
"options": [],
|
1009
1013
|
"value": {
|
1010
1014
|
"type": "string",
|
@@ -1014,69 +1018,68 @@
|
|
1014
1018
|
]
|
1015
1019
|
},
|
1016
1020
|
{
|
1017
|
-
"name": "van-
|
1021
|
+
"name": "van-button",
|
1018
1022
|
"slots": [
|
1019
1023
|
{
|
1020
|
-
"name": "
|
1021
|
-
"description": "
|
1022
|
-
},
|
1023
|
-
{
|
1024
|
-
"name": "title",
|
1025
|
-
"description": "Custom title"
|
1026
|
-
},
|
1027
|
-
{
|
1028
|
-
"name": "confirm",
|
1029
|
-
"description": "Custom confirm button text"
|
1030
|
-
},
|
1031
|
-
{
|
1032
|
-
"name": "cancel",
|
1033
|
-
"description": "Custom cancel button text"
|
1024
|
+
"name": "default",
|
1025
|
+
"description": "Default slot"
|
1034
1026
|
},
|
1035
1027
|
{
|
1036
|
-
"name": "
|
1037
|
-
"description": "Custom
|
1028
|
+
"name": "icon",
|
1029
|
+
"description": "Custom icon"
|
1038
1030
|
},
|
1039
1031
|
{
|
1040
|
-
"name": "
|
1041
|
-
"description": "Custom
|
1032
|
+
"name": "loading",
|
1033
|
+
"description": "Custom loading icon"
|
1042
1034
|
}
|
1043
1035
|
],
|
1044
1036
|
"events": [
|
1045
1037
|
{
|
1046
|
-
"name": "
|
1047
|
-
"description": "Emitted when
|
1038
|
+
"name": "click",
|
1039
|
+
"description": "Emitted when button is clicked and not disabled or loading",
|
1048
1040
|
"arguments": [
|
1049
1041
|
{
|
1050
|
-
"name": "
|
1051
|
-
"type": "
|
1042
|
+
"name": "event",
|
1043
|
+
"type": "MouseEvent"
|
1052
1044
|
}
|
1053
1045
|
]
|
1054
1046
|
},
|
1055
1047
|
{
|
1056
|
-
"name": "
|
1057
|
-
"description": "Emitted when
|
1058
|
-
"arguments": []
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"name": "change",
|
1062
|
-
"description": "Emitted when current option changed",
|
1048
|
+
"name": "touchstart",
|
1049
|
+
"description": "Emitted when button is touched",
|
1063
1050
|
"arguments": [
|
1064
1051
|
{
|
1065
|
-
"name": "
|
1066
|
-
"type": "
|
1067
|
-
},
|
1068
|
-
{
|
1069
|
-
"name": "column",
|
1070
|
-
"type": "index"
|
1052
|
+
"name": "event",
|
1053
|
+
"type": "TouchEvent"
|
1071
1054
|
}
|
1072
1055
|
]
|
1073
1056
|
}
|
1074
1057
|
],
|
1075
1058
|
"attributes": [
|
1076
1059
|
{
|
1077
|
-
"name": "
|
1060
|
+
"name": "type",
|
1061
|
+
"default": "`default`",
|
1062
|
+
"description": "Can be set to `primary` `success` `warning` `danger`",
|
1063
|
+
"options": [],
|
1064
|
+
"value": {
|
1065
|
+
"type": "string",
|
1066
|
+
"kind": "expression"
|
1067
|
+
}
|
1068
|
+
},
|
1069
|
+
{
|
1070
|
+
"name": "size",
|
1071
|
+
"default": "`normal`",
|
1072
|
+
"description": "Can be set to `large` `small` `mini`",
|
1073
|
+
"options": [],
|
1074
|
+
"value": {
|
1075
|
+
"type": "string",
|
1076
|
+
"kind": "expression"
|
1077
|
+
}
|
1078
|
+
},
|
1079
|
+
{
|
1080
|
+
"name": "text",
|
1078
1081
|
"default": "-",
|
1079
|
-
"description": "
|
1082
|
+
"description": "Text",
|
1080
1083
|
"options": [],
|
1081
1084
|
"value": {
|
1082
1085
|
"type": "string",
|
@@ -1084,9 +1087,9 @@
|
|
1084
1087
|
}
|
1085
1088
|
},
|
1086
1089
|
{
|
1087
|
-
"name": "
|
1090
|
+
"name": "color",
|
1088
1091
|
"default": "-",
|
1089
|
-
"description": "
|
1092
|
+
"description": "Color, support linear-gradient",
|
1090
1093
|
"options": [],
|
1091
1094
|
"value": {
|
1092
1095
|
"type": "string",
|
@@ -1094,9 +1097,9 @@
|
|
1094
1097
|
}
|
1095
1098
|
},
|
1096
1099
|
{
|
1097
|
-
"name": "
|
1098
|
-
"default": "
|
1099
|
-
"description": "
|
1100
|
+
"name": "icon",
|
1101
|
+
"default": "-",
|
1102
|
+
"description": "Left Icon",
|
1100
1103
|
"options": [],
|
1101
1104
|
"value": {
|
1102
1105
|
"type": "string",
|
@@ -1104,9 +1107,9 @@
|
|
1104
1107
|
}
|
1105
1108
|
},
|
1106
1109
|
{
|
1107
|
-
"name": "
|
1108
|
-
"default": "`
|
1109
|
-
"description": "
|
1110
|
+
"name": "icon-prefix",
|
1111
|
+
"default": "`van-icon`",
|
1112
|
+
"description": "Icon className prefix",
|
1110
1113
|
"options": [],
|
1111
1114
|
"value": {
|
1112
1115
|
"type": "string",
|
@@ -1114,39 +1117,39 @@
|
|
1114
1117
|
}
|
1115
1118
|
},
|
1116
1119
|
{
|
1117
|
-
"name": "
|
1118
|
-
"default": "
|
1119
|
-
"description": "
|
1120
|
+
"name": "icon-position",
|
1121
|
+
"default": "`left`",
|
1122
|
+
"description": "Icon position, can be set to `right`",
|
1120
1123
|
"options": [],
|
1121
1124
|
"value": {
|
1122
|
-
"type": "
|
1125
|
+
"type": "string",
|
1123
1126
|
"kind": "expression"
|
1124
1127
|
}
|
1125
1128
|
},
|
1126
1129
|
{
|
1127
|
-
"name": "
|
1128
|
-
"default": "`
|
1129
|
-
"description": "
|
1130
|
+
"name": "tag",
|
1131
|
+
"default": "`button`",
|
1132
|
+
"description": "HTML Tag",
|
1130
1133
|
"options": [],
|
1131
1134
|
"value": {
|
1132
|
-
"type": "string
|
1135
|
+
"type": "string",
|
1133
1136
|
"kind": "expression"
|
1134
1137
|
}
|
1135
1138
|
},
|
1136
1139
|
{
|
1137
|
-
"name": "
|
1138
|
-
"default": "`
|
1139
|
-
"description": "
|
1140
|
+
"name": "native-type",
|
1141
|
+
"default": "`button`",
|
1142
|
+
"description": "Native Type Attribute",
|
1140
1143
|
"options": [],
|
1141
1144
|
"value": {
|
1142
|
-
"type": "
|
1145
|
+
"type": "string",
|
1143
1146
|
"kind": "expression"
|
1144
1147
|
}
|
1145
1148
|
},
|
1146
1149
|
{
|
1147
|
-
"name": "
|
1150
|
+
"name": "plain",
|
1148
1151
|
"default": "`false`",
|
1149
|
-
"description": "Whether to be
|
1152
|
+
"description": "Whether to be plain button",
|
1150
1153
|
"options": [],
|
1151
1154
|
"value": {
|
1152
1155
|
"type": "boolean",
|
@@ -1154,85 +1157,69 @@
|
|
1154
1157
|
}
|
1155
1158
|
},
|
1156
1159
|
{
|
1157
|
-
"name": "
|
1158
|
-
"default": "`
|
1159
|
-
"description": "
|
1160
|
+
"name": "block",
|
1161
|
+
"default": "`false`",
|
1162
|
+
"description": "Whether to set display block",
|
1160
1163
|
"options": [],
|
1161
1164
|
"value": {
|
1162
|
-
"type": "
|
1165
|
+
"type": "boolean",
|
1163
1166
|
"kind": "expression"
|
1164
1167
|
}
|
1165
1168
|
},
|
1166
1169
|
{
|
1167
|
-
"name": "
|
1168
|
-
"default": "`
|
1169
|
-
"description": "
|
1170
|
+
"name": "round",
|
1171
|
+
"default": "`false`",
|
1172
|
+
"description": "Whether to be round button",
|
1170
1173
|
"options": [],
|
1171
1174
|
"value": {
|
1172
|
-
"type": "
|
1175
|
+
"type": "boolean",
|
1173
1176
|
"kind": "expression"
|
1174
1177
|
}
|
1175
1178
|
},
|
1176
1179
|
{
|
1177
|
-
"name": "
|
1178
|
-
"default": "`
|
1179
|
-
"description": "
|
1180
|
+
"name": "square",
|
1181
|
+
"default": "`false`",
|
1182
|
+
"description": "Whether to be square button",
|
1180
1183
|
"options": [],
|
1181
1184
|
"value": {
|
1182
|
-
"type": "
|
1185
|
+
"type": "boolean",
|
1183
1186
|
"kind": "expression"
|
1184
1187
|
}
|
1185
1188
|
},
|
1186
1189
|
{
|
1187
|
-
"name": "
|
1188
|
-
"default": "`
|
1189
|
-
"description": "
|
1190
|
+
"name": "disabled",
|
1191
|
+
"default": "`false`",
|
1192
|
+
"description": "Whether to disable button",
|
1190
1193
|
"options": [],
|
1191
1194
|
"value": {
|
1192
|
-
"type": "
|
1195
|
+
"type": "boolean",
|
1193
1196
|
"kind": "expression"
|
1194
1197
|
}
|
1195
1198
|
},
|
1196
1199
|
{
|
1197
|
-
"name": "
|
1198
|
-
"default": "
|
1199
|
-
"description": "
|
1200
|
+
"name": "loading",
|
1201
|
+
"default": "`false`",
|
1202
|
+
"description": "Whether to show loading status",
|
1200
1203
|
"options": [],
|
1201
1204
|
"value": {
|
1202
|
-
"type": "
|
1205
|
+
"type": "boolean",
|
1203
1206
|
"kind": "expression"
|
1204
1207
|
}
|
1205
|
-
}
|
1206
|
-
]
|
1207
|
-
},
|
1208
|
-
{
|
1209
|
-
"name": "van-badge",
|
1210
|
-
"slots": [
|
1211
|
-
{
|
1212
|
-
"name": "default",
|
1213
|
-
"description": "Default slot"
|
1214
1208
|
},
|
1215
1209
|
{
|
1216
|
-
"name": "
|
1217
|
-
"description": "Custom badge content"
|
1218
|
-
}
|
1219
|
-
],
|
1220
|
-
"events": [],
|
1221
|
-
"attributes": [
|
1222
|
-
{
|
1223
|
-
"name": "content",
|
1210
|
+
"name": "loading-text",
|
1224
1211
|
"default": "-",
|
1225
|
-
"description": "
|
1212
|
+
"description": "Loading text",
|
1226
1213
|
"options": [],
|
1227
1214
|
"value": {
|
1228
|
-
"type": "
|
1215
|
+
"type": "string",
|
1229
1216
|
"kind": "expression"
|
1230
1217
|
}
|
1231
1218
|
},
|
1232
1219
|
{
|
1233
|
-
"name": "
|
1234
|
-
"default": "
|
1235
|
-
"description": "
|
1220
|
+
"name": "loading-type",
|
1221
|
+
"default": "`circular`",
|
1222
|
+
"description": "Loading type, can be set to `spinner`",
|
1236
1223
|
"options": [],
|
1237
1224
|
"value": {
|
1238
1225
|
"type": "string",
|
@@ -1240,120 +1227,143 @@
|
|
1240
1227
|
}
|
1241
1228
|
},
|
1242
1229
|
{
|
1243
|
-
"name": "
|
1244
|
-
"default": "`
|
1245
|
-
"description": "
|
1230
|
+
"name": "loading-size",
|
1231
|
+
"default": "`20px`",
|
1232
|
+
"description": "Loading icon size",
|
1246
1233
|
"options": [],
|
1247
1234
|
"value": {
|
1248
|
-
"type": "
|
1235
|
+
"type": "number | string",
|
1249
1236
|
"kind": "expression"
|
1250
1237
|
}
|
1251
1238
|
},
|
1252
1239
|
{
|
1253
|
-
"name": "
|
1240
|
+
"name": "url",
|
1254
1241
|
"default": "-",
|
1255
|
-
"description": "
|
1242
|
+
"description": "Link URL",
|
1256
1243
|
"options": [],
|
1257
1244
|
"value": {
|
1258
|
-
"type": "
|
1245
|
+
"type": "string",
|
1259
1246
|
"kind": "expression"
|
1260
1247
|
}
|
1261
1248
|
},
|
1262
1249
|
{
|
1263
|
-
"name": "
|
1250
|
+
"name": "to",
|
1264
1251
|
"default": "-",
|
1265
|
-
"description": "
|
1252
|
+
"description": "Target route of the link, same as using vue-router",
|
1266
1253
|
"options": [],
|
1267
1254
|
"value": {
|
1268
|
-
"type": "
|
1255
|
+
"type": "string | object",
|
1269
1256
|
"kind": "expression"
|
1270
1257
|
}
|
1271
1258
|
},
|
1272
1259
|
{
|
1273
|
-
"name": "
|
1274
|
-
"default": "`
|
1275
|
-
"description": "
|
1260
|
+
"name": "replace",
|
1261
|
+
"default": "`false`",
|
1262
|
+
"description": "If true, the navigation will not leave a history record",
|
1276
1263
|
"options": [],
|
1277
1264
|
"value": {
|
1278
1265
|
"type": "boolean",
|
1279
1266
|
"kind": "expression"
|
1280
1267
|
}
|
1281
|
-
},
|
1282
|
-
{
|
1283
|
-
"name": "position",
|
1284
|
-
"default": "`top-right`",
|
1285
|
-
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`",
|
1286
|
-
"options": [],
|
1287
|
-
"value": {
|
1288
|
-
"type": "string",
|
1289
|
-
"kind": "expression"
|
1290
|
-
}
|
1291
1268
|
}
|
1292
1269
|
]
|
1293
1270
|
},
|
1294
1271
|
{
|
1295
|
-
"name": "van-
|
1272
|
+
"name": "van-action-sheet",
|
1296
1273
|
"slots": [
|
1297
1274
|
{
|
1298
1275
|
"name": "default",
|
1299
|
-
"description": "
|
1276
|
+
"description": "Custom content"
|
1300
1277
|
},
|
1301
1278
|
{
|
1302
|
-
"name": "
|
1303
|
-
"description": "Custom
|
1279
|
+
"name": "description",
|
1280
|
+
"description": "Custom description above the options"
|
1304
1281
|
},
|
1305
1282
|
{
|
1306
|
-
"name": "
|
1307
|
-
"description": "Custom
|
1283
|
+
"name": "cancel",
|
1284
|
+
"description": "Custom the content of cancel button"
|
1285
|
+
},
|
1286
|
+
{
|
1287
|
+
"name": "action",
|
1288
|
+
"description": "Custom the content of action"
|
1308
1289
|
}
|
1309
1290
|
],
|
1310
1291
|
"events": [
|
1311
1292
|
{
|
1312
|
-
"name": "
|
1313
|
-
"description": "Emitted when
|
1293
|
+
"name": "select",
|
1294
|
+
"description": "Emitted when an option is clicked",
|
1314
1295
|
"arguments": [
|
1315
1296
|
{
|
1316
|
-
"name": "
|
1317
|
-
"type": "
|
1297
|
+
"name": "action",
|
1298
|
+
"type": "ActionSheetAction"
|
1299
|
+
},
|
1300
|
+
{
|
1301
|
+
"name": "index",
|
1302
|
+
"type": "number"
|
1318
1303
|
}
|
1319
1304
|
]
|
1320
1305
|
},
|
1321
1306
|
{
|
1322
|
-
"name": "
|
1323
|
-
"description": "Emitted when button is
|
1307
|
+
"name": "cancel",
|
1308
|
+
"description": "Emitted when the cancel button is clicked",
|
1309
|
+
"arguments": []
|
1310
|
+
},
|
1311
|
+
{
|
1312
|
+
"name": "open",
|
1313
|
+
"description": "Emitted when opening ActionSheet",
|
1314
|
+
"arguments": []
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"name": "close",
|
1318
|
+
"description": "Emitted when closing ActionSheet",
|
1319
|
+
"arguments": []
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
"name": "opened",
|
1323
|
+
"description": "Emitted when ActionSheet is opened",
|
1324
|
+
"arguments": []
|
1325
|
+
},
|
1326
|
+
{
|
1327
|
+
"name": "closed",
|
1328
|
+
"description": "Emitted when ActionSheet is closed",
|
1329
|
+
"arguments": []
|
1330
|
+
},
|
1331
|
+
{
|
1332
|
+
"name": "click-overlay",
|
1333
|
+
"description": "Emitted when overlay is clicked",
|
1324
1334
|
"arguments": [
|
1325
1335
|
{
|
1326
1336
|
"name": "event",
|
1327
|
-
"type": "
|
1337
|
+
"type": "MouseEvent"
|
1328
1338
|
}
|
1329
1339
|
]
|
1330
1340
|
}
|
1331
1341
|
],
|
1332
1342
|
"attributes": [
|
1333
1343
|
{
|
1334
|
-
"name": "
|
1335
|
-
"default": "`
|
1336
|
-
"description": "
|
1344
|
+
"name": "v-model:show",
|
1345
|
+
"default": "`false`",
|
1346
|
+
"description": "Whether to show ActionSheet",
|
1337
1347
|
"options": [],
|
1338
1348
|
"value": {
|
1339
|
-
"type": "
|
1349
|
+
"type": "boolean",
|
1340
1350
|
"kind": "expression"
|
1341
1351
|
}
|
1342
1352
|
},
|
1343
1353
|
{
|
1344
|
-
"name": "
|
1345
|
-
"default": "`
|
1346
|
-
"description": "
|
1354
|
+
"name": "actions",
|
1355
|
+
"default": "`[]`",
|
1356
|
+
"description": "Options",
|
1347
1357
|
"options": [],
|
1348
1358
|
"value": {
|
1349
|
-
"type": "
|
1359
|
+
"type": "ActionSheetAction[]",
|
1350
1360
|
"kind": "expression"
|
1351
1361
|
}
|
1352
1362
|
},
|
1353
1363
|
{
|
1354
|
-
"name": "
|
1364
|
+
"name": "title",
|
1355
1365
|
"default": "-",
|
1356
|
-
"description": "
|
1366
|
+
"description": "Title",
|
1357
1367
|
"options": [],
|
1358
1368
|
"value": {
|
1359
1369
|
"type": "string",
|
@@ -1361,9 +1371,9 @@
|
|
1361
1371
|
}
|
1362
1372
|
},
|
1363
1373
|
{
|
1364
|
-
"name": "
|
1374
|
+
"name": "cancel-text",
|
1365
1375
|
"default": "-",
|
1366
|
-
"description": "
|
1376
|
+
"description": "Text of cancel button",
|
1367
1377
|
"options": [],
|
1368
1378
|
"value": {
|
1369
1379
|
"type": "string",
|
@@ -1371,19 +1381,9 @@
|
|
1371
1381
|
}
|
1372
1382
|
},
|
1373
1383
|
{
|
1374
|
-
"name": "
|
1384
|
+
"name": "description",
|
1375
1385
|
"default": "-",
|
1376
|
-
"description": "
|
1377
|
-
"options": [],
|
1378
|
-
"value": {
|
1379
|
-
"type": "string",
|
1380
|
-
"kind": "expression"
|
1381
|
-
}
|
1382
|
-
},
|
1383
|
-
{
|
1384
|
-
"name": "icon-prefix",
|
1385
|
-
"default": "`van-icon`",
|
1386
|
-
"description": "Icon className prefix",
|
1386
|
+
"description": "Description above the options",
|
1387
1387
|
"options": [],
|
1388
1388
|
"value": {
|
1389
1389
|
"type": "string",
|
@@ -1391,19 +1391,19 @@
|
|
1391
1391
|
}
|
1392
1392
|
},
|
1393
1393
|
{
|
1394
|
-
"name": "
|
1395
|
-
"default": "`
|
1396
|
-
"description": "
|
1394
|
+
"name": "closeable",
|
1395
|
+
"default": "`true`",
|
1396
|
+
"description": "Whether to show close icon",
|
1397
1397
|
"options": [],
|
1398
1398
|
"value": {
|
1399
|
-
"type": "
|
1399
|
+
"type": "boolean",
|
1400
1400
|
"kind": "expression"
|
1401
1401
|
}
|
1402
1402
|
},
|
1403
1403
|
{
|
1404
|
-
"name": "
|
1405
|
-
"default": "`
|
1406
|
-
"description": "
|
1404
|
+
"name": "close-icon",
|
1405
|
+
"default": "`cross`",
|
1406
|
+
"description": "Close icon name",
|
1407
1407
|
"options": [],
|
1408
1408
|
"value": {
|
1409
1409
|
"type": "string",
|
@@ -1411,19 +1411,19 @@
|
|
1411
1411
|
}
|
1412
1412
|
},
|
1413
1413
|
{
|
1414
|
-
"name": "
|
1415
|
-
"default": "`
|
1416
|
-
"description": "
|
1414
|
+
"name": "duration",
|
1415
|
+
"default": "`0.3`",
|
1416
|
+
"description": "Transition duration, unit second",
|
1417
1417
|
"options": [],
|
1418
1418
|
"value": {
|
1419
|
-
"type": "string",
|
1419
|
+
"type": "number | string",
|
1420
1420
|
"kind": "expression"
|
1421
1421
|
}
|
1422
1422
|
},
|
1423
1423
|
{
|
1424
|
-
"name": "
|
1425
|
-
"default": "`
|
1426
|
-
"description": "Whether to
|
1424
|
+
"name": "round",
|
1425
|
+
"default": "`true`",
|
1426
|
+
"description": "Whether to show round corner",
|
1427
1427
|
"options": [],
|
1428
1428
|
"value": {
|
1429
1429
|
"type": "boolean",
|
@@ -1431,9 +1431,9 @@
|
|
1431
1431
|
}
|
1432
1432
|
},
|
1433
1433
|
{
|
1434
|
-
"name": "
|
1435
|
-
"default": "`
|
1436
|
-
"description": "Whether to
|
1434
|
+
"name": "overlay",
|
1435
|
+
"default": "`true`",
|
1436
|
+
"description": "Whether to show overlay",
|
1437
1437
|
"options": [],
|
1438
1438
|
"value": {
|
1439
1439
|
"type": "boolean",
|
@@ -1441,29 +1441,29 @@
|
|
1441
1441
|
}
|
1442
1442
|
},
|
1443
1443
|
{
|
1444
|
-
"name": "
|
1445
|
-
"default": "
|
1446
|
-
"description": "
|
1444
|
+
"name": "overlay-class",
|
1445
|
+
"default": "-",
|
1446
|
+
"description": "Custom overlay class",
|
1447
1447
|
"options": [],
|
1448
1448
|
"value": {
|
1449
|
-
"type": "
|
1449
|
+
"type": "string | Array | object",
|
1450
1450
|
"kind": "expression"
|
1451
1451
|
}
|
1452
1452
|
},
|
1453
1453
|
{
|
1454
|
-
"name": "
|
1455
|
-
"default": "
|
1456
|
-
"description": "
|
1454
|
+
"name": "overlay-style",
|
1455
|
+
"default": "-",
|
1456
|
+
"description": "Custom overlay style",
|
1457
1457
|
"options": [],
|
1458
1458
|
"value": {
|
1459
|
-
"type": "
|
1459
|
+
"type": "object",
|
1460
1460
|
"kind": "expression"
|
1461
1461
|
}
|
1462
1462
|
},
|
1463
1463
|
{
|
1464
|
-
"name": "
|
1465
|
-
"default": "`
|
1466
|
-
"description": "Whether to
|
1464
|
+
"name": "lock-scroll",
|
1465
|
+
"default": "`true`",
|
1466
|
+
"description": "Whether to lock background scroll",
|
1467
1467
|
"options": [],
|
1468
1468
|
"value": {
|
1469
1469
|
"type": "boolean",
|
@@ -1471,9 +1471,9 @@
|
|
1471
1471
|
}
|
1472
1472
|
},
|
1473
1473
|
{
|
1474
|
-
"name": "
|
1475
|
-
"default": "`
|
1476
|
-
"description": "Whether to
|
1474
|
+
"name": "lazy-render",
|
1475
|
+
"default": "`true`",
|
1476
|
+
"description": "Whether to lazy render util appeared",
|
1477
1477
|
"options": [],
|
1478
1478
|
"value": {
|
1479
1479
|
"type": "boolean",
|
@@ -1481,62 +1481,62 @@
|
|
1481
1481
|
}
|
1482
1482
|
},
|
1483
1483
|
{
|
1484
|
-
"name": "
|
1485
|
-
"default": "
|
1486
|
-
"description": "
|
1484
|
+
"name": "close-on-popstate",
|
1485
|
+
"default": "`true`",
|
1486
|
+
"description": "Whether to close when popstate",
|
1487
1487
|
"options": [],
|
1488
1488
|
"value": {
|
1489
|
-
"type": "
|
1489
|
+
"type": "boolean",
|
1490
1490
|
"kind": "expression"
|
1491
1491
|
}
|
1492
1492
|
},
|
1493
1493
|
{
|
1494
|
-
"name": "
|
1495
|
-
"default": "`
|
1496
|
-
"description": "
|
1494
|
+
"name": "close-on-click-action",
|
1495
|
+
"default": "`false`",
|
1496
|
+
"description": "Whether to close when an action is clicked",
|
1497
1497
|
"options": [],
|
1498
1498
|
"value": {
|
1499
|
-
"type": "
|
1499
|
+
"type": "boolean",
|
1500
1500
|
"kind": "expression"
|
1501
1501
|
}
|
1502
1502
|
},
|
1503
1503
|
{
|
1504
|
-
"name": "
|
1505
|
-
"default": "`
|
1506
|
-
"description": "
|
1504
|
+
"name": "close-on-click-overlay",
|
1505
|
+
"default": "`true`",
|
1506
|
+
"description": "Whether to close when overlay is clicked",
|
1507
1507
|
"options": [],
|
1508
1508
|
"value": {
|
1509
|
-
"type": "
|
1509
|
+
"type": "boolean",
|
1510
1510
|
"kind": "expression"
|
1511
1511
|
}
|
1512
1512
|
},
|
1513
1513
|
{
|
1514
|
-
"name": "
|
1515
|
-
"default": "
|
1516
|
-
"description": "
|
1514
|
+
"name": "safe-area-inset-bottom",
|
1515
|
+
"default": "`true`",
|
1516
|
+
"description": "Whether to enable bottom safe area adaptation",
|
1517
1517
|
"options": [],
|
1518
1518
|
"value": {
|
1519
|
-
"type": "
|
1519
|
+
"type": "boolean",
|
1520
1520
|
"kind": "expression"
|
1521
1521
|
}
|
1522
1522
|
},
|
1523
1523
|
{
|
1524
|
-
"name": "
|
1524
|
+
"name": "teleport",
|
1525
1525
|
"default": "-",
|
1526
|
-
"description": "
|
1526
|
+
"description": "Specifies a target element where ActionSheet will be mounted",
|
1527
1527
|
"options": [],
|
1528
1528
|
"value": {
|
1529
|
-
"type": "string |
|
1529
|
+
"type": "string | Element",
|
1530
1530
|
"kind": "expression"
|
1531
1531
|
}
|
1532
1532
|
},
|
1533
1533
|
{
|
1534
|
-
"name": "
|
1535
|
-
"default": "
|
1536
|
-
"description": "
|
1534
|
+
"name": "before-close",
|
1535
|
+
"default": "-",
|
1536
|
+
"description": "Callback function before close",
|
1537
1537
|
"options": [],
|
1538
1538
|
"value": {
|
1539
|
-
"type": "boolean",
|
1539
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
1540
1540
|
"kind": "expression"
|
1541
1541
|
}
|
1542
1542
|
}
|
@@ -2642,7 +2642,7 @@
|
|
2642
2642
|
{
|
2643
2643
|
"name": "name",
|
2644
2644
|
"default": "-",
|
2645
|
-
"description": "Checkbox name",
|
2645
|
+
"description": "Checkbox name, usually a unique string or number",
|
2646
2646
|
"options": [],
|
2647
2647
|
"value": {
|
2648
2648
|
"type": "any",
|
@@ -3292,6 +3292,16 @@
|
|
3292
3292
|
"kind": "expression"
|
3293
3293
|
}
|
3294
3294
|
},
|
3295
|
+
{
|
3296
|
+
"name": "z-index",
|
3297
|
+
"default": "`2000`",
|
3298
|
+
"description": "Set the z-index of all popup components, this property takes effect globally",
|
3299
|
+
"options": [],
|
3300
|
+
"value": {
|
3301
|
+
"type": "number",
|
3302
|
+
"kind": "expression"
|
3303
|
+
}
|
3304
|
+
},
|
3295
3305
|
{
|
3296
3306
|
"name": "icon-prefix",
|
3297
3307
|
"default": "`van-icon`",
|
@@ -3470,74 +3480,6 @@
|
|
3470
3480
|
}
|
3471
3481
|
]
|
3472
3482
|
},
|
3473
|
-
{
|
3474
|
-
"name": "van-count-down",
|
3475
|
-
"slots": [
|
3476
|
-
{
|
3477
|
-
"name": "default",
|
3478
|
-
"description": "Custom Content"
|
3479
|
-
}
|
3480
|
-
],
|
3481
|
-
"events": [
|
3482
|
-
{
|
3483
|
-
"name": "finish",
|
3484
|
-
"description": "Emitted when count down finished",
|
3485
|
-
"arguments": []
|
3486
|
-
},
|
3487
|
-
{
|
3488
|
-
"name": "change",
|
3489
|
-
"description": "Emitted when count down changed",
|
3490
|
-
"arguments": [
|
3491
|
-
{
|
3492
|
-
"name": "currentTime",
|
3493
|
-
"type": "CurrentTime"
|
3494
|
-
}
|
3495
|
-
]
|
3496
|
-
}
|
3497
|
-
],
|
3498
|
-
"attributes": [
|
3499
|
-
{
|
3500
|
-
"name": "time",
|
3501
|
-
"default": "`0`",
|
3502
|
-
"description": "Total time, unit milliseconds",
|
3503
|
-
"options": [],
|
3504
|
-
"value": {
|
3505
|
-
"type": "number | string",
|
3506
|
-
"kind": "expression"
|
3507
|
-
}
|
3508
|
-
},
|
3509
|
-
{
|
3510
|
-
"name": "format",
|
3511
|
-
"default": "`HH:mm:ss`",
|
3512
|
-
"description": "Time format",
|
3513
|
-
"options": [],
|
3514
|
-
"value": {
|
3515
|
-
"type": "string",
|
3516
|
-
"kind": "expression"
|
3517
|
-
}
|
3518
|
-
},
|
3519
|
-
{
|
3520
|
-
"name": "auto-start",
|
3521
|
-
"default": "`true`",
|
3522
|
-
"description": "Whether to auto start count down",
|
3523
|
-
"options": [],
|
3524
|
-
"value": {
|
3525
|
-
"type": "boolean",
|
3526
|
-
"kind": "expression"
|
3527
|
-
}
|
3528
|
-
},
|
3529
|
-
{
|
3530
|
-
"name": "millisecond",
|
3531
|
-
"default": "`false`",
|
3532
|
-
"description": "Whether to enable millisecond render",
|
3533
|
-
"options": [],
|
3534
|
-
"value": {
|
3535
|
-
"type": "boolean",
|
3536
|
-
"kind": "expression"
|
3537
|
-
}
|
3538
|
-
}
|
3539
|
-
]
|
3540
|
-
},
|
3541
3483
|
{
|
3542
3484
|
"name": "van-contact-list",
|
3543
3485
|
"slots": [],
|
@@ -3619,6 +3561,74 @@
|
|
3619
3561
|
}
|
3620
3562
|
]
|
3621
3563
|
},
|
3564
|
+
{
|
3565
|
+
"name": "van-count-down",
|
3566
|
+
"slots": [
|
3567
|
+
{
|
3568
|
+
"name": "default",
|
3569
|
+
"description": "Custom Content"
|
3570
|
+
}
|
3571
|
+
],
|
3572
|
+
"events": [
|
3573
|
+
{
|
3574
|
+
"name": "finish",
|
3575
|
+
"description": "Emitted when count down finished",
|
3576
|
+
"arguments": []
|
3577
|
+
},
|
3578
|
+
{
|
3579
|
+
"name": "change",
|
3580
|
+
"description": "Emitted when count down changed",
|
3581
|
+
"arguments": [
|
3582
|
+
{
|
3583
|
+
"name": "currentTime",
|
3584
|
+
"type": "CurrentTime"
|
3585
|
+
}
|
3586
|
+
]
|
3587
|
+
}
|
3588
|
+
],
|
3589
|
+
"attributes": [
|
3590
|
+
{
|
3591
|
+
"name": "time",
|
3592
|
+
"default": "`0`",
|
3593
|
+
"description": "Total time, unit milliseconds",
|
3594
|
+
"options": [],
|
3595
|
+
"value": {
|
3596
|
+
"type": "number | string",
|
3597
|
+
"kind": "expression"
|
3598
|
+
}
|
3599
|
+
},
|
3600
|
+
{
|
3601
|
+
"name": "format",
|
3602
|
+
"default": "`HH:mm:ss`",
|
3603
|
+
"description": "Time format",
|
3604
|
+
"options": [],
|
3605
|
+
"value": {
|
3606
|
+
"type": "string",
|
3607
|
+
"kind": "expression"
|
3608
|
+
}
|
3609
|
+
},
|
3610
|
+
{
|
3611
|
+
"name": "auto-start",
|
3612
|
+
"default": "`true`",
|
3613
|
+
"description": "Whether to auto start count down",
|
3614
|
+
"options": [],
|
3615
|
+
"value": {
|
3616
|
+
"type": "boolean",
|
3617
|
+
"kind": "expression"
|
3618
|
+
}
|
3619
|
+
},
|
3620
|
+
{
|
3621
|
+
"name": "millisecond",
|
3622
|
+
"default": "`false`",
|
3623
|
+
"description": "Whether to enable millisecond render",
|
3624
|
+
"options": [],
|
3625
|
+
"value": {
|
3626
|
+
"type": "boolean",
|
3627
|
+
"kind": "expression"
|
3628
|
+
}
|
3629
|
+
}
|
3630
|
+
]
|
3631
|
+
},
|
3622
3632
|
{
|
3623
3633
|
"name": "van-coupon-cell",
|
3624
3634
|
"slots": [],
|
@@ -8249,7 +8259,7 @@
|
|
8249
8259
|
{
|
8250
8260
|
"name": "name",
|
8251
8261
|
"default": "-",
|
8252
|
-
"description": "Radio name",
|
8262
|
+
"description": "Radio name, usually a unique string or number",
|
8253
8263
|
"options": [],
|
8254
8264
|
"value": {
|
8255
8265
|
"type": "any",
|
@@ -8792,7 +8802,7 @@
|
|
8792
8802
|
"description": "Text of action button",
|
8793
8803
|
"options": [],
|
8794
8804
|
"value": {
|
8795
|
-
"type": "
|
8805
|
+
"type": "string",
|
8796
8806
|
"kind": "expression"
|
8797
8807
|
}
|
8798
8808
|
},
|
@@ -9566,6 +9576,68 @@
|
|
9566
9576
|
}
|
9567
9577
|
]
|
9568
9578
|
},
|
9579
|
+
{
|
9580
|
+
"name": "van-space",
|
9581
|
+
"slots": [
|
9582
|
+
{
|
9583
|
+
"name": "default",
|
9584
|
+
"description": "Default slot"
|
9585
|
+
}
|
9586
|
+
],
|
9587
|
+
"events": [],
|
9588
|
+
"attributes": [
|
9589
|
+
{
|
9590
|
+
"name": "direction",
|
9591
|
+
"default": "`horizontal`",
|
9592
|
+
"description": "Spacing direction",
|
9593
|
+
"options": [],
|
9594
|
+
"value": {
|
9595
|
+
"type": "vertical | horizontal",
|
9596
|
+
"kind": "expression"
|
9597
|
+
}
|
9598
|
+
},
|
9599
|
+
{
|
9600
|
+
"name": "size",
|
9601
|
+
"default": "`8px`",
|
9602
|
+
"description": "Spacing size, such as `20px` `2em`. The default unit is px, supports using array to set horizontal and vertical spacing",
|
9603
|
+
"options": [],
|
9604
|
+
"value": {
|
9605
|
+
"type": "number | string | number[] | string[]",
|
9606
|
+
"kind": "expression"
|
9607
|
+
}
|
9608
|
+
},
|
9609
|
+
{
|
9610
|
+
"name": "align",
|
9611
|
+
"default": "-",
|
9612
|
+
"description": "Spacing alignment",
|
9613
|
+
"options": [],
|
9614
|
+
"value": {
|
9615
|
+
"type": "start | end | center | baseline",
|
9616
|
+
"kind": "expression"
|
9617
|
+
}
|
9618
|
+
},
|
9619
|
+
{
|
9620
|
+
"name": "wrap",
|
9621
|
+
"default": "`false`",
|
9622
|
+
"description": "Whether to wrap automatically, only for horizontal alignment",
|
9623
|
+
"options": [],
|
9624
|
+
"value": {
|
9625
|
+
"type": "boolean",
|
9626
|
+
"kind": "expression"
|
9627
|
+
}
|
9628
|
+
},
|
9629
|
+
{
|
9630
|
+
"name": "fill",
|
9631
|
+
"default": "`false`",
|
9632
|
+
"description": "Whether to render Space as a block element and fill the parent element",
|
9633
|
+
"options": [],
|
9634
|
+
"value": {
|
9635
|
+
"type": "boolean",
|
9636
|
+
"kind": "expression"
|
9637
|
+
}
|
9638
|
+
}
|
9639
|
+
]
|
9640
|
+
},
|
9569
9641
|
{
|
9570
9642
|
"name": "van-stepper",
|
9571
9643
|
"slots": [],
|
@@ -9674,7 +9746,7 @@
|
|
9674
9746
|
{
|
9675
9747
|
"name": "name",
|
9676
9748
|
"default": "-",
|
9677
|
-
"description": "Stepper name",
|
9749
|
+
"description": "Stepper name, usually a unique string or number",
|
9678
9750
|
"options": [],
|
9679
9751
|
"value": {
|
9680
9752
|
"type": "number | string",
|
@@ -10437,7 +10509,7 @@
|
|
10437
10509
|
{
|
10438
10510
|
"name": "name",
|
10439
10511
|
"default": "-",
|
10440
|
-
"description": "Identifier of SwipeCell",
|
10512
|
+
"description": "Identifier of SwipeCell, usually a unique string or number",
|
10441
10513
|
"options": [],
|
10442
10514
|
"value": {
|
10443
10515
|
"type": "number | string",
|
@@ -11538,7 +11610,7 @@
|
|
11538
11610
|
{
|
11539
11611
|
"name": "name",
|
11540
11612
|
"default": "-",
|
11541
|
-
"description": "Input name",
|
11613
|
+
"description": "Input name, usually a unique string or number",
|
11542
11614
|
"options": [],
|
11543
11615
|
"value": {
|
11544
11616
|
"type": "number | string",
|