vant 2.12.48 → 2.12.50

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.
Files changed (64) hide show
  1. package/README.md +11 -11
  2. package/README.zh-CN.md +9 -9
  3. package/changelog.generated.md +15 -0
  4. package/es/button/index.less +1 -1
  5. package/es/calendar/index.js +2 -2
  6. package/es/collapse-item/index.less +1 -1
  7. package/es/count-down/index.js +1 -1
  8. package/es/datetime-picker/DatePicker.js +1 -1
  9. package/es/datetime-picker/TimePicker.js +1 -1
  10. package/es/datetime-picker/shared.js +1 -1
  11. package/es/field/index.js +3 -3
  12. package/es/grid-item/index.less +1 -1
  13. package/es/index.js +1 -1
  14. package/es/locale/lang/vi-VN.js +18 -18
  15. package/es/mixins/touch.js +1 -1
  16. package/es/nav-bar/index.js +1 -1
  17. package/es/notice-bar/index.js +1 -1
  18. package/es/number-keyboard/Key.js +1 -1
  19. package/es/picker/index.js +2 -2
  20. package/es/sidebar-item/index.less +1 -1
  21. package/es/stepper/index.js +1 -1
  22. package/es/swipe/index.less +1 -1
  23. package/es/switch/index.less +1 -1
  24. package/es/switch-cell/index.js +1 -1
  25. package/es/tabbar/index.js +1 -1
  26. package/es/tabs/index.js +1 -1
  27. package/es/toast/index.less +1 -1
  28. package/es/uploader/index.js +1 -1
  29. package/es/utils/dom/scroll.js +1 -1
  30. package/es/utils/index.js +1 -1
  31. package/lib/button/index.less +1 -1
  32. package/lib/calendar/index.js +2 -2
  33. package/lib/collapse-item/index.less +1 -1
  34. package/lib/count-down/index.js +1 -1
  35. package/lib/datetime-picker/DatePicker.js +1 -1
  36. package/lib/datetime-picker/TimePicker.js +1 -1
  37. package/lib/datetime-picker/shared.js +1 -1
  38. package/lib/field/index.js +3 -3
  39. package/lib/grid-item/index.less +1 -1
  40. package/lib/index.js +1 -1
  41. package/lib/locale/lang/vi-VN.js +18 -18
  42. package/lib/mixins/touch.js +1 -1
  43. package/lib/nav-bar/index.js +1 -1
  44. package/lib/notice-bar/index.js +1 -1
  45. package/lib/number-keyboard/Key.js +1 -1
  46. package/lib/picker/index.js +2 -2
  47. package/lib/sidebar-item/index.less +1 -1
  48. package/lib/stepper/index.js +1 -1
  49. package/lib/swipe/index.less +1 -1
  50. package/lib/switch/index.less +1 -1
  51. package/lib/switch-cell/index.js +1 -1
  52. package/lib/tabbar/index.js +1 -1
  53. package/lib/tabs/index.js +1 -1
  54. package/lib/toast/index.less +1 -1
  55. package/lib/uploader/index.js +1 -1
  56. package/lib/utils/dom/scroll.js +1 -1
  57. package/lib/utils/index.js +1 -1
  58. package/lib/vant.js +22 -22
  59. package/lib/vant.min.js +2 -2
  60. package/package.json +3 -3
  61. package/types/image-preview.d.ts +1 -0
  62. package/vetur/attributes.json +336 -336
  63. package/vetur/tags.json +123 -123
  64. package/vetur/web-types.json +1056 -1056
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "2.12.48",
3
+ "version": "2.12.50",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "git@github.com:youzan/vant.git"
46
+ "url": "git@github.com:vant-ui/vant.git"
47
47
  },
48
48
  "keywords": [
49
49
  "ui",
@@ -66,7 +66,7 @@
66
66
  "vue": ">= 2.6.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@vant/cli": "^2.11.7",
69
+ "@vant/cli": "^2.11.11",
70
70
  "prettier": "2.1.0",
71
71
  "vue": "^2.6.12",
72
72
  "vue-template-compiler": "^2.6.12"
@@ -23,6 +23,7 @@ export type ImagePreviewOptions =
23
23
  closeIconPosition?: string;
24
24
  getContainer?: string | (() => Element);
25
25
  onClose?(): void;
26
+ onScale?(data: { index: number; scale: number }): void;
26
27
  onChange?(index: number): void;
27
28
  swipeTo?(index: number, options?: SwipeToOptions): void;
28
29
  };