vant 4.6.5 → 4.6.6
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/dropdown-item/DropdownItem.mjs +1 -1
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/floating-bubble/FloatingBubble.mjs +5 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/vue-tsx-shim.d.ts +1 -0
- package/lib/dropdown-item/DropdownItem.js +1 -1
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/floating-bubble/FloatingBubble.js +5 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +7 -3
- package/lib/vant.es.js +7 -3
- package/lib/vant.js +7 -3
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +1 -0
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { DropdownItemProps } from './DropdownItem';
|
2
2
|
import type { VNode, ComponentPublicInstance } from 'vue';
|
3
3
|
import type { Numeric } from '../utils';
|
4
|
+
export type DropdownItemOptionValue = Numeric | boolean;
|
4
5
|
export type DropdownItemOption = {
|
5
6
|
text: string;
|
6
7
|
icon?: string;
|
7
|
-
value:
|
8
|
+
value: DropdownItemOptionValue;
|
8
9
|
};
|
9
10
|
export type DropdownItemExpose = {
|
10
11
|
toggle: (show?: boolean, options?: {
|
@@ -58,6 +58,8 @@ var stdin_default = defineComponent({
|
|
58
58
|
return style;
|
59
59
|
});
|
60
60
|
const updateState = () => {
|
61
|
+
if (!show.value)
|
62
|
+
return;
|
61
63
|
const {
|
62
64
|
width,
|
63
65
|
height
|
@@ -133,6 +135,8 @@ var stdin_default = defineComponent({
|
|
133
135
|
const onClick = (e) => {
|
134
136
|
if (touch.isTap.value)
|
135
137
|
emit("click", e);
|
138
|
+
else
|
139
|
+
e.stopPropagation();
|
136
140
|
};
|
137
141
|
onMounted(() => {
|
138
142
|
updateState();
|
@@ -157,7 +161,7 @@ var stdin_default = defineComponent({
|
|
157
161
|
"onTouchstartPassive": onTouchStart,
|
158
162
|
"onTouchend": onTouchEnd,
|
159
163
|
"onTouchcancel": onTouchEnd,
|
160
|
-
"
|
164
|
+
"onClickCapture": onClick,
|
161
165
|
"style": rootStyle.value
|
162
166
|
}, attrs), [slots.default ? slots.default() : _createVNode(Icon, {
|
163
167
|
"name": props.icon,
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
@@ -98,7 +98,7 @@ import { Toast } from "./toast/index.mjs";
|
|
98
98
|
import { TreeSelect } from "./tree-select/index.mjs";
|
99
99
|
import { Uploader } from "./uploader/index.mjs";
|
100
100
|
import { Watermark } from "./watermark/index.mjs";
|
101
|
-
const version = "4.6.
|
101
|
+
const version = "4.6.6";
|
102
102
|
function install(app) {
|
103
103
|
const components = [
|
104
104
|
ActionBar,
|
package/es/vue-tsx-shim.d.ts
CHANGED
@@ -122,7 +122,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
122
122
|
};
|
123
123
|
return (0, import_vue.createVNode)(import_cell.Cell, {
|
124
124
|
"role": "menuitem",
|
125
|
-
"key": option.value,
|
125
|
+
"key": String(option.value),
|
126
126
|
"icon": option.icon,
|
127
127
|
"title": option.text,
|
128
128
|
"class": bem("option", {
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { DropdownItemProps } from './DropdownItem';
|
2
2
|
import type { VNode, ComponentPublicInstance } from 'vue';
|
3
3
|
import type { Numeric } from '../utils';
|
4
|
+
export type DropdownItemOptionValue = Numeric | boolean;
|
4
5
|
export type DropdownItemOption = {
|
5
6
|
text: string;
|
6
7
|
icon?: string;
|
7
|
-
value:
|
8
|
+
value: DropdownItemOptionValue;
|
8
9
|
};
|
9
10
|
export type DropdownItemExpose = {
|
10
11
|
toggle: (show?: boolean, options?: {
|
@@ -91,6 +91,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
91
91
|
return style;
|
92
92
|
});
|
93
93
|
const updateState = () => {
|
94
|
+
if (!show.value)
|
95
|
+
return;
|
94
96
|
const {
|
95
97
|
width,
|
96
98
|
height
|
@@ -166,6 +168,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
166
168
|
const onClick = (e) => {
|
167
169
|
if (touch.isTap.value)
|
168
170
|
emit("click", e);
|
171
|
+
else
|
172
|
+
e.stopPropagation();
|
169
173
|
};
|
170
174
|
(0, import_vue2.onMounted)(() => {
|
171
175
|
updateState();
|
@@ -190,7 +194,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
190
194
|
"onTouchstartPassive": onTouchStart,
|
191
195
|
"onTouchend": onTouchEnd,
|
192
196
|
"onTouchcancel": onTouchEnd,
|
193
|
-
"
|
197
|
+
"onClickCapture": onClick,
|
194
198
|
"style": rootStyle.value
|
195
199
|
}, attrs), [slots.default ? slots.default() : (0, import_vue.createVNode)(import_icon.default, {
|
196
200
|
"name": props.icon,
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -224,7 +224,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
224
224
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
225
225
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
226
226
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
227
|
-
const version = "4.6.
|
227
|
+
const version = "4.6.6";
|
228
228
|
function install(app) {
|
229
229
|
const components = [
|
230
230
|
import_action_bar.ActionBar,
|
package/lib/vant.cjs.js
CHANGED
@@ -9639,7 +9639,7 @@ var stdin_default$S = vue.defineComponent({
|
|
9639
9639
|
};
|
9640
9640
|
return vue.createVNode(Cell, {
|
9641
9641
|
"role": "menuitem",
|
9642
|
-
"key": option.value,
|
9642
|
+
"key": String(option.value),
|
9643
9643
|
"icon": option.icon,
|
9644
9644
|
"title": option.text,
|
9645
9645
|
"class": bem$J("option", {
|
@@ -9774,6 +9774,8 @@ var stdin_default$R = vue.defineComponent({
|
|
9774
9774
|
return style;
|
9775
9775
|
});
|
9776
9776
|
const updateState = () => {
|
9777
|
+
if (!show.value)
|
9778
|
+
return;
|
9777
9779
|
const {
|
9778
9780
|
width,
|
9779
9781
|
height
|
@@ -9849,6 +9851,8 @@ var stdin_default$R = vue.defineComponent({
|
|
9849
9851
|
const onClick = (e) => {
|
9850
9852
|
if (touch.isTap.value)
|
9851
9853
|
emit("click", e);
|
9854
|
+
else
|
9855
|
+
e.stopPropagation();
|
9852
9856
|
};
|
9853
9857
|
vue.onMounted(() => {
|
9854
9858
|
updateState();
|
@@ -9873,7 +9877,7 @@ var stdin_default$R = vue.defineComponent({
|
|
9873
9877
|
"onTouchstartPassive": onTouchStart,
|
9874
9878
|
"onTouchend": onTouchEnd,
|
9875
9879
|
"onTouchcancel": onTouchEnd,
|
9876
|
-
"
|
9880
|
+
"onClickCapture": onClick,
|
9877
9881
|
"style": rootStyle.value
|
9878
9882
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1P, {
|
9879
9883
|
"name": props2.icon,
|
@@ -16409,7 +16413,7 @@ const Lazyload = {
|
|
16409
16413
|
});
|
16410
16414
|
}
|
16411
16415
|
};
|
16412
|
-
const version = "4.6.
|
16416
|
+
const version = "4.6.6";
|
16413
16417
|
function install(app) {
|
16414
16418
|
const components = [
|
16415
16419
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -9637,7 +9637,7 @@ var stdin_default$S = defineComponent({
|
|
9637
9637
|
};
|
9638
9638
|
return createVNode(Cell, {
|
9639
9639
|
"role": "menuitem",
|
9640
|
-
"key": option.value,
|
9640
|
+
"key": String(option.value),
|
9641
9641
|
"icon": option.icon,
|
9642
9642
|
"title": option.text,
|
9643
9643
|
"class": bem$J("option", {
|
@@ -9772,6 +9772,8 @@ var stdin_default$R = defineComponent({
|
|
9772
9772
|
return style;
|
9773
9773
|
});
|
9774
9774
|
const updateState = () => {
|
9775
|
+
if (!show.value)
|
9776
|
+
return;
|
9775
9777
|
const {
|
9776
9778
|
width,
|
9777
9779
|
height
|
@@ -9847,6 +9849,8 @@ var stdin_default$R = defineComponent({
|
|
9847
9849
|
const onClick = (e) => {
|
9848
9850
|
if (touch.isTap.value)
|
9849
9851
|
emit("click", e);
|
9852
|
+
else
|
9853
|
+
e.stopPropagation();
|
9850
9854
|
};
|
9851
9855
|
onMounted(() => {
|
9852
9856
|
updateState();
|
@@ -9871,7 +9875,7 @@ var stdin_default$R = defineComponent({
|
|
9871
9875
|
"onTouchstartPassive": onTouchStart,
|
9872
9876
|
"onTouchend": onTouchEnd,
|
9873
9877
|
"onTouchcancel": onTouchEnd,
|
9874
|
-
"
|
9878
|
+
"onClickCapture": onClick,
|
9875
9879
|
"style": rootStyle.value
|
9876
9880
|
}, attrs), [slots.default ? slots.default() : createVNode(stdin_default$1P, {
|
9877
9881
|
"name": props2.icon,
|
@@ -16407,7 +16411,7 @@ const Lazyload = {
|
|
16407
16411
|
});
|
16408
16412
|
}
|
16409
16413
|
};
|
16410
|
-
const version = "4.6.
|
16414
|
+
const version = "4.6.6";
|
16411
16415
|
function install(app) {
|
16412
16416
|
const components = [
|
16413
16417
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -10072,7 +10072,7 @@
|
|
10072
10072
|
};
|
10073
10073
|
return vue.createVNode(Cell, {
|
10074
10074
|
"role": "menuitem",
|
10075
|
-
"key": option.value,
|
10075
|
+
"key": String(option.value),
|
10076
10076
|
"icon": option.icon,
|
10077
10077
|
"title": option.text,
|
10078
10078
|
"class": bem$J("option", {
|
@@ -10207,6 +10207,8 @@
|
|
10207
10207
|
return style;
|
10208
10208
|
});
|
10209
10209
|
const updateState = () => {
|
10210
|
+
if (!show.value)
|
10211
|
+
return;
|
10210
10212
|
const {
|
10211
10213
|
width: width2,
|
10212
10214
|
height: height2
|
@@ -10282,6 +10284,8 @@
|
|
10282
10284
|
const onClick = (e) => {
|
10283
10285
|
if (touch.isTap.value)
|
10284
10286
|
emit("click", e);
|
10287
|
+
else
|
10288
|
+
e.stopPropagation();
|
10285
10289
|
};
|
10286
10290
|
vue.onMounted(() => {
|
10287
10291
|
updateState();
|
@@ -10306,7 +10310,7 @@
|
|
10306
10310
|
"onTouchstartPassive": onTouchStart,
|
10307
10311
|
"onTouchend": onTouchEnd,
|
10308
10312
|
"onTouchcancel": onTouchEnd,
|
10309
|
-
"
|
10313
|
+
"onClickCapture": onClick,
|
10310
10314
|
"style": rootStyle.value
|
10311
10315
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1P, {
|
10312
10316
|
"name": props2.icon,
|
@@ -17619,7 +17623,7 @@
|
|
17619
17623
|
});
|
17620
17624
|
}
|
17621
17625
|
};
|
17622
|
-
const version = "4.6.
|
17626
|
+
const version = "4.6.6";
|
17623
17627
|
function install(app) {
|
17624
17628
|
const components = [
|
17625
17629
|
ActionBar,
|