vant 4.8.9 → 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/lib/index.d.ts CHANGED
@@ -106,4 +106,4 @@ declare namespace _default {
106
106
  }
107
107
  export default _default;
108
108
  export function install(app: any): void;
109
- export const version: "4.8.9";
109
+ export const version: "4.8.11";
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.9";
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
@@ -8637,44 +8637,37 @@ const couponCellProps = {
8637
8637
  default: -1
8638
8638
  }
8639
8639
  };
8640
+ const getValue = (coupon) => {
8641
+ const {
8642
+ value,
8643
+ denominations
8644
+ } = coupon;
8645
+ if (isDef(value)) {
8646
+ return value;
8647
+ }
8648
+ if (isDef(denominations)) {
8649
+ return denominations;
8650
+ }
8651
+ return 0;
8652
+ };
8640
8653
  function formatValue({
8641
8654
  coupons,
8642
8655
  chosenCoupon,
8643
8656
  currency
8644
8657
  }) {
8645
- const getValue = (coupon) => {
8646
- let value2 = 0;
8647
- const {
8648
- value: couponValue,
8649
- denominations
8650
- } = coupon;
8651
- if (isDef(coupon.value)) {
8652
- value2 = couponValue;
8653
- } else if (isDef(coupon.denominations)) {
8654
- value2 = denominations;
8655
- }
8656
- return value2;
8657
- };
8658
- let value = 0, isExist = false;
8659
- if (Array.isArray(chosenCoupon)) {
8660
- chosenCoupon.forEach((i) => {
8661
- const coupon = coupons[+i];
8662
- if (coupon) {
8663
- isExist = true;
8664
- value += getValue(coupon);
8665
- }
8666
- });
8667
- } else {
8668
- const coupon = coupons[+chosenCoupon];
8658
+ let value = 0;
8659
+ let isExist = false;
8660
+ (Array.isArray(chosenCoupon) ? chosenCoupon : [chosenCoupon]).forEach((i) => {
8661
+ const coupon = coupons[+i];
8669
8662
  if (coupon) {
8670
8663
  isExist = true;
8671
- value = getValue(coupon);
8664
+ value += getValue(coupon);
8672
8665
  }
8666
+ });
8667
+ if (isExist) {
8668
+ return `-${currency} ${(value / 100).toFixed(2)}`;
8673
8669
  }
8674
- if (!isExist) {
8675
- return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8676
- }
8677
- return `-${currency} ${(value / 100).toFixed(2)}`;
8670
+ return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8678
8671
  }
8679
8672
  var stdin_default$_ = vue.defineComponent({
8680
8673
  name: name$R,
@@ -9019,7 +9012,6 @@ const couponListProps = {
9019
9012
  currency: makeStringProp("¥"),
9020
9013
  showCount: truthProp,
9021
9014
  emptyImage: String,
9022
- chosenCoupon: [Number, Array],
9023
9015
  enabledTitle: String,
9024
9016
  disabledTitle: String,
9025
9017
  disabledCoupons: makeArrayProp(),
@@ -9031,7 +9023,11 @@ const couponListProps = {
9031
9023
  exchangeButtonText: String,
9032
9024
  displayedCouponIndex: makeNumberProp(-1),
9033
9025
  exchangeButtonLoading: Boolean,
9034
- exchangeButtonDisabled: Boolean
9026
+ exchangeButtonDisabled: Boolean,
9027
+ chosenCoupon: {
9028
+ type: [Number, Array],
9029
+ default: -1
9030
+ }
9035
9031
  };
9036
9032
  var stdin_default$Y = vue.defineComponent({
9037
9033
  name: name$P,
@@ -9099,18 +9095,16 @@ var stdin_default$Y = vue.defineComponent({
9099
9095
  };
9100
9096
  const renderCouponTab = () => {
9101
9097
  const {
9102
- coupons
9098
+ coupons,
9099
+ chosenCoupon
9103
9100
  } = props2;
9104
9101
  const count = props2.showCount ? ` (${coupons.length})` : "";
9105
9102
  const title = (props2.enabledTitle || t$9("enable")) + count;
9106
- const getChosenCoupon = (chosenCoupon = [], value = 0) => {
9107
- const unrefChosenCoupon = vue.unref(chosenCoupon);
9108
- const index = unrefChosenCoupon.indexOf(value);
9109
- if (index === -1) {
9110
- return [...unrefChosenCoupon, value];
9103
+ const updateChosenCoupon = (currentValues = [], value = 0) => {
9104
+ if (currentValues.includes(value)) {
9105
+ return currentValues.filter((item) => item !== value);
9111
9106
  }
9112
- unrefChosenCoupon.splice(index, 1);
9113
- return [...unrefChosenCoupon];
9107
+ return [...currentValues, value];
9114
9108
  };
9115
9109
  return vue.createVNode(Tab, {
9116
9110
  "title": title
@@ -9128,9 +9122,9 @@ var stdin_default$Y = vue.defineComponent({
9128
9122
  "key": coupon.id,
9129
9123
  "ref": setCouponRefs(index),
9130
9124
  "coupon": coupon,
9131
- "chosen": Array.isArray(props2.chosenCoupon) ? props2.chosenCoupon.includes(index) : index === props2.chosenCoupon,
9125
+ "chosen": Array.isArray(chosenCoupon) ? chosenCoupon.includes(index) : index === chosenCoupon,
9132
9126
  "currency": props2.currency,
9133
- "onClick": () => emit("change", Array.isArray(props2.chosenCoupon) ? getChosenCoupon(props2.chosenCoupon, index) : index)
9127
+ "onClick": () => emit("change", Array.isArray(chosenCoupon) ? updateChosenCoupon(chosenCoupon, index) : index)
9134
9128
  }, null)), !coupons.length && renderEmpty(), (_a = slots["list-footer"]) == null ? void 0 : _a.call(slots)])];
9135
9129
  }
9136
9130
  });
@@ -9232,7 +9226,7 @@ var stdin_default$X = vue.defineComponent({
9232
9226
  const isMaxYear = (year) => year === props2.maxDate.getFullYear();
9233
9227
  const isMinMonth = (month) => month === props2.minDate.getMonth() + 1;
9234
9228
  const isMaxMonth = (month) => month === props2.maxDate.getMonth() + 1;
9235
- const getValue = (type) => {
9229
+ const getValue2 = (type) => {
9236
9230
  const {
9237
9231
  minDate,
9238
9232
  columnsType
@@ -9252,14 +9246,14 @@ var stdin_default$X = vue.defineComponent({
9252
9246
  }
9253
9247
  };
9254
9248
  const genMonthOptions = () => {
9255
- const year = getValue("year");
9249
+ const year = getValue2("year");
9256
9250
  const minMonth = isMinYear(year) ? props2.minDate.getMonth() + 1 : 1;
9257
9251
  const maxMonth = isMaxYear(year) ? props2.maxDate.getMonth() + 1 : 12;
9258
9252
  return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter);
9259
9253
  };
9260
9254
  const genDayOptions = () => {
9261
- const year = getValue("year");
9262
- const month = getValue("month");
9255
+ const year = getValue2("year");
9256
+ const month = getValue2("month");
9263
9257
  const minDate = isMinYear(year) && isMinMonth(month) ? props2.minDate.getDate() : 1;
9264
9258
  const maxDate = isMaxYear(year) && isMaxMonth(month) ? props2.maxDate.getDate() : getMonthEndDay(year, month);
9265
9259
  return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter);
@@ -9839,8 +9833,14 @@ var stdin_default$T = vue.defineComponent({
9839
9833
  const {
9840
9834
  activeColor
9841
9835
  } = parent.props;
9836
+ const {
9837
+ disabled
9838
+ } = option;
9842
9839
  const active = option.value === props2.modelValue;
9843
9840
  const onClick = () => {
9841
+ if (disabled) {
9842
+ return;
9843
+ }
9844
9844
  state.showPopup = false;
9845
9845
  if (option.value !== props2.modelValue) {
9846
9846
  emit("update:modelValue", option.value);
@@ -9851,7 +9851,7 @@ var stdin_default$T = vue.defineComponent({
9851
9851
  if (active) {
9852
9852
  return vue.createVNode(Icon, {
9853
9853
  "class": bem$K("icon"),
9854
- "color": activeColor,
9854
+ "color": disabled ? void 0 : activeColor,
9855
9855
  "name": "success"
9856
9856
  }, null);
9857
9857
  }
@@ -9862,13 +9862,14 @@ var stdin_default$T = vue.defineComponent({
9862
9862
  "icon": option.icon,
9863
9863
  "title": option.text,
9864
9864
  "class": bem$K("option", {
9865
- active
9865
+ active,
9866
+ disabled
9866
9867
  }),
9867
9868
  "style": {
9868
9869
  color: active ? activeColor : ""
9869
9870
  },
9870
9871
  "tabindex": active ? 0 : -1,
9871
- "clickable": true,
9872
+ "clickable": !disabled,
9872
9873
  "onClick": onClick
9873
9874
  }, {
9874
9875
  value: renderIcon
@@ -16873,7 +16874,7 @@ const Lazyload = {
16873
16874
  });
16874
16875
  }
16875
16876
  };
16876
- const version = "4.8.9";
16877
+ const version = "4.8.11";
16877
16878
  function install(app) {
16878
16879
  const components = [
16879
16880
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -8635,44 +8635,37 @@ const couponCellProps = {
8635
8635
  default: -1
8636
8636
  }
8637
8637
  };
8638
+ const getValue = (coupon) => {
8639
+ const {
8640
+ value,
8641
+ denominations
8642
+ } = coupon;
8643
+ if (isDef(value)) {
8644
+ return value;
8645
+ }
8646
+ if (isDef(denominations)) {
8647
+ return denominations;
8648
+ }
8649
+ return 0;
8650
+ };
8638
8651
  function formatValue({
8639
8652
  coupons,
8640
8653
  chosenCoupon,
8641
8654
  currency
8642
8655
  }) {
8643
- const getValue = (coupon) => {
8644
- let value2 = 0;
8645
- const {
8646
- value: couponValue,
8647
- denominations
8648
- } = coupon;
8649
- if (isDef(coupon.value)) {
8650
- value2 = couponValue;
8651
- } else if (isDef(coupon.denominations)) {
8652
- value2 = denominations;
8653
- }
8654
- return value2;
8655
- };
8656
- let value = 0, isExist = false;
8657
- if (Array.isArray(chosenCoupon)) {
8658
- chosenCoupon.forEach((i) => {
8659
- const coupon = coupons[+i];
8660
- if (coupon) {
8661
- isExist = true;
8662
- value += getValue(coupon);
8663
- }
8664
- });
8665
- } else {
8666
- const coupon = coupons[+chosenCoupon];
8656
+ let value = 0;
8657
+ let isExist = false;
8658
+ (Array.isArray(chosenCoupon) ? chosenCoupon : [chosenCoupon]).forEach((i) => {
8659
+ const coupon = coupons[+i];
8667
8660
  if (coupon) {
8668
8661
  isExist = true;
8669
- value = getValue(coupon);
8662
+ value += getValue(coupon);
8670
8663
  }
8664
+ });
8665
+ if (isExist) {
8666
+ return `-${currency} ${(value / 100).toFixed(2)}`;
8671
8667
  }
8672
- if (!isExist) {
8673
- return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8674
- }
8675
- return `-${currency} ${(value / 100).toFixed(2)}`;
8668
+ return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
8676
8669
  }
8677
8670
  var stdin_default$_ = defineComponent({
8678
8671
  name: name$R,
@@ -9017,7 +9010,6 @@ const couponListProps = {
9017
9010
  currency: makeStringProp("¥"),
9018
9011
  showCount: truthProp,
9019
9012
  emptyImage: String,
9020
- chosenCoupon: [Number, Array],
9021
9013
  enabledTitle: String,
9022
9014
  disabledTitle: String,
9023
9015
  disabledCoupons: makeArrayProp(),
@@ -9029,7 +9021,11 @@ const couponListProps = {
9029
9021
  exchangeButtonText: String,
9030
9022
  displayedCouponIndex: makeNumberProp(-1),
9031
9023
  exchangeButtonLoading: Boolean,
9032
- exchangeButtonDisabled: Boolean
9024
+ exchangeButtonDisabled: Boolean,
9025
+ chosenCoupon: {
9026
+ type: [Number, Array],
9027
+ default: -1
9028
+ }
9033
9029
  };
9034
9030
  var stdin_default$Y = defineComponent({
9035
9031
  name: name$P,
@@ -9097,18 +9093,16 @@ var stdin_default$Y = defineComponent({
9097
9093
  };
9098
9094
  const renderCouponTab = () => {
9099
9095
  const {
9100
- coupons
9096
+ coupons,
9097
+ chosenCoupon
9101
9098
  } = props2;
9102
9099
  const count = props2.showCount ? ` (${coupons.length})` : "";
9103
9100
  const title = (props2.enabledTitle || t$9("enable")) + count;
9104
- const getChosenCoupon = (chosenCoupon = [], value = 0) => {
9105
- const unrefChosenCoupon = unref(chosenCoupon);
9106
- const index = unrefChosenCoupon.indexOf(value);
9107
- if (index === -1) {
9108
- return [...unrefChosenCoupon, value];
9101
+ const updateChosenCoupon = (currentValues = [], value = 0) => {
9102
+ if (currentValues.includes(value)) {
9103
+ return currentValues.filter((item) => item !== value);
9109
9104
  }
9110
- unrefChosenCoupon.splice(index, 1);
9111
- return [...unrefChosenCoupon];
9105
+ return [...currentValues, value];
9112
9106
  };
9113
9107
  return createVNode(Tab, {
9114
9108
  "title": title
@@ -9126,9 +9120,9 @@ var stdin_default$Y = defineComponent({
9126
9120
  "key": coupon.id,
9127
9121
  "ref": setCouponRefs(index),
9128
9122
  "coupon": coupon,
9129
- "chosen": Array.isArray(props2.chosenCoupon) ? props2.chosenCoupon.includes(index) : index === props2.chosenCoupon,
9123
+ "chosen": Array.isArray(chosenCoupon) ? chosenCoupon.includes(index) : index === chosenCoupon,
9130
9124
  "currency": props2.currency,
9131
- "onClick": () => emit("change", Array.isArray(props2.chosenCoupon) ? getChosenCoupon(props2.chosenCoupon, index) : index)
9125
+ "onClick": () => emit("change", Array.isArray(chosenCoupon) ? updateChosenCoupon(chosenCoupon, index) : index)
9132
9126
  }, null)), !coupons.length && renderEmpty(), (_a = slots["list-footer"]) == null ? void 0 : _a.call(slots)])];
9133
9127
  }
9134
9128
  });
@@ -9230,7 +9224,7 @@ var stdin_default$X = defineComponent({
9230
9224
  const isMaxYear = (year) => year === props2.maxDate.getFullYear();
9231
9225
  const isMinMonth = (month) => month === props2.minDate.getMonth() + 1;
9232
9226
  const isMaxMonth = (month) => month === props2.maxDate.getMonth() + 1;
9233
- const getValue = (type) => {
9227
+ const getValue2 = (type) => {
9234
9228
  const {
9235
9229
  minDate,
9236
9230
  columnsType
@@ -9250,14 +9244,14 @@ var stdin_default$X = defineComponent({
9250
9244
  }
9251
9245
  };
9252
9246
  const genMonthOptions = () => {
9253
- const year = getValue("year");
9247
+ const year = getValue2("year");
9254
9248
  const minMonth = isMinYear(year) ? props2.minDate.getMonth() + 1 : 1;
9255
9249
  const maxMonth = isMaxYear(year) ? props2.maxDate.getMonth() + 1 : 12;
9256
9250
  return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter);
9257
9251
  };
9258
9252
  const genDayOptions = () => {
9259
- const year = getValue("year");
9260
- const month = getValue("month");
9253
+ const year = getValue2("year");
9254
+ const month = getValue2("month");
9261
9255
  const minDate = isMinYear(year) && isMinMonth(month) ? props2.minDate.getDate() : 1;
9262
9256
  const maxDate = isMaxYear(year) && isMaxMonth(month) ? props2.maxDate.getDate() : getMonthEndDay(year, month);
9263
9257
  return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter);
@@ -9837,8 +9831,14 @@ var stdin_default$T = defineComponent({
9837
9831
  const {
9838
9832
  activeColor
9839
9833
  } = parent.props;
9834
+ const {
9835
+ disabled
9836
+ } = option;
9840
9837
  const active = option.value === props2.modelValue;
9841
9838
  const onClick = () => {
9839
+ if (disabled) {
9840
+ return;
9841
+ }
9842
9842
  state.showPopup = false;
9843
9843
  if (option.value !== props2.modelValue) {
9844
9844
  emit("update:modelValue", option.value);
@@ -9849,7 +9849,7 @@ var stdin_default$T = defineComponent({
9849
9849
  if (active) {
9850
9850
  return createVNode(Icon, {
9851
9851
  "class": bem$K("icon"),
9852
- "color": activeColor,
9852
+ "color": disabled ? void 0 : activeColor,
9853
9853
  "name": "success"
9854
9854
  }, null);
9855
9855
  }
@@ -9860,13 +9860,14 @@ var stdin_default$T = defineComponent({
9860
9860
  "icon": option.icon,
9861
9861
  "title": option.text,
9862
9862
  "class": bem$K("option", {
9863
- active
9863
+ active,
9864
+ disabled
9864
9865
  }),
9865
9866
  "style": {
9866
9867
  color: active ? activeColor : ""
9867
9868
  },
9868
9869
  "tabindex": active ? 0 : -1,
9869
- "clickable": true,
9870
+ "clickable": !disabled,
9870
9871
  "onClick": onClick
9871
9872
  }, {
9872
9873
  value: renderIcon
@@ -16871,7 +16872,7 @@ const Lazyload = {
16871
16872
  });
16872
16873
  }
16873
16874
  };
16874
- const version = "4.8.9";
16875
+ const version = "4.8.11";
16875
16876
  function install(app) {
16876
16877
  const components = [
16877
16878
  ActionBar,
package/lib/vant.js CHANGED
@@ -9079,44 +9079,37 @@
9079
9079
  default: -1
9080
9080
  }
9081
9081
  };
9082
+ const getValue = (coupon) => {
9083
+ const {
9084
+ value,
9085
+ denominations
9086
+ } = coupon;
9087
+ if (isDef(value)) {
9088
+ return value;
9089
+ }
9090
+ if (isDef(denominations)) {
9091
+ return denominations;
9092
+ }
9093
+ return 0;
9094
+ };
9082
9095
  function formatValue({
9083
9096
  coupons,
9084
9097
  chosenCoupon,
9085
9098
  currency
9086
9099
  }) {
9087
- const getValue = (coupon) => {
9088
- let value2 = 0;
9089
- const {
9090
- value: couponValue,
9091
- denominations
9092
- } = coupon;
9093
- if (isDef(coupon.value)) {
9094
- value2 = couponValue;
9095
- } else if (isDef(coupon.denominations)) {
9096
- value2 = denominations;
9097
- }
9098
- return value2;
9099
- };
9100
- let value = 0, isExist = false;
9101
- if (Array.isArray(chosenCoupon)) {
9102
- chosenCoupon.forEach((i) => {
9103
- const coupon = coupons[+i];
9104
- if (coupon) {
9105
- isExist = true;
9106
- value += getValue(coupon);
9107
- }
9108
- });
9109
- } else {
9110
- const coupon = coupons[+chosenCoupon];
9100
+ let value = 0;
9101
+ let isExist = false;
9102
+ (Array.isArray(chosenCoupon) ? chosenCoupon : [chosenCoupon]).forEach((i) => {
9103
+ const coupon = coupons[+i];
9111
9104
  if (coupon) {
9112
9105
  isExist = true;
9113
- value = getValue(coupon);
9106
+ value += getValue(coupon);
9114
9107
  }
9108
+ });
9109
+ if (isExist) {
9110
+ return `-${currency} ${(value / 100).toFixed(2)}`;
9115
9111
  }
9116
- if (!isExist) {
9117
- return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
9118
- }
9119
- return `-${currency} ${(value / 100).toFixed(2)}`;
9112
+ return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
9120
9113
  }
9121
9114
  var stdin_default$_ = vue.defineComponent({
9122
9115
  name: name$R,
@@ -9461,7 +9454,6 @@
9461
9454
  currency: makeStringProp("¥"),
9462
9455
  showCount: truthProp,
9463
9456
  emptyImage: String,
9464
- chosenCoupon: [Number, Array],
9465
9457
  enabledTitle: String,
9466
9458
  disabledTitle: String,
9467
9459
  disabledCoupons: makeArrayProp(),
@@ -9473,7 +9465,11 @@
9473
9465
  exchangeButtonText: String,
9474
9466
  displayedCouponIndex: makeNumberProp(-1),
9475
9467
  exchangeButtonLoading: Boolean,
9476
- exchangeButtonDisabled: Boolean
9468
+ exchangeButtonDisabled: Boolean,
9469
+ chosenCoupon: {
9470
+ type: [Number, Array],
9471
+ default: -1
9472
+ }
9477
9473
  };
9478
9474
  var stdin_default$Y = vue.defineComponent({
9479
9475
  name: name$P,
@@ -9541,18 +9537,16 @@
9541
9537
  };
9542
9538
  const renderCouponTab = () => {
9543
9539
  const {
9544
- coupons
9540
+ coupons,
9541
+ chosenCoupon
9545
9542
  } = props2;
9546
9543
  const count = props2.showCount ? ` (${coupons.length})` : "";
9547
9544
  const title = (props2.enabledTitle || t$9("enable")) + count;
9548
- const getChosenCoupon = (chosenCoupon = [], value = 0) => {
9549
- const unrefChosenCoupon = vue.unref(chosenCoupon);
9550
- const index = unrefChosenCoupon.indexOf(value);
9551
- if (index === -1) {
9552
- return [...unrefChosenCoupon, value];
9545
+ const updateChosenCoupon = (currentValues = [], value = 0) => {
9546
+ if (currentValues.includes(value)) {
9547
+ return currentValues.filter((item) => item !== value);
9553
9548
  }
9554
- unrefChosenCoupon.splice(index, 1);
9555
- return [...unrefChosenCoupon];
9549
+ return [...currentValues, value];
9556
9550
  };
9557
9551
  return vue.createVNode(Tab, {
9558
9552
  "title": title
@@ -9570,9 +9564,9 @@
9570
9564
  "key": coupon.id,
9571
9565
  "ref": setCouponRefs(index),
9572
9566
  "coupon": coupon,
9573
- "chosen": Array.isArray(props2.chosenCoupon) ? props2.chosenCoupon.includes(index) : index === props2.chosenCoupon,
9567
+ "chosen": Array.isArray(chosenCoupon) ? chosenCoupon.includes(index) : index === chosenCoupon,
9574
9568
  "currency": props2.currency,
9575
- "onClick": () => emit("change", Array.isArray(props2.chosenCoupon) ? getChosenCoupon(props2.chosenCoupon, index) : index)
9569
+ "onClick": () => emit("change", Array.isArray(chosenCoupon) ? updateChosenCoupon(chosenCoupon, index) : index)
9576
9570
  }, null)), !coupons.length && renderEmpty(), (_a = slots["list-footer"]) == null ? void 0 : _a.call(slots)])];
9577
9571
  }
9578
9572
  });
@@ -9674,7 +9668,7 @@
9674
9668
  const isMaxYear = (year) => year === props2.maxDate.getFullYear();
9675
9669
  const isMinMonth = (month) => month === props2.minDate.getMonth() + 1;
9676
9670
  const isMaxMonth = (month) => month === props2.maxDate.getMonth() + 1;
9677
- const getValue = (type) => {
9671
+ const getValue2 = (type) => {
9678
9672
  const {
9679
9673
  minDate,
9680
9674
  columnsType
@@ -9694,14 +9688,14 @@
9694
9688
  }
9695
9689
  };
9696
9690
  const genMonthOptions = () => {
9697
- const year = getValue("year");
9691
+ const year = getValue2("year");
9698
9692
  const minMonth = isMinYear(year) ? props2.minDate.getMonth() + 1 : 1;
9699
9693
  const maxMonth = isMaxYear(year) ? props2.maxDate.getMonth() + 1 : 12;
9700
9694
  return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter);
9701
9695
  };
9702
9696
  const genDayOptions = () => {
9703
- const year = getValue("year");
9704
- const month = getValue("month");
9697
+ const year = getValue2("year");
9698
+ const month = getValue2("month");
9705
9699
  const minDate = isMinYear(year) && isMinMonth(month) ? props2.minDate.getDate() : 1;
9706
9700
  const maxDate = isMaxYear(year) && isMaxMonth(month) ? props2.maxDate.getDate() : getMonthEndDay(year, month);
9707
9701
  return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter);
@@ -10275,8 +10269,14 @@
10275
10269
  const {
10276
10270
  activeColor
10277
10271
  } = parent.props;
10272
+ const {
10273
+ disabled
10274
+ } = option;
10278
10275
  const active = option.value === props2.modelValue;
10279
10276
  const onClick = () => {
10277
+ if (disabled) {
10278
+ return;
10279
+ }
10280
10280
  state.showPopup = false;
10281
10281
  if (option.value !== props2.modelValue) {
10282
10282
  emit("update:modelValue", option.value);
@@ -10287,7 +10287,7 @@
10287
10287
  if (active) {
10288
10288
  return vue.createVNode(Icon, {
10289
10289
  "class": bem$K("icon"),
10290
- "color": activeColor,
10290
+ "color": disabled ? void 0 : activeColor,
10291
10291
  "name": "success"
10292
10292
  }, null);
10293
10293
  }
@@ -10298,13 +10298,14 @@
10298
10298
  "icon": option.icon,
10299
10299
  "title": option.text,
10300
10300
  "class": bem$K("option", {
10301
- active
10301
+ active,
10302
+ disabled
10302
10303
  }),
10303
10304
  "style": {
10304
10305
  color: active ? activeColor : ""
10305
10306
  },
10306
10307
  "tabindex": active ? 0 : -1,
10307
- "clickable": true,
10308
+ "clickable": !disabled,
10308
10309
  "onClick": onClick
10309
10310
  }, {
10310
10311
  value: renderIcon
@@ -18086,7 +18087,7 @@
18086
18087
  });
18087
18088
  }
18088
18089
  };
18089
- const version = "4.8.9";
18090
+ const version = "4.8.11";
18090
18091
  function install(app) {
18091
18092
  const components = [
18092
18093
  ActionBar,