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