vant 4.5.0 → 4.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.
Files changed (119) hide show
  1. package/es/barrage/index.d.ts +1 -1
  2. package/es/barrage/types.d.ts +6 -0
  3. package/es/composables/use-touch.d.ts +1 -0
  4. package/es/composables/use-touch.mjs +8 -1
  5. package/es/config-provider/types.d.ts +1 -1
  6. package/es/dropdown-menu/index.d.ts +1 -1
  7. package/es/field/Field.mjs +1 -1
  8. package/es/floating-bubble/FloatingBubble.d.ts +86 -0
  9. package/es/floating-bubble/FloatingBubble.mjs +177 -0
  10. package/es/floating-bubble/index.css +1 -0
  11. package/es/floating-bubble/index.d.ts +63 -0
  12. package/es/floating-bubble/index.mjs +10 -0
  13. package/es/floating-bubble/style/index.d.ts +1 -0
  14. package/es/floating-bubble/style/index.mjs +4 -0
  15. package/es/floating-bubble/types.d.ts +8 -0
  16. package/es/floating-bubble/types.mjs +0 -0
  17. package/es/floating-panel/FloatingPanel.mjs +5 -4
  18. package/es/floating-panel/index.d.ts +3 -2
  19. package/es/floating-panel/index.mjs +3 -1
  20. package/es/floating-panel/types.d.ts +9 -0
  21. package/es/floating-panel/types.mjs +0 -0
  22. package/es/image-preview/ImagePreviewItem.mjs +1 -2
  23. package/es/index.d.ts +3 -1
  24. package/es/index.mjs +7 -1
  25. package/es/picker/PickerColumn.mjs +7 -2
  26. package/es/rate/Rate.d.ts +4 -0
  27. package/es/rate/Rate.mjs +16 -10
  28. package/es/rate/index.css +1 -1
  29. package/es/rate/index.d.ts +3 -0
  30. package/es/rolling-text/RollingText.d.ts +104 -0
  31. package/es/rolling-text/RollingText.mjs +98 -0
  32. package/es/rolling-text/RollingTextItem.d.ts +67 -0
  33. package/es/rolling-text/RollingTextItem.mjs +47 -0
  34. package/es/rolling-text/index.css +1 -0
  35. package/es/rolling-text/index.d.ts +79 -0
  36. package/es/rolling-text/index.mjs +10 -0
  37. package/es/rolling-text/style/index.d.ts +1 -0
  38. package/es/rolling-text/style/index.mjs +2 -0
  39. package/es/rolling-text/types.d.ts +17 -0
  40. package/es/rolling-text/types.mjs +0 -0
  41. package/es/signature/index.d.ts +1 -0
  42. package/es/signature/types.d.ts +6 -0
  43. package/es/signature/types.mjs +0 -0
  44. package/es/slider/Slider.d.ts +1 -1
  45. package/es/slider/index.d.ts +1 -1
  46. package/es/stepper/Stepper.d.ts +1 -1
  47. package/es/stepper/index.d.ts +1 -1
  48. package/es/utils/closest.d.ts +1 -0
  49. package/es/utils/closest.mjs +8 -0
  50. package/es/utils/constant.d.ts +1 -0
  51. package/es/utils/constant.mjs +3 -1
  52. package/es/utils/index.d.ts +1 -0
  53. package/es/utils/index.mjs +1 -0
  54. package/es/watermark/index.d.ts +1 -0
  55. package/es/watermark/types.d.ts +3 -0
  56. package/es/watermark/types.mjs +0 -0
  57. package/lib/barrage/index.d.ts +1 -1
  58. package/lib/barrage/types.d.ts +6 -0
  59. package/lib/composables/use-touch.d.ts +1 -0
  60. package/lib/composables/use-touch.js +8 -1
  61. package/lib/config-provider/types.d.ts +1 -1
  62. package/lib/dropdown-menu/index.d.ts +1 -1
  63. package/lib/field/Field.js +1 -1
  64. package/lib/floating-bubble/FloatingBubble.d.ts +86 -0
  65. package/lib/floating-bubble/FloatingBubble.js +206 -0
  66. package/lib/floating-bubble/index.css +1 -0
  67. package/lib/floating-bubble/index.d.ts +63 -0
  68. package/lib/floating-bubble/index.js +39 -0
  69. package/lib/floating-bubble/style/index.d.ts +1 -0
  70. package/lib/floating-bubble/style/index.js +4 -0
  71. package/lib/floating-bubble/types.d.ts +8 -0
  72. package/lib/floating-bubble/types.js +15 -0
  73. package/lib/floating-panel/FloatingPanel.js +5 -4
  74. package/lib/floating-panel/index.d.ts +3 -2
  75. package/lib/floating-panel/index.js +3 -1
  76. package/lib/floating-panel/types.d.ts +9 -0
  77. package/lib/floating-panel/types.js +15 -0
  78. package/lib/image-preview/ImagePreviewItem.js +1 -2
  79. package/lib/index.css +1 -1
  80. package/lib/index.d.ts +3 -1
  81. package/lib/index.js +7 -1
  82. package/lib/picker/PickerColumn.js +7 -2
  83. package/lib/rate/Rate.d.ts +4 -0
  84. package/lib/rate/Rate.js +16 -10
  85. package/lib/rate/index.css +1 -1
  86. package/lib/rate/index.d.ts +3 -0
  87. package/lib/rolling-text/RollingText.d.ts +104 -0
  88. package/lib/rolling-text/RollingText.js +127 -0
  89. package/lib/rolling-text/RollingTextItem.d.ts +67 -0
  90. package/lib/rolling-text/RollingTextItem.js +66 -0
  91. package/lib/rolling-text/index.css +1 -0
  92. package/lib/rolling-text/index.d.ts +79 -0
  93. package/lib/rolling-text/index.js +39 -0
  94. package/lib/rolling-text/style/index.d.ts +1 -0
  95. package/lib/rolling-text/style/index.js +2 -0
  96. package/lib/rolling-text/types.d.ts +17 -0
  97. package/lib/rolling-text/types.js +15 -0
  98. package/lib/signature/index.d.ts +1 -0
  99. package/lib/signature/types.d.ts +6 -0
  100. package/lib/signature/types.js +15 -0
  101. package/lib/slider/Slider.d.ts +1 -1
  102. package/lib/slider/index.d.ts +1 -1
  103. package/lib/stepper/Stepper.d.ts +1 -1
  104. package/lib/stepper/index.d.ts +1 -1
  105. package/lib/utils/closest.d.ts +1 -0
  106. package/lib/utils/closest.js +27 -0
  107. package/lib/utils/constant.d.ts +1 -0
  108. package/lib/utils/constant.js +3 -1
  109. package/lib/utils/index.d.ts +1 -0
  110. package/lib/utils/index.js +1 -0
  111. package/lib/vant.cjs.js +2340 -2012
  112. package/lib/vant.es.js +2340 -2012
  113. package/lib/vant.js +2340 -2012
  114. package/lib/vant.min.js +1 -1
  115. package/lib/watermark/index.d.ts +1 -0
  116. package/lib/watermark/types.d.ts +3 -0
  117. package/lib/watermark/types.js +15 -0
  118. package/lib/web-types.json +1 -1
  119. package/package.json +1 -1
