vant 4.9.0 → 4.9.1

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/vant.cjs.js CHANGED
@@ -3571,9 +3571,9 @@ function formatDataForCascade({
3571
3571
  const showCounty = +columnsNum > 2;
3572
3572
  const getProvinceChildren = () => {
3573
3573
  if (showCity) {
3574
- return placeholder.length ? [
3574
+ return placeholder.length > 1 ? [
3575
3575
  makeOption(
3576
- placeholder[0],
3576
+ placeholder[1],
3577
3577
  AREA_EMPTY_CODE,
3578
3578
  showCounty ? [] : void 0
3579
3579
  )
@@ -3591,7 +3591,7 @@ function formatDataForCascade({
3591
3591
  if (showCity) {
3592
3592
  const getCityChildren = () => {
3593
3593
  if (showCounty) {
3594
- return placeholder.length ? [makeOption(placeholder[1])] : [];
3594
+ return placeholder.length > 2 ? [makeOption(placeholder[2])] : [];
3595
3595
  }
3596
3596
  };
3597
3597
  Object.keys(city).forEach((code) => {
@@ -5329,7 +5329,71 @@ var stdin_default$1q = vue.defineComponent({
5329
5329
  }
5330
5330
  });
5331
5331
  const RadioGroup = withInstall(stdin_default$1q);
5332
- const [name$1f, bem$1b] = createNamespace("tag");
5332
+ const [name$1f, bem$1b] = createNamespace("checkbox-group");
5333
+ const checkboxGroupProps = {
5334
+ max: numericProp,
5335
+ shape: makeStringProp("round"),
5336
+ disabled: Boolean,
5337
+ iconSize: numericProp,
5338
+ direction: String,
5339
+ modelValue: makeArrayProp(),
5340
+ checkedColor: String
5341
+ };
5342
+ const CHECKBOX_GROUP_KEY = Symbol(name$1f);
5343
+ var stdin_default$1p = vue.defineComponent({
5344
+ name: name$1f,
5345
+ props: checkboxGroupProps,
5346
+ emits: ["change", "update:modelValue"],
5347
+ setup(props2, {
5348
+ emit,
5349
+ slots
5350
+ }) {
5351
+ const {
5352
+ children,
5353
+ linkChildren
5354
+ } = use.useChildren(CHECKBOX_GROUP_KEY);
5355
+ const updateValue = (value) => emit("update:modelValue", value);
5356
+ const toggleAll = (options = {}) => {
5357
+ if (typeof options === "boolean") {
5358
+ options = {
5359
+ checked: options
5360
+ };
5361
+ }
5362
+ const {
5363
+ checked,
5364
+ skipDisabled
5365
+ } = options;
5366
+ const checkedChildren = children.filter((item) => {
5367
+ if (!item.props.bindGroup) {
5368
+ return false;
5369
+ }
5370
+ if (item.props.disabled && skipDisabled) {
5371
+ return item.checked.value;
5372
+ }
5373
+ return checked != null ? checked : !item.checked.value;
5374
+ });
5375
+ const names = checkedChildren.map((item) => item.name);
5376
+ updateValue(names);
5377
+ };
5378
+ vue.watch(() => props2.modelValue, (value) => emit("change", value));
5379
+ useExpose({
5380
+ toggleAll
5381
+ });
5382
+ use.useCustomFieldValue(() => props2.modelValue);
5383
+ linkChildren({
5384
+ props: props2,
5385
+ updateValue
5386
+ });
5387
+ return () => {
5388
+ var _a;
5389
+ return vue.createVNode("div", {
5390
+ "class": bem$1b([props2.direction])
5391
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
5392
+ };
5393
+ }
5394
+ });
5395
+ const CheckboxGroup = withInstall(stdin_default$1p);
5396
+ const [name$1e, bem$1a] = createNamespace("tag");
5333
5397
  const tagProps = {
5334
5398
  size: String,
5335
5399
  mark: Boolean,
@@ -5341,8 +5405,8 @@ const tagProps = {
5341
5405
  textColor: String,
5342
5406
  closeable: Boolean
5343
5407
  };
5344
- var stdin_default$1p = vue.defineComponent({
5345
- name: name$1f,
5408
+ var stdin_default$1o = vue.defineComponent({
5409
+ name: name$1e,
5346
5410
  props: tagProps,
5347
5411
  emits: ["close"],
5348
5412
  setup(props2, {
@@ -5385,12 +5449,12 @@ var stdin_default$1p = vue.defineComponent({
5385
5449
  }
5386
5450
  const CloseIcon = closeable && vue.createVNode(Icon, {
5387
5451
  "name": "cross",
5388
- "class": [bem$1b("close"), HAPTICS_FEEDBACK],
5452
+ "class": [bem$1a("close"), HAPTICS_FEEDBACK],
5389
5453
  "onClick": onClose
5390
5454
  }, null);
5391
5455
  return vue.createVNode("span", {
5392
5456
  "style": getStyle(),
5393
- "class": bem$1b([classes, type])
5457
+ "class": bem$1a([classes, type])
5394
5458
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
5395
5459
  };
5396
5460
  return () => vue.createVNode(vue.Transition, {
@@ -5400,7 +5464,7 @@ var stdin_default$1p = vue.defineComponent({
5400
5464
  });
5401
5465
  }
5402
5466
  });
5403
- const Tag = withInstall(stdin_default$1p);
5467
+ const Tag = withInstall(stdin_default$1o);
5404
5468
  const checkerProps = {
5405
5469
  name: unknownProp,
5406
5470
  disabled: Boolean,
@@ -5410,7 +5474,7 @@ const checkerProps = {
5410
5474
  labelPosition: String,
5411
5475
  labelDisabled: Boolean
5412
5476
  };
5413
- var stdin_default$1o = vue.defineComponent({
5477
+ var stdin_default$1n = vue.defineComponent({
5414
5478
  props: extend({}, checkerProps, {
5415
5479
  bem: makeRequiredProp(Function),
5416
5480
  role: String,
@@ -5539,9 +5603,9 @@ var stdin_default$1o = vue.defineComponent({
5539
5603
  const radioProps = extend({}, checkerProps, {
5540
5604
  shape: String
5541
5605
  });
5542
- const [name$1e, bem$1a] = createNamespace("radio");
5543
- var stdin_default$1n = vue.defineComponent({
5544
- name: name$1e,
5606
+ const [name$1d, bem$19] = createNamespace("radio");
5607
+ var stdin_default$1m = vue.defineComponent({
5608
+ name: name$1d,
5545
5609
  props: radioProps,
5546
5610
  emits: ["update:modelValue"],
5547
5611
  setup(props2, {
@@ -5562,8 +5626,8 @@ var stdin_default$1n = vue.defineComponent({
5562
5626
  emit("update:modelValue", props2.name);
5563
5627
  }
5564
5628
  };
5565
- return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
5566
- "bem": bem$1a,
5629
+ return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
5630
+ "bem": bem$19,
5567
5631
  "role": "radio",
5568
5632
  "parent": parent,
5569
5633
  "checked": checked(),
@@ -5571,14 +5635,97 @@ var stdin_default$1n = vue.defineComponent({
5571
5635
  }, props2), pick(slots, ["default", "icon"]));
5572
5636
  }
5573
5637
  });
5574
- const Radio = withInstall(stdin_default$1n);
5575
- const [name$1d, bem$19] = createNamespace("address-item");
5576
- var stdin_default$1m = vue.defineComponent({
5577
- name: name$1d,
5638
+ const Radio = withInstall(stdin_default$1m);
5639
+ const [name$1c, bem$18] = createNamespace("checkbox");
5640
+ const checkboxProps = extend({}, checkerProps, {
5641
+ shape: String,
5642
+ bindGroup: truthProp,
5643
+ indeterminate: {
5644
+ type: Boolean,
5645
+ default: null
5646
+ }
5647
+ });
5648
+ var stdin_default$1l = vue.defineComponent({
5649
+ name: name$1c,
5650
+ props: checkboxProps,
5651
+ emits: ["change", "update:modelValue"],
5652
+ setup(props2, {
5653
+ emit,
5654
+ slots
5655
+ }) {
5656
+ const {
5657
+ parent
5658
+ } = use.useParent(CHECKBOX_GROUP_KEY);
5659
+ const setParentValue = (checked2) => {
5660
+ const {
5661
+ name: name2
5662
+ } = props2;
5663
+ const {
5664
+ max,
5665
+ modelValue
5666
+ } = parent.props;
5667
+ const value = modelValue.slice();
5668
+ if (checked2) {
5669
+ const overlimit = max && value.length >= +max;
5670
+ if (!overlimit && !value.includes(name2)) {
5671
+ value.push(name2);
5672
+ if (props2.bindGroup) {
5673
+ parent.updateValue(value);
5674
+ }
5675
+ }
5676
+ } else {
5677
+ const index = value.indexOf(name2);
5678
+ if (index !== -1) {
5679
+ value.splice(index, 1);
5680
+ if (props2.bindGroup) {
5681
+ parent.updateValue(value);
5682
+ }
5683
+ }
5684
+ }
5685
+ };
5686
+ const checked = vue.computed(() => {
5687
+ if (parent && props2.bindGroup) {
5688
+ return parent.props.modelValue.indexOf(props2.name) !== -1;
5689
+ }
5690
+ return !!props2.modelValue;
5691
+ });
5692
+ const toggle = (newValue = !checked.value) => {
5693
+ if (parent && props2.bindGroup) {
5694
+ setParentValue(newValue);
5695
+ } else {
5696
+ emit("update:modelValue", newValue);
5697
+ }
5698
+ if (props2.indeterminate !== null)
5699
+ emit("change", newValue);
5700
+ };
5701
+ vue.watch(() => props2.modelValue, (value) => {
5702
+ if (props2.indeterminate === null)
5703
+ emit("change", value);
5704
+ });
5705
+ useExpose({
5706
+ toggle,
5707
+ props: props2,
5708
+ checked
5709
+ });
5710
+ use.useCustomFieldValue(() => props2.modelValue);
5711
+ return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
5712
+ "bem": bem$18,
5713
+ "role": "checkbox",
5714
+ "parent": parent,
5715
+ "checked": checked.value,
5716
+ "onToggle": toggle
5717
+ }, props2), pick(slots, ["default", "icon"]));
5718
+ }
5719
+ });
5720
+ const Checkbox = withInstall(stdin_default$1l);
5721
+ const [name$1b, bem$17] = createNamespace("address-item");
5722
+ var stdin_default$1k = vue.defineComponent({
5723
+ name: name$1b,
5578
5724
  props: {
5579
5725
  address: makeRequiredProp(Object),
5580
5726
  disabled: Boolean,
5581
5727
  switchable: Boolean,
5728
+ singleChoice: Boolean,
5582
5729
  defaultTagText: String,
5583
5730
  rightIcon: makeStringProp("edit")
5584
5731
  },
@@ -5595,7 +5742,7 @@ var stdin_default$1m = vue.defineComponent({
5595
5742
  };
5596
5743
  const renderRightIcon = () => vue.createVNode(Icon, {
5597
5744
  "name": props2.rightIcon,
5598
- "class": bem$19("edit"),
5745
+ "class": bem$17("edit"),
5599
5746
  "onClick": (event) => {
5600
5747
  event.stopPropagation();
5601
5748
  emit("edit");
@@ -5610,7 +5757,7 @@ var stdin_default$1m = vue.defineComponent({
5610
5757
  return vue.createVNode(Tag, {
5611
5758
  "type": "primary",
5612
5759
  "round": true,
5613
- "class": bem$19("tag")
5760
+ "class": bem$17("tag")
5614
5761
  }, {
5615
5762
  default: () => [props2.defaultTagText]
5616
5763
  });
@@ -5620,20 +5767,30 @@ var stdin_default$1m = vue.defineComponent({
5620
5767
  const {
5621
5768
  address,
5622
5769
  disabled,
5623
- switchable
5770
+ switchable,
5771
+ singleChoice
5624
5772
  } = props2;
5625
5773
  const Info = [vue.createVNode("div", {
5626
- "class": bem$19("name")
5774
+ "class": bem$17("name")
5627
5775
  }, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
5628
- "class": bem$19("address")
5776
+ "class": bem$17("address")
5629
5777
  }, [address.address])];
5630
5778
  if (switchable && !disabled) {
5631
- return vue.createVNode(Radio, {
5632
- "name": address.id,
5633
- "iconSize": 18
5634
- }, {
5635
- default: () => [Info]
5636
- });
5779
+ if (singleChoice) {
5780
+ return vue.createVNode(Radio, {
5781
+ "name": address.id,
5782
+ "iconSize": 18
5783
+ }, {
5784
+ default: () => [Info]
5785
+ });
5786
+ } else {
5787
+ return vue.createVNode(Checkbox, {
5788
+ "name": address.id,
5789
+ "iconSize": 18
5790
+ }, {
5791
+ default: () => [Info]
5792
+ });
5793
+ }
5637
5794
  }
5638
5795
  return Info;
5639
5796
  };
@@ -5643,13 +5800,13 @@ var stdin_default$1m = vue.defineComponent({
5643
5800
  disabled
5644
5801
  } = props2;
5645
5802
  return vue.createVNode("div", {
5646
- "class": bem$19({
5803
+ "class": bem$17({
5647
5804
  disabled
5648
5805
  }),
5649
5806
  "onClick": onClick
5650
5807
  }, [vue.createVNode(Cell, {
5651
5808
  "border": false,
5652
- "titleClass": bem$19("title")
5809
+ "titleClass": bem$17("title")
5653
5810
  }, {
5654
5811
  title: renderContent,
5655
5812
  "right-icon": renderRightIcon
@@ -5659,10 +5816,10 @@ var stdin_default$1m = vue.defineComponent({
5659
5816
  };
5660
5817
  }
5661
5818
  });
5662
- const [name$1c, bem$18, t$h] = createNamespace("address-list");
5819
+ const [name$1a, bem$16, t$h] = createNamespace("address-list");
5663
5820
  const addressListProps = {
5664
5821
  list: makeArrayProp(),
5665
- modelValue: numericProp,
5822
+ modelValue: [...numericProp, Array],
5666
5823
  switchable: truthProp,
5667
5824
  disabledText: String,
5668
5825
  disabledList: makeArrayProp(),
@@ -5671,14 +5828,15 @@ const addressListProps = {
5671
5828
  defaultTagText: String,
5672
5829
  rightIcon: makeStringProp("edit")
5673
5830
  };
5674
- var stdin_default$1l = vue.defineComponent({
5675
- name: name$1c,
5831
+ var stdin_default$1j = vue.defineComponent({
5832
+ name: name$1a,
5676
5833
  props: addressListProps,
5677
5834
  emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
5678
5835
  setup(props2, {
5679
5836
  slots,
5680
5837
  emit
5681
5838
  }) {
5839
+ const singleChoice = vue.computed(() => !Array.isArray(props2.modelValue));
5682
5840
  const renderItem = (item, index, disabled) => {
5683
5841
  const onEdit = () => emit(disabled ? "editDisabled" : "edit", item, index);
5684
5842
  const onClick = (event) => emit("clickItem", item, index, {
@@ -5687,14 +5845,24 @@ var stdin_default$1l = vue.defineComponent({
5687
5845
  const onSelect = () => {
5688
5846
  emit(disabled ? "selectDisabled" : "select", item, index);
5689
5847
  if (!disabled) {
5690
- emit("update:modelValue", item.id);
5848
+ if (singleChoice.value) {
5849
+ emit("update:modelValue", item.id);
5850
+ } else {
5851
+ const value = props2.modelValue;
5852
+ if (value.includes(item.id)) {
5853
+ emit("update:modelValue", value.filter((id) => id !== item.id));
5854
+ } else {
5855
+ emit("update:modelValue", [...value, item.id]);
5856
+ }
5857
+ }
5691
5858
  }
5692
5859
  };
5693
- return vue.createVNode(stdin_default$1m, {
5860
+ return vue.createVNode(stdin_default$1k, {
5694
5861
  "key": item.id,
5695
5862
  "address": item,
5696
5863
  "disabled": disabled,
5697
5864
  "switchable": props2.switchable,
5865
+ "singleChoice": singleChoice.value,
5698
5866
  "defaultTagText": props2.defaultTagText,
5699
5867
  "rightIcon": props2.rightIcon,
5700
5868
  "onEdit": onEdit,
@@ -5711,13 +5879,13 @@ var stdin_default$1l = vue.defineComponent({
5711
5879
  }
5712
5880
  };
5713
5881
  const renderBottom = () => props2.showAddButton ? vue.createVNode("div", {
5714
- "class": [bem$18("bottom"), "van-safe-area-bottom"]
5882
+ "class": [bem$16("bottom"), "van-safe-area-bottom"]
5715
5883
  }, [vue.createVNode(Button, {
5716
5884
  "round": true,
5717
5885
  "block": true,
5718
5886
  "type": "primary",
5719
5887
  "text": props2.addButtonText || t$h("add"),
5720
- "class": bem$18("add"),
5888
+ "class": bem$16("add"),
5721
5889
  "onClick": () => emit("add")
5722
5890
  }, null)]) : void 0;
5723
5891
  return () => {
@@ -5725,11 +5893,15 @@ var stdin_default$1l = vue.defineComponent({
5725
5893
  const List2 = renderList(props2.list);
5726
5894
  const DisabledList = renderList(props2.disabledList, true);
5727
5895
  const DisabledText = props2.disabledText && vue.createVNode("div", {
5728
- "class": bem$18("disabled-text")
5896
+ "class": bem$16("disabled-text")
5729
5897
  }, [props2.disabledText]);
5730
5898
  return vue.createVNode("div", {
5731
- "class": bem$18()
5732
- }, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
5899
+ "class": bem$16()
5900
+ }, [(_a = slots.top) == null ? void 0 : _a.call(slots), !singleChoice.value && Array.isArray(props2.modelValue) ? vue.createVNode(CheckboxGroup, {
5901
+ "modelValue": props2.modelValue
5902
+ }, {
5903
+ default: () => [List2]
5904
+ }) : vue.createVNode(RadioGroup, {
5733
5905
  "modelValue": props2.modelValue
5734
5906
  }, {
5735
5907
  default: () => [List2]
@@ -5737,7 +5909,7 @@ var stdin_default$1l = vue.defineComponent({
5737
5909
  };
5738
5910
  }
5739
5911
  });
5740
- const AddressList = withInstall(stdin_default$1l);
5912
+ const AddressList = withInstall(stdin_default$1j);
5741
5913
  const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
5742
5914
  const modeType = {
5743
5915
  event: "event",
@@ -5890,7 +6062,7 @@ class ImageCache {
5890
6062
  this.caches.shift();
5891
6063
  }
5892
6064
  }
5893
- const [name$1b, bem$17] = createNamespace("back-top");
6065
+ const [name$19, bem$15] = createNamespace("back-top");
5894
6066
  const backTopProps = {
5895
6067
  right: numericProp,
5896
6068
  bottom: numericProp,
@@ -5903,8 +6075,8 @@ const backTopProps = {
5903
6075
  default: "body"
5904
6076
  }
5905
6077
  };
5906
- var stdin_default$1k = vue.defineComponent({
5907
- name: name$1b,
6078
+ var stdin_default$1i = vue.defineComponent({
6079
+ name: name$19,
5908
6080
  inheritAttrs: false,
5909
6081
  props: backTopProps,
5910
6082
  emits: ["click"],
@@ -5976,19 +6148,19 @@ var stdin_default$1k = vue.defineComponent({
5976
6148
  return () => {
5977
6149
  const Content = vue.createVNode("div", vue.mergeProps({
5978
6150
  "ref": !props2.teleport ? root : void 0,
5979
- "class": bem$17({
6151
+ "class": bem$15({
5980
6152
  active: show.value
5981
6153
  }),
5982
6154
  "style": style.value,
5983
6155
  "onClick": onClick
5984
6156
  }, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
5985
6157
  "name": "back-top",
5986
- "class": bem$17("icon")
6158
+ "class": bem$15("icon")
5987
6159
  }, null)]);
5988
6160
  if (props2.teleport) {
5989
6161
  return [vue.createVNode("div", {
5990
6162
  "ref": root,
5991
- "class": bem$17("placeholder")
6163
+ "class": bem$15("placeholder")
5992
6164
  }, null), vue.createVNode(vue.Teleport, {
5993
6165
  "to": props2.teleport
5994
6166
  }, {
@@ -5999,7 +6171,7 @@ var stdin_default$1k = vue.defineComponent({
5999
6171
  };
6000
6172
  }
6001
6173
  });
6002
- const BackTop = withInstall(stdin_default$1k);
6174
+ const BackTop = withInstall(stdin_default$1i);
6003
6175
  var __async = (__this, __arguments, generator) => {
6004
6176
  return new Promise((resolve, reject) => {
6005
6177
  var fulfilled = (value) => {
@@ -6028,9 +6200,9 @@ const barrageProps = {
6028
6200
  delay: makeNumberProp(300),
6029
6201
  modelValue: makeArrayProp()
6030
6202
  };
6031
- const [name$1a, bem$16] = createNamespace("barrage");
6032
- var stdin_default$1j = vue.defineComponent({
6033
- name: name$1a,
6203
+ const [name$18, bem$14] = createNamespace("barrage");
6204
+ var stdin_default$1h = vue.defineComponent({
6205
+ name: name$18,
6034
6206
  props: barrageProps,
6035
6207
  emits: ["update:modelValue"],
6036
6208
  setup(props2, {
@@ -6038,7 +6210,7 @@ var stdin_default$1j = vue.defineComponent({
6038
6210
  slots
6039
6211
  }) {
6040
6212
  const barrageWrapper = vue.ref();
6041
- const className = bem$16("item");
6213
+ const className = bem$14("item");
6042
6214
  const total = vue.ref(0);
6043
6215
  const barrageItems = [];
6044
6216
  const createBarrageItem = (text, delay = props2.delay) => {
@@ -6119,15 +6291,15 @@ var stdin_default$1j = vue.defineComponent({
6119
6291
  return () => {
6120
6292
  var _a;
6121
6293
  return vue.createVNode("div", {
6122
- "class": bem$16(),
6294
+ "class": bem$14(),
6123
6295
  "ref": barrageWrapper,
6124
6296
  "style": rootStyle.value
6125
6297
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
6126
6298
  };
6127
6299
  }
6128
6300
  });
6129
- const Barrage = withInstall(stdin_default$1j);
6130
- const [name$19, bem$15, t$g] = createNamespace("calendar");
6301
+ const Barrage = withInstall(stdin_default$1h);
6302
+ const [name$17, bem$13, t$g] = createNamespace("calendar");
6131
6303
  const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
6132
6304
  function compareMonth(date1, date2) {
6133
6305
  const year1 = date1.getFullYear();
@@ -6221,9 +6393,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
6221
6393
  }
6222
6394
  return value;
6223
6395
  });
6224
- const [name$18] = createNamespace("calendar-day");
6225
- var stdin_default$1i = vue.defineComponent({
6226
- name: name$18,
6396
+ const [name$16] = createNamespace("calendar-day");
6397
+ var stdin_default$1g = vue.defineComponent({
6398
+ name: name$16,
6227
6399
  props: {
6228
6400
  item: makeRequiredProp(Object),
6229
6401
  color: String,
@@ -6287,7 +6459,7 @@ var stdin_default$1i = vue.defineComponent({
6287
6459
  } = props2.item;
6288
6460
  if (topInfo || slots["top-info"]) {
6289
6461
  return vue.createVNode("div", {
6290
- "class": bem$15("top-info")
6462
+ "class": bem$13("top-info")
6291
6463
  }, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
6292
6464
  }
6293
6465
  };
@@ -6297,7 +6469,7 @@ var stdin_default$1i = vue.defineComponent({
6297
6469
  } = props2.item;
6298
6470
  if (bottomInfo || slots["bottom-info"]) {
6299
6471
  return vue.createVNode("div", {
6300
- "class": bem$15("bottom-info")
6472
+ "class": bem$13("bottom-info")
6301
6473
  }, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
6302
6474
  }
6303
6475
  };
@@ -6314,7 +6486,7 @@ var stdin_default$1i = vue.defineComponent({
6314
6486
  const Nodes = [renderTopInfo(), text, renderBottomInfo()];
6315
6487
  if (type === "selected") {
6316
6488
  return vue.createVNode("div", {
6317
- "class": bem$15("selected-day"),
6489
+ "class": bem$13("selected-day"),
6318
6490
  "style": {
6319
6491
  width: rowHeight,
6320
6492
  height: rowHeight,
@@ -6331,21 +6503,21 @@ var stdin_default$1i = vue.defineComponent({
6331
6503
  } = props2.item;
6332
6504
  if (type === "placeholder") {
6333
6505
  return vue.createVNode("div", {
6334
- "class": bem$15("day"),
6506
+ "class": bem$13("day"),
6335
6507
  "style": style.value
6336
6508
  }, null);
6337
6509
  }
6338
6510
  return vue.createVNode("div", {
6339
6511
  "role": "gridcell",
6340
6512
  "style": style.value,
6341
- "class": [bem$15("day", type), className],
6513
+ "class": [bem$13("day", type), className],
6342
6514
  "tabindex": type === "disabled" ? void 0 : -1,
6343
6515
  "onClick": onClick
6344
6516
  }, [renderContent()]);
6345
6517
  };
6346
6518
  }
6347
6519
  });
6348
- const [name$17] = createNamespace("calendar-month");
6520
+ const [name$15] = createNamespace("calendar-month");
6349
6521
  const calendarMonthProps = {
6350
6522
  date: makeRequiredProp(Date),
6351
6523
  type: String,
@@ -6362,8 +6534,8 @@ const calendarMonthProps = {
6362
6534
  showMonthTitle: Boolean,
6363
6535
  firstDayOfWeek: Number
6364
6536
  };
6365
- var stdin_default$1h = vue.defineComponent({
6366
- name: name$17,
6537
+ var stdin_default$1f = vue.defineComponent({
6538
+ name: name$15,
6367
6539
  props: calendarMonthProps,
6368
6540
  emits: ["click", "clickDisabledDate"],
6369
6541
  setup(props2, {
@@ -6470,7 +6642,7 @@ var stdin_default$1h = vue.defineComponent({
6470
6642
  const renderTitle = () => {
6471
6643
  if (props2.showMonthTitle) {
6472
6644
  return vue.createVNode("div", {
6473
- "class": bem$15("month-title")
6645
+ "class": bem$13("month-title")
6474
6646
  }, [slots["month-title"] ? slots["month-title"]({
6475
6647
  date: props2.date,
6476
6648
  text: title.value
@@ -6480,7 +6652,7 @@ var stdin_default$1h = vue.defineComponent({
6480
6652
  const renderMark = () => {
6481
6653
  if (props2.showMark && shouldRender.value) {
6482
6654
  return vue.createVNode("div", {
6483
- "class": bem$15("month-mark")
6655
+ "class": bem$13("month-mark")
6484
6656
  }, [props2.date.getMonth() + 1]);
6485
6657
  }
6486
6658
  };
@@ -6520,7 +6692,7 @@ var stdin_default$1h = vue.defineComponent({
6520
6692
  setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
6521
6693
  }
6522
6694
  };
6523
- const renderDay = (item, index) => vue.createVNode(stdin_default$1i, {
6695
+ const renderDay = (item, index) => vue.createVNode(stdin_default$1g, {
6524
6696
  "item": item,
6525
6697
  "index": index,
6526
6698
  "color": props2.color,
@@ -6532,7 +6704,7 @@ var stdin_default$1h = vue.defineComponent({
6532
6704
  const renderDays = () => vue.createVNode("div", {
6533
6705
  "ref": daysRef,
6534
6706
  "role": "grid",
6535
- "class": bem$15("days")
6707
+ "class": bem$13("days")
6536
6708
  }, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
6537
6709
  useExpose({
6538
6710
  getTitle,
@@ -6542,14 +6714,14 @@ var stdin_default$1h = vue.defineComponent({
6542
6714
  disabledDays
6543
6715
  });
6544
6716
  return () => vue.createVNode("div", {
6545
- "class": bem$15("month"),
6717
+ "class": bem$13("month"),
6546
6718
  "ref": monthRef
6547
6719
  }, [renderTitle(), renderDays()]);
6548
6720
  }
6549
6721
  });
6550
- const [name$16] = createNamespace("calendar-header");
6551
- var stdin_default$1g = vue.defineComponent({
6552
- name: name$16,
6722
+ const [name$14] = createNamespace("calendar-header");
6723
+ var stdin_default$1e = vue.defineComponent({
6724
+ name: name$14,
6553
6725
  props: {
6554
6726
  date: Date,
6555
6727
  minDate: Date,
@@ -6587,7 +6759,7 @@ var stdin_default$1g = vue.defineComponent({
6587
6759
  const text = props2.title || t$g("title");
6588
6760
  const title = slots.title ? slots.title() : text;
6589
6761
  return vue.createVNode("div", {
6590
- "class": bem$15("header-title")
6762
+ "class": bem$13("header-title")
6591
6763
  }, [title]);
6592
6764
  }
6593
6765
  };
@@ -6604,7 +6776,7 @@ var stdin_default$1g = vue.defineComponent({
6604
6776
  const onMonthChange = () => onPanelChange((isNext ? getNextMonth : getPrevMonth)(props2.date));
6605
6777
  const onYearChange = () => onPanelChange((isNext ? getNextYear : getPrevYear)(props2.date));
6606
6778
  const MonthAction = vue.createVNode("view", {
6607
- "class": bem$15("header-action", {
6779
+ "class": bem$13("header-action", {
6608
6780
  disabled: monthDisabled
6609
6781
  }),
6610
6782
  "onClick": monthDisabled ? void 0 : onMonthChange
@@ -6617,7 +6789,7 @@ var stdin_default$1g = vue.defineComponent({
6617
6789
  "name": monthIconName
6618
6790
  }, null)]);
6619
6791
  const YearAction = showYearAction && vue.createVNode("view", {
6620
- "class": bem$15("header-action", {
6792
+ "class": bem$13("header-action", {
6621
6793
  disabled: yearDisabled
6622
6794
  }),
6623
6795
  "onClick": yearDisabled ? void 0 : onYearChange
@@ -6639,12 +6811,12 @@ var stdin_default$1g = vue.defineComponent({
6639
6811
  }) : props2.subtitle;
6640
6812
  const canSwitch = props2.switchMode !== "none";
6641
6813
  return vue.createVNode("div", {
6642
- "class": bem$15("header-subtitle", {
6814
+ "class": bem$13("header-subtitle", {
6643
6815
  "with-swicth": canSwitch
6644
6816
  }),
6645
6817
  "onClick": onClickSubtitle
6646
6818
  }, [canSwitch ? [renderAction(), vue.createVNode("div", {
6647
- "class": bem$15("header-subtitle-text")
6819
+ "class": bem$13("header-subtitle-text")
6648
6820
  }, [title]), renderAction(true)] : title]);
6649
6821
  }
6650
6822
  };
@@ -6655,13 +6827,13 @@ var stdin_default$1g = vue.defineComponent({
6655
6827
  const weekdays = t$g("weekdays");
6656
6828
  const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
6657
6829
  return vue.createVNode("div", {
6658
- "class": bem$15("weekdays")
6830
+ "class": bem$13("weekdays")
6659
6831
  }, [renderWeekDays2.map((text) => vue.createVNode("span", {
6660
- "class": bem$15("weekday")
6832
+ "class": bem$13("weekday")
6661
6833
  }, [text]))]);
6662
6834
  };
6663
6835
  return () => vue.createVNode("div", {
6664
- "class": bem$15("header")
6836
+ "class": bem$13("header")
6665
6837
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
6666
6838
  }
6667
6839
  });
@@ -6708,8 +6880,8 @@ const calendarProps = {
6708
6880
  validator: (val) => val >= 0 && val <= 6
6709
6881
  }
6710
6882
  };
6711
- var stdin_default$1f = vue.defineComponent({
6712
- name: name$19,
6883
+ var stdin_default$1d = vue.defineComponent({
6884
+ name: name$17,
6713
6885
  props: calendarProps,
6714
6886
  emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate", "panelChange"],
6715
6887
  setup(props2, {
@@ -6999,7 +7171,7 @@ var stdin_default$1f = vue.defineComponent({
6999
7171
  const updateShow = (value) => emit("update:show", value);
7000
7172
  const renderMonth = (date, index) => {
7001
7173
  const showMonthTitle = index !== 0 || !props2.showSubtitle;
7002
- return vue.createVNode(stdin_default$1h, vue.mergeProps({
7174
+ return vue.createVNode(stdin_default$1f, vue.mergeProps({
7003
7175
  "ref": canSwitch.value ? currentMonthRef : setMonthRefs(index),
7004
7176
  "date": date,
7005
7177
  "currentDate": currentDate.value,
@@ -7026,7 +7198,7 @@ var stdin_default$1f = vue.defineComponent({
7026
7198
  "block": true,
7027
7199
  "type": "primary",
7028
7200
  "color": props2.color,
7029
- "class": bem$15("confirm"),
7201
+ "class": bem$13("confirm"),
7030
7202
  "disabled": disabled,
7031
7203
  "nativeType": "button",
7032
7204
  "onClick": onConfirm
@@ -7038,15 +7210,15 @@ var stdin_default$1f = vue.defineComponent({
7038
7210
  }
7039
7211
  };
7040
7212
  const renderFooter = () => vue.createVNode("div", {
7041
- "class": [bem$15("footer"), {
7213
+ "class": [bem$13("footer"), {
7042
7214
  "van-safe-area-bottom": props2.safeAreaInsetBottom
7043
7215
  }]
7044
7216
  }, [renderFooterButton()]);
7045
7217
  const renderCalendar = () => {
7046
7218
  var _a, _b;
7047
7219
  return vue.createVNode("div", {
7048
- "class": bem$15()
7049
- }, [vue.createVNode(stdin_default$1g, {
7220
+ "class": bem$13()
7221
+ }, [vue.createVNode(stdin_default$1e, {
7050
7222
  "date": (_a = currentMonthRef.value) == null ? void 0 : _a.date,
7051
7223
  "maxDate": maxDate.value,
7052
7224
  "minDate": minDate.value,
@@ -7060,7 +7232,7 @@ var stdin_default$1f = vue.defineComponent({
7060
7232
  "onPanelChange": onPanelChange
7061
7233
  }, pick(slots, ["title", "subtitle", "prev-month", "prev-year", "next-month", "next-year"])), vue.createVNode("div", {
7062
7234
  "ref": bodyRef,
7063
- "class": bem$15("body"),
7235
+ "class": bem$13("body"),
7064
7236
  "onScroll": canSwitch.value ? void 0 : onScroll
7065
7237
  }, [canSwitch.value ? renderMonth(currentPanelDate.value, 0) : months.value.map(renderMonth)]), renderFooter()]);
7066
7238
  };
@@ -7080,7 +7252,7 @@ var stdin_default$1f = vue.defineComponent({
7080
7252
  if (props2.poppable) {
7081
7253
  return vue.createVNode(Popup, {
7082
7254
  "show": props2.show,
7083
- "class": bem$15("popup"),
7255
+ "class": bem$13("popup"),
7084
7256
  "round": props2.round,
7085
7257
  "position": props2.position,
7086
7258
  "closeable": props2.showTitle || props2.showSubtitle,
@@ -7097,8 +7269,8 @@ var stdin_default$1f = vue.defineComponent({
7097
7269
  };
7098
7270
  }
7099
7271
  });
7100
- const Calendar = withInstall(stdin_default$1f);
7101
- const [name$15, bem$14] = createNamespace("image");
7272
+ const Calendar = withInstall(stdin_default$1d);
7273
+ const [name$13, bem$12] = createNamespace("image");
7102
7274
  const imageProps = {
7103
7275
  src: String,
7104
7276
  alt: String,
@@ -7119,8 +7291,8 @@ const imageProps = {
7119
7291
  crossorigin: String,
7120
7292
  referrerpolicy: String
7121
7293
  };
7122
- var stdin_default$1e = vue.defineComponent({
7123
- name: name$15,
7294
+ var stdin_default$1c = vue.defineComponent({
7295
+ name: name$13,
7124
7296
  props: imageProps,
7125
7297
  emits: ["load", "error"],
7126
7298
  setup(props2, {
@@ -7181,13 +7353,13 @@ var stdin_default$1e = vue.defineComponent({
7181
7353
  const renderPlaceholder = () => {
7182
7354
  if (loading.value && props2.showLoading) {
7183
7355
  return vue.createVNode("div", {
7184
- "class": bem$14("loading")
7185
- }, [renderIcon(props2.loadingIcon, bem$14("loading-icon"), slots.loading)]);
7356
+ "class": bem$12("loading")
7357
+ }, [renderIcon(props2.loadingIcon, bem$12("loading-icon"), slots.loading)]);
7186
7358
  }
7187
7359
  if (error.value && props2.showError) {
7188
7360
  return vue.createVNode("div", {
7189
- "class": bem$14("error")
7190
- }, [renderIcon(props2.errorIcon, bem$14("error-icon"), slots.error)]);
7361
+ "class": bem$12("error")
7362
+ }, [renderIcon(props2.errorIcon, bem$12("error-icon"), slots.error)]);
7191
7363
  }
7192
7364
  };
7193
7365
  const renderImage = () => {
@@ -7196,7 +7368,7 @@ var stdin_default$1e = vue.defineComponent({
7196
7368
  }
7197
7369
  const attrs = {
7198
7370
  alt: props2.alt,
7199
- class: bem$14("img"),
7371
+ class: bem$12("img"),
7200
7372
  style: {
7201
7373
  objectFit: props2.fit,
7202
7374
  objectPosition: props2.position
@@ -7256,7 +7428,7 @@ var stdin_default$1e = vue.defineComponent({
7256
7428
  return () => {
7257
7429
  var _a;
7258
7430
  return vue.createVNode("div", {
7259
- "class": bem$14({
7431
+ "class": bem$12({
7260
7432
  round: props2.round,
7261
7433
  block: props2.block
7262
7434
  }),
@@ -7265,8 +7437,8 @@ var stdin_default$1e = vue.defineComponent({
7265
7437
  };
7266
7438
  }
7267
7439
  });
7268
- const Image$1 = withInstall(stdin_default$1e);
7269
- const [name$14, bem$13] = createNamespace("card");
7440
+ const Image$1 = withInstall(stdin_default$1c);
7441
+ const [name$12, bem$11] = createNamespace("card");
7270
7442
  const cardProps = {
7271
7443
  tag: String,
7272
7444
  num: numericProp,
@@ -7280,8 +7452,8 @@ const cardProps = {
7280
7452
  thumbLink: String,
7281
7453
  originPrice: numericProp
7282
7454
  };
7283
- var stdin_default$1d = vue.defineComponent({
7284
- name: name$14,
7455
+ var stdin_default$1b = vue.defineComponent({
7456
+ name: name$12,
7285
7457
  props: cardProps,
7286
7458
  emits: ["clickThumb"],
7287
7459
  setup(props2, {
@@ -7294,14 +7466,14 @@ var stdin_default$1d = vue.defineComponent({
7294
7466
  }
7295
7467
  if (props2.title) {
7296
7468
  return vue.createVNode("div", {
7297
- "class": [bem$13("title"), "van-multi-ellipsis--l2"]
7469
+ "class": [bem$11("title"), "van-multi-ellipsis--l2"]
7298
7470
  }, [props2.title]);
7299
7471
  }
7300
7472
  };
7301
7473
  const renderThumbTag = () => {
7302
7474
  if (slots.tag || props2.tag) {
7303
7475
  return vue.createVNode("div", {
7304
- "class": bem$13("tag")
7476
+ "class": bem$11("tag")
7305
7477
  }, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
7306
7478
  "mark": true,
7307
7479
  "type": "primary"
@@ -7326,7 +7498,7 @@ var stdin_default$1d = vue.defineComponent({
7326
7498
  if (slots.thumb || props2.thumb) {
7327
7499
  return vue.createVNode("a", {
7328
7500
  "href": props2.thumbLink,
7329
- "class": bem$13("thumb"),
7501
+ "class": bem$11("thumb"),
7330
7502
  "onClick": (event) => emit("clickThumb", event)
7331
7503
  }, [renderThumbImage(), renderThumbTag()]);
7332
7504
  }
@@ -7337,18 +7509,18 @@ var stdin_default$1d = vue.defineComponent({
7337
7509
  }
7338
7510
  if (props2.desc) {
7339
7511
  return vue.createVNode("div", {
7340
- "class": [bem$13("desc"), "van-ellipsis"]
7512
+ "class": [bem$11("desc"), "van-ellipsis"]
7341
7513
  }, [props2.desc]);
7342
7514
  }
7343
7515
  };
7344
7516
  const renderPriceText = () => {
7345
7517
  const priceArr = props2.price.toString().split(".");
7346
7518
  return vue.createVNode("div", null, [vue.createVNode("span", {
7347
- "class": bem$13("price-currency")
7519
+ "class": bem$11("price-currency")
7348
7520
  }, [props2.currency]), vue.createVNode("span", {
7349
- "class": bem$13("price-integer")
7521
+ "class": bem$11("price-integer")
7350
7522
  }, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
7351
- "class": bem$13("price-decimal")
7523
+ "class": bem$11("price-decimal")
7352
7524
  }, [priceArr[1]])]);
7353
7525
  };
7354
7526
  return () => {
@@ -7358,34 +7530,34 @@ var stdin_default$1d = vue.defineComponent({
7358
7530
  const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
7359
7531
  const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
7360
7532
  const Price = showPrice && vue.createVNode("div", {
7361
- "class": bem$13("price")
7533
+ "class": bem$11("price")
7362
7534
  }, [slots.price ? slots.price() : renderPriceText()]);
7363
7535
  const OriginPrice = showOriginPrice && vue.createVNode("div", {
7364
- "class": bem$13("origin-price")
7536
+ "class": bem$11("origin-price")
7365
7537
  }, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
7366
7538
  const Num = showNum && vue.createVNode("div", {
7367
- "class": bem$13("num")
7539
+ "class": bem$11("num")
7368
7540
  }, [slots.num ? slots.num() : `x${props2.num}`]);
7369
7541
  const Footer = slots.footer && vue.createVNode("div", {
7370
- "class": bem$13("footer")
7542
+ "class": bem$11("footer")
7371
7543
  }, [slots.footer()]);
7372
7544
  const Bottom = showBottom && vue.createVNode("div", {
7373
- "class": bem$13("bottom")
7545
+ "class": bem$11("bottom")
7374
7546
  }, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
7375
7547
  return vue.createVNode("div", {
7376
- "class": bem$13()
7548
+ "class": bem$11()
7377
7549
  }, [vue.createVNode("div", {
7378
- "class": bem$13("header")
7550
+ "class": bem$11("header")
7379
7551
  }, [renderThumb(), vue.createVNode("div", {
7380
- "class": bem$13("content", {
7552
+ "class": bem$11("content", {
7381
7553
  centered: props2.centered
7382
7554
  })
7383
7555
  }, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
7384
7556
  };
7385
7557
  }
7386
7558
  });
7387
- const Card = withInstall(stdin_default$1d);
7388
- const [name$13, bem$12, t$f] = createNamespace("cascader");
7559
+ const Card = withInstall(stdin_default$1b);
7560
+ const [name$11, bem$10, t$f] = createNamespace("cascader");
7389
7561
  const cascaderProps = {
7390
7562
  title: String,
7391
7563
  options: makeArrayProp(),
@@ -7398,8 +7570,8 @@ const cascaderProps = {
7398
7570
  placeholder: String,
7399
7571
  activeColor: String
7400
7572
  };
7401
- var stdin_default$1c = vue.defineComponent({
7402
- name: name$13,
7573
+ var stdin_default$1a = vue.defineComponent({
7574
+ name: name$11,
7403
7575
  props: cascaderProps,
7404
7576
  emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
7405
7577
  setup(props2, {
@@ -7508,12 +7680,12 @@ var stdin_default$1c = vue.defineComponent({
7508
7680
  title
7509
7681
  }) => emit("clickTab", name2, title);
7510
7682
  const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
7511
- "class": bem$12("header")
7683
+ "class": bem$10("header")
7512
7684
  }, [vue.createVNode("h2", {
7513
- "class": bem$12("title")
7685
+ "class": bem$10("title")
7514
7686
  }, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
7515
7687
  "name": props2.closeIcon,
7516
- "class": [bem$12("close-icon"), HAPTICS_FEEDBACK],
7688
+ "class": [bem$10("close-icon"), HAPTICS_FEEDBACK],
7517
7689
  "onClick": onClose
7518
7690
  }, null) : null]) : null;
7519
7691
  const renderOption = (option, selectedOption, tabIndex) => {
@@ -7529,7 +7701,7 @@ var stdin_default$1c = vue.defineComponent({
7529
7701
  return vue.createVNode("li", {
7530
7702
  "ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
7531
7703
  "role": "menuitemradio",
7532
- "class": [bem$12("option", {
7704
+ "class": [bem$10("option", {
7533
7705
  selected,
7534
7706
  disabled
7535
7707
  }), option.className],
@@ -7542,12 +7714,12 @@ var stdin_default$1c = vue.defineComponent({
7542
7714
  "onClick": () => onSelect(option, tabIndex)
7543
7715
  }, [Text, selected ? vue.createVNode(Icon, {
7544
7716
  "name": "success",
7545
- "class": bem$12("selected-icon")
7717
+ "class": bem$10("selected-icon")
7546
7718
  }, null) : null]);
7547
7719
  };
7548
7720
  const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
7549
7721
  "role": "menu",
7550
- "class": bem$12("options")
7722
+ "class": bem$10("options")
7551
7723
  }, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
7552
7724
  const renderTab = (tab, tabIndex) => {
7553
7725
  const {
@@ -7558,7 +7730,7 @@ var stdin_default$1c = vue.defineComponent({
7558
7730
  const title = selected ? selected[textKey] : placeholder;
7559
7731
  return vue.createVNode(Tab, {
7560
7732
  "title": title,
7561
- "titleClass": bem$12("tab", {
7733
+ "titleClass": bem$10("tab", {
7562
7734
  unselected: !selected
7563
7735
  })
7564
7736
  }, {
@@ -7577,7 +7749,7 @@ var stdin_default$1c = vue.defineComponent({
7577
7749
  "onUpdate:active": ($event) => activeTab.value = $event,
7578
7750
  "shrink": true,
7579
7751
  "animated": true,
7580
- "class": bem$12("tabs"),
7752
+ "class": bem$10("tabs"),
7581
7753
  "color": props2.activeColor,
7582
7754
  "swipeable": props2.swipeable,
7583
7755
  "onClickTab": onClickTab
@@ -7612,19 +7784,19 @@ var stdin_default$1c = vue.defineComponent({
7612
7784
  updateTabs();
7613
7785
  });
7614
7786
  return () => vue.createVNode("div", {
7615
- "class": bem$12()
7787
+ "class": bem$10()
7616
7788
  }, [renderHeader(), renderTabs()]);
7617
7789
  }
7618
7790
  });
7619
- const Cascader = withInstall(stdin_default$1c);
7620
- const [name$12, bem$11] = createNamespace("cell-group");
7791
+ const Cascader = withInstall(stdin_default$1a);
7792
+ const [name$10, bem$$] = createNamespace("cell-group");
7621
7793
  const cellGroupProps = {
7622
7794
  title: String,
7623
7795
  inset: Boolean,
7624
7796
  border: truthProp
7625
7797
  };
7626
- var stdin_default$1b = vue.defineComponent({
7627
- name: name$12,
7798
+ var stdin_default$19 = vue.defineComponent({
7799
+ name: name$10,
7628
7800
  inheritAttrs: false,
7629
7801
  props: cellGroupProps,
7630
7802
  setup(props2, {
@@ -7634,7 +7806,7 @@ var stdin_default$1b = vue.defineComponent({
7634
7806
  const renderGroup = () => {
7635
7807
  var _a;
7636
7808
  return vue.createVNode("div", vue.mergeProps({
7637
- "class": [bem$11({
7809
+ "class": [bem$$({
7638
7810
  inset: props2.inset
7639
7811
  }), {
7640
7812
  [BORDER_TOP_BOTTOM]: props2.border && !props2.inset
@@ -7642,7 +7814,7 @@ var stdin_default$1b = vue.defineComponent({
7642
7814
  }, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7643
7815
  };
7644
7816
  const renderTitle = () => vue.createVNode("div", {
7645
- "class": bem$11("title", {
7817
+ "class": bem$$("title", {
7646
7818
  inset: props2.inset
7647
7819
  })
7648
7820
  }, [slots.title ? slots.title() : props2.title]);
@@ -7654,153 +7826,7 @@ var stdin_default$1b = vue.defineComponent({
7654
7826
  };
7655
7827
  }
7656
7828
  });
7657
- const CellGroup = withInstall(stdin_default$1b);
7658
- const [name$11, bem$10] = createNamespace("checkbox-group");
7659
- const checkboxGroupProps = {
7660
- max: numericProp,
7661
- shape: makeStringProp("round"),
7662
- disabled: Boolean,
7663
- iconSize: numericProp,
7664
- direction: String,
7665
- modelValue: makeArrayProp(),
7666
- checkedColor: String
7667
- };
7668
- const CHECKBOX_GROUP_KEY = Symbol(name$11);
7669
- var stdin_default$1a = vue.defineComponent({
7670
- name: name$11,
7671
- props: checkboxGroupProps,
7672
- emits: ["change", "update:modelValue"],
7673
- setup(props2, {
7674
- emit,
7675
- slots
7676
- }) {
7677
- const {
7678
- children,
7679
- linkChildren
7680
- } = use.useChildren(CHECKBOX_GROUP_KEY);
7681
- const updateValue = (value) => emit("update:modelValue", value);
7682
- const toggleAll = (options = {}) => {
7683
- if (typeof options === "boolean") {
7684
- options = {
7685
- checked: options
7686
- };
7687
- }
7688
- const {
7689
- checked,
7690
- skipDisabled
7691
- } = options;
7692
- const checkedChildren = children.filter((item) => {
7693
- if (!item.props.bindGroup) {
7694
- return false;
7695
- }
7696
- if (item.props.disabled && skipDisabled) {
7697
- return item.checked.value;
7698
- }
7699
- return checked != null ? checked : !item.checked.value;
7700
- });
7701
- const names = checkedChildren.map((item) => item.name);
7702
- updateValue(names);
7703
- };
7704
- vue.watch(() => props2.modelValue, (value) => emit("change", value));
7705
- useExpose({
7706
- toggleAll
7707
- });
7708
- use.useCustomFieldValue(() => props2.modelValue);
7709
- linkChildren({
7710
- props: props2,
7711
- updateValue
7712
- });
7713
- return () => {
7714
- var _a;
7715
- return vue.createVNode("div", {
7716
- "class": bem$10([props2.direction])
7717
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
7718
- };
7719
- }
7720
- });
7721
- const [name$10, bem$$] = createNamespace("checkbox");
7722
- const checkboxProps = extend({}, checkerProps, {
7723
- shape: String,
7724
- bindGroup: truthProp,
7725
- indeterminate: {
7726
- type: Boolean,
7727
- default: null
7728
- }
7729
- });
7730
- var stdin_default$19 = vue.defineComponent({
7731
- name: name$10,
7732
- props: checkboxProps,
7733
- emits: ["change", "update:modelValue"],
7734
- setup(props2, {
7735
- emit,
7736
- slots
7737
- }) {
7738
- const {
7739
- parent
7740
- } = use.useParent(CHECKBOX_GROUP_KEY);
7741
- const setParentValue = (checked2) => {
7742
- const {
7743
- name: name2
7744
- } = props2;
7745
- const {
7746
- max,
7747
- modelValue
7748
- } = parent.props;
7749
- const value = modelValue.slice();
7750
- if (checked2) {
7751
- const overlimit = max && value.length >= +max;
7752
- if (!overlimit && !value.includes(name2)) {
7753
- value.push(name2);
7754
- if (props2.bindGroup) {
7755
- parent.updateValue(value);
7756
- }
7757
- }
7758
- } else {
7759
- const index = value.indexOf(name2);
7760
- if (index !== -1) {
7761
- value.splice(index, 1);
7762
- if (props2.bindGroup) {
7763
- parent.updateValue(value);
7764
- }
7765
- }
7766
- }
7767
- };
7768
- const checked = vue.computed(() => {
7769
- if (parent && props2.bindGroup) {
7770
- return parent.props.modelValue.indexOf(props2.name) !== -1;
7771
- }
7772
- return !!props2.modelValue;
7773
- });
7774
- const toggle = (newValue = !checked.value) => {
7775
- if (parent && props2.bindGroup) {
7776
- setParentValue(newValue);
7777
- } else {
7778
- emit("update:modelValue", newValue);
7779
- }
7780
- if (props2.indeterminate !== null)
7781
- emit("change", newValue);
7782
- };
7783
- vue.watch(() => props2.modelValue, (value) => {
7784
- if (props2.indeterminate === null)
7785
- emit("change", value);
7786
- });
7787
- useExpose({
7788
- toggle,
7789
- props: props2,
7790
- checked
7791
- });
7792
- use.useCustomFieldValue(() => props2.modelValue);
7793
- return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
7794
- "bem": bem$$,
7795
- "role": "checkbox",
7796
- "parent": parent,
7797
- "checked": checked.value,
7798
- "onToggle": toggle
7799
- }, props2), pick(slots, ["default", "icon"]));
7800
- }
7801
- });
7802
- const Checkbox = withInstall(stdin_default$19);
7803
- const CheckboxGroup = withInstall(stdin_default$1a);
7829
+ const CellGroup = withInstall(stdin_default$19);
7804
7830
  const [name$$, bem$_] = createNamespace("circle");
7805
7831
  let uid = 0;
7806
7832
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
@@ -10330,6 +10356,16 @@ var stdin_default$R = vue.defineComponent({
10330
10356
  use.useEventListener("touchmove", onTouchmove, {
10331
10357
  target: rootRef
10332
10358
  });
10359
+ const renderHeader = () => {
10360
+ if (slots.header) {
10361
+ return slots.header();
10362
+ }
10363
+ return vue.createVNode("div", {
10364
+ "class": bem$I("header")
10365
+ }, [vue.createVNode("div", {
10366
+ "class": bem$I("header-bar")
10367
+ }, null)]);
10368
+ };
10333
10369
  return () => {
10334
10370
  var _a;
10335
10371
  return vue.createVNode("div", {
@@ -10341,11 +10377,7 @@ var stdin_default$R = vue.defineComponent({
10341
10377
  "onTouchstartPassive": onTouchstart,
10342
10378
  "onTouchend": onTouchend,
10343
10379
  "onTouchcancel": onTouchend
10344
- }, [vue.createVNode("div", {
10345
- "class": bem$I("header")
10346
- }, [vue.createVNode("div", {
10347
- "class": bem$I("header-bar")
10348
- }, null)]), vue.createVNode("div", {
10380
+ }, [renderHeader(), vue.createVNode("div", {
10349
10381
  "class": bem$I("content"),
10350
10382
  "ref": contentRef
10351
10383
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
@@ -14701,6 +14733,7 @@ var stdin_default$e = vue.defineComponent({
14701
14733
  "readonly": props2.disableInput,
14702
14734
  "inputmode": props2.integer ? "numeric" : "decimal",
14703
14735
  "placeholder": props2.placeholder,
14736
+ "autocomplete": "off",
14704
14737
  "aria-valuemax": props2.max,
14705
14738
  "aria-valuemin": props2.min,
14706
14739
  "aria-valuenow": current2.value,
@@ -17001,7 +17034,7 @@ const Lazyload = {
17001
17034
  });
17002
17035
  }
17003
17036
  };
17004
- const version = "4.9.0";
17037
+ const version = "4.9.1";
17005
17038
  function install(app) {
17006
17039
  const components = [
17007
17040
  ActionBar,