vant 4.4.1 → 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/address-list/AddressList.d.ts +13 -0
- package/es/address-list/AddressList.mjs +4 -2
- package/es/address-list/AddressListItem.d.ts +9 -0
- package/es/address-list/AddressListItem.mjs +4 -3
- package/es/address-list/index.d.ts +9 -0
- package/es/back-top/BackTop.mjs +14 -1
- 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/date-picker/DatePicker.d.ts +3 -3
- package/es/date-picker/index.d.ts +2 -2
- package/es/date-picker/utils.d.ts +4 -2
- package/es/date-picker/utils.mjs +8 -3
- package/es/dropdown-menu/DropdownMenu.mjs +10 -3
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +5 -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.d.ts +77 -0
- package/es/floating-panel/FloatingPanel.mjs +127 -0
- package/es/floating-panel/index.css +1 -0
- package/es/floating-panel/index.d.ts +61 -0
- package/es/floating-panel/index.mjs +10 -0
- package/es/floating-panel/style/index.d.ts +1 -0
- package/es/floating-panel/style/index.mjs +2 -0
- 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 +4 -1
- package/es/index.mjs +10 -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/Slider.mjs +10 -2
- 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/time-picker/TimePicker.d.ts +31 -4
- package/es/time-picker/TimePicker.mjs +73 -21
- package/es/time-picker/index.d.ts +20 -2
- package/es/utils/basic.d.ts +3 -0
- 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/address-list/AddressList.d.ts +13 -0
- package/lib/address-list/AddressList.js +3 -1
- package/lib/address-list/AddressListItem.d.ts +9 -0
- package/lib/address-list/AddressListItem.js +3 -2
- package/lib/address-list/index.d.ts +9 -0
- package/lib/back-top/BackTop.js +13 -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/date-picker/DatePicker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +2 -2
- package/lib/date-picker/utils.d.ts +4 -2
- package/lib/date-picker/utils.js +2 -2
- package/lib/dropdown-menu/DropdownMenu.js +10 -3
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +5 -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.d.ts +77 -0
- package/lib/floating-panel/FloatingPanel.js +146 -0
- package/lib/floating-panel/index.css +1 -0
- package/lib/floating-panel/index.d.ts +61 -0
- package/lib/floating-panel/index.js +39 -0
- package/lib/floating-panel/style/index.d.ts +1 -0
- package/lib/floating-panel/style/index.js +2 -0
- 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 +4 -1
- package/lib/index.js +10 -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/Slider.js +10 -2
- 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/time-picker/TimePicker.d.ts +31 -4
- package/lib/time-picker/TimePicker.js +84 -32
- package/lib/time-picker/index.d.ts +20 -2
- package/lib/utils/basic.d.ts +3 -0
- 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 +2547 -2019
- package/lib/vant.es.js +2547 -2019
- package/lib/vant.js +2544 -2016
- 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,146 @@
|
|
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 name2 in all)
|
7
|
+
__defProp(target, name2, { get: all[name2], 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
|
+
default: () => stdin_default,
|
21
|
+
floatingPanelProps: () => floatingPanelProps
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
24
|
+
var import_vue = require("vue");
|
25
|
+
var import_vue2 = require("vue");
|
26
|
+
var import_utils = require("../utils");
|
27
|
+
var import_use = require("@vant/use");
|
28
|
+
var import_use_lock_scroll = require("../composables/use-lock-scroll");
|
29
|
+
var import_use_touch = require("../composables/use-touch");
|
30
|
+
var import_use_sync_prop_ref = require("../composables/use-sync-prop-ref");
|
31
|
+
const {
|
32
|
+
height: windowHeight
|
33
|
+
} = (0, import_use.useWindowSize)();
|
34
|
+
const floatingPanelProps = {
|
35
|
+
height: (0, import_utils.makeNumericProp)(0),
|
36
|
+
anchors: (0, import_utils.makeArrayProp)(),
|
37
|
+
duration: (0, import_utils.makeNumericProp)(0.2),
|
38
|
+
contentDraggable: import_utils.truthProp,
|
39
|
+
safeAreaInsetBottom: import_utils.truthProp
|
40
|
+
};
|
41
|
+
const [name, bem] = (0, import_utils.createNamespace)("floating-panel");
|
42
|
+
const DAMP = 0.2;
|
43
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
44
|
+
name,
|
45
|
+
props: floatingPanelProps,
|
46
|
+
emits: ["heightChange", "update:height"],
|
47
|
+
setup(props, {
|
48
|
+
emit,
|
49
|
+
slots
|
50
|
+
}) {
|
51
|
+
const rootRef = (0, import_vue2.ref)();
|
52
|
+
const contentRef = (0, import_vue2.ref)();
|
53
|
+
const height = (0, import_use_sync_prop_ref.useSyncPropRef)(() => +props.height, (value) => emit("update:height", value));
|
54
|
+
const boundary = (0, import_vue2.computed)(() => {
|
55
|
+
var _a, _b;
|
56
|
+
return {
|
57
|
+
min: (_a = props.anchors[0]) != null ? _a : 100,
|
58
|
+
max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
|
59
|
+
};
|
60
|
+
});
|
61
|
+
const anchors = (0, import_vue2.computed)(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
|
62
|
+
const dragging = (0, import_vue2.ref)(false);
|
63
|
+
const rootStyle = (0, import_vue2.computed)(() => ({
|
64
|
+
height: (0, import_utils.addUnit)(boundary.value.max),
|
65
|
+
transform: `translateY(calc(100% + ${(0, import_utils.addUnit)(-height.value)}))`,
|
66
|
+
transition: !dragging.value ? `transform ${props.duration}s` : "none"
|
67
|
+
}));
|
68
|
+
const ease = (moveY) => {
|
69
|
+
const absDistance = Math.abs(moveY);
|
70
|
+
const {
|
71
|
+
min,
|
72
|
+
max
|
73
|
+
} = boundary.value;
|
74
|
+
if (absDistance > max) {
|
75
|
+
return -(max + (absDistance - max) * DAMP);
|
76
|
+
}
|
77
|
+
if (absDistance < min) {
|
78
|
+
return -(min - (min - absDistance) * DAMP);
|
79
|
+
}
|
80
|
+
return moveY;
|
81
|
+
};
|
82
|
+
let startY;
|
83
|
+
const touch = (0, import_use_touch.useTouch)();
|
84
|
+
const onTouchstart = (e) => {
|
85
|
+
touch.start(e);
|
86
|
+
dragging.value = true;
|
87
|
+
startY = -height.value;
|
88
|
+
};
|
89
|
+
const onTouchmove = (e) => {
|
90
|
+
var _a;
|
91
|
+
touch.move(e);
|
92
|
+
const target = e.target;
|
93
|
+
if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
|
94
|
+
if (!props.contentDraggable)
|
95
|
+
return;
|
96
|
+
if (-startY < boundary.value.max) {
|
97
|
+
if (e.cancelable)
|
98
|
+
e.preventDefault();
|
99
|
+
e.stopPropagation();
|
100
|
+
} else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
|
101
|
+
return;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
const moveY = touch.deltaY.value + startY;
|
105
|
+
height.value = -ease(moveY);
|
106
|
+
};
|
107
|
+
const onTouchend = () => {
|
108
|
+
dragging.value = false;
|
109
|
+
height.value = (0, import_utils.closest)(anchors.value, height.value);
|
110
|
+
if (height.value !== -startY) {
|
111
|
+
emit("heightChange", {
|
112
|
+
height: height.value
|
113
|
+
});
|
114
|
+
}
|
115
|
+
};
|
116
|
+
(0, import_vue2.watch)(boundary, () => {
|
117
|
+
height.value = (0, import_utils.closest)(anchors.value, height.value);
|
118
|
+
}, {
|
119
|
+
immediate: true
|
120
|
+
});
|
121
|
+
(0, import_use_lock_scroll.useLockScroll)(rootRef, () => true);
|
122
|
+
(0, import_use.useEventListener)("touchmove", onTouchmove, {
|
123
|
+
target: rootRef
|
124
|
+
});
|
125
|
+
return () => {
|
126
|
+
var _a;
|
127
|
+
return (0, import_vue.createVNode)("div", {
|
128
|
+
"class": [bem(), {
|
129
|
+
"van-safe-area-bottom": props.safeAreaInsetBottom
|
130
|
+
}],
|
131
|
+
"ref": rootRef,
|
132
|
+
"style": rootStyle.value,
|
133
|
+
"onTouchstartPassive": onTouchstart,
|
134
|
+
"onTouchend": onTouchend,
|
135
|
+
"onTouchcancel": onTouchend
|
136
|
+
}, [(0, import_vue.createVNode)("div", {
|
137
|
+
"class": bem("header")
|
138
|
+
}, [(0, import_vue.createVNode)("div", {
|
139
|
+
"class": bem("header-bar")
|
140
|
+
}, null)]), (0, import_vue.createVNode)("div", {
|
141
|
+
"class": bem("content"),
|
142
|
+
"ref": contentRef
|
143
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
144
|
+
};
|
145
|
+
}
|
146
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--van-floating-panel-border-radius: 16px;--van-floating-panel-header-height: 30px;--van-floating-panel-z-index: 999;--van-floating-panel-background: var(--van-background-2);--van-floating-panel-bar-width: 20px;--van-floating-panel-bar-height: 3px;--van-floating-panel-bar-color: var(--van-gray-5)}.van-floating-panel{position:fixed;left:0;bottom:0;width:100vw;z-index:var(--van-floating-panel-z-index);display:flex;flex-direction:column;touch-action:none;border-top-left-radius:var(--van-floating-panel-border-radius);border-top-right-radius:var(--van-floating-panel-border-radius);background:var(--van-floating-panel-background)}.van-floating-panel:after{content:"";display:block;position:absolute;bottom:-100vh;height:100vh;width:100vw;background-color:inherit}.van-floating-panel__header{height:var(--van-floating-panel-header-height);display:flex;justify-content:center;align-items:center;cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;user-select:none}.van-floating-panel__header-bar{height:var(--van-floating-panel-bar-height);width:var(--van-floating-panel-bar-width);border-radius:var(--van-radius-md);background:var(--van-floating-panel-bar-color)}.van-floating-panel__content{flex:1;overflow-y:auto;background-color:var(--van-floating-panel-background)}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
export declare const FloatingPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
height: {
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
4
|
+
default: number;
|
5
|
+
};
|
6
|
+
anchors: {
|
7
|
+
type: import("vue").PropType<number[]>;
|
8
|
+
default: () => never[];
|
9
|
+
};
|
10
|
+
duration: {
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
contentDraggable: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: true;
|
17
|
+
};
|
18
|
+
safeAreaInsetBottom: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
default: true;
|
21
|
+
};
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("heightChange" | "update:height")[], "heightChange" | "update:height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
height: {
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
25
|
+
default: number;
|
26
|
+
};
|
27
|
+
anchors: {
|
28
|
+
type: import("vue").PropType<number[]>;
|
29
|
+
default: () => never[];
|
30
|
+
};
|
31
|
+
duration: {
|
32
|
+
type: (NumberConstructor | StringConstructor)[];
|
33
|
+
default: number;
|
34
|
+
};
|
35
|
+
contentDraggable: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: true;
|
38
|
+
};
|
39
|
+
safeAreaInsetBottom: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: true;
|
42
|
+
};
|
43
|
+
}>> & {
|
44
|
+
onHeightChange?: ((...args: any[]) => any) | undefined;
|
45
|
+
"onUpdate:height"?: ((...args: any[]) => any) | undefined;
|
46
|
+
}, {
|
47
|
+
height: string | number;
|
48
|
+
safeAreaInsetBottom: boolean;
|
49
|
+
duration: string | number;
|
50
|
+
anchors: number[];
|
51
|
+
contentDraggable: boolean;
|
52
|
+
}, {}>>;
|
53
|
+
export default FloatingPanel;
|
54
|
+
export { floatingPanelProps } from './FloatingPanel';
|
55
|
+
export type { FloatingPanelProps } from './FloatingPanel';
|
56
|
+
export type { FloatingPanelThemeVars } from './types';
|
57
|
+
declare module 'vue' {
|
58
|
+
interface GlobalComponents {
|
59
|
+
VanFloatingPanel: typeof FloatingPanel;
|
60
|
+
}
|
61
|
+
}
|
@@ -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
|
+
FloatingPanel: () => FloatingPanel,
|
31
|
+
default: () => stdin_default,
|
32
|
+
floatingPanelProps: () => import_FloatingPanel2.floatingPanelProps
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(stdin_exports);
|
35
|
+
var import_utils = require("../utils");
|
36
|
+
var import_FloatingPanel = __toESM(require("./FloatingPanel"));
|
37
|
+
var import_FloatingPanel2 = require("./FloatingPanel");
|
38
|
+
const FloatingPanel = (0, import_utils.withInstall)(import_FloatingPanel.default);
|
39
|
+
var stdin_default = FloatingPanel;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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
|
-
|
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);
|