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.
- package/es/barrage/index.d.ts +1 -1
- package/es/barrage/types.d.ts +6 -0
- package/es/composables/use-touch.d.ts +1 -0
- package/es/composables/use-touch.mjs +8 -1
- package/es/config-provider/types.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/field/Field.mjs +1 -1
- package/es/floating-bubble/FloatingBubble.d.ts +86 -0
- package/es/floating-bubble/FloatingBubble.mjs +177 -0
- package/es/floating-bubble/index.css +1 -0
- package/es/floating-bubble/index.d.ts +63 -0
- package/es/floating-bubble/index.mjs +10 -0
- package/es/floating-bubble/style/index.d.ts +1 -0
- package/es/floating-bubble/style/index.mjs +4 -0
- package/es/floating-bubble/types.d.ts +8 -0
- package/es/floating-bubble/types.mjs +0 -0
- package/es/floating-panel/FloatingPanel.mjs +5 -4
- package/es/floating-panel/index.d.ts +3 -2
- package/es/floating-panel/index.mjs +3 -1
- package/es/floating-panel/types.d.ts +9 -0
- package/es/floating-panel/types.mjs +0 -0
- package/es/image-preview/ImagePreviewItem.mjs +1 -2
- package/es/index.d.ts +3 -1
- package/es/index.mjs +7 -1
- package/es/picker/PickerColumn.mjs +7 -2
- package/es/rate/Rate.d.ts +4 -0
- package/es/rate/Rate.mjs +16 -10
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +3 -0
- package/es/rolling-text/RollingText.d.ts +104 -0
- package/es/rolling-text/RollingText.mjs +98 -0
- package/es/rolling-text/RollingTextItem.d.ts +67 -0
- package/es/rolling-text/RollingTextItem.mjs +47 -0
- package/es/rolling-text/index.css +1 -0
- package/es/rolling-text/index.d.ts +79 -0
- package/es/rolling-text/index.mjs +10 -0
- package/es/rolling-text/style/index.d.ts +1 -0
- package/es/rolling-text/style/index.mjs +2 -0
- package/es/rolling-text/types.d.ts +17 -0
- package/es/rolling-text/types.mjs +0 -0
- package/es/signature/index.d.ts +1 -0
- package/es/signature/types.d.ts +6 -0
- package/es/signature/types.mjs +0 -0
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/utils/closest.d.ts +1 -0
- package/es/utils/closest.mjs +8 -0
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +3 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/watermark/index.d.ts +1 -0
- package/es/watermark/types.d.ts +3 -0
- package/es/watermark/types.mjs +0 -0
- package/lib/barrage/index.d.ts +1 -1
- package/lib/barrage/types.d.ts +6 -0
- package/lib/composables/use-touch.d.ts +1 -0
- package/lib/composables/use-touch.js +8 -1
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/field/Field.js +1 -1
- package/lib/floating-bubble/FloatingBubble.d.ts +86 -0
- package/lib/floating-bubble/FloatingBubble.js +206 -0
- package/lib/floating-bubble/index.css +1 -0
- package/lib/floating-bubble/index.d.ts +63 -0
- package/lib/floating-bubble/index.js +39 -0
- package/lib/floating-bubble/style/index.d.ts +1 -0
- package/lib/floating-bubble/style/index.js +4 -0
- package/lib/floating-bubble/types.d.ts +8 -0
- package/lib/floating-bubble/types.js +15 -0
- package/lib/floating-panel/FloatingPanel.js +5 -4
- package/lib/floating-panel/index.d.ts +3 -2
- package/lib/floating-panel/index.js +3 -1
- package/lib/floating-panel/types.d.ts +9 -0
- package/lib/floating-panel/types.js +15 -0
- package/lib/image-preview/ImagePreviewItem.js +1 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +7 -1
- package/lib/picker/PickerColumn.js +7 -2
- package/lib/rate/Rate.d.ts +4 -0
- package/lib/rate/Rate.js +16 -10
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +3 -0
- package/lib/rolling-text/RollingText.d.ts +104 -0
- package/lib/rolling-text/RollingText.js +127 -0
- package/lib/rolling-text/RollingTextItem.d.ts +67 -0
- package/lib/rolling-text/RollingTextItem.js +66 -0
- package/lib/rolling-text/index.css +1 -0
- package/lib/rolling-text/index.d.ts +79 -0
- package/lib/rolling-text/index.js +39 -0
- package/lib/rolling-text/style/index.d.ts +1 -0
- package/lib/rolling-text/style/index.js +2 -0
- package/lib/rolling-text/types.d.ts +17 -0
- package/lib/rolling-text/types.js +15 -0
- package/lib/signature/index.d.ts +1 -0
- package/lib/signature/types.d.ts +6 -0
- package/lib/signature/types.js +15 -0
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/utils/closest.d.ts +1 -0
- package/lib/utils/closest.js +27 -0
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/vant.cjs.js +2340 -2012
- package/lib/vant.es.js +2340 -2012
- package/lib/vant.js +2340 -2012
- package/lib/vant.min.js +1 -1
- package/lib/watermark/index.d.ts +1 -0
- package/lib/watermark/types.d.ts +3 -0
- package/lib/watermark/types.js +15 -0
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
@@ -0,0 +1,39 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
var stdin_exports = {};
|
29
|
+
__export(stdin_exports, {
|
30
|
+
RollingText: () => RollingText,
|
31
|
+
default: () => stdin_default,
|
32
|
+
rollingTextProps: () => import_RollingText2.rollingTextProps
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(stdin_exports);
|
35
|
+
var import_utils = require("../utils");
|
36
|
+
var import_RollingText = __toESM(require("./RollingText"));
|
37
|
+
var import_RollingText2 = require("./RollingText");
|
38
|
+
const RollingText = (0, import_utils.withInstall)(import_RollingText.default);
|
39
|
+
var stdin_default = RollingText;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { RollingTextProps } from './RollingText';
|
3
|
+
export type RollingTextDirection = 'up' | 'down';
|
4
|
+
export type RollingTextStopOrder = 'ltr' | 'rtl';
|
5
|
+
export type RollingTextExpose = {
|
6
|
+
start: () => void;
|
7
|
+
reset: () => void;
|
8
|
+
};
|
9
|
+
export type RollingTextInstance = ComponentPublicInstance<RollingTextProps, RollingTextExpose>;
|
10
|
+
export type RollingTextThemeVars = {
|
11
|
+
rollingTextBackground?: string;
|
12
|
+
rollingTextColor?: string;
|
13
|
+
rollingTextFontSize?: string;
|
14
|
+
rollingTextGap?: string;
|
15
|
+
rollingTextItemWidth?: string;
|
16
|
+
rollingTextItemBorderRadius?: string;
|
17
|
+
};
|
@@ -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);
|
package/lib/signature/index.d.ts
CHANGED
@@ -52,6 +52,7 @@ export declare const Signature: import("../utils").WithInstall<import("vue").Def
|
|
52
52
|
}, {}>>;
|
53
53
|
export default Signature;
|
54
54
|
export type { SignatureProps } from './Signature';
|
55
|
+
export type { SignatureThemeVars } from './types';
|
55
56
|
declare module 'vue' {
|
56
57
|
interface GlobalComponents {
|
57
58
|
Signature: typeof Signature;
|
@@ -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);
|
package/lib/slider/Slider.d.ts
CHANGED
package/lib/slider/index.d.ts
CHANGED
@@ -63,8 +63,8 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
|
|
63
63
|
modelValue: number | [number, number];
|
64
64
|
readonly: boolean;
|
65
65
|
vertical: boolean;
|
66
|
-
step: string | number;
|
67
66
|
min: string | number;
|
67
|
+
step: string | number;
|
68
68
|
}, {}>>;
|
69
69
|
export default Slider;
|
70
70
|
export { sliderProps } from './Slider';
|
package/lib/stepper/Stepper.d.ts
CHANGED
@@ -177,9 +177,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
177
177
|
name: string | number;
|
178
178
|
max: string | number;
|
179
179
|
disabled: boolean;
|
180
|
+
min: string | number;
|
180
181
|
longPress: boolean;
|
181
182
|
step: string | number;
|
182
|
-
min: string | number;
|
183
183
|
integer: boolean;
|
184
184
|
showPlus: boolean;
|
185
185
|
showMinus: boolean;
|
package/lib/stepper/index.d.ts
CHANGED
@@ -118,9 +118,9 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
118
118
|
name: string | number;
|
119
119
|
max: string | number;
|
120
120
|
disabled: boolean;
|
121
|
+
min: string | number;
|
121
122
|
longPress: boolean;
|
122
123
|
step: string | number;
|
123
|
-
min: string | number;
|
124
124
|
integer: boolean;
|
125
125
|
showPlus: boolean;
|
126
126
|
showMinus: boolean;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function closest(arr: number[], target: number): number;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
closest: () => closest
|
21
|
+
});
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
23
|
+
function closest(arr, target) {
|
24
|
+
return arr.reduce(
|
25
|
+
(pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur
|
26
|
+
);
|
27
|
+
}
|
package/lib/utils/constant.d.ts
CHANGED
@@ -11,3 +11,4 @@ export declare const BORDER_UNSET_TOP_BOTTOM: string;
|
|
11
11
|
export declare const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
12
12
|
export declare const FORM_KEY: InjectionKey<FormProvide>;
|
13
13
|
export declare const LONG_PRESS_START_TIME = 500;
|
14
|
+
export declare const TAP_OFFSET = 5;
|
package/lib/utils/constant.js
CHANGED
@@ -27,7 +27,8 @@ __export(stdin_exports, {
|
|
27
27
|
BORDER_UNSET_TOP_BOTTOM: () => BORDER_UNSET_TOP_BOTTOM,
|
28
28
|
FORM_KEY: () => FORM_KEY,
|
29
29
|
HAPTICS_FEEDBACK: () => HAPTICS_FEEDBACK,
|
30
|
-
LONG_PRESS_START_TIME: () => LONG_PRESS_START_TIME
|
30
|
+
LONG_PRESS_START_TIME: () => LONG_PRESS_START_TIME,
|
31
|
+
TAP_OFFSET: () => TAP_OFFSET
|
31
32
|
});
|
32
33
|
module.exports = __toCommonJS(stdin_exports);
|
33
34
|
const BORDER = "van-hairline";
|
@@ -41,3 +42,4 @@ const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
|
41
42
|
const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
42
43
|
const FORM_KEY = Symbol("van-form");
|
43
44
|
const LONG_PRESS_START_TIME = 500;
|
45
|
+
const TAP_OFFSET = 5;
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED
@@ -23,3 +23,4 @@ __reExport(stdin_exports, require("./constant"), module.exports);
|
|
23
23
|
__reExport(stdin_exports, require("./validate"), module.exports);
|
24
24
|
__reExport(stdin_exports, require("./interceptor"), module.exports);
|
25
25
|
__reExport(stdin_exports, require("./with-install"), module.exports);
|
26
|
+
__reExport(stdin_exports, require("./closest"), module.exports);
|