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