persagy-vant 0.0.40 → 0.0.41

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.
Files changed (85) hide show
  1. package/es/checkbox-panel/CheckboxPanel.d.ts +46 -1
  2. package/es/checkbox-panel/CheckboxPanel.mjs +121 -35
  3. package/es/checkbox-panel/index.css +1 -1
  4. package/es/checkbox-panel/index.d.ts +35 -1
  5. package/es/checkbox-panel/index.less +8 -2
  6. package/es/checkbox-panel/style/index.mjs +5 -0
  7. package/es/checkbox-panel/style/less.mjs +5 -0
  8. package/es/index.d.ts +1 -1
  9. package/es/index.mjs +1 -1
  10. package/es/label/Label.d.ts +13 -0
  11. package/es/label/Label.mjs +11 -4
  12. package/es/label/index.css +1 -1
  13. package/es/label/index.d.ts +9 -0
  14. package/es/label/index.less +5 -0
  15. package/es/location-select/style/index.mjs +1 -1
  16. package/es/location-select/style/less.mjs +1 -1
  17. package/es/material-action-bar/MaterialActionBar.d.ts +19 -0
  18. package/es/material-action-bar/MaterialActionBar.mjs +9 -5
  19. package/es/material-action-bar/index.css +1 -1
  20. package/es/material-action-bar/index.d.ts +36 -0
  21. package/es/material-action-bar/index.less +4 -2
  22. package/es/material-add/index.css +1 -1
  23. package/es/material-add/style/index.mjs +1 -1
  24. package/es/material-add/style/less.mjs +1 -1
  25. package/es/material-display-bar/MaterialDisplayBar.mjs +0 -1
  26. package/es/material-display-bar/index.css +1 -1
  27. package/es/material-display-bar/index.less +2 -1
  28. package/es/material-display-bar/var.less +3 -2
  29. package/es/stepper/Stepper.d.ts +1 -1
  30. package/es/stepper/index.css +1 -1
  31. package/es/stepper/index.less +19 -0
  32. package/es/title-bar/TitleBar.d.ts +30 -0
  33. package/es/title-bar/TitleBar.mjs +7 -1
  34. package/es/title-bar/index.css +1 -1
  35. package/es/title-bar/index.d.ts +21 -0
  36. package/es/title-bar/index.less +4 -2
  37. package/lib/checkbox-panel/CheckboxPanel.d.ts +46 -1
  38. package/lib/checkbox-panel/CheckboxPanel.js +120 -34
  39. package/lib/checkbox-panel/index.css +1 -1
  40. package/lib/checkbox-panel/index.d.ts +35 -1
  41. package/lib/checkbox-panel/index.less +8 -2
  42. package/lib/checkbox-panel/style/index.js +5 -0
  43. package/lib/checkbox-panel/style/less.js +5 -0
  44. package/lib/index.css +1 -1
  45. package/lib/index.d.ts +1 -1
  46. package/lib/index.js +1 -1
  47. package/lib/index.less +5 -5
  48. package/lib/label/Label.d.ts +13 -0
  49. package/lib/label/Label.js +11 -4
  50. package/lib/label/index.css +1 -1
  51. package/lib/label/index.d.ts +9 -0
  52. package/lib/label/index.less +5 -0
  53. package/lib/location-select/style/index.js +1 -1
  54. package/lib/location-select/style/less.js +1 -1
  55. package/lib/material-action-bar/MaterialActionBar.d.ts +19 -0
  56. package/lib/material-action-bar/MaterialActionBar.js +8 -4
  57. package/lib/material-action-bar/index.css +1 -1
  58. package/lib/material-action-bar/index.d.ts +36 -0
  59. package/lib/material-action-bar/index.less +4 -2
  60. package/lib/material-add/index.css +1 -1
  61. package/lib/material-add/style/index.js +1 -1
  62. package/lib/material-add/style/less.js +1 -1
  63. package/lib/material-display-bar/MaterialDisplayBar.js +0 -1
  64. package/lib/material-display-bar/index.css +1 -1
  65. package/lib/material-display-bar/index.less +2 -1
  66. package/lib/material-display-bar/var.less +3 -2
  67. package/lib/stepper/Stepper.d.ts +1 -1
  68. package/lib/stepper/index.css +1 -1
  69. package/lib/stepper/index.less +19 -0
  70. package/lib/title-bar/TitleBar.d.ts +30 -0
  71. package/lib/title-bar/TitleBar.js +7 -1
  72. package/lib/title-bar/index.css +1 -1
  73. package/lib/title-bar/index.d.ts +21 -0
  74. package/lib/title-bar/index.less +4 -2
  75. package/lib/vant.cjs.js +753 -655
  76. package/lib/vant.es.js +754 -656
  77. package/lib/vant.js +753 -655
  78. package/lib/vant.min.js +1 -1
  79. package/lib/web-types.json +1 -1
  80. package/package.json +1 -1
  81. package/skills/use-persagy-vant/references/component-catalog.md +1 -1
  82. package/skills/use-persagy-vant/references/design-interaction-baseline.md +1 -0
  83. package/skills/use-persagy-vant/references/element-component-matching.md +1 -0
  84. package/skills/use-persagy-vant/references/page-recipes.md +1 -0
  85. package/skills/use-persagy-vant/references/public-style-system.md +6 -0
package/lib/vant.cjs.js CHANGED
@@ -8468,25 +8468,337 @@ var stdin_default$1i = vue.defineComponent({
8468
8468
  });
8469
8469
  const CellGroup = withInstall(stdin_default$1i);
8470
8470
  const CheckboxGroup = withInstall(stdin_default$1R);
8471
- const [name$18, bem$17] = createNamespace("checkbox-panel");
8471
+ const [name$18, bem$17] = createNamespace("empty");
8472
+ const emptyProps = {
8473
+ image: makeStringProp("default"),
8474
+ imageSize: [Number, String, Array],
8475
+ description: String
8476
+ };
8477
+ var stdin_default$1h = vue.defineComponent({
8478
+ name: name$18,
8479
+ props: emptyProps,
8480
+ setup(props2, {
8481
+ slots
8482
+ }) {
8483
+ const renderDescription = () => {
8484
+ const description = slots.description ? slots.description() : props2.description;
8485
+ if (description) {
8486
+ return vue.createVNode("p", {
8487
+ "class": bem$17("description")
8488
+ }, [description]);
8489
+ }
8490
+ };
8491
+ const renderBottom = () => {
8492
+ if (slots.default) {
8493
+ return vue.createVNode("div", {
8494
+ "class": bem$17("bottom")
8495
+ }, [slots.default()]);
8496
+ }
8497
+ };
8498
+ const renderImage = () => {
8499
+ if (slots.image) {
8500
+ return slots.image();
8501
+ }
8502
+ if (props2.image === "default" || props2.image === "network") {
8503
+ return vue.createVNode("div", {
8504
+ "class": bem$17("image-preset", props2.image)
8505
+ }, null);
8506
+ }
8507
+ return vue.createVNode("img", {
8508
+ "src": props2.image
8509
+ }, null);
8510
+ };
8511
+ return () => vue.createVNode("div", {
8512
+ "class": bem$17()
8513
+ }, [vue.createVNode("div", {
8514
+ "class": bem$17("image"),
8515
+ "style": getSizeStyle(props2.imageSize)
8516
+ }, [renderImage()]), renderDescription(), renderBottom()]);
8517
+ }
8518
+ });
8519
+ const Empty = withInstall(stdin_default$1h);
8520
+ const [name$17, bem$16, t$d] = createNamespace("list");
8521
+ const listProps = {
8522
+ error: Boolean,
8523
+ offset: makeNumericProp(300),
8524
+ loading: Boolean,
8525
+ finished: Boolean,
8526
+ errorText: String,
8527
+ direction: makeStringProp("down"),
8528
+ loadingText: String,
8529
+ finishedText: String,
8530
+ immediateCheck: truthProp
8531
+ };
8532
+ var stdin_default$1g = vue.defineComponent({
8533
+ name: name$17,
8534
+ props: listProps,
8535
+ emits: ["load", "update:error", "update:loading"],
8536
+ setup(props2, {
8537
+ emit,
8538
+ slots
8539
+ }) {
8540
+ const loading = vue.ref(props2.loading);
8541
+ const root = vue.ref();
8542
+ const placeholder = vue.ref();
8543
+ const tabStatus = useTabStatus();
8544
+ const scrollParent = use.useScrollParent(root);
8545
+ const check = () => {
8546
+ vue.nextTick(() => {
8547
+ if (loading.value || props2.finished || props2.error || // skip check when inside an inactive tab
8548
+ (tabStatus == null ? void 0 : tabStatus.value) === false) {
8549
+ return;
8550
+ }
8551
+ const {
8552
+ offset,
8553
+ direction
8554
+ } = props2;
8555
+ const scrollParentRect = use.useRect(scrollParent);
8556
+ if (!scrollParentRect.height || isHidden(root)) {
8557
+ return;
8558
+ }
8559
+ let isReachEdge = false;
8560
+ const placeholderRect = use.useRect(placeholder);
8561
+ if (direction === "up") {
8562
+ isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;
8563
+ } else {
8564
+ isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;
8565
+ }
8566
+ if (isReachEdge) {
8567
+ loading.value = true;
8568
+ emit("update:loading", true);
8569
+ emit("load");
8570
+ }
8571
+ });
8572
+ };
8573
+ const renderFinishedText = () => {
8574
+ if (props2.finished) {
8575
+ const text = slots.finished ? slots.finished() : props2.finishedText;
8576
+ if (text) {
8577
+ return vue.createVNode("div", {
8578
+ "class": bem$16("finished-text")
8579
+ }, [text]);
8580
+ }
8581
+ }
8582
+ };
8583
+ const clickErrorText = () => {
8584
+ emit("update:error", false);
8585
+ check();
8586
+ };
8587
+ const renderErrorText = () => {
8588
+ if (props2.error) {
8589
+ const text = slots.error ? slots.error() : props2.errorText;
8590
+ if (text) {
8591
+ return vue.createVNode("div", {
8592
+ "role": "button",
8593
+ "class": bem$16("error-text"),
8594
+ "tabindex": 0,
8595
+ "onClick": clickErrorText
8596
+ }, [text]);
8597
+ }
8598
+ }
8599
+ };
8600
+ const renderLoading = () => {
8601
+ if (loading.value && !props2.finished) {
8602
+ return vue.createVNode("div", {
8603
+ "class": bem$16("loading")
8604
+ }, [slots.loading ? slots.loading() : vue.createVNode(Loading, {
8605
+ "class": bem$16("loading-icon")
8606
+ }, {
8607
+ default: () => [props2.loadingText || t$d("loading")]
8608
+ })]);
8609
+ }
8610
+ };
8611
+ vue.watch(() => [props2.loading, props2.finished, props2.error], check);
8612
+ if (tabStatus) {
8613
+ vue.watch(tabStatus, (tabActive) => {
8614
+ if (tabActive) {
8615
+ check();
8616
+ }
8617
+ });
8618
+ }
8619
+ vue.onUpdated(() => {
8620
+ loading.value = props2.loading;
8621
+ });
8622
+ vue.onMounted(() => {
8623
+ if (props2.immediateCheck) {
8624
+ check();
8625
+ }
8626
+ });
8627
+ useExpose({
8628
+ check
8629
+ });
8630
+ use.useEventListener("scroll", check, {
8631
+ target: scrollParent,
8632
+ passive: true
8633
+ });
8634
+ return () => {
8635
+ var _a;
8636
+ const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
8637
+ const Placeholder = vue.createVNode("div", {
8638
+ "ref": placeholder,
8639
+ "class": bem$16("placeholder")
8640
+ }, null);
8641
+ return vue.createVNode("div", {
8642
+ "ref": root,
8643
+ "role": "feed",
8644
+ "class": bem$16(),
8645
+ "aria-busy": loading.value
8646
+ }, [props2.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props2.direction === "up" ? Content : Placeholder]);
8647
+ };
8648
+ }
8649
+ });
8650
+ const List = withInstall(stdin_default$1g);
8651
+ const [name$16, bem$15, t$c] = createNamespace("search");
8652
+ const searchProps = extend({}, fieldSharedProps, {
8653
+ label: String,
8654
+ shape: makeStringProp("round"),
8655
+ variant: makeStringProp("default"),
8656
+ inputAlign: makeStringProp("left"),
8657
+ leftIcon: makeStringProp("search"),
8658
+ clearable: truthProp,
8659
+ actionText: String,
8660
+ background: String,
8661
+ showAction: Boolean
8662
+ });
8663
+ var stdin_default$1f = vue.defineComponent({
8664
+ name: name$16,
8665
+ props: searchProps,
8666
+ emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
8667
+ setup(props2, {
8668
+ emit,
8669
+ slots,
8670
+ attrs
8671
+ }) {
8672
+ const id = useId();
8673
+ const filedRef = vue.ref();
8674
+ const onCancel = () => {
8675
+ if (!slots.action) {
8676
+ emit("update:modelValue", "");
8677
+ emit("cancel");
8678
+ }
8679
+ };
8680
+ const onKeypress = (event) => {
8681
+ const ENTER_CODE = 13;
8682
+ if (event.keyCode === ENTER_CODE) {
8683
+ preventDefault(event);
8684
+ emit("search", props2.modelValue);
8685
+ }
8686
+ };
8687
+ const getInputId = () => props2.id || `${id}-input`;
8688
+ const renderLabel = () => {
8689
+ if (slots.label || props2.label) {
8690
+ return vue.createVNode("label", {
8691
+ "class": bem$15("label"),
8692
+ "for": getInputId()
8693
+ }, [slots.label ? slots.label() : props2.label]);
8694
+ }
8695
+ };
8696
+ const renderAction = () => {
8697
+ if (props2.showAction) {
8698
+ const text = props2.actionText || t$c("cancel");
8699
+ return vue.createVNode("div", {
8700
+ "class": bem$15("action"),
8701
+ "role": "button",
8702
+ "tabindex": 0,
8703
+ "onClick": onCancel
8704
+ }, [slots.action ? slots.action() : text]);
8705
+ }
8706
+ };
8707
+ const blur = () => {
8708
+ var _a;
8709
+ return (_a = filedRef.value) == null ? void 0 : _a.blur();
8710
+ };
8711
+ const focus = () => {
8712
+ var _a;
8713
+ return (_a = filedRef.value) == null ? void 0 : _a.focus();
8714
+ };
8715
+ const onBlur = (event) => emit("blur", event);
8716
+ const onFocus = (event) => emit("focus", event);
8717
+ const onClear = (event) => emit("clear", event);
8718
+ const onClickInput = (event) => emit("click-input", event);
8719
+ const onClickLeftIcon = (event) => emit("click-left-icon", event);
8720
+ const onClickRightIcon = (event) => emit("click-right-icon", event);
8721
+ const fieldPropNames = Object.keys(fieldSharedProps);
8722
+ const renderField = () => {
8723
+ const fieldAttrs = extend({}, attrs, pick(props2, fieldPropNames), {
8724
+ id: getInputId()
8725
+ });
8726
+ const onInput = (value) => emit("update:modelValue", value);
8727
+ return vue.createVNode(Field, vue.mergeProps({
8728
+ "ref": filedRef,
8729
+ "type": "search",
8730
+ "class": bem$15("field"),
8731
+ "border": false,
8732
+ "onBlur": onBlur,
8733
+ "onFocus": onFocus,
8734
+ "onClear": onClear,
8735
+ "onKeypress": onKeypress,
8736
+ "onClick-input": onClickInput,
8737
+ "onClick-left-icon": onClickLeftIcon,
8738
+ "onClick-right-icon": onClickRightIcon,
8739
+ "onUpdate:modelValue": onInput
8740
+ }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
8741
+ };
8742
+ useExpose({
8743
+ focus,
8744
+ blur
8745
+ });
8746
+ return () => {
8747
+ var _a;
8748
+ return vue.createVNode("div", {
8749
+ "class": bem$15({
8750
+ "show-action": props2.showAction,
8751
+ pure: props2.variant === "pure"
8752
+ }),
8753
+ "style": {
8754
+ background: props2.variant === "default" ? props2.background : void 0
8755
+ }
8756
+ }, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
8757
+ "class": bem$15("content", props2.shape)
8758
+ }, [renderLabel(), renderField()]), renderAction()]);
8759
+ };
8760
+ }
8761
+ });
8762
+ const Search = withInstall(stdin_default$1f);
8763
+ const [name$15, bem$14] = createNamespace("checkbox-panel");
8764
+ const escapeRegExp$1 = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8472
8765
  const checkboxPanelProps = {
8473
8766
  show: Boolean,
8474
8767
  title: String,
8475
8768
  options: makeArrayProp(),
8476
8769
  modelValue: Array,
8770
+ searchable: Boolean,
8771
+ searchPlaceholder: String,
8772
+ filterable: Boolean,
8773
+ filterActive: Boolean,
8774
+ loading: Boolean,
8775
+ finished: Boolean,
8776
+ error: Boolean,
8777
+ lazy: Boolean,
8778
+ loadingText: String,
8779
+ finishedText: String,
8780
+ errorText: String,
8477
8781
  confirmText: makeStringProp("确定"),
8478
8782
  selectAllText: makeStringProp("全选"),
8479
8783
  cancelSelectAllText: makeStringProp("取消全选")
8480
8784
  };