@@ -28,10 +28,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
28
28
  var stdin_exports = {};
29
29
  __export(stdin_exports, {
30
30
  FloatingPanel: () => FloatingPanel,
31
- default: () => stdin_default
31
+ default: () => stdin_default,
32
+ floatingPanelProps: () => import_FloatingPanel2.floatingPanelProps
32
33
  });
33
34
  module.exports = __toCommonJS(stdin_exports);
34
35
  var import_utils = require("../utils");
35
36
  var import_FloatingPanel = __toESM(require("./FloatingPanel"));
37
+ var import_FloatingPanel2 = require("./FloatingPanel");
36
38
  const FloatingPanel = (0, import_utils.withInstall)(import_FloatingPanel.default);
37
39
  var stdin_default = FloatingPanel;
@@ -0,0 +1,9 @@
1
+ export type FloatingPanelThemeVars = {
2
+ floatingPanelBorderRadius?: string;
3
+ floatingPanelHeaderHeight?: string;
4
+ floatingPanelZIndex?: number | string;
5
+ floatingPanelBackground?: string;
6
+ floatingPanelBarWidth?: string;
7
+ floatingPanelBarHeight?: string;
8
+ floatingPanelBarColor?: string;
9
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -214,8 +214,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
214
214
  } = touch;
215
215
  const deltaTime = Date.now() - touchStartTime;
216
216
  const TAP_TIME = 250;
217
- const TAP_OFFSET = 5;
218
- if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
217
+ if (offsetX.value < import_utils.TAP_OFFSET && offsetY.value < import_utils.TAP_OFFSET) {
219
218
  if (deltaTime < TAP_TIME) {
220
219
  if (doubleTapTimer) {
221
220
  clearTimeout(doubleTapTimer);