vant 4.8.10 → 4.8.11
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 +10 -3
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/types.d.ts +1 -0
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/dropdown-item/DropdownItem.js +10 -3
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/types.d.ts +1 -0
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +11 -4
- package/lib/vant.es.js +11 -4
- package/lib/vant.js +11 -4
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
226
226
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
227
227
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
228
228
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
229
|
-
const version = "4.8.
|
229
|
+
const version = "4.8.11";
|
230
230
|
function install(app) {
|
231
231
|
const components = [
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/vant.cjs.js
CHANGED
@@ -9833,8 +9833,14 @@ var stdin_default$T = vue.defineComponent({
|
|
9833
9833
|
const {
|
9834
9834
|
activeColor
|
9835
9835
|
} = parent.props;
|
9836
|
+
const {
|
9837
|
+
disabled
|
9838
|
+
} = option;
|
9836
9839
|
const active = option.value === props2.modelValue;
|
9837
9840
|
const onClick = () => {
|
9841
|
+
if (disabled) {
|
9842
|
+
return;
|
9843
|
+
}
|
9838
9844
|
state.showPopup = false;
|
9839
9845
|
if (option.value !== props2.modelValue) {
|
9840
9846
|
emit("update:modelValue", option.value);
|
@@ -9845,7 +9851,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9845
9851
|
if (active) {
|
9846
9852
|
return vue.createVNode(Icon, {
|
9847
9853
|
"class": bem$K("icon"),
|
9848
|
-
"color": activeColor,
|
9854
|
+
"color": disabled ? void 0 : activeColor,
|
9849
9855
|
"name": "success"
|
9850
9856
|
}, null);
|
9851
9857
|
}
|
@@ -9856,13 +9862,14 @@ var stdin_default$T = vue.defineComponent({
|
|
9856
9862
|
"icon": option.icon,
|
9857
9863
|
"title": option.text,
|
9858
9864
|
"class": bem$K("option", {
|
9859
|
-
active
|
9865
|
+
active,
|
9866
|
+
disabled
|
9860
9867
|
}),
|
9861
9868
|
"style": {
|
9862
9869
|
color: active ? activeColor : ""
|
9863
9870
|
},
|
9864
9871
|
"tabindex": active ? 0 : -1,
|
9865
|
-
"clickable":
|
9872
|
+
"clickable": !disabled,
|
9866
9873
|
"onClick": onClick
|
9867
9874
|
}, {
|
9868
9875
|
value: renderIcon
|
@@ -16867,7 +16874,7 @@ const Lazyload = {
|
|
16867
16874
|
});
|
16868
16875
|
}
|
16869
16876
|
};
|
16870
|
-
const version = "4.8.
|
16877
|
+
const version = "4.8.11";
|
16871
16878
|
function install(app) {
|
16872
16879
|
const components = [
|
16873
16880
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -9831,8 +9831,14 @@ var stdin_default$T = defineComponent({
|
|
9831
9831
|
const {
|
9832
9832
|
activeColor
|
9833
9833
|
} = parent.props;
|
9834
|
+
const {
|
9835
|
+
disabled
|
9836
|
+
} = option;
|
9834
9837
|
const active = option.value === props2.modelValue;
|
9835
9838
|
const onClick = () => {
|
9839
|
+
if (disabled) {
|
9840
|
+
return;
|
9841
|
+
}
|
9836
9842
|
state.showPopup = false;
|
9837
9843
|
if (option.value !== props2.modelValue) {
|
9838
9844
|
emit("update:modelValue", option.value);
|
@@ -9843,7 +9849,7 @@ var stdin_default$T = defineComponent({
|
|
9843
9849
|
if (active) {
|
9844
9850
|
return createVNode(Icon, {
|
9845
9851
|
"class": bem$K("icon"),
|
9846
|
-
"color": activeColor,
|
9852
|
+
"color": disabled ? void 0 : activeColor,
|
9847
9853
|
"name": "success"
|
9848
9854
|
}, null);
|
9849
9855
|
}
|
@@ -9854,13 +9860,14 @@ var stdin_default$T = defineComponent({
|
|
9854
9860
|
"icon": option.icon,
|
9855
9861
|
"title": option.text,
|
9856
9862
|
"class": bem$K("option", {
|
9857
|
-
active
|
9863
|
+
active,
|
9864
|
+
disabled
|
9858
9865
|
}),
|
9859
9866
|
"style": {
|
9860
9867
|
color: active ? activeColor : ""
|
9861
9868
|
},
|
9862
9869
|
"tabindex": active ? 0 : -1,
|
9863
|
-
"clickable":
|
9870
|
+
"clickable": !disabled,
|
9864
9871
|
"onClick": onClick
|
9865
9872
|
}, {
|
9866
9873
|
value: renderIcon
|
@@ -16865,7 +16872,7 @@ const Lazyload = {
|
|
16865
16872
|
});
|
16866
16873
|
}
|
16867
16874
|
};
|
16868
|
-
const version = "4.8.
|
16875
|
+
const version = "4.8.11";
|
16869
16876
|
function install(app) {
|
16870
16877
|
const components = [
|
16871
16878
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -10269,8 +10269,14 @@
|
|
10269
10269
|
const {
|
10270
10270
|
activeColor
|
10271
10271
|
} = parent.props;
|
10272
|
+
const {
|
10273
|
+
disabled
|
10274
|
+
} = option;
|
10272
10275
|
const active = option.value === props2.modelValue;
|
10273
10276
|
const onClick = () => {
|
10277
|
+
if (disabled) {
|
10278
|
+
return;
|
10279
|
+
}
|
10274
10280
|
state.showPopup = false;
|
10275
10281
|
if (option.value !== props2.modelValue) {
|
10276
10282
|
emit("update:modelValue", option.value);
|
@@ -10281,7 +10287,7 @@
|
|
10281
10287
|
if (active) {
|
10282
10288
|
return vue.createVNode(Icon, {
|
10283
10289
|
"class": bem$K("icon"),
|
10284
|
-
"color": activeColor,
|
10290
|
+
"color": disabled ? void 0 : activeColor,
|
10285
10291
|
"name": "success"
|
10286
10292
|
}, null);
|
10287
10293
|
}
|
@@ -10292,13 +10298,14 @@
|
|
10292
10298
|
"icon": option.icon,
|
10293
10299
|
"title": option.text,
|
10294
10300
|
"class": bem$K("option", {
|
10295
|
-
active
|
10301
|
+
active,
|
10302
|
+
disabled
|
10296
10303
|
}),
|
10297
10304
|
"style": {
|
10298
10305
|
color: active ? activeColor : ""
|
10299
10306
|
},
|
10300
10307
|
"tabindex": active ? 0 : -1,
|
10301
|
-
"clickable":
|
10308
|
+
"clickable": !disabled,
|
10302
10309
|
"onClick": onClick
|
10303
10310
|
}, {
|
10304
10311
|
value: renderIcon
|
@@ -18080,7 +18087,7 @@
|
|
18080
18087
|
});
|
18081
18088
|
}
|
18082
18089
|
};
|
18083
|
-
const version = "4.8.
|
18090
|
+
const version = "4.8.11";
|
18084
18091
|
function install(app) {
|
18085
18092
|
const components = [
|
18086
18093
|
ActionBar,
|