8481
- var stdin_default$1h = vue.defineComponent({
8482
- name: name$18,
8785
+ var stdin_default$1e = vue.defineComponent({
8786
+ name: name$15,
8483
8787
  props: checkboxPanelProps,
8484
- emits: ["update:show", "update:modelValue", "confirm"],
8788
+ emits: ["update:show", "update:modelValue", "update:loading", "update:error", "confirm", "search", "filter", "load"],
8485
8789
  setup(props2, {
8486
- emit
8790
+ emit,
8791
+ slots
8487
8792
  }) {
8793
+ const keyword = vue.ref("");
8488
8794
  const selectedValues = vue.computed(() => props2.modelValue || []);
8489
- const selectableOptions = vue.computed(() => props2.options.filter((option) => !option.disabled));
8795
+ const filteredOptions = vue.computed(() => {
8796
+ const query = keyword.value.trim().toLocaleLowerCase();
8797
+ if (!query)
8798
+ return props2.options;
8799
+ return props2.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
8800
+ });
8801
+ const selectableOptions = vue.computed(() => filteredOptions.value.filter((option) => !option.disabled));
8490
8802
  const isAllSelected = vue.computed(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
8491
8803
  const close = () => emit("update:show", false);
8492
8804
  const toggleOption = (option) => {
@@ -8497,67 +8809,129 @@ var stdin_default$1h = vue.defineComponent({
8497
8809
  index === -1 ? values.push(option.value) : values.splice(index, 1);
8498
8810
  emit("update:modelValue", values);
8499
8811
  };
8500
- const toggleAll = () => emit("update:modelValue", isAllSelected.value ? [] : selectableOptions.value.map((option) => option.value));
8812
+ const toggleAll = () => {
8813
+ const selectableValues = selectableOptions.value.map((option) => option.value);
8814
+ const values = isAllSelected.value ? selectedValues.value.filter((value) => !selectableValues.includes(value)) : [.../* @__PURE__ */ new Set([...selectedValues.value, ...selectableValues])];
8815
+ emit("update:modelValue", values);
8816
+ };
8501
8817
  const confirm = () => {
8502
8818
  emit("confirm", selectedValues.value);
8503
8819
  close();
8504
8820
  };
8821
+ const renderOptionLabel = (label) => {
8822
+ const query = keyword.value.trim();
8823
+ if (!query)
8824
+ return label;
8825
+ const normalizedQuery = query.toLocaleLowerCase();
8826
+ return label.split(new RegExp(`(${escapeRegExp$1(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? vue.createVNode("span", {
8827
+ "class": bem$14("match")
8828
+ }, [part]) : part);
8829
+ };
8830
+ const renderOptions = () => {
8831
+ if (!filteredOptions.value.length) {
8832
+ return vue.createVNode(Empty, {
8833
+ "imageSize": 60,
8834
+ "description": "暂无匹配选项"
8835
+ }, null);
8836
+ }
8837
+ return vue.createVNode(CheckboxGroup, {
8838
+ "modelValue": selectedValues.value,
8839
+ "class": bem$14("card"),
8840
+ "onUpdate:modelValue": (value) => emit("update:modelValue", value)
8841
+ }, {
8842
+ default: () => [filteredOptions.value.map((option) => vue.createVNode(Cell, {
8843
+ "key": option.value,
8844
+ "clickable": !option.disabled,
8845
+ "title": option.label,
8846
+ "onClick": () => toggleOption(option)
8847
+ }, {
8848
+ title: () => renderOptionLabel(option.label),
8849
+ "right-icon": () => vue.createVNode(Checkbox, {
8850
+ "name": option.value,
8851
+ "disabled": option.disabled,
8852
+ "onClick": (event) => event.stopPropagation()
8853
+ }, null)
8854
+ }))]
8855
+ });
8856
+ };
8505
8857
  return () => vue.createVNode(ActionSheet, {
8506
8858
  "show": props2.show,
8507
- "class": bem$17(),
8859
+ "class": bem$14(),
8508
8860
  "onUpdate:show": (show) => emit("update:show", show)
8509
8861
  }, {
8510
8862
  default: () => [vue.createVNode("div", {
8511
- "class": bem$17("content")
8863
+ "class": bem$14("content")
8512
8864
  }, [vue.createVNode("div", {
8513
- "class": bem$17("nav-wrapper")
8865
+ "class": bem$14("nav-wrapper")
8514
8866
  }, [vue.createVNode(NavBar, {
8515
8867
  "title": props2.title,
8516
8868
  "border": false,
8517
- "class": bem$17("nav")
8869
+ "class": bem$14("nav")
8518
8870
  }, {
8519
8871
  left: () => vue.createVNode(Icon, {
8520
8872
  "name": "cross",
8521
8873
  "size": "22",
8522
8874
  "onClick": close
8523
8875
  }, null),
8524
- right: () => vue.createVNode("span", {
8525
- "class": bem$17("select-all"),
8526
- "onClick": toggleAll
8527
- }, [isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText])
8528
- })]), vue.createVNode("div", {
8529
- "class": bem$17("body")
8530
- }, [vue.createVNode(CheckboxGroup, {
8531
- "modelValue": selectedValues.value,
8532
- "class": bem$17("card"),
8533
- "onUpdate:modelValue": (value) => emit("update:modelValue", value)
8534
- }, {
8535
- default: () => [props2.options.map((option) => vue.createVNode(Cell, {
8536
- "key": option.value,
8537
- "clickable": !option.disabled,
8538
- "title": option.label,
8539
- "onClick": () => toggleOption(option)
8540
- }, {
8541
- "right-icon": () => vue.createVNode(Checkbox, {
8542
- "name": option.value,
8543
- "disabled": option.disabled,
8544
- "onClick": (event) => event.stopPropagation()
8545
- }, null)
8546
- }))]
8547
- })]), vue.createVNode("div", {
8548
- "class": bem$17("footer")
8549
- }, [vue.createVNode(Button, {
8550
- "block": true,
8551
- "type": "primary",
8552
- "onClick": confirm
8876
+ right: () => {
8877
+ if (slots.filter)
8878
+ return slots.filter();
8879
+ if (!props2.filterable)
8880
+ return;
8881
+ return vue.createVNode("button", {
8882
+ "type": "button",
8883
+ "class": bem$14("filter"),
8884
+ "aria-label": "筛选",
8885
+ "onClick": () => emit("filter")
8886
+ }, [vue.createVNode(Badge, {
8887
+ "dot": props2.filterActive
8888
+ }, {
8889
+ default: () => [vue.createVNode(Icon, {
8890
+ "name": "filter-o",
8891
+ "size": "22"
8892
+ }, null)]
8893
+ })]);
8894
+ }
8895
+ })]), props2.searchable && vue.createVNode(Search, {
8896
+ "modelValue": keyword.value,
8897
+ "class": bem$14("search"),
8898
+ "shape": "round",
8899
+ "inputAlign": "left",
8900
+ "placeholder": props2.searchPlaceholder || "请输入搜索关键词",
8901
+ "maxlength": 200,
8902
+ "onUpdate:modelValue": (value) => {
8903
+ keyword.value = value;
8904
+ emit("search", value);
8905
+ },
8906
+ "onSearch": (value) => emit("search", value)
8907
+ }, null), vue.createVNode("div", {
8908
+ "class": bem$14("body")
8909
+ }, [props2.lazy ? vue.createVNode(List, {
8910
+ "loading": props2.loading,
8911
+ "finished": props2.finished,
8912
+ "error": props2.error,
8913
+ "loadingText": props2.loadingText,
8914
+ "finishedText": props2.finishedText,
8915
+ "errorText": props2.errorText,
8916
+ "onUpdate:loading": (value) => emit("update:loading", value),
8917
+ "onUpdate:error": (value) => emit("update:error", value),
8918
+ "onLoad": () => emit("load")
8553
8919
  }, {
8554
- default: () => [props2.confirmText]
8555
- })])])]
8920
+ default: () => [renderOptions()]
8921
+ }) : renderOptions()]), vue.createVNode("div", {
8922
+ "class": bem$14("footer")
8923
+ }, [vue.createVNode(BottomActionBar, {
8924
+ "fixed": false,
8925
+ "secondaryText": isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText,
8926
+ "confirmText": props2.confirmText,
8927
+ "onSecondary": toggleAll,
8928
+ "onConfirm": confirm
8929
+ }, null)])])]
8556
8930
  });
8557
8931
  }
8558
8932
  });
8559
- const CheckboxPanel = withInstall(stdin_default$1h);
8560
- const [name$17, bem$16] = createNamespace("circle");
8933
+ const CheckboxPanel = withInstall(stdin_default$1e);
8934
+ const [name$14, bem$13] = createNamespace("circle");
8561
8935
  let uid = 0;
8562
8936
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
8563
8937
  function getPath(clockwise, viewBoxSize) {
@@ -8578,8 +8952,8 @@ const circleProps = {
8578
8952
  strokeLinecap: String,
8579
8953
  startPosition: makeStringProp("top")
8580
8954
  };
8581
- var stdin_default$1g = vue.defineComponent({
8582
- name: name$17,
8955
+ var stdin_default$1d = vue.defineComponent({
8956
+ name: name$14,
8583
8957
  props: circleProps,
8584
8958
  emits: ["update:currentRate"],
8585
8959
  setup(props2, {
@@ -8647,7 +9021,7 @@ var stdin_default$1g = vue.defineComponent({
8647
9021
  return vue.createVNode("path", {
8648
9022
  "d": path.value,
8649
9023
  "style": style,
8650
- "class": bem$16("hover"),
9024
+ "class": bem$13("hover"),
8651
9025
  "stroke": color
8652
9026
  }, null);
8653
9027
  };
@@ -8658,7 +9032,7 @@ var stdin_default$1g = vue.defineComponent({
8658
9032
  strokeWidth: `${props2.strokeWidth}px`
8659
9033
  };
8660
9034
  return vue.createVNode("path", {
8661
- "class": bem$16("layer"),
9035
+ "class": bem$13("layer"),
8662
9036
  "style": style,
8663
9037
  "d": path.value
8664
9038
  }, null);
@@ -8689,12 +9063,12 @@ var stdin_default$1g = vue.defineComponent({
8689
9063
  }
8690
9064
  if (props2.text) {
8691
9065
  return vue.createVNode("div", {
8692
- "class": bem$16("text")
9066
+ "class": bem$13("text")
8693
9067
  }, [props2.text]);
8694
9068
  }
8695
9069
  };
8696
9070
  return () => vue.createVNode("div", {
8697
- "class": bem$16(),
9071
+ "class": bem$13(),
8698
9072
  "style": getSizeStyle(props2.size)
8699
9073
  }, [vue.createVNode("svg", {
8700
9074
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -8702,9 +9076,9 @@ var stdin_default$1g = vue.defineComponent({
8702
9076
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
8703
9077
  }
8704
9078
  });
8705
- const Circle = withInstall(stdin_default$1g);
8706
- const [name$16, bem$15] = createNamespace("row");
8707
- const ROW_KEY = Symbol(name$16);
9079
+ const Circle = withInstall(stdin_default$1d);
9080
+ const [name$13, bem$12] = createNamespace("row");
9081
+ const ROW_KEY = Symbol(name$13);
8708
9082
  const rowProps = {
8709
9083
  tag: makeStringProp("div"),
8710
9084
  wrap: truthProp,
@@ -8712,8 +9086,8 @@ const rowProps = {
8712
9086
  gutter: makeNumericProp(0),
8713
9087
  justify: String
8714
9088
  };
8715
- var stdin_default$1f = vue.defineComponent({
8716
- name: name$16,
9089
+ var stdin_default$1c = vue.defineComponent({
9090
+ name: name$13,
8717
9091
  props: rowProps,
8718
9092
  setup(props2, {
8719
9093
  slots
@@ -8772,7 +9146,7 @@ var stdin_default$1f = vue.defineComponent({
8772
9146
  justify
8773
9147
  } = props2;
8774
9148
  return vue.createVNode(tag, {
8775
- "class": bem$15({
9149
+ "class": bem$12({
8776
9150
  [`align-${align}`]: align,
8777
9151
  [`justify-${justify}`]: justify,
8778
9152
  nowrap: !wrap
@@ -8786,14 +9160,14 @@ var stdin_default$1f = vue.defineComponent({
8786
9160
  };
8787
9161
  }
8788
9162
  });
8789
- const [name$15, bem$14] = createNamespace("col");
9163
+ const [name$12, bem$11] = createNamespace("col");
8790
9164
  const colProps = {
8791
9165
  tag: makeStringProp("div"),
8792
9166
  span: makeNumericProp(0),
8793
9167
  offset: numericProp
8794
9168
  };
8795
- var stdin_default$1e = vue.defineComponent({
8796
- name: name$15,
9169
+ var stdin_default$1b = vue.defineComponent({
9170
+ name: name$12,
8797
9171
  props: colProps,
8798
9172
  setup(props2, {
8799
9173
  slots
@@ -8828,7 +9202,7 @@ var stdin_default$1e = vue.defineComponent({
8828
9202
  } = props2;
8829
9203
  return vue.createVNode(tag, {
8830
9204
  "style": style.value,
8831
- "class": bem$14({
9205
+ "class": bem$11({
8832
9206
  [span]: span,
8833
9207
  [`offset-${offset}`]: offset
8834
9208
  })
@@ -8841,9 +9215,9 @@ var stdin_default$1e = vue.defineComponent({
8841
9215
  };
8842
9216
  }
8843
9217
  });
8844
- const Col = withInstall(stdin_default$1e);
8845
- const [name$14, bem$13] = createNamespace("collapse");
8846
- const COLLAPSE_KEY = Symbol(name$14);
9218
+ const Col = withInstall(stdin_default$1b);
9219
+ const [name$11, bem$10] = createNamespace("collapse");
9220
+ const COLLAPSE_KEY = Symbol(name$11);
8847
9221
  const collapseProps = {
8848
9222
  border: truthProp,
8849
9223
  accordion: Boolean,
@@ -8863,8 +9237,8 @@ function validateModelValue(modelValue, accordion) {
8863
9237
  }
8864
9238
  return true;
8865
9239
  }
8866
- var stdin_default$1d = vue.defineComponent({
8867
- name: name$14,
9240
+ var stdin_default$1a = vue.defineComponent({
9241
+ name: name$11,
8868
9242
  props: collapseProps,
8869
9243
  emits: ["change", "update:modelValue"],
8870
9244
  setup(props2, {
@@ -8934,15 +9308,15 @@ var stdin_default$1d = vue.defineComponent({
8934
9308
  return () => {
8935
9309
  var _a;
8936
9310
  return vue.createVNode("div", {
8937
- "class": [bem$13(), {
9311
+ "class": [bem$10(), {
8938
9312
  [BORDER_TOP_BOTTOM]: props2.border
8939
9313
  }]
8940
9314
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
8941
9315
  };
8942
9316
  }
8943
9317
  });
8944
- const Collapse = withInstall(stdin_default$1d);
8945
- const [name$13, bem$12] = createNamespace("collapse-item");
9318
+ const Collapse = withInstall(stdin_default$1a);
9319
+ const [name$10, bem$$] = createNamespace("collapse-item");
8946
9320
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
8947
9321
  const collapseItemProps = extend({}, cellSharedProps, {
8948
9322
  name: numericProp,
@@ -8951,8 +9325,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
8951
9325
  readonly: Boolean,
8952
9326
  lazyRender: truthProp
8953
9327
  });
8954
- var stdin_default$1c = vue.defineComponent({
8955
- name: name$13,
9328
+ var stdin_default$19 = vue.defineComponent({
9329
+ name: name$10,
8956
9330
  props: collapseItemProps,
8957
9331
  setup(props2, {
8958
9332
  slots
@@ -9034,7 +9408,7 @@ var stdin_default$1c = vue.defineComponent({
9034
9408
  }
9035
9409
  return vue.createVNode(Cell, vue.mergeProps({
9036
9410
  "role": "button",
9037
- "class": bem$12("title", {
9411
+ "class": bem$$("title", {
9038
9412
  disabled,
9039
9413
  expanded: expanded.value,
9040
9414
  borderless: !border
@@ -9047,11 +9421,11 @@ var stdin_default$1c = vue.defineComponent({
9047
9421
  var _a;
9048
9422
  return vue.withDirectives(vue.createVNode("div", {
9049
9423
  "ref": wrapperRef,
9050
- "class": bem$12("wrapper"),
9424
+ "class": bem$$("wrapper"),
9051
9425
  "onTransitionend": onTransitionEnd
9052
9426
  }, [vue.createVNode("div", {
9053
9427
  "ref": contentRef,
9054
- "class": bem$12("content")
9428
+ "class": bem$$("content")
9055
9429
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
9056
9430
  });
9057
9431
  useExpose({
@@ -9060,15 +9434,15 @@ var stdin_default$1c = vue.defineComponent({
9060
9434
  itemName: name2
9061
9435
  });
9062
9436
  return () => vue.createVNode("div", {
9063
- "class": [bem$12({
9437
+ "class": [bem$$({
9064
9438
  border: index.value && props2.border
9065
9439
  })]
9066
9440
  }, [renderTitle(), renderContent()]);
9067
9441
  }
9068
9442
  });
9069
- const CollapseItem = withInstall(stdin_default$1c);
9443
+ const CollapseItem = withInstall(stdin_default$19);
9070
9444
  const ConfigProvider = withInstall(stdin_default$24);
9071
- const [name$12, bem$11, t$d] = createNamespace("contact-card");
9445
+ const [name$$, bem$_, t$b] = createNamespace("contact-card");
9072
9446
  const contactCardProps = {
9073
9447
  tel: String,
9074
9448
  name: String,
@@ -9076,8 +9450,8 @@ const contactCardProps = {
9076
9450
  addText: String,
9077
9451
  editable: truthProp
9078
9452
  };
9079
- var stdin_default$1b = vue.defineComponent({
9080
- name: name$12,
9453
+ var stdin_default$18 = vue.defineComponent({
9454
+ name: name$$,
9081
9455
  props: contactCardProps,
9082
9456
  emits: ["click"],
9083
9457
  setup(props2, {
@@ -9090,25 +9464,25 @@ var stdin_default$1b = vue.defineComponent({
9090
9464
  };
9091
9465
  const renderContent = () => {
9092
9466
  if (props2.type === "add") {
9093
- return props2.addText || t$d("addContact");
9467
+ return props2.addText || t$b("addContact");
9094
9468
  }
9095
- return [vue.createVNode("div", null, [`${t$d("name")}:${props2.name}`]), vue.createVNode("div", null, [`${t$d("tel")}:${props2.tel}`])];
9469
+ return [vue.createVNode("div", null, [`${t$b("name")}:${props2.name}`]), vue.createVNode("div", null, [`${t$b("tel")}:${props2.tel}`])];
9096
9470
  };
9097
9471
  return () => vue.createVNode(Cell, {
9098
9472
  "center": true,
9099
9473
  "icon": props2.type === "edit" ? "contact" : "add-square",
9100
- "class": bem$11([props2.type]),
9474
+ "class": bem$_([props2.type]),
9101
9475
  "border": false,
9102
9476
  "isLink": props2.editable,
9103
- "valueClass": bem$11("value"),
9477
+ "valueClass": bem$_("value"),
9104
9478
  "onClick": onClick
9105
9479
  }, {
9106
9480
  value: renderContent
9107
9481
  });
9108
9482
  }
9109
9483
  });
9110
- const ContactCard = withInstall(stdin_default$1b);
9111
- const [name$11, bem$10, t$c] = createNamespace("contact-edit");
9484
+ const ContactCard = withInstall(stdin_default$18);
9485
+ const [name$_, bem$Z, t$a] = createNamespace("contact-edit");
9112
9486
  const DEFAULT_CONTACT = {
9113
9487
  tel: "",
9114
9488
  name: ""
@@ -9128,8 +9502,8 @@ const contactEditProps = {
9128
9502
  default: isMobile
9129
9503
  }
9130
9504
  };
9131
- var stdin_default$1a = vue.defineComponent({
9132
- name: name$11,
9505
+ var stdin_default$17 = vue.defineComponent({
9506
+ name: name$_,
9133
9507
  props: contactEditProps,
9134
9508
  emits: ["save", "delete", "change-default"],
9135
9509
  setup(props2, {
@@ -9143,20 +9517,20 @@ var stdin_default$1a = vue.defineComponent({
9143
9517
  };
9144
9518
  const onDelete = () => emit("delete", contact);
9145
9519
  const renderButtons = () => vue.createVNode("div", {
9146
- "class": bem$10("buttons")
9520
+ "class": bem$Z("buttons")
9147
9521
  }, [vue.createVNode(Button, {
9148
9522
  "block": true,
9149
9523
  "round": true,
9150
9524
  "type": "primary",
9151
- "text": t$c("save"),
9152
- "class": bem$10("button"),
9525
+ "text": t$a("save"),
9526
+ "class": bem$Z("button"),
9153
9527
  "loading": props2.isSaving,
9154
9528
  "nativeType": "submit"
9155
9529
  }, null), props2.isEdit && vue.createVNode(Button, {
9156
9530
  "block": true,
9157
9531
  "round": true,
9158
- "text": t$c("delete"),
9159
- "class": bem$10("button"),
9532
+ "text": t$a("delete"),
9533
+ "class": bem$Z("button"),
9160
9534
  "loading": props2.isDeleting,
9161
9535
  "onClick": onDelete
9162
9536
  }, null)]);
@@ -9170,7 +9544,7 @@ var stdin_default$1a = vue.defineComponent({
9170
9544
  if (props2.showSetDefault) {
9171
9545
  return vue.createVNode(Cell, {
9172
9546
  "title": props2.setDefaultLabel,
9173
- "class": bem$10("switch-cell"),
9547
+ "class": bem$Z("switch-cell"),
9174
9548
  "border": false
9175
9549
  }, {
9176
9550
  "right-icon": renderSwitch
@@ -9179,47 +9553,47 @@ var stdin_default$1a = vue.defineComponent({
9179
9553
  };
9180
9554
  vue.watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
9181
9555
  return () => vue.createVNode(Form, {
9182
- "class": bem$10(),
9556
+ "class": bem$Z(),
9183
9557
  "onSubmit": onSave
9184
9558
  }, {
9185
9559
  default: () => [vue.createVNode("div", {
9186
- "class": bem$10("fields")
9560
+ "class": bem$Z("fields")
9187
9561
  }, [vue.createVNode(Field, {
9188
9562
  "modelValue": contact.name,
9189
9563
  "onUpdate:modelValue": ($event) => contact.name = $event,
9190
9564
  "clearable": true,
9191
- "label": t$c("name"),
9565
+ "label": t$a("name"),
9192
9566
  "rules": [{
9193
9567
  required: true,
9194
- message: t$c("nameEmpty")
9568
+ message: t$a("nameEmpty")
9195
9569
  }],
9196
9570
  "maxlength": "30",
9197
- "placeholder": t$c("name")
9571
+ "placeholder": t$a("name")
9198
9572
  }, null), vue.createVNode(Field, {
9199
9573
  "modelValue": contact.tel,
9200
9574
  "onUpdate:modelValue": ($event) => contact.tel = $event,
9201
9575
  "clearable": true,
9202
9576
  "type": "tel",
9203
- "label": t$c("tel"),
9577
+ "label": t$a("tel"),
9204
9578
  "rules": [{
9205
9579
  validator: props2.telValidator,
9206
- message: t$c("telInvalid")
9580
+ message: t$a("telInvalid")
9207
9581
  }],
9208
- "placeholder": t$c("tel")
9582
+ "placeholder": t$a("tel")
9209
9583
  }, null)]), renderSetDefault(), renderButtons()]
9210
9584
  });
9211
9585
  }
9212
9586
  });
9213
- const ContactEdit = withInstall(stdin_default$1a);
9214
- const [name$10, bem$$, t$b] = createNamespace("contact-list");
9587
+ const ContactEdit = withInstall(stdin_default$17);
9588
+ const [name$Z, bem$Y, t$9] = createNamespace("contact-list");
9215
9589
  const contactListProps = {
9216
9590
  list: Array,
9217
9591
  addText: String,
9218
9592
  modelValue: unknownProp,
9219
9593
  defaultTagText: String
9220
9594
  };
9221
- var stdin_default$19 = vue.defineComponent({
9222
- name: name$10,
9595
+ var stdin_default$16 = vue.defineComponent({
9596
+ name: name$Z,
9223
9597
  props: contactListProps,
9224
9598
  emits: ["add", "edit", "select", "update:modelValue"],
9225
9599
  setup(props2, {
@@ -9231,13 +9605,13 @@ var stdin_default$19 = vue.defineComponent({
9231
9605
  emit("select", item, index);
9232
9606
  };
9233
9607
  const renderRightIcon = () => vue.createVNode(Radio, {
9234
- "class": bem$$("radio"),
9608
+ "class": bem$Y("radio"),
9235
9609
  "name": item.id,
9236
9610
  "size": "large"
9237
9611
  }, null);
9238
9612
  const renderEditIcon = () => vue.createVNode(Icon, {
9239
9613
  "name": "edit",
9240
- "class": bem$$("edit"),
9614
+ "class": bem$Y("edit"),
9241
9615
  "onClick": (event) => {
9242
9616
  event.stopPropagation();
9243
9617
  emit("edit", item, index);
@@ -9249,7 +9623,7 @@ var stdin_default$19 = vue.defineComponent({
9249
9623
  nodes.push(vue.createVNode(Tag, {
9250
9624
  "type": "primary",
9251
9625
  "round": true,
9252
- "class": bem$$("item-tag")
9626
+ "class": bem$Y("item-tag")
9253
9627
  }, {
9254
9628
  default: () => [props2.defaultTagText]
9255
9629
  }));
@@ -9260,8 +9634,8 @@ var stdin_default$19 = vue.defineComponent({
9260
9634
  "key": item.id,
9261
9635
  "isLink": true,
9262
9636
  "center": true,
9263
- "class": bem$$("item"),
9264
- "valueClass": bem$$("item-value"),
9637
+ "class": bem$Y("item"),
9638
+ "valueClass": bem$Y("item-value"),
9265
9639
  "onClick": onClick
9266
9640
  }, {
9267
9641
  icon: renderEditIcon,
@@ -9270,34 +9644,34 @@ var stdin_default$19 = vue.defineComponent({
9270
9644
  });
9271
9645
  };
9272
9646
  return () => vue.createVNode("div", {
9273
- "class": bem$$()
9647
+ "class": bem$Y()
9274
9648
  }, [vue.createVNode(RadioGroup, {
9275
9649
  "modelValue": props2.modelValue,
9276
- "class": bem$$("group")
9650
+ "class": bem$Y("group")
9277
9651
  }, {
9278
9652
  default: () => [props2.list && props2.list.map(renderItem)]
9279
9653
  }), vue.createVNode("div", {
9280
- "class": [bem$$("bottom"), "van-safe-area-bottom"]
9654
+ "class": [bem$Y("bottom"), "van-safe-area-bottom"]
9281
9655
  }, [vue.createVNode(Button, {
9282
9656
  "round": true,
9283
9657
  "block": true,
9284
9658
  "type": "primary",
9285
- "class": bem$$("add"),
9286
- "text": props2.addText || t$b("addContact"),
9659
+ "class": bem$Y("add"),
9660
+ "text": props2.addText || t$9("addContact"),
9287
9661
  "onClick": () => emit("add")
9288
9662
  }, null)])]);
9289
9663
  }
9290
9664
  });
9291
- const ContactList = withInstall(stdin_default$19);
9292
- const [name$$, bem$_] = createNamespace("content-panel");
9665
+ const ContactList = withInstall(stdin_default$16);
9666
+ const [name$Y, bem$X] = createNamespace("content-panel");
9293
9667
  const contentPanelProps = {
9294
9668
  show: Boolean,
9295
9669
  title: String,
9296
9670
  confirmText: makeStringProp("我已知晓"),
9297
9671
  showFooter: truthProp
9298
9672
  };
9299
- var stdin_default$18 = vue.defineComponent({
9300
- name: name$$,
9673
+ var stdin_default$15 = vue.defineComponent({
9674
+ name: name$Y,
9301
9675
  props: contentPanelProps,
9302
9676
  emits: ["update:show", "confirm", "close"],
9303
9677
  setup(props2, {
@@ -9314,7 +9688,7 @@ var stdin_default$18 = vue.defineComponent({
9314
9688
  };
9315
9689
  return () => vue.createVNode(ActionSheet, {
9316
9690
  "show": props2.show,
9317
- "class": bem$_(),
9691
+ "class": bem$X(),
9318
9692
  "onUpdate:show": (show) => {
9319
9693
  emit("update:show", show);
9320
9694
  if (!show)
@@ -9324,13 +9698,13 @@ var stdin_default$18 = vue.defineComponent({
9324
9698
  default: () => {
9325
9699
  var _a, _b;
9326
9700
  return [vue.createVNode("div", {
9327
- "class": bem$_("content")
9701
+ "class": bem$X("content")
9328
9702
  }, [vue.createVNode("div", {
9329
- "class": bem$_("nav-wrapper")
9703
+ "class": bem$X("nav-wrapper")
9330
9704
  }, [vue.createVNode(NavBar, {
9331
9705
  "title": props2.title,
9332
9706
  "border": false,
9333
- "class": bem$_("nav")
9707
+ "class": bem$X("nav")
9334
9708
  }, {
9335
9709
  left: () => vue.createVNode(Icon, {
9336
9710
  "name": "cross",
@@ -9338,9 +9712,9 @@ var stdin_default$18 = vue.defineComponent({
9338
9712
  "onClick": close
9339
9713
  }, null)
9340
9714
  })]), vue.createVNode("div", {
9341
- "class": bem$_("body")
9715
+ "class": bem$X("body")
9342
9716
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), props2.showFooter && vue.createVNode("div", {
9343
- "class": bem$_("footer")
9717
+ "class": bem$X("footer")
9344
9718
  }, [((_b = slots.footer) == null ? void 0 : _b.call(slots)) || vue.createVNode(Button, {
9345
9719
  "block": true,
9346
9720
  "type": "primary",
@@ -9352,7 +9726,7 @@ var stdin_default$18 = vue.defineComponent({
9352
9726
  });
9353
9727
  }
9354
9728
  });
9355
- const ContentPanel = withInstall(stdin_default$18);
9729
+ const ContentPanel = withInstall(stdin_default$15);
9356
9730
  function parseFormat(format2, currentTime) {
9357
9731
  const { days } = currentTime;
9358
9732
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -9388,15 +9762,15 @@ function parseFormat(format2, currentTime) {
9388
9762
  }
9389
9763
  return format2;
9390
9764
  }
9391
- const [name$_, bem$Z] = createNamespace("count-down");
9765
+ const [name$X, bem$W] = createNamespace("count-down");
9392
9766
  const countDownProps = {
9393
9767
  time: makeNumericProp(0),
9394
9768
  format: makeStringProp("HH:mm:ss"),
9395
9769
  autoStart: truthProp,
9396
9770
  millisecond: Boolean
9397
9771
  };
9398
- var stdin_default$17 = vue.defineComponent({
9399
- name: name$_,
9772
+ var stdin_default$14 = vue.defineComponent({
9773
+ name: name$X,
9400
9774
  props: countDownProps,
9401
9775
  emits: ["change", "finish"],
9402
9776
  setup(props2, {
@@ -9431,11 +9805,11 @@ var stdin_default$17 = vue.defineComponent({
9431
9805
  });
9432
9806
  return () => vue.createVNode("div", {
9433
9807
  "role": "timer",
9434
- "class": bem$Z()
9808
+ "class": bem$W()
9435
9809
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
9436
9810
  }
9437
9811
  });
9438
- const CountDown = withInstall(stdin_default$17);
9812
+ const CountDown = withInstall(stdin_default$14);
9439
9813
  function getDate(timeStamp) {
9440
9814
  const date = new Date(timeStamp * 1e3);
9441
9815
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -9444,9 +9818,9 @@ function getDate(timeStamp) {
9444
9818
  }
9445
9819
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
9446
9820
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
9447
- const [name$Z, bem$Y, t$a] = createNamespace("coupon");
9448
- var stdin_default$16 = vue.defineComponent({
9449
- name: name$Z,
9821
+ const [name$W, bem$V, t$8] = createNamespace("coupon");
9822
+ var stdin_default$13 = vue.defineComponent({
9823
+ name: name$W,
9450
9824
  props: {
9451
9825
  chosen: Boolean,
9452
9826
  coupon: makeRequiredProp(Object),
@@ -9474,13 +9848,13 @@ var stdin_default$16 = vue.defineComponent({
9474
9848
  return [vue.createVNode("span", null, [currency]), ` ${denominations}`];
9475
9849
  }
9476
9850
  if (coupon.discount) {
9477
- return t$a("discount", formatDiscount(coupon.discount));
9851
+ return t$8("discount", formatDiscount(coupon.discount));
9478
9852
  }
9479
9853
  return "";
9480
9854
  });
9481
9855
  const conditionMessage = vue.computed(() => {
9482
9856
  const condition = formatAmount(props2.coupon.originCondition || 0);
9483
- return condition === "0" ? t$a("unlimited") : t$a("condition", condition);
9857
+ return condition === "0" ? t$8("unlimited") : t$8("condition", condition);
9484
9858
  });
9485
9859
  return () => {
9486
9860
  const {
@@ -9490,34 +9864,34 @@ var stdin_default$16 = vue.defineComponent({
9490
9864
  } = props2;
9491
9865
  const description = disabled && coupon.reason || coupon.description;
9492
9866
  return vue.createVNode("div", {
9493
- "class": bem$Y({
9867
+ "class": bem$V({
9494
9868
  disabled
9495
9869
  })
9496
9870
  }, [vue.createVNode("div", {
9497
- "class": bem$Y("content")
9871
+ "class": bem$V("content")
9498
9872
  }, [vue.createVNode("div", {
9499
- "class": bem$Y("head")
9873
+ "class": bem$V("head")
9500
9874
  }, [vue.createVNode("h2", {
9501
- "class": bem$Y("amount")
9875
+ "class": bem$V("amount")
9502
9876
  }, [faceAmount.value]), vue.createVNode("p", {
9503
- "class": bem$Y("condition")
9877
+ "class": bem$V("condition")
9504
9878
  }, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
9505
- "class": bem$Y("body")
9879
+ "class": bem$V("body")
9506
9880
  }, [vue.createVNode("p", {
9507
- "class": bem$Y("name")
9881
+ "class": bem$V("name")
9508
9882
  }, [coupon.name]), vue.createVNode("p", {
9509
- "class": bem$Y("valid")
9883
+ "class": bem$V("valid")
9510
9884
  }, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
9511
- "class": bem$Y("corner"),
9885
+ "class": bem$V("corner"),
9512
9886
  "modelValue": chosen
9513
9887
  }, null)])]), description && vue.createVNode("p", {
9514
- "class": bem$Y("description")
9888
+ "class": bem$V("description")
9515
9889
  }, [description])]);
9516
9890
  };
9517
9891
  }
9518
9892
  });
9519
- const Coupon = withInstall(stdin_default$16);
9520
- const [name$Y, bem$X, t$9] = createNamespace("coupon-cell");
9893
+ const Coupon = withInstall(stdin_default$13);
9894
+ const [name$V, bem$U, t$7] = createNamespace("coupon-cell");
9521
9895
  const couponCellProps = {
9522
9896
  title: String,
9523
9897
  border: truthProp,
@@ -9543,78 +9917,29 @@ function formatValue({
9543
9917
  }
9544
9918
  return `-${currency} ${(value / 100).toFixed(2)}`;
9545
9919
  }
9546
- return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
9920
+ return coupons.length === 0 ? t$7("noCoupon") : t$7("count", coupons.length);
9547
9921
  }
9548
- var stdin_default$15 = vue.defineComponent({
9549
- name: name$Y,
9922
+ var stdin_default$12 = vue.defineComponent({
9923
+ name: name$V,
9550
9924
  props: couponCellProps,
9551
9925
  setup(props2) {
9552
9926
  return () => {
9553
9927
  const selected = props2.coupons[+props2.chosenCoupon];
9554
9928
  return vue.createVNode(Cell, {
9555
- "class": bem$X(),
9929
+ "class": bem$U(),
9556
9930
  "value": formatValue(props2),
9557
- "title": props2.title || t$9("title"),
9931
+ "title": props2.title || t$7("title"),
9558
9932
  "border": props2.border,
9559
9933
  "isLink": props2.editable,
9560
- "valueClass": bem$X("value", {
9934
+ "valueClass": bem$U("value", {
9561
9935
  selected
9562
9936
  })
9563
9937
  }, null);
9564
9938
  };
9565
9939
  }
9566
9940
  });
9567
- const CouponCell = withInstall(stdin_default$15);
9568
- const [name$X, bem$W] = createNamespace("empty");
9569
- const emptyProps = {
9570
- image: makeStringProp("default"),
9571
- imageSize: [Number, String, Array],
9572
- description: String
9573
- };
9574
- var stdin_default$14 = vue.defineComponent({
9575
- name: name$X,
9576
- props: emptyProps,
9577
- setup(props2, {
9578
- slots
9579
- }) {
9580
- const renderDescription = () => {
9581
- const description = slots.description ? slots.description() : props2.description;
9582
- if (description) {
9583
- return vue.createVNode("p", {
9584
- "class": bem$W("description")
9585
- }, [description]);
9586
- }
9587
- };
9588
- const renderBottom = () => {
9589
- if (slots.default) {
9590
- return vue.createVNode("div", {
9591
- "class": bem$W("bottom")
9592
- }, [slots.default()]);
9593
- }
9594
- };
9595
- const renderImage = () => {
9596
- if (slots.image) {
9597
- return slots.image();
9598
- }
9599
- if (props2.image === "default" || props2.image === "network") {
9600
- return vue.createVNode("div", {
9601
- "class": bem$W("image-preset", props2.image)
9602
- }, null);
9603
- }
9604
- return vue.createVNode("img", {
9605
- "src": props2.image
9606
- }, null);
9607
- };
9608
- return () => vue.createVNode("div", {
9609
- "class": bem$W()
9610
- }, [vue.createVNode("div", {
9611
- "class": bem$W("image"),
9612
- "style": getSizeStyle(props2.imageSize)
9613
- }, [renderImage()]), renderDescription(), renderBottom()]);
9614
- }
9615
- });
9616
- const Empty = withInstall(stdin_default$14);
9617
- const [name$W, bem$V, t$8] = createNamespace("coupon-list");
9941
+ const CouponCell = withInstall(stdin_default$12);
9942
+ const [name$U, bem$T, t$6] = createNamespace("coupon-list");
9618
9943
  const couponListProps = {
9619
9944
  code: makeStringProp(""),
9620
9945
  coupons: makeArrayProp(),
@@ -9635,8 +9960,8 @@ const couponListProps = {
9635
9960
  exchangeButtonLoading: Boolean,
9636
9961
  exchangeButtonDisabled: Boolean
9637
9962
  };
9638
- var stdin_default$13 = vue.defineComponent({
9639
- name: name$W,
9963
+ var stdin_default$11 = vue.defineComponent({
9964
+ name: name$U,
9640
9965
  props: couponListProps,
9641
9966
  emits: ["change", "exchange", "update:code"],
9642
9967
  setup(props2, {
@@ -9672,27 +9997,27 @@ var stdin_default$13 = vue.defineComponent({
9672
9997
  "image": props2.emptyImage
9673
9998
  }, {
9674
9999
  default: () => [vue.createVNode("p", {
9675
- "class": bem$V("empty-tip")
9676
- }, [t$8("noCoupon")])]
10000
+ "class": bem$T("empty-tip")
10001
+ }, [t$6("noCoupon")])]
9677
10002
  });
9678
10003
  const renderExchangeBar = () => {
9679
10004
  if (props2.showExchangeBar) {
9680
10005
  return vue.createVNode("div", {
9681
10006
  "ref": barRef,
9682
- "class": bem$V("exchange-bar")
10007
+ "class": bem$T("exchange-bar")
9683
10008
  }, [vue.createVNode(Field, {
9684
10009
  "modelValue": currentCode.value,
9685
10010
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
9686
10011
  "clearable": true,
9687
10012
  "border": false,
9688
- "class": bem$V("field"),
9689
- "placeholder": props2.inputPlaceholder || t$8("placeholder"),
10013
+ "class": bem$T("field"),
10014
+ "placeholder": props2.inputPlaceholder || t$6("placeholder"),
9690
10015
  "maxlength": "20"
9691
10016
  }, null), vue.createVNode(Button, {
9692
10017
  "plain": true,
9693
10018
  "type": "primary",
9694
- "class": bem$V("exchange"),
9695
- "text": props2.exchangeButtonText || t$8("exchange"),
10019
+ "class": bem$T("exchange"),
10020
+ "text": props2.exchangeButtonText || t$6("exchange"),
9696
10021
  "loading": props2.exchangeButtonLoading,
9697
10022
  "disabled": buttonDisabled.value,
9698
10023
  "onClick": onExchange
@@ -9704,14 +10029,14 @@ var stdin_default$13 = vue.defineComponent({
9704
10029
  coupons
9705
10030
  } = props2;
9706
10031
  const count = props2.showCount ? ` (${coupons.length})` : "";
9707
- const title = (props2.enabledTitle || t$8("enable")) + count;
10032
+ const title = (props2.enabledTitle || t$6("enable")) + count;
9708
10033
  return vue.createVNode(Tab, {
9709
10034
  "title": title
9710
10035
  }, {
9711
10036
  default: () => {
9712
10037
  var _a;
9713
10038
  return [vue.createVNode("div", {
9714
- "class": bem$V("list", {
10039
+ "class": bem$T("list", {
9715
10040
  "with-bottom": props2.showCloseButton
9716
10041
  }),
9717
10042
  "style": {
@@ -9733,14 +10058,14 @@ var stdin_default$13 = vue.defineComponent({
9733
10058
  disabledCoupons
9734
10059
  } = props2;
9735
10060
  const count = props2.showCount ? ` (${disabledCoupons.length})` : "";
9736
- const title = (props2.disabledTitle || t$8("disabled")) + count;
10061
+ const title = (props2.disabledTitle || t$6("disabled")) + count;
9737
10062
  return vue.createVNode(Tab, {
9738
10063
  "title": title
9739
10064
  }, {
9740
10065
  default: () => {
9741
10066
  var _a;
9742
10067
  return [vue.createVNode("div", {
9743
- "class": bem$V("list", {
10068
+ "class": bem$T("list", {
9744
10069
  "with-bottom": props2.showCloseButton
9745
10070
  }),
9746
10071
  "style": {
@@ -9767,27 +10092,27 @@ var stdin_default$13 = vue.defineComponent({
9767
10092
  });
9768
10093
  return () => vue.createVNode("div", {
9769
10094
  "ref": root,
9770
- "class": bem$V()
10095
+ "class": bem$T()
9771
10096
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
9772
10097
  "active": activeTab.value,
9773
10098
  "onUpdate:active": ($event) => activeTab.value = $event,
9774
- "class": bem$V("tab")
10099
+ "class": bem$T("tab")
9775
10100
  }, {
9776
10101
  default: () => [renderCouponTab(), renderDisabledTab()]
9777
10102
  }), vue.createVNode("div", {
9778
- "class": bem$V("bottom")
10103
+ "class": bem$T("bottom")
9779
10104
  }, [vue.withDirectives(vue.createVNode(Button, {
9780
10105
  "round": true,
9781
10106
  "block": true,
9782
10107
  "type": "primary",
9783
- "class": bem$V("close"),
9784
- "text": props2.closeButtonText || t$8("close"),
10108
+ "class": bem$T("close"),
10109
+ "text": props2.closeButtonText || t$6("close"),
9785
10110
  "onClick": () => emit("change", -1)
9786
10111
  }, null), [[vue.vShow, props2.showCloseButton]])])]);
9787
10112
  }
9788
10113
  });
9789
- const CouponList = withInstall(stdin_default$13);
9790
- const [name$V, bem$U] = createNamespace("filter-tag");
10114
+ const CouponList = withInstall(stdin_default$11);
10115
+ const [name$T, bem$S] = createNamespace("filter-tag");
9791
10116
  const filterTagProps = {
9792
10117
  selected: Boolean,
9793
10118
  disabled: Boolean,
@@ -9804,8 +10129,8 @@ const filterTagProps = {
9804
10129
  dot: Boolean,
9805
10130
  badge: numericProp
9806
10131
  };
9807
- var stdin_default$12 = vue.defineComponent({
9808
- name: name$V,
10132
+ var stdin_default$10 = vue.defineComponent({
10133
+ name: name$T,
9809
10134
  props: filterTagProps,
9810
10135
  emits: ["click"],
9811
10136
  setup(props2, {
@@ -9814,7 +10139,7 @@ var stdin_default$12 = vue.defineComponent({
9814
10139
  }) {
9815
10140
  const renderIcon = () => props2.icon && vue.createVNode(Icon, {
9816
10141
  "name": props2.icon,
9817
- "class": bem$U("icon"),
10142
+ "class": bem$S("icon"),
9818
10143
  "classPrefix": props2.iconPrefix
9819
10144
  }, null);
9820
10145
  const renderBadge = () => {
@@ -9835,7 +10160,7 @@ var stdin_default$12 = vue.defineComponent({
9835
10160
  const content = (_a = slots.default) == null ? void 0 : _a.call(slots);
9836
10161
  return vue.createVNode("button", {
9837
10162
  "type": "button",
9838
- "class": bem$U({
10163
+ "class": bem$S({
9839
10164
  selected: props2.selected,
9840
10165
  disabled: props2.disabled,
9841
10166
  large: props2.size === "large"
@@ -9843,15 +10168,15 @@ var stdin_default$12 = vue.defineComponent({
9843
10168
  "disabled": props2.disabled,
9844
10169
  "onClick": (event) => emit("click", event)
9845
10170
  }, [props2.iconPosition === "left" && icon, vue.createVNode("span", {
9846
- "class": bem$U("text")
10171
+ "class": bem$S("text")
9847
10172
  }, [content]), props2.iconPosition === "right" && icon, renderBadge()]);
9848
10173
  };
9849
10174
  }
9850
10175
  });
9851
- const FilterTag = withInstall(stdin_default$12);
9852
- const [name$U] = createNamespace("time-picker");
9853
- var stdin_default$11 = vue.defineComponent({
9854
- name: name$U,
10176
+ const FilterTag = withInstall(stdin_default$10);
10177
+ const [name$S] = createNamespace("time-picker");
10178
+ var stdin_default$$ = vue.defineComponent({
10179
+ name: name$S,
9855
10180
  props: extend({}, sharedProps, {
9856
10181
  minHour: makeNumericProp(0),
9857
10182
  maxHour: makeNumericProp(23),
@@ -9958,9 +10283,9 @@ var stdin_default$11 = vue.defineComponent({
9958
10283
  }
9959
10284
  });
9960
10285
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
9961
- const [name$T] = createNamespace("date-picker");
9962
- var stdin_default$10 = vue.defineComponent({
9963
- name: name$T,
10286
+ const [name$R] = createNamespace("date-picker");
10287
+ var stdin_default$_ = vue.defineComponent({
10288
+ name: name$R,
9964
10289
  props: extend({}, sharedProps, {
9965
10290
  type: makeStringProp("datetime"),
9966
10291
  modelValue: Date,
@@ -10198,10 +10523,10 @@ var stdin_default$10 = vue.defineComponent({
10198
10523
  }, pick(props2, pickerInheritKeys)), slots);
10199
10524
  }
10200
10525
  });
10201
- const [name$S, bem$T] = createNamespace("datetime-picker");
10202
- const timePickerPropKeys = Object.keys(stdin_default$11.props);
10203
- const datePickerPropKeys = Object.keys(stdin_default$10.props);
10204
- const datetimePickerProps = extend({}, stdin_default$11.props, stdin_default$10.props, {
10526
+ const [name$Q, bem$R] = createNamespace("datetime-picker");
10527
+ const timePickerPropKeys = Object.keys(stdin_default$$.props);
10528
+ const datePickerPropKeys = Object.keys(stdin_default$_.props);
10529
+ const datetimePickerProps = extend({}, stdin_default$$.props, stdin_default$_.props, {
10205
10530
  modelValue: [String, Date],
10206
10531
  showTimeRange: Boolean,
10207
10532
  startTimeFromCurrent: {
@@ -10219,8 +10544,8 @@ const datetimePickerProps = extend({}, stdin_default$11.props, stdin_default$10.
10219
10544
  default: "结束时间"
10220
10545
  }
10221
10546
  });
10222
- var stdin_default$$ = vue.defineComponent({
10223
- name: name$S,
10547
+ var stdin_default$Z = vue.defineComponent({
10548
+ name: name$Q,
10224
10549
  props: datetimePickerProps,
10225
10550
  emits: ["update:startTime", "update:endTime", "time-range-change"],
10226
10551
  setup(props2, {
@@ -10289,7 +10614,7 @@ var stdin_default$$ = vue.defineComponent({
10289
10614
  });
10290
10615
  return () => {
10291
10616
  const isTimePicker = props2.type === "time";
10292
- const Component = isTimePicker ? stdin_default$11 : stdin_default$10;
10617
+ const Component = isTimePicker ? stdin_default$$ : stdin_default$_;
10293
10618
  const inheritProps = pick(props2, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
10294
10619
  const showTimeRange = props2.showTimeRange && props2.type === "datetime";
10295
10620
  const timeRangeSlots = showTimeRange ? {
@@ -10302,7 +10627,7 @@ var stdin_default$$ = vue.defineComponent({
10302
10627
  "columns-top": () => {
10303
10628
  var _a;
10304
10629
  return [vue.createVNode("div", {
10305
- "class": bem$T("time-range")
10630
+ "class": bem$R("time-range")
10306
10631
  }, [vue.createVNode(FilterTag, {
10307
10632
  "selected": activeTimeRange.value === "start",
10308
10633
  "onClick": () => onTimeRangeClick("start")
@@ -10318,14 +10643,14 @@ var stdin_default$$ = vue.defineComponent({
10318
10643
  "columns-bottom": () => {
10319
10644
  var _a;
10320
10645
  return [vue.createVNode("div", {
10321
- "class": bem$T("time-range-bottom")
10646
+ "class": bem$R("time-range-bottom")
10322
10647
  }, null), (_a = slots["columns-bottom"]) == null ? void 0 : _a.call(slots)];
10323
10648
  }
10324
10649
  } : slots;
10325
10650
  if (showTimeRange) {
10326
- return vue.createVNode(stdin_default$10, vue.mergeProps({
10651
+ return vue.createVNode(stdin_default$_, vue.mergeProps({
10327
10652
  "ref": root,
10328
- "class": bem$T()
10653
+ "class": bem$R()
10329
10654
  }, pick(props2, datePickerPropKeys), attrs, {
10330
10655
  "modelValue": rangeModelValue.value,
10331
10656
  "minDate": rangeMinDate.value,
@@ -10336,13 +10661,13 @@ var stdin_default$$ = vue.defineComponent({
10336
10661
  }
10337
10662
  return vue.createVNode(Component, vue.mergeProps({
10338
10663
  "ref": root,
10339
- "class": bem$T()
10664
+ "class": bem$R()
10340
10665
  }, inheritProps, attrs), timeRangeSlots);
10341
10666
  };
10342
10667
  }
10343
10668
  });
10344
- const DatetimePicker = withInstall(stdin_default$$);
10345
- const [name$R, bem$S, t$7] = createNamespace("dialog");
10669
+ const DatetimePicker = withInstall(stdin_default$Z);
10670
+ const [name$P, bem$Q, t$5] = createNamespace("dialog");
10346
10671
  const dialogProps = extend({}, popupSharedProps, {
10347
10672
  title: String,
10348
10673
  theme: String,
@@ -10374,8 +10699,8 @@ const dialogProps = extend({}, popupSharedProps, {
10374
10699
  closeOnClickOverlay: Boolean
10375
10700
  });
10376
10701
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
10377
- var stdin_default$_ = vue.defineComponent({
10378
- name: name$R,
10702
+ var stdin_default$Y = vue.defineComponent({
10703
+ name: name$P,
10379
10704
  props: dialogProps,
10380
10705
  emits: ["confirm", "cancel", "third", "keydown", "input", "update:show", "update:inputValue"],
10381
10706
  setup(props2, {
@@ -10435,7 +10760,7 @@ var stdin_default$_ = vue.defineComponent({
10435
10760
  const title = slots.title ? slots.title() : props2.title;
10436
10761
  if (title) {
10437
10762
  return vue.createVNode("div", {
10438
- "class": bem$S("header", {
10763
+ "class": bem$Q("header", {
10439
10764
  isolated: !props2.message && !props2.showInput && !slots.default
10440
10765
  })
10441
10766
  }, [title]);
@@ -10447,7 +10772,7 @@ var stdin_default$_ = vue.defineComponent({
10447
10772
  allowHtml,
10448
10773
  messageAlign
10449
10774
  } = props2;
10450
- const classNames = bem$S("message", {
10775
+ const classNames = bem$Q("message", {
10451
10776
  "has-title": hasTitle,
10452
10777
  [messageAlign]: messageAlign
10453
10778
  });
@@ -10474,7 +10799,7 @@ var stdin_default$_ = vue.defineComponent({
10474
10799
  "ref": inputRef,
10475
10800
  "size": "normal",
10476
10801
  "border": false,
10477
- "class": bem$S("input"),
10802
+ "class": bem$Q("input"),
10478
10803
  "modelValue": props2.inputValue,
10479
10804
  "inputAlign": props2.inputAlign,
10480
10805
  "placeholder": props2.inputPlaceholder,
@@ -10493,7 +10818,7 @@ var stdin_default$_ = vue.defineComponent({
10493
10818
  const hasTitle = !!(title || slots.title);
10494
10819
  return vue.createVNode("div", {
10495
10820
  "key": allowHtml ? 1 : 0,
10496
- "class": bem$S("content", {
10821
+ "class": bem$Q("content", {
10497
10822
  isolated: !hasTitle,
10498
10823
  "with-input": showInput
10499
10824
  })
@@ -10501,13 +10826,13 @@ var stdin_default$_ = vue.defineComponent({
10501
10826
  }
10502
10827
  };
10503
10828
  const renderButtons = () => vue.createVNode("div", {
10504
- "class": [BORDER_TOP, bem$S("footer", {
10829
+ "class": [BORDER_TOP, bem$Q("footer", {
10505
10830
  vertical: props2.showThirdButton
10506
10831
  })]
10507
10832
  }, [props2.showCancelButton && vue.createVNode(Button, {
10508
10833
  "size": "large",
10509
- "text": props2.cancelButtonText || t$7("cancel"),
10510
- "class": bem$S("cancel"),
10834
+ "text": props2.cancelButtonText || t$5("cancel"),
10835
+ "class": bem$Q("cancel"),
10511
10836
  "style": {
10512
10837
  color: props2.cancelButtonColor
10513
10838
  },
@@ -10516,8 +10841,8 @@ var stdin_default$_ = vue.defineComponent({
10516
10841
  "onClick": onCancel
10517
10842
  }, null), props2.showConfirmButton && vue.createVNode(Button, {
10518
10843
  "size": "large",
10519
- "text": props2.confirmButtonText || t$7("confirm"),
10520
- "class": [bem$S("confirm"), {
10844
+ "text": props2.confirmButtonText || t$5("confirm"),
10845
+ "class": [bem$Q("confirm"), {
10521
10846
  [BORDER_LEFT]: props2.showCancelButton && !props2.showThirdButton
10522
10847
  }],
10523
10848
  "style": {
@@ -10529,7 +10854,7 @@ var stdin_default$_ = vue.defineComponent({
10529
10854
  }, null), props2.showThirdButton && vue.createVNode(Button, {
10530
10855
  "size": "large",
10531
10856
  "text": props2.thirdButtonText,
10532
- "class": bem$S("third"),
10857
+ "class": bem$Q("third"),
10533
10858
  "style": {
10534
10859
  color: props2.thirdButtonColor
10535
10860
  },
@@ -10538,20 +10863,20 @@ var stdin_default$_ = vue.defineComponent({
10538
10863
  "onClick": onThird
10539
10864
  }, null)]);
10540
10865
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
10541
- "class": bem$S("footer")
10866
+ "class": bem$Q("footer")
10542
10867
  }, {
10543
10868
  default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
10544
10869
  "type": "warning",
10545
- "text": props2.cancelButtonText || t$7("cancel"),
10546
- "class": bem$S("cancel"),
10870
+ "text": props2.cancelButtonText || t$5("cancel"),
10871
+ "class": bem$Q("cancel"),
10547
10872
  "color": props2.cancelButtonColor,
10548
10873
  "loading": loading.cancel,
10549
10874
  "disabled": props2.cancelButtonDisabled,
10550
10875
  "onClick": onCancel
10551
10876
  }, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
10552
10877
  "type": "primary",
10553
- "text": props2.confirmButtonText || t$7("confirm"),
10554
- "class": bem$S("confirm"),
10878
+ "text": props2.confirmButtonText || t$5("confirm"),
10879
+ "class": bem$Q("confirm"),
10555
10880
  "color": props2.confirmButtonColor,
10556
10881
  "loading": loading.confirm,
10557
10882
  "disabled": props2.confirmButtonDisabled,
@@ -10583,7 +10908,7 @@ var stdin_default$_ = vue.defineComponent({
10583
10908
  return vue.createVNode(Popup, vue.mergeProps({
10584
10909
  "ref": root,
10585
10910
  "role": "dialog",
10586
- "class": [bem$S([theme]), className],
10911
+ "class": [bem$Q([theme]), className],
10587
10912
  "style": {
10588
10913
  width: addUnit(width)
10589
10914
  },
@@ -10606,7 +10931,7 @@ function initInstance$3() {
10606
10931
  state,
10607
10932
  toggle
10608
10933
  } = usePopupState();
10609
- return () => vue.createVNode(stdin_default$_, vue.mergeProps(state, {
10934
+ return () => vue.createVNode(stdin_default$Y, vue.mergeProps(state, {
10610
10935
  "onUpdate:show": toggle
10611
10936
  }), null);
10612
10937
  }
@@ -10673,12 +10998,12 @@ Dialog.setDefaultOptions = (options) => {
10673
10998
  Dialog.resetDefaultOptions = () => {
10674
10999
  Dialog.currentOptions = extend({}, Dialog.defaultOptions);
10675
11000
  };
10676
- Dialog.Component = withInstall(stdin_default$_);
11001
+ Dialog.Component = withInstall(stdin_default$Y);
10677
11002
  Dialog.install = (app) => {
10678
11003
  app.use(Dialog.Component);
10679
11004
  app.config.globalProperties.$dialog = Dialog;
10680
11005
  };
10681
- const [name$Q, bem$R] = createNamespace("dropdown-menu");
11006
+ const [name$O, bem$P] = createNamespace("dropdown-menu");
10682
11007
  const dropdownMenuProps = {
10683
11008
  overlay: truthProp,
10684
11009
  zIndex: numericProp,
@@ -10690,9 +11015,9 @@ const dropdownMenuProps = {
10690
11015
  closeOnClickOutside: truthProp,
10691
11016
  closeOnClickOverlay: truthProp
10692
11017
  };
10693
- const DROPDOWN_KEY = Symbol(name$Q);
10694
- var stdin_default$Z = vue.defineComponent({
10695
- name: name$Q,
11018
+ const DROPDOWN_KEY = Symbol(name$O);
11019
+ var stdin_default$X = vue.defineComponent({
11020
+ name: name$O,
10696
11021
  props: dropdownMenuProps,
10697
11022
  setup(props2, {
10698
11023
  slots
@@ -10764,7 +11089,7 @@ var stdin_default$Z = vue.defineComponent({
10764
11089
  "id": `${id}-${index}`,
10765
11090
  "role": "button",
10766
11091
  "tabindex": disabled ? void 0 : 0,
10767
- "class": [bem$R("item", {
11092
+ "class": [bem$P("item", {
10768
11093
  disabled
10769
11094
  }), {
10770
11095
  [HAPTICS_FEEDBACK]: !disabled
@@ -10775,7 +11100,7 @@ var stdin_default$Z = vue.defineComponent({
10775
11100
  }
10776
11101
  }
10777
11102
  }, [vue.createVNode("span", {
10778
- "class": [bem$R("title", {
11103
+ "class": [bem$P("title", {
10779
11104
  down: showPopup === (props2.direction === "down"),
10780
11105
  active: showPopup
10781
11106
  }), titleClass],
@@ -10800,18 +11125,18 @@ var stdin_default$Z = vue.defineComponent({
10800
11125
  var _a;
10801
11126
  return vue.createVNode("div", {
10802
11127
  "ref": root,
10803
- "class": bem$R()
11128
+ "class": bem$P()
10804
11129
  }, [props2.showBar && vue.createVNode("div", {
10805
11130
  "ref": barRef,
10806
11131
  "style": barStyle.value,
10807
- "class": bem$R("bar", {
11132
+ "class": bem$P("bar", {
10808
11133
  opened: opened.value
10809
11134
  })
10810
11135
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
10811
11136
  };
10812
11137
  }
10813
11138
  });
10814
- const [name$P, bem$Q] = createNamespace("dropdown-item");
11139
+ const [name$N, bem$O] = createNamespace("dropdown-item");
10815
11140
  const dropdownItemProps = {
10816
11141
  title: String,
10817
11142
  options: makeArrayProp(),
@@ -10821,8 +11146,8 @@ const dropdownItemProps = {
10821
11146
  modelValue: unknownProp,
10822
11147
  titleClass: unknownProp
10823
11148
  };
10824
- var stdin_default$Y = vue.defineComponent({
10825
- name: name$P,
11149
+ var stdin_default$W = vue.defineComponent({
11150
+ name: name$N,
10826
11151
  props: dropdownItemProps,
10827
11152
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
10828
11153
  setup(props2, {
@@ -10892,7 +11217,7 @@ var stdin_default$Y = vue.defineComponent({
10892
11217
  const renderIcon = () => {
10893
11218
  if (active) {
10894
11219
  return vue.createVNode(Icon, {
10895
- "class": bem$Q("icon"),
11220
+ "class": bem$O("icon"),
10896
11221
  "color": activeColor,
10897
11222
  "name": "success"
10898
11223
  }, null);
@@ -10903,7 +11228,7 @@ var stdin_default$Y = vue.defineComponent({
10903
11228
  "key": option.value,
10904
11229
  "icon": option.icon,
10905
11230
  "title": option.text,
10906
- "class": bem$Q("option", {
11231
+ "class": bem$O("option", {
10907
11232
  active
10908
11233
  }),
10909
11234
  "style": {
@@ -10935,13 +11260,13 @@ var stdin_default$Y = vue.defineComponent({
10935
11260
  }
10936
11261
  return vue.withDirectives(vue.createVNode("div", {
10937
11262
  "style": style,
10938
- "class": bem$Q([direction]),
11263
+ "class": bem$O([direction]),
10939
11264
  "onClick": onClickWrapper
10940
11265
  }, [vue.createVNode(Popup, {
10941
11266
  "show": state.showPopup,
10942
11267
  "onUpdate:show": ($event) => state.showPopup = $event,
10943
11268
  "role": "menu",
10944
- "class": bem$Q("content"),
11269
+ "class": bem$O("content"),
10945
11270
  "overlay": overlay,
10946
11271
  "position": direction === "down" ? "top" : "bottom",
10947
11272
  "duration": state.transition ? duration : 0,
@@ -10979,15 +11304,15 @@ var stdin_default$Y = vue.defineComponent({
10979
11304
  };
10980
11305
  }
10981
11306
  });
10982
- const DropdownItem = withInstall(stdin_default$Y);
10983
- const DropdownMenu = withInstall(stdin_default$Z);
10984
- const [name$O, bem$P] = createNamespace("sidebar");
10985
- const SIDEBAR_KEY = Symbol(name$O);
11307
+ const DropdownItem = withInstall(stdin_default$W);
11308
+ const DropdownMenu = withInstall(stdin_default$X);
11309
+ const [name$M, bem$N] = createNamespace("sidebar");
11310
+ const SIDEBAR_KEY = Symbol(name$M);
10986
11311
  const sidebarProps = {
10987
11312
  modelValue: makeNumericProp(0)
10988
11313
  };
10989
- var stdin_default$X = vue.defineComponent({
10990
- name: name$O,
11314
+ var stdin_default$V = vue.defineComponent({
11315
+ name: name$M,
10991
11316
  props: sidebarProps,
10992
11317
  emits: ["change", "update:modelValue"],
10993
11318
  setup(props2, {
@@ -11012,13 +11337,13 @@ var stdin_default$X = vue.defineComponent({
11012
11337
  var _a;
11013
11338
  return vue.createVNode("div", {
11014
11339
  "role": "tablist",
11015
- "class": bem$P()
11340
+ "class": bem$N()
11016
11341
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
11017
11342
  };
11018
11343
  }
11019
11344
  });
11020
- const Sidebar = withInstall(stdin_default$X);
11021
- const [name$N, bem$O] = createNamespace("sidebar-item");
11345
+ const Sidebar = withInstall(stdin_default$V);
11346
+ const [name$L, bem$M] = createNamespace("sidebar-item");
11022
11347
  const sidebarItemProps = extend({}, routeProps, {
11023
11348
  dot: Boolean,
11024
11349
  title: String,
@@ -11026,8 +11351,8 @@ const sidebarItemProps = extend({}, routeProps, {
11026
11351
  disabled: Boolean,
11027
11352
  badgeProps: Object
11028
11353
  });
11029
- var stdin_default$W = vue.defineComponent({
11030
- name: name$N,
11354
+ var stdin_default$U = vue.defineComponent({
11355
+ name: name$L,
11031
11356
  props: sidebarItemProps,
11032
11357
  emits: ["click"],
11033
11358
  setup(props2, {
@@ -11063,7 +11388,7 @@ var stdin_default$W = vue.defineComponent({
11063
11388
  const selected = index.value === parent.getActive();
11064
11389
  return vue.createVNode("div", {
11065
11390
  "role": "tab",
11066
- "class": bem$O({
11391
+ "class": bem$M({
11067
11392
  select: selected,
11068
11393
  disabled
11069
11394
  }),
@@ -11072,7 +11397,7 @@ var stdin_default$W = vue.defineComponent({
11072
11397
  "onClick": onClick
11073
11398
  }, [vue.createVNode(Badge, vue.mergeProps({
11074
11399
  "dot": dot,
11075
- "class": bem$O("text"),
11400
+ "class": bem$M("text"),
11076
11401
  "content": badge
11077
11402
  }, props2.badgeProps), {
11078
11403
  default: () => [slots.title ? slots.title() : title]
@@ -11080,8 +11405,8 @@ var stdin_default$W = vue.defineComponent({
11080
11405
  };
11081
11406
  }
11082
11407
  });
11083
- const SidebarItem = withInstall(stdin_default$W);
11084
- const [name$M, bem$N] = createNamespace("floor-select");
11408
+ const SidebarItem = withInstall(stdin_default$U);
11409
+ const [name$K, bem$L] = createNamespace("floor-select");
11085
11410
  const defaultBuildings = [{
11086
11411
  id: "building-a",
11087
11412
  text: "建筑A座",
@@ -11196,8 +11521,8 @@ const floorSelectProps = {
11196
11521
  },
11197
11522
  more: Boolean
11198
11523
  };
11199
- var stdin_default$V = vue.defineComponent({
11200
- name: name$M,
11524
+ var stdin_default$T = vue.defineComponent({
11525
+ name: name$K,
11201
11526
  props: floorSelectProps,
11202
11527
  emits: ["change", "update:activeBuilding", "update:modelValue"],
11203
11528
  setup(props2, {
@@ -11255,7 +11580,7 @@ var stdin_default$V = vue.defineComponent({
11255
11580
  });
11256
11581
  return vue.createVNode("div", {
11257
11582
  "key": item.id,
11258
- "class": bem$N("cell")
11583
+ "class": bem$L("cell")
11259
11584
  }, [cell || vue.createVNode(Cell, {
11260
11585
  "title": item.text,
11261
11586
  "border": index < spaces.value.length - 1,
@@ -11267,14 +11592,14 @@ var stdin_default$V = vue.defineComponent({
11267
11592
  }, null)]);
11268
11593
  };
11269
11594
  return () => vue.createVNode("div", {
11270
- "class": bem$N()
11595
+ "class": bem$L()
11271
11596
  }, [vue.createVNode(Tabs, {
11272
11597
  "active": activeBuilding.value,
11273
11598
  "type": "filter",
11274
11599
  "shrink": true,
11275
11600
  "more": props2.more,
11276
11601
  "showMore": showMore.value,
11277
- "class": bem$N("tabs"),
11602
+ "class": bem$L("tabs"),
11278
11603
  "onUpdate:active": selectBuilding,
11279
11604
  "onUpdate:showMore": (value) => {
11280
11605
  showMore.value = value;
@@ -11286,10 +11611,10 @@ var stdin_default$V = vue.defineComponent({
11286
11611
  "title": building.text
11287
11612
  }, null))]
11288
11613
  }), vue.createVNode("div", {
11289
- "class": bem$N("content")
11614
+ "class": bem$L("content")
11290
11615
  }, [vue.createVNode(Sidebar, {
11291
11616
  "modelValue": activeFloor.value,
11292
- "class": bem$N("sidebar"),
11617
+ "class": bem$L("sidebar"),
11293
11618
  "onUpdate:modelValue": (value) => {
11294
11619
  activeFloor.value = +value;
11295
11620
  }
@@ -11304,19 +11629,19 @@ var stdin_default$V = vue.defineComponent({
11304
11629
  "disabled": floor.disabled
11305
11630
  }, null))]
11306
11631
  }), vue.createVNode("div", {
11307
- "class": bem$N("cells")
11632
+ "class": bem$L("cells")
11308
11633
  }, [spaces.value.map(renderCell)])])]);
11309
11634
  }
11310
11635
  });
11311
- const FloorSelect = withInstall(stdin_default$V);
11312
- const [name$L, bem$M] = createNamespace("form-panel");
11636
+ const FloorSelect = withInstall(stdin_default$T);
11637
+ const [name$J, bem$K] = createNamespace("form-panel");
11313
11638
  const formPanelProps = {
11314
11639
  show: Boolean,
11315
11640
  title: String,
11316
11641
  confirmText: makeStringProp("确定")
11317
11642
  };
11318
- var stdin_default$U = vue.defineComponent({
11319
- name: name$L,
11643
+ var stdin_default$S = vue.defineComponent({
11644
+ name: name$J,
11320
11645
  props: formPanelProps,
11321
11646
  emits: ["update:show", "confirm"],
11322
11647
  setup(props2, {
@@ -11330,19 +11655,19 @@ var stdin_default$U = vue.defineComponent({
11330
11655
  };
11331
11656
  return () => vue.createVNode(ActionSheet, {
11332
11657
  "show": props2.show,
11333
- "class": bem$M(),
11658
+ "class": bem$K(),
11334
11659
  "onUpdate:show": (show) => emit("update:show", show)
11335
11660
  }, {
11336
11661
  default: () => {
11337
11662
  var _a;
11338
11663
  return [vue.createVNode("div", {
11339
- "class": bem$M("content")
11664
+ "class": bem$K("content")
11340
11665
  }, [vue.createVNode("div", {
11341
- "class": bem$M("nav-wrapper")
11666
+ "class": bem$K("nav-wrapper")
11342
11667
  }, [vue.createVNode(NavBar, {
11343
11668
  "title": props2.title,
11344
11669
  "border": false,
11345
- "class": bem$M("nav")
11670
+ "class": bem$K("nav")
11346
11671
  }, {
11347
11672
  left: () => vue.createVNode(Icon, {
11348
11673
  "name": "cross",
@@ -11350,9 +11675,9 @@ var stdin_default$U = vue.defineComponent({
11350
11675
  "onClick": close
11351
11676
  }, null)
11352
11677
  })]), vue.createVNode("div", {
11353
- "class": bem$M("body")
11678
+ "class": bem$K("body")
11354
11679
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), vue.createVNode("div", {
11355
- "class": bem$M("footer")
11680
+ "class": bem$K("footer")
11356
11681
  }, [vue.createVNode(Button, {
11357
11682
  "block": true,
11358
11683
  "type": "primary",
@@ -11364,8 +11689,8 @@ var stdin_default$U = vue.defineComponent({
11364
11689
  });
11365
11690
  }
11366
11691
  });
11367
- const FormPanel = withInstall(stdin_default$U);
11368
- const [name$K, bem$L] = createNamespace("friendly-tip");
11692
+ const FormPanel = withInstall(stdin_default$S);
11693
+ const [name$I, bem$J] = createNamespace("friendly-tip");
11369
11694
  const friendlyTipProps = {
11370
11695
  show: truthProp,
11371
11696
  message: String,
@@ -11382,8 +11707,8 @@ const friendlyTipProps = {
11382
11707
  default: "body"
11383
11708
  }
11384
11709
  };
11385
- var stdin_default$T = vue.defineComponent({
11386
- name: name$K,
11710
+ var stdin_default$R = vue.defineComponent({
11711
+ name: name$I,
11387
11712
  props: friendlyTipProps,
11388
11713
  emits: ["update:show"],
11389
11714
  setup(props2, {
@@ -11394,7 +11719,7 @@ var stdin_default$T = vue.defineComponent({
11394
11719
  return () => vue.createVNode(Popover, {
11395
11720
  "show": props2.show,
11396
11721
  "trigger": "manual",
11397
- "class": bem$L("popover"),
11722
+ "class": bem$J("popover"),
11398
11723
  "placement": props2.placement,
11399
11724
  "showArrow": props2.showArrow,
11400
11725
  "iconPrefix": props2.iconPrefix,
@@ -11407,19 +11732,19 @@ var stdin_default$T = vue.defineComponent({
11407
11732
  return (_a = slots.reference) == null ? void 0 : _a.call(slots);
11408
11733
  },
11409
11734
  default: () => vue.createVNode("div", {
11410
- "class": bem$L()
11735
+ "class": bem$J()
11411
11736
  }, [props2.icon && vue.createVNode(Icon, {
11412
11737
  "name": props2.icon,
11413
- "class": bem$L("icon"),
11738
+ "class": bem$J("icon"),
11414
11739
  "classPrefix": props2.iconPrefix
11415
11740
  }, null), vue.createVNode("span", {
11416
- "class": bem$L("message")
11741
+ "class": bem$J("message")
11417
11742
  }, [slots.default ? slots.default() : props2.message])])
11418
11743
  });
11419
11744
  }
11420
11745
  });
11421
- const FriendlyTip = withInstall(stdin_default$T);
11422
- const [name$J, bem$K] = createNamespace("grid");
11746
+ const FriendlyTip = withInstall(stdin_default$R);
11747
+ const [name$H, bem$I] = createNamespace("grid");
11423
11748
  const gridProps = {
11424
11749
  square: Boolean,
11425
11750
  center: truthProp,
@@ -11431,9 +11756,9 @@ const gridProps = {
11431
11756
  clickable: Boolean,
11432
11757
  columnNum: makeNumericProp(4)
11433
11758
  };
11434
- const GRID_KEY = Symbol(name$J);
11435
- var stdin_default$S = vue.defineComponent({
11436
- name: name$J,
11759
+ const GRID_KEY = Symbol(name$H);
11760
+ var stdin_default$Q = vue.defineComponent({
11761
+ name: name$H,
11437
11762
  props: gridProps,
11438
11763
  setup(props2, {
11439
11764
  slots
@@ -11450,15 +11775,15 @@ var stdin_default$S = vue.defineComponent({
11450
11775
  "style": {
11451
11776
  paddingLeft: addUnit(props2.gutter)
11452
11777
  },
11453
- "class": [bem$K(), {
11778
+ "class": [bem$I(), {
11454
11779
  [BORDER_TOP]: props2.border && !props2.gutter
11455
11780
  }]
11456
11781
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
11457
11782
  };
11458
11783
  }
11459
11784
  });
11460
- const Grid = withInstall(stdin_default$S);
11461
- const [name$I, bem$J] = createNamespace("grid-item");
11785
+ const Grid = withInstall(stdin_default$Q);
11786
+ const [name$G, bem$H] = createNamespace("grid-item");
11462
11787
  const gridItemProps = extend({}, routeProps, {
11463
11788
  dot: Boolean,
11464
11789
  text: String,
@@ -11468,8 +11793,8 @@ const gridItemProps = extend({}, routeProps, {
11468
11793
  iconPrefix: String,
11469
11794
  badgeProps: Object
11470
11795
  });
11471
- var stdin_default$R = vue.defineComponent({
11472
- name: name$I,
11796
+ var stdin_default$P = vue.defineComponent({
11797
+ name: name$G,
11473
11798
  props: gridItemProps,
11474
11799
  setup(props2, {
11475
11800
  slots
@@ -11535,7 +11860,7 @@ var stdin_default$R = vue.defineComponent({
11535
11860
  "name": props2.icon,
11536
11861
  "size": parent.props.iconSize,
11537
11862
  "badge": props2.badge,
11538
- "class": bem$J("icon"),
11863
+ "class": bem$H("icon"),
11539
11864
  "color": props2.iconColor,
11540
11865
  "badgeProps": props2.badgeProps,
11541
11866
  "classPrefix": props2.iconPrefix
@@ -11548,7 +11873,7 @@ var stdin_default$R = vue.defineComponent({
11548
11873
  }
11549
11874
  if (props2.text) {
11550
11875
  return vue.createVNode("span", {
11551
- "class": bem$J("text")
11876
+ "class": bem$H("text")
11552
11877
  }, [props2.text]);
11553
11878
  }
11554
11879
  };
@@ -11568,7 +11893,7 @@ var stdin_default$R = vue.defineComponent({
11568
11893
  direction,
11569
11894
  clickable
11570
11895
  } = parent.props;
11571
- const classes = [bem$J("content", [direction, {
11896
+ const classes = [bem$H("content", [direction, {
11572
11897
  center,
11573
11898
  square,
11574
11899
  reverse,
@@ -11578,7 +11903,7 @@ var stdin_default$R = vue.defineComponent({
11578
11903
  [BORDER]: border
11579
11904
  }];
11580
11905
  return vue.createVNode("div", {
11581
- "class": [bem$J({
11906
+ "class": [bem$H({
11582
11907
  square
11583
11908
  })],
11584
11909
  "style": rootStyle.value
@@ -11592,10 +11917,10 @@ var stdin_default$R = vue.defineComponent({
11592
11917
  };
11593
11918
  }
11594
11919
  });
11595
- const GridItem = withInstall(stdin_default$R);
11920
+ const GridItem = withInstall(stdin_default$P);
11596
11921
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
11597
- const bem$I = createNamespace("image-preview")[1];
11598
- var stdin_default$Q = vue.defineComponent({
11922
+ const bem$G = createNamespace("image-preview")[1];
11923
+ var stdin_default$O = vue.defineComponent({
11599
11924
  props: {
11600
11925
  src: String,
11601
11926
  show: Boolean,
@@ -11821,19 +12146,19 @@ var stdin_default$Q = vue.defineComponent({
11821
12146
  };
11822
12147
  return vue.createVNode(SwipeItem, {
11823
12148
  "ref": swipeItem,
11824
- "class": bem$I("swipe-item"),
12149
+ "class": bem$G("swipe-item"),
11825
12150
  "onTouchstartPassive": onTouchStart,
11826
12151
  "onTouchend": onTouchEnd,
11827
12152
  "onTouchcancel": onTouchEnd
11828
12153
  }, {
11829
12154
  default: () => [slots.image ? vue.createVNode("div", {
11830
- "class": bem$I("image-wrap")
12155
+ "class": bem$G("image-wrap")
11831
12156
  }, [slots.image({
11832
12157
  src: props2.src
11833
12158
  })]) : vue.createVNode(Image$1, {
11834
12159
  "src": props2.src,
11835
12160
  "fit": "contain",
11836
- "class": bem$I("image", {
12161
+ "class": bem$G("image", {
11837
12162
  vertical: vertical.value
11838
12163
  }),
11839
12164
  "style": imageStyle.value,
@@ -11843,7 +12168,7 @@ var stdin_default$Q = vue.defineComponent({
11843
12168
  };
11844
12169
  }
11845
12170
  });
11846
- const [name$H, bem$H] = createNamespace("image-preview");
12171
+ const [name$F, bem$F] = createNamespace("image-preview");
11847
12172
  const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
11848
12173
  const imagePreviewProps = {
11849
12174
  show: Boolean,
@@ -11866,8 +12191,8 @@ const imagePreviewProps = {
11866
12191
  closeOnPopstate: truthProp,
11867
12192
  closeIconPosition: makeStringProp("top-right")
11868
12193
  };
11869
- var stdin_default$P = vue.defineComponent({
11870
- name: name$H,
12194
+ var stdin_default$N = vue.defineComponent({
12195
+ name: name$F,
11871
12196
  props: imagePreviewProps,
11872
12197
  emits: ["scale", "close", "closed", "change", "update:show"],
11873
12198
  setup(props2, {
@@ -11905,7 +12230,7 @@ var stdin_default$P = vue.defineComponent({
11905
12230
  const renderIndex = () => {
11906
12231
  if (props2.showIndex) {
11907
12232
  return vue.createVNode("div", {
11908
- "class": bem$H("index")
12233
+ "class": bem$F("index")
11909
12234
  }, [slots.index ? slots.index({
11910
12235
  index: state.active
11911
12236
  }) : `${state.active + 1} / ${props2.images.length}`]);
@@ -11914,7 +12239,7 @@ var stdin_default$P = vue.defineComponent({
11914
12239
  const renderCover = () => {
11915
12240
  if (slots.cover) {
11916
12241
  return vue.createVNode("div", {
11917
- "class": bem$H("cover")
12242
+ "class": bem$F("cover")
11918
12243
  }, [slots.cover()]);
11919
12244
  }
11920
12245
  };
@@ -11922,14 +12247,14 @@ var stdin_default$P = vue.defineComponent({
11922
12247
  "ref": swipeRef,
11923
12248
  "lazyRender": true,
11924
12249
  "loop": props2.loop,
11925
- "class": bem$H("swipe"),
12250
+ "class": bem$F("swipe"),
11926
12251
  "duration": props2.swipeDuration,
11927
12252
  "initialSwipe": props2.startPosition,
11928
12253
  "showIndicators": props2.showIndicators,
11929
12254
  "indicatorColor": "white",
11930
12255
  "onChange": setActive
11931
12256
  }, {
11932
- default: () => [props2.images.map((image) => vue.createVNode(stdin_default$Q, {
12257
+ default: () => [props2.images.map((image) => vue.createVNode(stdin_default$O, {
11933
12258
  "src": image,
11934
12259
  "show": props2.show,
11935
12260
  "active": state.active,
@@ -11948,7 +12273,7 @@ var stdin_default$P = vue.defineComponent({
11948
12273
  return vue.createVNode(Icon, {
11949
12274
  "role": "button",
11950
12275
  "name": props2.closeIcon,
11951
- "class": [bem$H("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
12276
+ "class": [bem$F("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
11952
12277
  "onClick": emitClose
11953
12278
  }, null);
11954
12279
  }
@@ -11985,8 +12310,8 @@ var stdin_default$P = vue.defineComponent({
11985
12310
  }
11986
12311
  });
11987
12312
  return () => vue.createVNode(Popup, vue.mergeProps({
11988
- "class": [bem$H(), props2.className],
11989
- "overlayClass": [bem$H("overlay"), props2.overlayClass],
12313
+ "class": [bem$F(), props2.className],
12314
+ "overlayClass": [bem$F("overlay"), props2.overlayClass],
11990
12315
  "onClosed": onClosed,
11991
12316
  "onUpdate:show": updateShow
11992
12317
  }, pick(props2, popupProps$1)), {
@@ -12030,7 +12355,7 @@ function initInstance$2() {
12030
12355
  const onClosed = () => {
12031
12356
  state.images = [];
12032
12357
  };
12033
- return () => vue.createVNode(stdin_default$P, vue.mergeProps(state, {
12358
+ return () => vue.createVNode(stdin_default$N, vue.mergeProps(state, {
12034
12359
  "onClosed": onClosed,
12035
12360
  "onUpdate:show": toggle
12036
12361
  }), null);
@@ -12051,7 +12376,7 @@ const ImagePreview = (options, startPosition = 0) => {
12051
12376
  instance$2.open(extend({}, defaultConfig$1, options));
12052
12377
  return instance$2;
12053
12378
  };
12054
- ImagePreview.Component = withInstall(stdin_default$P);
12379
+ ImagePreview.Component = withInstall(stdin_default$N);
12055
12380
  ImagePreview.install = (app) => {
12056
12381
  app.use(ImagePreview.Component);
12057
12382
  };
@@ -12060,7 +12385,7 @@ function genAlphabet() {
12060
12385
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
12061
12386
  return indexList;
12062
12387
  }
12063
- const [name$G, bem$G] = createNamespace("index-bar");
12388
+ const [name$E, bem$E] = createNamespace("index-bar");
12064
12389
  const indexBarProps = {
12065
12390
  sticky: truthProp,
12066
12391
  zIndex: numericProp,
@@ -12072,9 +12397,9 @@ const indexBarProps = {
12072
12397
  default: genAlphabet
12073
12398
  }
12074
12399
  };
12075
- const INDEX_BAR_KEY = Symbol(name$G);
12076
- var stdin_default$O = vue.defineComponent({
12077
- name: name$G,
12400
+ const INDEX_BAR_KEY = Symbol(name$E);
12401
+ var stdin_default$M = vue.defineComponent({
12402
+ name: name$E,
12078
12403
  props: indexBarProps,
12079
12404
  emits: ["select", "change"],
12080
12405
  setup(props2, {
@@ -12186,7 +12511,7 @@ var stdin_default$O = vue.defineComponent({
12186
12511
  const renderIndexes = () => props2.indexList.map((index) => {
12187
12512
  const active = index === activeAnchor.value;
12188
12513
  return vue.createVNode("span", {
12189
- "class": bem$G("index", {
12514
+ "class": bem$E("index", {
12190
12515
  active
12191
12516
  }),
12192
12517
  "style": active ? highlightStyle.value : void 0,
@@ -12247,7 +12572,7 @@ var stdin_default$O = vue.defineComponent({
12247
12572
  };
12248
12573
  const renderSidebar = () => vue.createVNode("div", {
12249
12574
  "ref": sidebar,
12250
- "class": bem$G("sidebar"),
12575
+ "class": bem$E("sidebar"),
12251
12576
  "style": sidebarStyle.value,
12252
12577
  "onClick": onClickSidebar,
12253
12578
  "onTouchstartPassive": touch.start
@@ -12263,7 +12588,7 @@ var stdin_default$O = vue.defineComponent({
12263
12588
  var _a;
12264
12589
  return vue.createVNode("div", {
12265
12590
  "ref": root,
12266
- "class": bem$G()
12591
+ "class": bem$E()
12267
12592
  }, [props2.teleport ? vue.createVNode(vue.Teleport, {
12268
12593
  "to": props2.teleport
12269
12594
  }, {
@@ -12272,12 +12597,12 @@ var stdin_default$O = vue.defineComponent({
12272
12597
  };
12273
12598
  }
12274
12599
  });
12275
- const [name$F, bem$F] = createNamespace("index-anchor");
12600
+ const [name$D, bem$D] = createNamespace("index-anchor");
12276
12601
  const indexAnchorProps = {
12277
12602
  index: numericProp
12278
12603
  };
12279
- var stdin_default$N = vue.defineComponent({
12280
- name: name$F,
12604
+ var stdin_default$L = vue.defineComponent({
12605
+ name: name$D,
12281
12606
  props: indexAnchorProps,
12282
12607
  setup(props2, {
12283
12608
  slots
@@ -12340,7 +12665,7 @@ var stdin_default$N = vue.defineComponent({
12340
12665
  }
12341
12666
  }, [vue.createVNode("div", {
12342
12667
  "style": anchorStyle.value,
12343
- "class": [bem$F({
12668
+ "class": [bem$D({
12344
12669
  sticky
12345
12670
  }), {
12346
12671
  [BORDER_BOTTOM]: sticky
@@ -12349,9 +12674,9 @@ var stdin_default$N = vue.defineComponent({
12349
12674
  };
12350
12675
  }
12351
12676
  });
12352
- const IndexAnchor = withInstall(stdin_default$N);
12353
- const IndexBar = withInstall(stdin_default$O);
12354
- const [name$E, bem$E] = createNamespace("label");
12677
+ const IndexAnchor = withInstall(stdin_default$L);
12678
+ const IndexBar = withInstall(stdin_default$M);
12679
+ const [name$C, bem$C] = createNamespace("label");
12355
12680
  const labelProps = {
12356
12681
  label: makeStringProp(""),
12357
12682
  showLabel: truthProp,
@@ -12361,6 +12686,10 @@ const labelProps = {
12361
12686
  default: void 0
12362
12687
  },
12363
12688
  content: makeStringProp(""),
12689
+ contentList: {
12690
+ type: Array,
12691
+ default: () => []
12692
+ },
12364
12693
  type: makeStringProp("default"),
12365
12694
  size: makeStringProp("default"),
12366
12695
  contentAlign: makeStringProp("follow"),
@@ -12380,8 +12709,8 @@ const labelProps = {
12380
12709
  default: () => []
12381
12710
  }
12382
12711
  };
12383
- var stdin_default$M = vue.defineComponent({
12384
- name: name$E,
12712
+ var stdin_default$K = vue.defineComponent({
12713
+ name: name$C,
12385
12714
  props: labelProps,
12386
12715
  emits: ["click", "click-media", "long-press"],
12387
12716
  setup(props2, {
@@ -12390,7 +12719,9 @@ var stdin_default$M = vue.defineComponent({
12390
12719
  }) {
12391
12720
  let longPressTimer;
12392
12721
  const vertical = vue.computed(() => props2.vertical || props2.type === "media");
12393
- const ellipsis = vue.computed(() => props2.ellipsis && !vertical.value && !["tag", "media"].includes(props2.type));
12722
+ const hasContentList = vue.computed(() => props2.contentList.length > 0);
12723
+ const displayContent = vue.computed(() => hasContentList.value ? props2.contentList.join("、") : props2.content);
12724
+ const ellipsis = vue.computed(() => props2.ellipsis && !hasContentList.value && !vertical.value && !["tag", "media"].includes(props2.type));
12394
12725
  const displayLabel = vue.computed(() => {
12395
12726
  var _a;
12396
12727
  const showColon = (_a = props2.showColon) != null ? _a : !vertical.value && props2.contentAlign !== "right";
@@ -12422,24 +12753,24 @@ var stdin_default$M = vue.defineComponent({
12422
12753
  };
12423
12754
  const renderText = () => {
12424
12755
  var _a;
12425
- const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || props2.content;
12756
+ const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || displayContent.value;
12426
12757
  if (props2.type === "link") {
12427
12758
  return props2.href ? vue.createVNode("a", {
12428
- "class": bem$E("link"),
12759
+ "class": bem$C("link"),
12429
12760
  "href": props2.href,
12430
12761
  "onClick": (event) => emit("click", event)
12431
12762
  }, [content]) : vue.createVNode("button", {
12432
- "class": bem$E("link"),
12763
+ "class": bem$C("link"),
12433
12764
  "type": "button",
12434
12765
  "onClick": (event) => emit("click", event)
12435
12766
  }, [content]);
12436
12767
  }
12437
12768
  return vue.createVNode("span", {
12438
- "class": bem$E("text")
12769
+ "class": bem$C("text")
12439
12770
  }, [content]);
12440
12771
  };
12441
12772
  const renderTags = () => vue.createVNode("div", {
12442
- "class": bem$E("tags")
12773
+ "class": bem$C("tags")
12443
12774
  }, [props2.tags.map((tag) => vue.createVNode(Tag, {
12444
12775
  "key": tag,
12445
12776
  "type": "gray"
@@ -12447,10 +12778,10 @@ var stdin_default$M = vue.defineComponent({
12447
12778
  default: () => [tag]
12448
12779
  }))]);
12449
12780
  const renderMedia = () => vue.createVNode("div", {
12450
- "class": bem$E("media")
12781
+ "class": bem$C("media")
12451
12782
  }, [props2.media.map((item, index) => vue.createVNode("button", {
12452
12783
  "key": `${item.url}-${index}`,
12453
- "class": bem$E("media-item"),
12784
+ "class": bem$C("media-item"),
12454
12785
  "type": "button",
12455
12786
  "onClick": (event) => emit("click-media", item, index, event)
12456
12787
  }, [vue.createVNode(Image$1, {
@@ -12459,7 +12790,7 @@ var stdin_default$M = vue.defineComponent({
12459
12790
  "fit": "cover"
12460
12791
  }, null), item.type === "video" && vue.createVNode(Icon, {
12461
12792
  "name": "play-circle-o",
12462
- "class": bem$E("play")
12793
+ "class": bem$C("play")
12463
12794
  }, null)]))]);
12464
12795
  const renderContent = () => {
12465
12796
  if (props2.type === "tag")
@@ -12469,40 +12800,41 @@ var stdin_default$M = vue.defineComponent({
12469
12800
  return renderText();
12470
12801
  };
12471
12802
  return () => vue.createVNode("div", {
12472
- "class": bem$E([props2.type, {
12803
+ "class": bem$C([props2.type, {
12473
12804
  mini: props2.size === "mini",
12474
12805
  vertical: vertical.value,
12475
12806
  ellipsis: ellipsis.value,
12476
12807
  location: showLocation.value,
12477
12808
  "content-right": props2.contentAlign === "right",
12478
- "same-color": props2.sameColor
12809
+ "same-color": props2.sameColor,
12810
+ "multiple-content": hasContentList.value
12479
12811
  }])
12480
12812
  }, [showLeftIcon.value && vue.createVNode("div", {
12481
- "class": bem$E("left-icon")
12813
+ "class": bem$C("left-icon")
12482
12814
  }, [vue.createVNode(Icon, {
12483
12815
  "name": props2.leftIcon,
12484
12816
  "size": "12"
12485
12817
  }, null)]), props2.showLabel && vue.createVNode("span", {
12486
- "class": bem$E("label"),
12818
+ "class": bem$C("label"),
12487
12819
  "onPointerdown": () => startLongPress("label", displayLabel.value),
12488
12820
  "onPointerup": clearLongPress,
12489
12821
  "onPointercancel": clearLongPress,
12490
12822
  "onPointerleave": clearLongPress
12491
12823
  }, [displayLabel.value]), props2.showContent && vue.createVNode("div", {
12492
- "class": bem$E("value"),
12493
- "onPointerdown": () => startLongPress("content", props2.content),
12824
+ "class": bem$C("value"),
12825
+ "onPointerdown": () => startLongPress("content", displayContent.value),
12494
12826
  "onPointerup": clearLongPress,
12495
12827
  "onPointercancel": clearLongPress,
12496
12828
  "onPointerleave": clearLongPress
12497
12829
  }, [renderContent(), showLocation.value && vue.createVNode("div", {
12498
- "class": bem$E("location")
12830
+ "class": bem$C("location")
12499
12831
  }, [vue.createVNode(Icon, {
12500
12832
  "name": "location-o"
12501
12833
  }, null), vue.createVNode("span", null, [props2.location])])])]);
12502
12834
  }
12503
12835
  });
12504
- const Label = withInstall(stdin_default$M);
12505
- const [name$D, bem$D] = createNamespace("info-card");
12836
+ const Label = withInstall(stdin_default$K);
12837
+ const [name$B, bem$B] = createNamespace("info-card");
12506
12838
  const infoCardProps = {
12507
12839
  title: makeStringProp(""),
12508
12840
  showTitle: truthProp,
@@ -12524,8 +12856,8 @@ const infoCardProps = {
12524
12856
  expandText: makeStringProp("查看更多"),
12525
12857
  collapseText: makeStringProp("收起")
12526
12858
  };
12527
- var stdin_default$L = vue.defineComponent({
12528
- name: name$D,
12859
+ var stdin_default$J = vue.defineComponent({
12860
+ name: name$B,
12529
12861
  props: infoCardProps,
12530
12862
  emits: ["update:modelValue", "change", "click", "click-media"],
12531
12863
  setup(props2, {
@@ -12573,22 +12905,22 @@ var stdin_default$L = vue.defineComponent({
12573
12905
  "name": "van-info-card-expand"
12574
12906
  }, {
12575
12907
  default: () => [showExtra.value && vue.createVNode("div", {
12576
- "class": bem$D("extra")
12908
+ "class": bem$B("extra")
12577
12909
  }, [visibleExtraFields.value.map(renderField), extraSlot])]
12578
12910
  });
12579
12911
  };
12580
12912
  return () => {
12581
12913
  var _a, _b;
12582
12914
  return vue.createVNode("section", {
12583
- "class": bem$D()
12915
+ "class": bem$B()
12584
12916
  }, [props2.showCacheBadge && vue.createVNode("div", {
12585
- "class": bem$D("cache-badge")
12917
+ "class": bem$B("cache-badge")
12586
12918
  }, [vue.createVNode(Icon, {
12587
12919
  "name": "success",
12588
12920
  "size": "12",
12589
- "class": bem$D("cache-badge-icon")
12921
+ "class": bem$B("cache-badge-icon")
12590
12922
  }, null), vue.createVNode("span", null, [props2.cacheText])]), props2.showTitle && (slots.title || props2.title) && vue.createVNode("div", {
12591
- "class": bem$D("title", {
12923
+ "class": bem$B("title", {
12592
12924
  collapsible: showTitleCollapse.value
12593
12925
  }),
12594
12926
  "role": showTitleCollapse.value ? "button" : void 0,
@@ -12597,14 +12929,14 @@ var stdin_default$L = vue.defineComponent({
12597
12929
  "onClick": showTitleCollapse.value ? onTitleCollapse : void 0,
12598
12930
  "onKeydown": showTitleCollapse.value ? onTitleCollapseKeydown : void 0
12599
12931
  }, [vue.createVNode("span", {
12600
- "class": bem$D("title-content")
12932
+ "class": bem$B("title-content")
12601
12933
  }, [((_a = slots.title) == null ? void 0 : _a.call(slots)) || props2.title]), showTitleCollapse.value && vue.createVNode("div", {
12602
- "class": bem$D("title-collapse"),
12934
+ "class": bem$B("title-collapse"),
12603
12935
  "aria-hidden": "true"
12604
12936
  }, [vue.createVNode(Icon, {
12605
12937
  "name": "trangle-down",
12606
12938
  "size": "16",
12607
- "class": bem$D("title-collapse-icon", {
12939
+ "class": bem$B("title-collapse-icon", {
12608
12940
  expanded: props2.modelValue
12609
12941
  })
12610
12942
  }, null)])]), visibleFields.value.map(renderField), (_b = slots.default) == null ? void 0 : _b.call(slots), hasExtra.value && showCollapse.value && !showTitleCollapse.value && vue.createVNode(CollapseToggle, {
@@ -12615,255 +12947,12 @@ var stdin_default$L = vue.defineComponent({
12615
12947
  "onUpdate:modelValue": (value) => emit("update:modelValue", value),
12616
12948
  "onChange": (value) => emit("change", value)
12617
12949
  }, null), hasExtra.value && !showCollapse.value && props2.divider && vue.createVNode(Divider, {
12618
- "class": bem$D("divider")
12950
+ "class": bem$B("divider")
12619
12951
  }, null), renderExtra()]);
12620
12952
  };
12621
12953
  }
12622
12954
  });
12623
- const InfoCard = withInstall(stdin_default$L);
12624
- const [name$C, bem$C, t$6] = createNamespace("list");
12625
- const listProps = {
12626
- error: Boolean,
12627
- offset: makeNumericProp(300),
12628
- loading: Boolean,
12629
- finished: Boolean,
12630
- errorText: String,
12631
- direction: makeStringProp("down"),
12632
- loadingText: String,
12633
- finishedText: String,
12634
- immediateCheck: truthProp
12635
- };
12636
- var stdin_default$K = vue.defineComponent({
12637
- name: name$C,
12638
- props: listProps,
12639
- emits: ["load", "update:error", "update:loading"],
12640
- setup(props2, {
12641
- emit,
12642
- slots
12643
- }) {
12644
- const loading = vue.ref(props2.loading);
12645
- const root = vue.ref();
12646
- const placeholder = vue.ref();
12647
- const tabStatus = useTabStatus();
12648
- const scrollParent = use.useScrollParent(root);
12649
- const check = () => {
12650
- vue.nextTick(() => {
12651
- if (loading.value || props2.finished || props2.error || // skip check when inside an inactive tab
12652
- (tabStatus == null ? void 0 : tabStatus.value) === false) {
12653
- return;
12654
- }
12655
- const {
12656
- offset,
12657
- direction
12658
- } = props2;
12659
- const scrollParentRect = use.useRect(scrollParent);
12660
- if (!scrollParentRect.height || isHidden(root)) {
12661
- return;
12662
- }
12663
- let isReachEdge = false;
12664
- const placeholderRect = use.useRect(placeholder);
12665
- if (direction === "up") {
12666
- isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;
12667
- } else {
12668
- isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;
12669
- }
12670
- if (isReachEdge) {
12671
- loading.value = true;
12672
- emit("update:loading", true);
12673
- emit("load");
12674
- }
12675
- });
12676
- };
12677
- const renderFinishedText = () => {
12678
- if (props2.finished) {
12679
- const text = slots.finished ? slots.finished() : props2.finishedText;
12680
- if (text) {
12681
- return vue.createVNode("div", {
12682
- "class": bem$C("finished-text")
12683
- }, [text]);
12684
- }
12685
- }
12686
- };
12687
- const clickErrorText = () => {
12688
- emit("update:error", false);
12689
- check();
12690
- };
12691
- const renderErrorText = () => {
12692
- if (props2.error) {
12693
- const text = slots.error ? slots.error() : props2.errorText;
12694
- if (text) {
12695
- return vue.createVNode("div", {
12696
- "role": "button",
12697
- "class": bem$C("error-text"),
12698
- "tabindex": 0,
12699
- "onClick": clickErrorText
12700
- }, [text]);
12701
- }
12702
- }
12703
- };
12704
- const renderLoading = () => {
12705
- if (loading.value && !props2.finished) {
12706
- return vue.createVNode("div", {
12707
- "class": bem$C("loading")
12708
- }, [slots.loading ? slots.loading() : vue.createVNode(Loading, {
12709
- "class": bem$C("loading-icon")
12710
- }, {
12711
- default: () => [props2.loadingText || t$6("loading")]
12712
- })]);
12713
- }
12714
- };
12715
- vue.watch(() => [props2.loading, props2.finished, props2.error], check);
12716
- if (tabStatus) {
12717
- vue.watch(tabStatus, (tabActive) => {
12718
- if (tabActive) {
12719
- check();
12720
- }
12721
- });
12722
- }
12723
- vue.onUpdated(() => {
12724
- loading.value = props2.loading;
12725
- });
12726
- vue.onMounted(() => {
12727
- if (props2.immediateCheck) {
12728
- check();
12729
- }
12730
- });
12731
- useExpose({
12732
- check
12733
- });
12734
- use.useEventListener("scroll", check, {
12735
- target: scrollParent,
12736
- passive: true
12737
- });
12738
- return () => {
12739
- var _a;
12740
- const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
12741
- const Placeholder = vue.createVNode("div", {
12742
- "ref": placeholder,
12743
- "class": bem$C("placeholder")
12744
- }, null);
12745
- return vue.createVNode("div", {
12746
- "ref": root,
12747
- "role": "feed",
12748
- "class": bem$C(),
12749
- "aria-busy": loading.value
12750
- }, [props2.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props2.direction === "up" ? Content : Placeholder]);
12751
- };
12752
- }
12753
- });
12754
- const List = withInstall(stdin_default$K);
12755
- const [name$B, bem$B, t$5] = createNamespace("search");
12756
- const searchProps = extend({}, fieldSharedProps, {
12757
- label: String,
12758
- shape: makeStringProp("round"),
12759
- variant: makeStringProp("default"),
12760
- inputAlign: makeStringProp("left"),
12761
- leftIcon: makeStringProp("search"),
12762
- clearable: truthProp,
12763
- actionText: String,
12764
- background: String,
12765
- showAction: Boolean
12766
- });
12767
- var stdin_default$J = vue.defineComponent({
12768
- name: name$B,
12769
- props: searchProps,
12770
- emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
12771
- setup(props2, {
12772
- emit,
12773
- slots,
12774
- attrs
12775
- }) {
12776
- const id = useId();
12777
- const filedRef = vue.ref();
12778
- const onCancel = () => {
12779
- if (!slots.action) {
12780
- emit("update:modelValue", "");
12781
- emit("cancel");
12782
- }
12783
- };
12784
- const onKeypress = (event) => {
12785
- const ENTER_CODE = 13;
12786
- if (event.keyCode === ENTER_CODE) {
12787
- preventDefault(event);
12788
- emit("search", props2.modelValue);
12789
- }
12790
- };
12791
- const getInputId = () => props2.id || `${id}-input`;
12792
- const renderLabel = () => {
12793
- if (slots.label || props2.label) {
12794
- return vue.createVNode("label", {
12795
- "class": bem$B("label"),
12796
- "for": getInputId()
12797
- }, [slots.label ? slots.label() : props2.label]);
12798
- }
12799
- };
12800
- const renderAction = () => {
12801
- if (props2.showAction) {
12802
- const text = props2.actionText || t$5("cancel");
12803
- return vue.createVNode("div", {
12804
- "class": bem$B("action"),
12805
- "role": "button",
12806
- "tabindex": 0,
12807
- "onClick": onCancel
12808
- }, [slots.action ? slots.action() : text]);
12809
- }
12810
- };
12811
- const blur = () => {
12812
- var _a;
12813
- return (_a = filedRef.value) == null ? void 0 : _a.blur();
12814
- };
12815
- const focus = () => {
12816
- var _a;
12817
- return (_a = filedRef.value) == null ? void 0 : _a.focus();
12818
- };
12819
- const onBlur = (event) => emit("blur", event);
12820
- const onFocus = (event) => emit("focus", event);
12821
- const onClear = (event) => emit("clear", event);
12822
- const onClickInput = (event) => emit("click-input", event);
12823
- const onClickLeftIcon = (event) => emit("click-left-icon", event);
12824
- const onClickRightIcon = (event) => emit("click-right-icon", event);
12825
- const fieldPropNames = Object.keys(fieldSharedProps);
12826
- const renderField = () => {
12827
- const fieldAttrs = extend({}, attrs, pick(props2, fieldPropNames), {
12828
- id: getInputId()
12829
- });
12830
- const onInput = (value) => emit("update:modelValue", value);
12831
- return vue.createVNode(Field, vue.mergeProps({
12832
- "ref": filedRef,
12833
- "type": "search",
12834
- "class": bem$B("field"),
12835
- "border": false,
12836
- "onBlur": onBlur,
12837
- "onFocus": onFocus,
12838
- "onClear": onClear,
12839
- "onKeypress": onKeypress,
12840
- "onClick-input": onClickInput,
12841
- "onClick-left-icon": onClickLeftIcon,
12842
- "onClick-right-icon": onClickRightIcon,
12843
- "onUpdate:modelValue": onInput
12844
- }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
12845
- };
12846
- useExpose({
12847
- focus,
12848
- blur
12849
- });
12850
- return () => {
12851
- var _a;
12852
- return vue.createVNode("div", {
12853
- "class": bem$B({
12854
- "show-action": props2.showAction,
12855
- pure: props2.variant === "pure"
12856
- }),
12857
- "style": {
12858
- background: props2.variant === "default" ? props2.background : void 0
12859
- }
12860
- }, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
12861
- "class": bem$B("content", props2.shape)
12862
- }, [renderLabel(), renderField()]), renderAction()]);
12863
- };
12864
- }
12865
- });
12866
- const Search = withInstall(stdin_default$J);
12955
+ const InfoCard = withInstall(stdin_default$J);
12867
12956
  var __defProp = Object.defineProperty;
12868
12957
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
12869
12958
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -13575,6 +13664,8 @@ var stdin_default$E = vue.defineComponent({
13575
13664
  default: ""
13576
13665
  },
13577
13666
  selected: Boolean,
13667
+ showDetail: truthProp,
13668
+ stepperTheme: makeStringProp("round-outline"),
13578
13669
  enableInputDialog: truthProp,
13579
13670
  showWarning: Boolean,
13580
13671
  warning: {
@@ -13650,7 +13741,7 @@ var stdin_default$E = vue.defineComponent({
13650
13741
  };
13651
13742
  vue.onBeforeUnmount(clearDetailLongPress);
13652
13743
  return () => {
13653
- var _a, _b, _c, _d, _e;
13744
+ var _a, _b, _c, _d;
13654
13745
  return vue.createVNode("div", {
13655
13746
  "class": bem$x({
13656
13747
  selected: props2.selected
@@ -13679,7 +13770,7 @@ var stdin_default$E = vue.defineComponent({
13679
13770
  "modelValue": props2.modelValue,
13680
13771
  "min": 0,
13681
13772
  "max": props2.max,
13682
- "theme": "round",
13773
+ "theme": props2.stepperTheme,
13683
13774
  "buttonSize": 18,
13684
13775
  "disableInput": true,
13685
13776
  "onUpdate:modelValue": (value) => emit("update:modelValue", Number(value))
@@ -13690,7 +13781,7 @@ var stdin_default$E = vue.defineComponent({
13690
13781
  "onClick": openInputDialog
13691
13782
  }, null)]), vue.createVNode("span", {
13692
13783
  "class": bem$x("unit")
13693
- }, [props2.item.unit])]), vue.createVNode("p", {
13784
+ }, [props2.item.unit])]), props2.showDetail && vue.createVNode("p", {
13694
13785
  "class": bem$x("desc"),
13695
13786
  "onTouchstart": onDetailLongPressStart,
13696
13787
  "onTouchmove": clearDetailLongPress,
@@ -13711,7 +13802,9 @@ var stdin_default$E = vue.defineComponent({
13711
13802
  "style": {
13712
13803
  fontWeight: props2.picking.outboundBold ? 600 : 400
13713
13804
  }
13714
- }, [props2.picking.outboundValue])]), (_e = slots.default) == null ? void 0 : _e.call(slots), vue.createVNode(Dialog.Component, {
13805
+ }, [props2.picking.outboundValue])]), slots.default && vue.createVNode("div", {
13806
+ "class": bem$x("bottom")
13807
+ }, [slots.default()]), vue.createVNode(Dialog.Component, {
13715
13808
  "show": showInputDialog.value,
13716
13809
  "inputValue": inputValue.value,
13717
13810
  "inputAlign": "left",
@@ -14748,7 +14841,6 @@ var stdin_default$y = vue.defineComponent({
14748
14841
  return vue.createVNode(Label, {
14749
14842
  "key": `${field.label}-${index}`,
14750
14843
  "class": bem$t("field"),
14751
- "size": "mini",
14752
14844
  "label": field.label,
14753
14845
  "showLabel": field.showLabel,
14754
14846
  "showContent": field.showContent,
@@ -17286,7 +17378,7 @@ Rate.install = (app) => {
17286
17378
  installRate(app);
17287
17379
  app.use(RateCell);
17288
17380
  };
17289
- const Row = withInstall(stdin_default$1f);
17381
+ const Row = withInstall(stdin_default$1c);
17290
17382
  const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
17291
17383
  const iconMap = {
17292
17384
  qq: "qq",
@@ -18465,8 +18557,11 @@ const titleBarProps = {
18465
18557
  description: makeStringProp(""),
18466
18558
  icon: String,
18467
18559
  showIcon: Boolean,
18560
+ rightIcon: makeStringProp("cross"),
18561
+ showRightIcon: Boolean,
18468
18562
  showDescription: Boolean,
18469
18563
  showArrow: Boolean,
18564
+ showExpandIcon: truthProp,
18470
18565
  actionText: makeStringProp("操作"),
18471
18566
  showAction: Boolean,
18472
18567
  size: makeStringProp("default"),
@@ -18537,11 +18632,14 @@ var stdin_default$9 = vue.defineComponent({
18537
18632
  "onClick": onActionClick
18538
18633
  }, null)])]), props2.size !== "mini" && props2.showDescription && props2.description && vue.createVNode("span", {
18539
18634
  "class": bem$4("description")
18540
- }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props2.description])]), (props2.showArrow || props2.expandable) && vue.createVNode(Icon, {
18635
+ }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props2.description])]), (props2.showArrow || props2.expandable && props2.showExpandIcon) && vue.createVNode(Icon, {
18541
18636
  "name": "arrow-up",
18542
18637
  "class": bem$4("arrow", {
18543
18638
  expanded: props2.expandable && props2.modelValue
18544
18639
  })
18640
+ }, null), props2.showRightIcon && vue.createVNode(Icon, {
18641
+ "name": props2.rightIcon,
18642
+ "class": bem$4("right-icon")
18545
18643
  }, null)]), (!props2.expandable || props2.modelValue) && ((_c = slots.default) == null ? void 0 : _c.call(slots))]);
18546
18644
  };
18547
18645
  }
@@ -20941,7 +21039,7 @@ const Lazyload = {
20941
21039
  });
20942
21040
  }
20943
21041
  };
20944
- const version = "0.0.40";
21042
+ const version = "0.0.41";
20945
21043
  function install(app) {
20946
21044
  const components = [
20947
21045
  ActionBar,