persagy-vant 0.0.39 → 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 (113) hide show
  1. package/es/cell/Cell.mjs +21 -11
  2. package/es/cell/index.css +1 -1
  3. package/es/cell/index.less +26 -2
  4. package/es/checkbox-panel/CheckboxPanel.d.ts +46 -1
  5. package/es/checkbox-panel/CheckboxPanel.mjs +121 -35
  6. package/es/checkbox-panel/index.css +1 -1
  7. package/es/checkbox-panel/index.d.ts +35 -1
  8. package/es/checkbox-panel/index.less +8 -2
  9. package/es/checkbox-panel/style/index.mjs +5 -0
  10. package/es/checkbox-panel/style/less.mjs +5 -0
  11. package/es/field/Field.d.ts +18 -1
  12. package/es/field/Field.mjs +21 -2
  13. package/es/field/index.css +1 -1
  14. package/es/field/index.d.ts +13 -1
  15. package/es/field/index.less +15 -0
  16. package/es/index.d.ts +1 -1
  17. package/es/index.mjs +1 -1
  18. package/es/label/Label.d.ts +13 -0
  19. package/es/label/Label.mjs +11 -4
  20. package/es/label/index.css +1 -1
  21. package/es/label/index.d.ts +9 -0
  22. package/es/label/index.less +5 -0
  23. package/es/location-select/style/index.mjs +1 -1
  24. package/es/location-select/style/less.mjs +1 -1
  25. package/es/material-action-bar/MaterialActionBar.d.ts +19 -0
  26. package/es/material-action-bar/MaterialActionBar.mjs +9 -5
  27. package/es/material-action-bar/index.css +1 -1
  28. package/es/material-action-bar/index.d.ts +36 -0
  29. package/es/material-action-bar/index.less +4 -2
  30. package/es/material-add/index.css +1 -1
  31. package/es/material-add/style/index.mjs +1 -1
  32. package/es/material-add/style/less.mjs +1 -1
  33. package/es/material-display-bar/MaterialDisplayBar.d.ts +1 -1
  34. package/es/material-display-bar/MaterialDisplayBar.mjs +0 -1
  35. package/es/material-display-bar/index.css +1 -1
  36. package/es/material-display-bar/index.d.ts +3 -3
  37. package/es/material-display-bar/index.less +2 -1
  38. package/es/material-display-bar/var.less +3 -2
  39. package/es/stepper/Stepper.d.ts +1 -1
  40. package/es/stepper/index.css +1 -1
  41. package/es/stepper/index.less +19 -0
  42. package/es/title-bar/TitleBar.d.ts +30 -0
  43. package/es/title-bar/TitleBar.mjs +7 -1
  44. package/es/title-bar/index.css +1 -1
  45. package/es/title-bar/index.d.ts +21 -0
  46. package/es/title-bar/index.less +4 -2
  47. package/es/uploader/Uploader.d.ts +4 -0
  48. package/es/uploader/Uploader.mjs +3 -2
  49. package/es/uploader/index.d.ts +3 -0
  50. package/lib/cell/Cell.js +21 -11
  51. package/lib/cell/index.css +1 -1
  52. package/lib/cell/index.less +26 -2
  53. package/lib/checkbox-panel/CheckboxPanel.d.ts +46 -1
  54. package/lib/checkbox-panel/CheckboxPanel.js +120 -34
  55. package/lib/checkbox-panel/index.css +1 -1
  56. package/lib/checkbox-panel/index.d.ts +35 -1
  57. package/lib/checkbox-panel/index.less +8 -2
  58. package/lib/checkbox-panel/style/index.js +5 -0
  59. package/lib/checkbox-panel/style/less.js +5 -0
  60. package/lib/field/Field.d.ts +18 -1
  61. package/lib/field/Field.js +21 -2
  62. package/lib/field/index.css +1 -1
  63. package/lib/field/index.d.ts +13 -1
  64. package/lib/field/index.less +15 -0
  65. package/lib/index.css +1 -1
  66. package/lib/index.d.ts +1 -1
  67. package/lib/index.js +1 -1
  68. package/lib/index.less +5 -5
  69. package/lib/label/Label.d.ts +13 -0
  70. package/lib/label/Label.js +11 -4
  71. package/lib/label/index.css +1 -1
  72. package/lib/label/index.d.ts +9 -0
  73. package/lib/label/index.less +5 -0
  74. package/lib/location-select/style/index.js +1 -1
  75. package/lib/location-select/style/less.js +1 -1
  76. package/lib/material-action-bar/MaterialActionBar.d.ts +19 -0
  77. package/lib/material-action-bar/MaterialActionBar.js +8 -4
  78. package/lib/material-action-bar/index.css +1 -1
  79. package/lib/material-action-bar/index.d.ts +36 -0
  80. package/lib/material-action-bar/index.less +4 -2
  81. package/lib/material-add/index.css +1 -1
  82. package/lib/material-add/style/index.js +1 -1
  83. package/lib/material-add/style/less.js +1 -1
  84. package/lib/material-display-bar/MaterialDisplayBar.d.ts +1 -1
  85. package/lib/material-display-bar/MaterialDisplayBar.js +0 -1
  86. package/lib/material-display-bar/index.css +1 -1
  87. package/lib/material-display-bar/index.d.ts +3 -3
  88. package/lib/material-display-bar/index.less +2 -1
  89. package/lib/material-display-bar/var.less +3 -2
  90. package/lib/stepper/Stepper.d.ts +1 -1
  91. package/lib/stepper/index.css +1 -1
  92. package/lib/stepper/index.less +19 -0
  93. package/lib/title-bar/TitleBar.d.ts +30 -0
  94. package/lib/title-bar/TitleBar.js +7 -1
  95. package/lib/title-bar/index.css +1 -1
  96. package/lib/title-bar/index.d.ts +21 -0
  97. package/lib/title-bar/index.less +4 -2
  98. package/lib/uploader/Uploader.d.ts +4 -0
  99. package/lib/uploader/Uploader.js +2 -1
  100. package/lib/uploader/index.d.ts +3 -0
  101. package/lib/vant.cjs.js +924 -796
  102. package/lib/vant.es.js +925 -797
  103. package/lib/vant.js +924 -796
  104. package/lib/vant.min.js +1 -1
  105. package/lib/web-types.json +1 -1
  106. package/package.json +1 -1
  107. package/skills/use-persagy-vant/SKILL.md +7 -6
  108. package/skills/use-persagy-vant/references/component-catalog.md +4 -4
  109. package/skills/use-persagy-vant/references/component-variant-selection.md +39 -0
  110. package/skills/use-persagy-vant/references/design-interaction-baseline.md +1 -0
  111. package/skills/use-persagy-vant/references/element-component-matching.md +89 -0
  112. package/skills/use-persagy-vant/references/page-recipes.md +1 -0
  113. package/skills/use-persagy-vant/references/public-style-system.md +6 -0
package/lib/vant.cjs.js CHANGED
@@ -3398,12 +3398,14 @@ var stdin_default$1L = vue.defineComponent({
3398
3398
  emit("update:multiLineNotesCollapsed", multiLineNotesCollapsed.value);
3399
3399
  }
3400
3400
  }
3401
- }, [props2.showTitleCollapseIcon && vue.createVNode(Icon, {
3401
+ }, [props2.showTitleCollapseIcon && vue.createVNode("div", {
3402
+ "class": bem$1y("title-collapse-action")
3403
+ }, [vue.createVNode(Icon, {
3402
3404
  "name": "trangle-down",
3403
3405
  "class": bem$1y("title-collapse-icon", {
3404
3406
  collapsed: multiLineNotesCollapsed.value
3405
3407
  })
3406
- }, null), slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props2.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
3408
+ }, null)]), slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props2.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
3407
3409
  }
3408
3410
  };
3409
3411
  const renderValue = () => {
@@ -3643,24 +3645,30 @@ var stdin_default$1L = vue.defineComponent({
3643
3645
  return;
3644
3646
  }
3645
3647
  if (slots["right-icon"]) {
3646
- return slots["right-icon"]();
3648
+ return vue.createVNode("div", {
3649
+ "class": bem$1y("right-icon-action")
3650
+ }, [slots["right-icon"]()]);
3647
3651
  }
3648
3652
  if (props2.rightIcon) {
3649
- return vue.createVNode(Icon, {
3653
+ return vue.createVNode("div", {
3654
+ "class": bem$1y("right-icon-action")
3655
+ }, [vue.createVNode(Icon, {
3650
3656
  "name": props2.rightIcon,
3651
3657
  "class": bem$1y("right-icon")
3652
- }, null);
3658
+ }, null)]);
3653
3659
  }
3654
3660
  if (props2.isLink) {
3655
3661
  const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
3656
- return vue.createVNode(Icon, {
3662
+ return vue.createVNode("div", {
3663
+ "class": bem$1y("right-icon-action")
3664
+ }, [vue.createVNode(Icon, {
3657
3665
  "name": name2,
3658
3666
  "class": bem$1y("right-icon")
3659
- }, null);
3667
+ }, null)]);
3660
3668
  }
3661
3669
  };
3662
3670
  return () => {
3663
- var _a2, _b2, _c;
3671
+ var _a2, _b2, _c, _d;
3664
3672
  const {
3665
3673
  size,
3666
3674
  center,
@@ -3673,14 +3681,16 @@ var stdin_default$1L = vue.defineComponent({
3673
3681
  } = props2;
3674
3682
  const clickable = (_a2 = props2.clickable) != null ? _a2 : isLink || rightIcon === "arrow" || hasSelect("left") || hasSelect("right");
3675
3683
  const hasBadge = isVisible(props2.showBadge, !!slots.badge || isDef(props2.badge));
3676
- const cellSize = (_b2 = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
3684
+ const hasMultiLineNotes = isVisible(props2.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_b2 = props2.multiLineNotes) == null ? void 0 : _b2.length));
3685
+ const cellSize = (_c = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _c : "normal";
3677
3686
  const classes = {
3678
3687
  center: center || hasBadge,
3679
3688
  required,
3680
3689
  "title-bold": titleBold,
3681
3690
  clickable,
3682
3691
  borderless: !border,
3683
- "three-line": threeLine
3692
+ "three-line": threeLine,
3693
+ "multi-line-notes": hasMultiLineNotes
3684
3694
  };
3685
3695
  if (cellSize) {
3686
3696
  classes[cellSize] = !!cellSize;
@@ -3699,7 +3709,7 @@ var stdin_default$1L = vue.defineComponent({
3699
3709
  "role": clickable ? "button" : void 0,
3700
3710
  "tabindex": clickable ? 0 : void 0,
3701
3711
  "onClick": onClick
3702
- }, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (_c = slots.extra) == null ? void 0 : _c.call(slots)]);
3712
+ }, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (_d = slots.extra) == null ? void 0 : _d.call(slots)]);
3703
3713
  };
3704
3714
  }
3705
3715
  });
@@ -3994,6 +4004,11 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
3994
4004
  labelClass: unknownProp,
3995
4005
  labelAlign: String,
3996
4006
  labelPosition: String,
4007
+ unit: numericProp,
4008
+ showUnit: {
4009
+ type: Boolean,
4010
+ default: void 0
4011
+ },
3997
4012
  showWordLimit: Boolean,
3998
4013
  errorMessageAlign: String,
3999
4014
  colon: {
@@ -4008,7 +4023,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
4008
4023
  var stdin_default$1J = vue.defineComponent({
4009
4024
  name: name$1A,
4010
4025
  props: fieldProps,
4011
- emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
4026
+ emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "click-title-icon", "update:modelValue"],
4012
4027
  setup(props2, {
4013
4028
  emit,
4014
4029
  slots
@@ -4341,6 +4356,16 @@ var stdin_default$1J = vue.defineComponent({
4341
4356
  }, null)]);
4342
4357
  }
4343
4358
  };
4359
+ const renderUnit = () => {
4360
+ var _a;
4361
+ const showUnit = (_a = props2.showUnit) != null ? _a : isDef(props2.unit);
4362
+ if (!showUnit || !isDef(props2.unit)) {
4363
+ return;
4364
+ }
4365
+ return vue.createVNode("span", {
4366
+ "class": bem$1w("unit")
4367
+ }, [props2.unit]);
4368
+ };
4344
4369
  const renderWordLimit = () => {
4345
4370
  if (props2.showWordLimit && props2.maxlength) {
4346
4371
  const count = getStringLength(getModelValue());
@@ -4380,7 +4405,7 @@ var stdin_default$1J = vue.defineComponent({
4380
4405
  };
4381
4406
  const renderFieldBody = () => [vue.createVNode("div", {
4382
4407
  "class": bem$1w("body")
4383
- }, [renderInput(), showClear.value && vue.createVNode(Icon, {
4408
+ }, [renderInput(), renderUnit(), showClear.value && vue.createVNode(Icon, {
4384
4409
  "ref": clearIconRef,
4385
4410
  "name": props2.clearIcon,
4386
4411
  "class": bem$1w("clear")
@@ -4435,6 +4460,10 @@ var stdin_default$1J = vue.defineComponent({
4435
4460
  "errorBorder": props2.errorBorder,
4436
4461
  "isLink": props2.isLink,
4437
4462
  "clickable": props2.clickable,
4463
+ "titleIcon": props2.titleIcon,
4464
+ "titleIconClickable": props2.titleIconClickable,
4465
+ "showTitleIcon": props2.showTitleIcon,
4466
+ "onClick-title-icon": (event) => emit("click-title-icon", event),
4438
4467
  "titleStyle": labelStyle.value,
4439
4468
  "valueClass": bem$1w("value"),
4440
4469
  "titleClass": [bem$1w("label", [labelAlign, {
@@ -8439,200 +8468,574 @@ var stdin_default$1i = vue.defineComponent({
8439
8468
  });
8440
8469
  const CellGroup = withInstall(stdin_default$1i);
8441
8470
  const CheckboxGroup = withInstall(stdin_default$1R);
8442
- const [name$18, bem$17] = createNamespace("checkbox-panel");
8443
- const checkboxPanelProps = {
8444
- show: Boolean,
8445
- title: String,
8446
- options: makeArrayProp(),
8447
- modelValue: Array,
8448
- confirmText: makeStringProp("确定"),
8449
- selectAllText: makeStringProp("全选"),
8450
- cancelSelectAllText: makeStringProp("取消全选")
8471
+ const [name$18, bem$17] = createNamespace("empty");
8472
+ const emptyProps = {
8473
+ image: makeStringProp("default"),
8474
+ imageSize: [Number, String, Array],
8475
+ description: String
8451
8476
  };
8452
8477
  var stdin_default$1h = vue.defineComponent({
8453
8478
  name: name$18,
8454
- props: checkboxPanelProps,
8455
- emits: ["update:show", "update:modelValue", "confirm"],
8479
+ props: emptyProps,
8456
8480
  setup(props2, {
8457
- emit
8481
+ slots
8458
8482
  }) {
8459
- const selectedValues = vue.computed(() => props2.modelValue || []);
8460
- const selectableOptions = vue.computed(() => props2.options.filter((option) => !option.disabled));
8461
- const isAllSelected = vue.computed(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
8462
- const close = () => emit("update:show", false);
8463
- const toggleOption = (option) => {
8464
- if (option.disabled)
8465
- return;
8466
- const values = [...selectedValues.value];
8467
- const index = values.indexOf(option.value);
8468
- index === -1 ? values.push(option.value) : values.splice(index, 1);
8469
- emit("update:modelValue", values);
8483
+ const renderDescription = () => {
8484
+ const description = slots.description ? slots.description() : props2.description;
8485
+ if (description) {
8486
+ return vue.createVNode("p", {
8487
+ "class": bem$17("description")
8488
+ }, [description]);
8489
+ }
8470
8490
  };
8471
- const toggleAll = () => emit("update:modelValue", isAllSelected.value ? [] : selectableOptions.value.map((option) => option.value));
8472
- const confirm = () => {
8473
- emit("confirm", selectedValues.value);
8474
- close();
8491
+ const renderBottom = () => {
8492
+ if (slots.default) {
8493
+ return vue.createVNode("div", {
8494
+ "class": bem$17("bottom")
8495
+ }, [slots.default()]);
8496
+ }
8475
8497
  };
8476
- return () => vue.createVNode(ActionSheet, {
8477
- "show": props2.show,
8478
- "class": bem$17(),
8479
- "onUpdate:show": (show) => emit("update:show", show)
8480
- }, {
8481
- default: () => [vue.createVNode("div", {
8482
- "class": bem$17("content")
8483
- }, [vue.createVNode("div", {
8484
- "class": bem$17("nav-wrapper")
8485
- }, [vue.createVNode(NavBar, {
8486
- "title": props2.title,
8487
- "border": false,
8488
- "class": bem$17("nav")
8489
- }, {
8490
- left: () => vue.createVNode(Icon, {
8491
- "name": "cross",
8492
- "size": "22",
8493
- "onClick": close
8494
- }, null),
8495
- right: () => vue.createVNode("span", {
8496
- "class": bem$17("select-all"),
8497
- "onClick": toggleAll
8498
- }, [isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText])
8499
- })]), vue.createVNode("div", {
8500
- "class": bem$17("body")
8501
- }, [vue.createVNode(CheckboxGroup, {
8502
- "modelValue": selectedValues.value,
8503
- "class": bem$17("card"),
8504
- "onUpdate:modelValue": (value) => emit("update:modelValue", value)
8505
- }, {
8506
- default: () => [props2.options.map((option) => vue.createVNode(Cell, {
8507
- "key": option.value,
8508
- "clickable": !option.disabled,
8509
- "title": option.label,
8510
- "onClick": () => toggleOption(option)
8511
- }, {
8512
- "right-icon": () => vue.createVNode(Checkbox, {
8513
- "name": option.value,
8514
- "disabled": option.disabled,
8515
- "onClick": (event) => event.stopPropagation()
8516
- }, null)
8517
- }))]
8518
- })]), vue.createVNode("div", {
8519
- "class": bem$17("footer")
8520
- }, [vue.createVNode(Button, {
8521
- "block": true,
8522
- "type": "primary",
8523
- "onClick": confirm
8524
- }, {
8525
- default: () => [props2.confirmText]
8526
- })])])]
8527
- });
8498
+ const renderImage = () => {
8499
+ if (slots.image) {
8500
+ return slots.image();
8501
+ }
8502
+ if (props2.image === "default" || props2.image === "network") {
8503
+ return vue.createVNode("div", {
8504
+ "class": bem$17("image-preset", props2.image)
8505
+ }, null);
8506
+ }
8507
+ return vue.createVNode("img", {
8508
+ "src": props2.image
8509
+ }, null);
8510
+ };
8511
+ return () => vue.createVNode("div", {
8512
+ "class": bem$17()
8513
+ }, [vue.createVNode("div", {
8514
+ "class": bem$17("image"),
8515
+ "style": getSizeStyle(props2.imageSize)
8516
+ }, [renderImage()]), renderDescription(), renderBottom()]);
8528
8517
  }
8529
8518
  });
8530
- const CheckboxPanel = withInstall(stdin_default$1h);
8531
- const [name$17, bem$16] = createNamespace("circle");
8532
- let uid = 0;
8533
- const format = (rate) => Math.min(Math.max(+rate, 0), 100);
8534
- function getPath(clockwise, viewBoxSize) {
8535
- const sweepFlag = clockwise ? 1 : 0;
8536
- return `M ${viewBoxSize / 2} ${viewBoxSize / 2} m 0, -500 a 500, 500 0 1, ${sweepFlag} 0, 1000 a 500, 500 0 1, ${sweepFlag} 0, -1000`;
8537
- }
8538
- const circleProps = {
8539
- text: String,
8540
- size: numericProp,
8541
- fill: makeStringProp("none"),
8542
- rate: makeNumericProp(100),
8543
- speed: makeNumericProp(0),
8544
- color: [String, Object],
8545
- clockwise: truthProp,
8546
- layerColor: String,
8547
- currentRate: makeNumberProp(0),
8548
- strokeWidth: makeNumericProp(40),
8549
- strokeLinecap: String,
8550
- startPosition: makeStringProp("top")
8519
+ const Empty = withInstall(stdin_default$1h);
8520
+ const [name$17, bem$16, t$d] = createNamespace("list");
8521
+ const listProps = {
8522
+ error: Boolean,
8523
+ offset: makeNumericProp(300),
8524
+ loading: Boolean,
8525
+ finished: Boolean,
8526
+ errorText: String,
8527
+ direction: makeStringProp("down"),
8528
+ loadingText: String,
8529
+ finishedText: String,
8530
+ immediateCheck: truthProp
8551
8531
  };
8552
8532
  var stdin_default$1g = vue.defineComponent({
8553
8533
  name: name$17,
8554
- props: circleProps,
8555
- emits: ["update:currentRate"],
8534
+ props: listProps,
8535
+ emits: ["load", "update:error", "update:loading"],
8556
8536
  setup(props2, {
8557
8537
  emit,
8558
8538
  slots
8559
8539
  }) {
8560
- const id = `van-circle-${uid++}`;
8561
- const viewBoxSize = vue.computed(() => +props2.strokeWidth + 1e3);
8562
- const path = vue.computed(() => getPath(props2.clockwise, viewBoxSize.value));
8563
- const svgStyle = vue.computed(() => {
8564
- const ROTATE_ANGLE_MAP = {
8565
- top: 0,
8566
- right: 90,
8567
- bottom: 180,
8568
- left: 270
8569
- };
8570
- const angleValue = ROTATE_ANGLE_MAP[props2.startPosition];
8571
- if (angleValue) {
8572
- return {
8573
- transform: `rotate(${angleValue}deg)`
8574
- };
8575
- }
8576
- });
8577
- vue.watch(() => props2.rate, (rate) => {
8578
- let rafId;
8579
- const startTime = Date.now();
8580
- const startRate = props2.currentRate;
8581
- const endRate = format(rate);
8582
- const duration = Math.abs((startRate - endRate) * 1e3 / +props2.speed);
8583
- const animate = () => {
8584
- const now = Date.now();
8585
- const progress = Math.min((now - startTime) / duration, 1);
8586
- const rate2 = progress * (endRate - startRate) + startRate;
8587
- emit("update:currentRate", format(parseFloat(rate2.toFixed(1))));
8588
- if (endRate > startRate ? rate2 < endRate : rate2 > endRate) {
8589
- rafId = use.raf(animate);
8540
+ const loading = vue.ref(props2.loading);
8541
+ const root = vue.ref();
8542
+ const placeholder = vue.ref();
8543
+ const tabStatus = useTabStatus();
8544
+ const scrollParent = use.useScrollParent(root);
8545
+ const check = () => {
8546
+ vue.nextTick(() => {
8547
+ if (loading.value || props2.finished || props2.error || // skip check when inside an inactive tab
8548
+ (tabStatus == null ? void 0 : tabStatus.value) === false) {
8549
+ return;
8590
8550
  }
8591
- };
8592
- if (props2.speed) {
8593
- if (rafId) {
8594
- use.cancelRaf(rafId);
8551
+ const {
8552
+ offset,
8553
+ direction
8554
+ } = props2;
8555
+ const scrollParentRect = use.useRect(scrollParent);
8556
+ if (!scrollParentRect.height || isHidden(root)) {
8557
+ return;
8595
8558
  }
8596
- rafId = use.raf(animate);
8597
- } else {
8598
- emit("update:currentRate", endRate);
8599
- }
8600
- }, {
8601
- immediate: true
8602
- });
8603
- const renderHover = () => {
8604
- const PERIMETER = 3140;
8605
- const {
8606
- strokeWidth,
8607
- currentRate,
8608
- strokeLinecap
8609
- } = props2;
8610
- const offset = PERIMETER * currentRate / 100;
8611
- const color = isObject(props2.color) ? `url(#${id})` : props2.color;
8612
- const style = {
8613
- stroke: color,
8614
- strokeWidth: `${+strokeWidth + 1}px`,
8615
- strokeLinecap,
8616
- strokeDasharray: `${offset}px ${PERIMETER}px`
8617
- };
8618
- return vue.createVNode("path", {
8619
- "d": path.value,
8620
- "style": style,
8621
- "class": bem$16("hover"),
8622
- "stroke": color
8623
- }, null);
8559
+ let isReachEdge = false;
8560
+ const placeholderRect = use.useRect(placeholder);
8561
+ if (direction === "up") {
8562
+ isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;
8563
+ } else {
8564
+ isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;
8565
+ }
8566
+ if (isReachEdge) {
8567
+ loading.value = true;
8568
+ emit("update:loading", true);
8569
+ emit("load");
8570
+ }
8571
+ });
8624
8572
  };
8625
- const renderLayer = () => {
8626
- const style = {
8627
- fill: props2.fill,
8628
- stroke: props2.layerColor,
8629
- strokeWidth: `${props2.strokeWidth}px`
8630
- };
8631
- return vue.createVNode("path", {
8632
- "class": bem$16("layer"),
8633
- "style": style,
8634
- "d": path.value
8635
- }, null);
8573
+ const renderFinishedText = () => {
8574
+ if (props2.finished) {
8575
+ const text = slots.finished ? slots.finished() : props2.finishedText;
8576
+ if (text) {
8577
+ return vue.createVNode("div", {
8578
+ "class": bem$16("finished-text")
8579
+ }, [text]);
8580
+ }
8581
+ }
8582
+ };
8583
+ const clickErrorText = () => {
8584
+ emit("update:error", false);
8585
+ check();
8586
+ };
8587
+ const renderErrorText = () => {
8588
+ if (props2.error) {
8589
+ const text = slots.error ? slots.error() : props2.errorText;
8590
+ if (text) {
8591
+ return vue.createVNode("div", {
8592
+ "role": "button",
8593
+ "class": bem$16("error-text"),
8594
+ "tabindex": 0,
8595
+ "onClick": clickErrorText
8596
+ }, [text]);
8597
+ }
8598
+ }
8599
+ };
8600
+ const renderLoading = () => {
8601
+ if (loading.value && !props2.finished) {
8602
+ return vue.createVNode("div", {
8603
+ "class": bem$16("loading")
8604
+ }, [slots.loading ? slots.loading() : vue.createVNode(Loading, {
8605
+ "class": bem$16("loading-icon")
8606
+ }, {
8607
+ default: () => [props2.loadingText || t$d("loading")]
8608
+ })]);
8609
+ }
8610
+ };
8611
+ vue.watch(() => [props2.loading, props2.finished, props2.error], check);
8612
+ if (tabStatus) {
8613
+ vue.watch(tabStatus, (tabActive) => {
8614
+ if (tabActive) {
8615
+ check();
8616
+ }
8617
+ });
8618
+ }
8619
+ vue.onUpdated(() => {
8620
+ loading.value = props2.loading;
8621
+ });
8622
+ vue.onMounted(() => {
8623
+ if (props2.immediateCheck) {
8624
+ check();
8625
+ }
8626
+ });
8627
+ useExpose({
8628
+ check
8629
+ });
8630
+ use.useEventListener("scroll", check, {
8631
+ target: scrollParent,
8632
+ passive: true
8633
+ });
8634
+ return () => {
8635
+ var _a;
8636
+ const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
8637
+ const Placeholder = vue.createVNode("div", {
8638
+ "ref": placeholder,
8639
+ "class": bem$16("placeholder")
8640
+ }, null);
8641
+ return vue.createVNode("div", {
8642
+ "ref": root,
8643
+ "role": "feed",
8644
+ "class": bem$16(),
8645
+ "aria-busy": loading.value
8646
+ }, [props2.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props2.direction === "up" ? Content : Placeholder]);
8647
+ };
8648
+ }
8649
+ });
8650
+ const List = withInstall(stdin_default$1g);
8651
+ const [name$16, bem$15, t$c] = createNamespace("search");
8652
+ const searchProps = extend({}, fieldSharedProps, {
8653
+ label: String,
8654
+ shape: makeStringProp("round"),
8655
+ variant: makeStringProp("default"),
8656
+ inputAlign: makeStringProp("left"),
8657
+ leftIcon: makeStringProp("search"),
8658
+ clearable: truthProp,
8659
+ actionText: String,
8660
+ background: String,
8661
+ showAction: Boolean
8662
+ });
8663
+ var stdin_default$1f = vue.defineComponent({
8664
+ name: name$16,
8665
+ props: searchProps,
8666
+ emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
8667
+ setup(props2, {
8668
+ emit,
8669
+ slots,
8670
+ attrs
8671
+ }) {
8672
+ const id = useId();
8673
+ const filedRef = vue.ref();
8674
+ const onCancel = () => {
8675
+ if (!slots.action) {
8676
+ emit("update:modelValue", "");
8677
+ emit("cancel");
8678
+ }
8679
+ };
8680
+ const onKeypress = (event) => {
8681
+ const ENTER_CODE = 13;
8682
+ if (event.keyCode === ENTER_CODE) {
8683
+ preventDefault(event);
8684
+ emit("search", props2.modelValue);
8685
+ }
8686
+ };
8687
+ const getInputId = () => props2.id || `${id}-input`;
8688
+ const renderLabel = () => {
8689
+ if (slots.label || props2.label) {
8690
+ return vue.createVNode("label", {
8691
+ "class": bem$15("label"),
8692
+ "for": getInputId()
8693
+ }, [slots.label ? slots.label() : props2.label]);
8694
+ }
8695
+ };
8696
+ const renderAction = () => {
8697
+ if (props2.showAction) {
8698
+ const text = props2.actionText || t$c("cancel");
8699
+ return vue.createVNode("div", {
8700
+ "class": bem$15("action"),
8701
+ "role": "button",
8702
+ "tabindex": 0,
8703
+ "onClick": onCancel
8704
+ }, [slots.action ? slots.action() : text]);
8705
+ }
8706
+ };
8707
+ const blur = () => {
8708
+ var _a;
8709
+ return (_a = filedRef.value) == null ? void 0 : _a.blur();
8710
+ };
8711
+ const focus = () => {
8712
+ var _a;
8713
+ return (_a = filedRef.value) == null ? void 0 : _a.focus();
8714
+ };
8715
+ const onBlur = (event) => emit("blur", event);
8716
+ const onFocus = (event) => emit("focus", event);
8717
+ const onClear = (event) => emit("clear", event);
8718
+ const onClickInput = (event) => emit("click-input", event);
8719
+ const onClickLeftIcon = (event) => emit("click-left-icon", event);
8720
+ const onClickRightIcon = (event) => emit("click-right-icon", event);
8721
+ const fieldPropNames = Object.keys(fieldSharedProps);
8722
+ const renderField = () => {
8723
+ const fieldAttrs = extend({}, attrs, pick(props2, fieldPropNames), {
8724
+ id: getInputId()
8725
+ });
8726
+ const onInput = (value) => emit("update:modelValue", value);
8727
+ return vue.createVNode(Field, vue.mergeProps({
8728
+ "ref": filedRef,
8729
+ "type": "search",
8730
+ "class": bem$15("field"),
8731
+ "border": false,
8732
+ "onBlur": onBlur,
8733
+ "onFocus": onFocus,
8734
+ "onClear": onClear,
8735
+ "onKeypress": onKeypress,
8736
+ "onClick-input": onClickInput,
8737
+ "onClick-left-icon": onClickLeftIcon,
8738
+ "onClick-right-icon": onClickRightIcon,
8739
+ "onUpdate:modelValue": onInput
8740
+ }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
8741
+ };
8742
+ useExpose({
8743
+ focus,
8744
+ blur
8745
+ });
8746
+ return () => {
8747
+ var _a;
8748
+ return vue.createVNode("div", {
8749
+ "class": bem$15({
8750
+ "show-action": props2.showAction,
8751
+ pure: props2.variant === "pure"
8752
+ }),
8753
+ "style": {
8754
+ background: props2.variant === "default" ? props2.background : void 0
8755
+ }
8756
+ }, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
8757
+ "class": bem$15("content", props2.shape)
8758
+ }, [renderLabel(), renderField()]), renderAction()]);
8759
+ };
8760
+ }
8761
+ });
8762
+ const Search = withInstall(stdin_default$1f);
8763
+ const [name$15, bem$14] = createNamespace("checkbox-panel");
8764
+ const escapeRegExp$1 = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8765
+ const checkboxPanelProps = {
8766
+ show: Boolean,
8767
+ title: String,
8768
+ options: makeArrayProp(),
8769
+ modelValue: Array,
8770
+ searchable: Boolean,
8771
+ searchPlaceholder: String,
8772
+ filterable: Boolean,
8773
+ filterActive: Boolean,
8774
+ loading: Boolean,
8775
+ finished: Boolean,
8776
+ error: Boolean,
8777
+ lazy: Boolean,
8778
+ loadingText: String,
8779
+ finishedText: String,
8780
+ errorText: String,
8781
+ confirmText: makeStringProp("确定"),
8782
+ selectAllText: makeStringProp("全选"),
8783
+ cancelSelectAllText: makeStringProp("取消全选")
8784
+ };
8785
+ var stdin_default$1e = vue.defineComponent({
8786
+ name: name$15,
8787
+ props: checkboxPanelProps,
8788
+ emits: ["update:show", "update:modelValue", "update:loading", "update:error", "confirm", "search", "filter", "load"],
8789
+ setup(props2, {
8790
+ emit,
8791
+ slots
8792
+ }) {
8793
+ const keyword = vue.ref("");
8794
+ const selectedValues = vue.computed(() => props2.modelValue || []);
8795
+ const filteredOptions = vue.computed(() => {
8796
+ const query = keyword.value.trim().toLocaleLowerCase();
8797
+ if (!query)
8798
+ return props2.options;
8799
+ return props2.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
8800
+ });
8801
+ const selectableOptions = vue.computed(() => filteredOptions.value.filter((option) => !option.disabled));
8802
+ const isAllSelected = vue.computed(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
8803
+ const close = () => emit("update:show", false);
8804
+ const toggleOption = (option) => {
8805
+ if (option.disabled)
8806
+ return;
8807
+ const values = [...selectedValues.value];
8808
+ const index = values.indexOf(option.value);
8809
+ index === -1 ? values.push(option.value) : values.splice(index, 1);
8810
+ emit("update:modelValue", values);
8811
+ };
8812
+ const toggleAll = () => {
8813
+ const selectableValues = selectableOptions.value.map((option) => option.value);
8814
+ const values = isAllSelected.value ? selectedValues.value.filter((value) => !selectableValues.includes(value)) : [.../* @__PURE__ */ new Set([...selectedValues.value, ...selectableValues])];
8815
+ emit("update:modelValue", values);
8816
+ };
8817
+ const confirm = () => {
8818
+ emit("confirm", selectedValues.value);
8819
+ close();
8820
+ };
8821
+ const renderOptionLabel = (label) => {
8822
+ const query = keyword.value.trim();
8823
+ if (!query)
8824
+ return label;
8825
+ const normalizedQuery = query.toLocaleLowerCase();
8826
+ return label.split(new RegExp(`(${escapeRegExp$1(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? vue.createVNode("span", {
8827
+ "class": bem$14("match")
8828
+ }, [part]) : part);
8829
+ };
8830
+ const renderOptions = () => {
8831
+ if (!filteredOptions.value.length) {
8832
+ return vue.createVNode(Empty, {
8833
+ "imageSize": 60,
8834
+ "description": "暂无匹配选项"
8835
+ }, null);
8836
+ }
8837
+ return vue.createVNode(CheckboxGroup, {
8838
+ "modelValue": selectedValues.value,
8839
+ "class": bem$14("card"),
8840
+ "onUpdate:modelValue": (value) => emit("update:modelValue", value)
8841
+ }, {
8842
+ default: () => [filteredOptions.value.map((option) => vue.createVNode(Cell, {
8843
+ "key": option.value,
8844
+ "clickable": !option.disabled,
8845
+ "title": option.label,
8846
+ "onClick": () => toggleOption(option)
8847
+ }, {
8848
+ title: () => renderOptionLabel(option.label),
8849
+ "right-icon": () => vue.createVNode(Checkbox, {
8850
+ "name": option.value,
8851
+ "disabled": option.disabled,
8852
+ "onClick": (event) => event.stopPropagation()
8853
+ }, null)
8854
+ }))]
8855
+ });
8856
+ };
8857
+ return () => vue.createVNode(ActionSheet, {
8858
+ "show": props2.show,
8859
+ "class": bem$14(),
8860
+ "onUpdate:show": (show) => emit("update:show", show)
8861
+ }, {
8862
+ default: () => [vue.createVNode("div", {
8863
+ "class": bem$14("content")
8864
+ }, [vue.createVNode("div", {
8865
+ "class": bem$14("nav-wrapper")
8866
+ }, [vue.createVNode(NavBar, {
8867
+ "title": props2.title,
8868
+ "border": false,
8869
+ "class": bem$14("nav")
8870
+ }, {
8871
+ left: () => vue.createVNode(Icon, {
8872
+ "name": "cross",
8873
+ "size": "22",
8874
+ "onClick": close
8875
+ }, null),
8876
+ right: () => {
8877
+ if (slots.filter)
8878
+ return slots.filter();
8879
+ if (!props2.filterable)
8880
+ return;
8881
+ return vue.createVNode("button", {
8882
+ "type": "button",
8883
+ "class": bem$14("filter"),
8884
+ "aria-label": "筛选",
8885
+ "onClick": () => emit("filter")
8886
+ }, [vue.createVNode(Badge, {
8887
+ "dot": props2.filterActive
8888
+ }, {
8889
+ default: () => [vue.createVNode(Icon, {
8890
+ "name": "filter-o",
8891
+ "size": "22"
8892
+ }, null)]
8893
+ })]);
8894
+ }
8895
+ })]), props2.searchable && vue.createVNode(Search, {
8896
+ "modelValue": keyword.value,
8897
+ "class": bem$14("search"),
8898
+ "shape": "round",
8899
+ "inputAlign": "left",
8900
+ "placeholder": props2.searchPlaceholder || "请输入搜索关键词",
8901
+ "maxlength": 200,
8902
+ "onUpdate:modelValue": (value) => {
8903
+ keyword.value = value;
8904
+ emit("search", value);
8905
+ },
8906
+ "onSearch": (value) => emit("search", value)
8907
+ }, null), vue.createVNode("div", {
8908
+ "class": bem$14("body")
8909
+ }, [props2.lazy ? vue.createVNode(List, {
8910
+ "loading": props2.loading,
8911
+ "finished": props2.finished,
8912
+ "error": props2.error,
8913
+ "loadingText": props2.loadingText,
8914
+ "finishedText": props2.finishedText,
8915
+ "errorText": props2.errorText,
8916
+ "onUpdate:loading": (value) => emit("update:loading", value),
8917
+ "onUpdate:error": (value) => emit("update:error", value),
8918
+ "onLoad": () => emit("load")
8919
+ }, {
8920
+ default: () => [renderOptions()]
8921
+ }) : renderOptions()]), vue.createVNode("div", {
8922
+ "class": bem$14("footer")
8923
+ }, [vue.createVNode(BottomActionBar, {
8924
+ "fixed": false,
8925
+ "secondaryText": isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText,
8926
+ "confirmText": props2.confirmText,
8927
+ "onSecondary": toggleAll,
8928
+ "onConfirm": confirm
8929
+ }, null)])])]
8930
+ });
8931
+ }
8932
+ });
8933
+ const CheckboxPanel = withInstall(stdin_default$1e);
8934
+ const [name$14, bem$13] = createNamespace("circle");
8935
+ let uid = 0;
8936
+ const format = (rate) => Math.min(Math.max(+rate, 0), 100);
8937
+ function getPath(clockwise, viewBoxSize) {
8938
+ const sweepFlag = clockwise ? 1 : 0;
8939
+ return `M ${viewBoxSize / 2} ${viewBoxSize / 2} m 0, -500 a 500, 500 0 1, ${sweepFlag} 0, 1000 a 500, 500 0 1, ${sweepFlag} 0, -1000`;
8940
+ }
8941
+ const circleProps = {
8942
+ text: String,
8943
+ size: numericProp,
8944
+ fill: makeStringProp("none"),
8945
+ rate: makeNumericProp(100),
8946
+ speed: makeNumericProp(0),
8947
+ color: [String, Object],
8948
+ clockwise: truthProp,
8949
+ layerColor: String,
8950
+ currentRate: makeNumberProp(0),
8951
+ strokeWidth: makeNumericProp(40),
8952
+ strokeLinecap: String,
8953
+ startPosition: makeStringProp("top")
8954
+ };
8955
+ var stdin_default$1d = vue.defineComponent({
8956
+ name: name$14,
8957
+ props: circleProps,
8958
+ emits: ["update:currentRate"],
8959
+ setup(props2, {
8960
+ emit,
8961
+ slots
8962
+ }) {
8963
+ const id = `van-circle-${uid++}`;
8964
+ const viewBoxSize = vue.computed(() => +props2.strokeWidth + 1e3);
8965
+ const path = vue.computed(() => getPath(props2.clockwise, viewBoxSize.value));
8966
+ const svgStyle = vue.computed(() => {
8967
+ const ROTATE_ANGLE_MAP = {
8968
+ top: 0,
8969
+ right: 90,
8970
+ bottom: 180,
8971
+ left: 270
8972
+ };
8973
+ const angleValue = ROTATE_ANGLE_MAP[props2.startPosition];
8974
+ if (angleValue) {
8975
+ return {
8976
+ transform: `rotate(${angleValue}deg)`
8977
+ };
8978
+ }
8979
+ });
8980
+ vue.watch(() => props2.rate, (rate) => {
8981
+ let rafId;
8982
+ const startTime = Date.now();
8983
+ const startRate = props2.currentRate;
8984
+ const endRate = format(rate);
8985
+ const duration = Math.abs((startRate - endRate) * 1e3 / +props2.speed);
8986
+ const animate = () => {
8987
+ const now = Date.now();
8988
+ const progress = Math.min((now - startTime) / duration, 1);
8989
+ const rate2 = progress * (endRate - startRate) + startRate;
8990
+ emit("update:currentRate", format(parseFloat(rate2.toFixed(1))));
8991
+ if (endRate > startRate ? rate2 < endRate : rate2 > endRate) {
8992
+ rafId = use.raf(animate);
8993
+ }
8994
+ };
8995
+ if (props2.speed) {
8996
+ if (rafId) {
8997
+ use.cancelRaf(rafId);
8998
+ }
8999
+ rafId = use.raf(animate);
9000
+ } else {
9001
+ emit("update:currentRate", endRate);
9002
+ }
9003
+ }, {
9004
+ immediate: true
9005
+ });
9006
+ const renderHover = () => {
9007
+ const PERIMETER = 3140;
9008
+ const {
9009
+ strokeWidth,
9010
+ currentRate,
9011
+ strokeLinecap
9012
+ } = props2;
9013
+ const offset = PERIMETER * currentRate / 100;
9014
+ const color = isObject(props2.color) ? `url(#${id})` : props2.color;
9015
+ const style = {
9016
+ stroke: color,
9017
+ strokeWidth: `${+strokeWidth + 1}px`,
9018
+ strokeLinecap,
9019
+ strokeDasharray: `${offset}px ${PERIMETER}px`
9020
+ };
9021
+ return vue.createVNode("path", {
9022
+ "d": path.value,
9023
+ "style": style,
9024
+ "class": bem$13("hover"),
9025
+ "stroke": color
9026
+ }, null);
9027
+ };
9028
+ const renderLayer = () => {
9029
+ const style = {
9030
+ fill: props2.fill,
9031
+ stroke: props2.layerColor,
9032
+ strokeWidth: `${props2.strokeWidth}px`
9033
+ };
9034
+ return vue.createVNode("path", {
9035
+ "class": bem$13("layer"),
9036
+ "style": style,
9037
+ "d": path.value
9038
+ }, null);
8636
9039
  };
8637
9040
  const renderGradient = () => {
8638
9041
  const {
@@ -8660,12 +9063,12 @@ var stdin_default$1g = vue.defineComponent({
8660
9063
  }
8661
9064
  if (props2.text) {
8662
9065
  return vue.createVNode("div", {
8663
- "class": bem$16("text")
9066
+ "class": bem$13("text")
8664
9067
  }, [props2.text]);
8665
9068
  }
8666
9069
  };
8667
9070
  return () => vue.createVNode("div", {
8668
- "class": bem$16(),
9071
+ "class": bem$13(),
8669
9072
  "style": getSizeStyle(props2.size)
8670
9073
  }, [vue.createVNode("svg", {
8671
9074
  "viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
@@ -8673,9 +9076,9 @@ var stdin_default$1g = vue.defineComponent({
8673
9076
  }, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
8674
9077
  }
8675
9078
  });
8676
- const Circle = withInstall(stdin_default$1g);
8677
- const [name$16, bem$15] = createNamespace("row");
8678
- const ROW_KEY = Symbol(name$16);
9079
+ const Circle = withInstall(stdin_default$1d);
9080
+ const [name$13, bem$12] = createNamespace("row");
9081
+ const ROW_KEY = Symbol(name$13);
8679
9082
  const rowProps = {
8680
9083
  tag: makeStringProp("div"),
8681
9084
  wrap: truthProp,
@@ -8683,8 +9086,8 @@ const rowProps = {
8683
9086
  gutter: makeNumericProp(0),
8684
9087
  justify: String
8685
9088
  };
8686
- var stdin_default$1f = vue.defineComponent({
8687
- name: name$16,
9089
+ var stdin_default$1c = vue.defineComponent({
9090
+ name: name$13,
8688
9091
  props: rowProps,
8689
9092
  setup(props2, {
8690
9093
  slots
@@ -8743,7 +9146,7 @@ var stdin_default$1f = vue.defineComponent({
8743
9146
  justify
8744
9147
  } = props2;
8745
9148
  return vue.createVNode(tag, {
8746
- "class": bem$15({
9149
+ "class": bem$12({
8747
9150
  [`align-${align}`]: align,
8748
9151
  [`justify-${justify}`]: justify,
8749
9152
  nowrap: !wrap
@@ -8757,14 +9160,14 @@ var stdin_default$1f = vue.defineComponent({
8757
9160
  };
8758
9161
  }
8759
9162
  });
8760
- const [name$15, bem$14] = createNamespace("col");
9163
+ const [name$12, bem$11] = createNamespace("col");
8761
9164
  const colProps = {
8762
9165
  tag: makeStringProp("div"),
8763
9166
  span: makeNumericProp(0),
8764
9167
  offset: numericProp
8765
9168
  };
8766
- var stdin_default$1e = vue.defineComponent({
8767
- name: name$15,
9169
+ var stdin_default$1b = vue.defineComponent({
9170
+ name: name$12,
8768
9171
  props: colProps,
8769
9172
  setup(props2, {
8770
9173
  slots
@@ -8799,7 +9202,7 @@ var stdin_default$1e = vue.defineComponent({
8799
9202
  } = props2;
8800
9203
  return vue.createVNode(tag, {
8801
9204
  "style": style.value,
8802
- "class": bem$14({
9205
+ "class": bem$11({
8803
9206
  [span]: span,
8804
9207
  [`offset-${offset}`]: offset
8805
9208
  })
@@ -8812,9 +9215,9 @@ var stdin_default$1e = vue.defineComponent({
8812
9215
  };
8813
9216
  }
8814
9217
  });
8815
- const Col = withInstall(stdin_default$1e);
8816
- const [name$14, bem$13] = createNamespace("collapse");
8817
- const COLLAPSE_KEY = Symbol(name$14);
9218
+ const Col = withInstall(stdin_default$1b);
9219
+ const [name$11, bem$10] = createNamespace("collapse");
9220
+ const COLLAPSE_KEY = Symbol(name$11);
8818
9221
  const collapseProps = {
8819
9222
  border: truthProp,
8820
9223
  accordion: Boolean,
@@ -8834,8 +9237,8 @@ function validateModelValue(modelValue, accordion) {
8834
9237
  }
8835
9238
  return true;
8836
9239
  }
8837
- var stdin_default$1d = vue.defineComponent({
8838
- name: name$14,
9240
+ var stdin_default$1a = vue.defineComponent({
9241
+ name: name$11,
8839
9242
  props: collapseProps,
8840
9243
  emits: ["change", "update:modelValue"],
8841
9244
  setup(props2, {
@@ -8905,15 +9308,15 @@ var stdin_default$1d = vue.defineComponent({
8905
9308
  return () => {
8906
9309
  var _a;
8907
9310
  return vue.createVNode("div", {
8908
- "class": [bem$13(), {
9311
+ "class": [bem$10(), {
8909
9312
  [BORDER_TOP_BOTTOM]: props2.border
8910
9313
  }]
8911
9314
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
8912
9315
  };
8913
9316
  }
8914
9317
  });
8915
- const Collapse = withInstall(stdin_default$1d);
8916
- const [name$13, bem$12] = createNamespace("collapse-item");
9318
+ const Collapse = withInstall(stdin_default$1a);
9319
+ const [name$10, bem$$] = createNamespace("collapse-item");
8917
9320
  const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
8918
9321
  const collapseItemProps = extend({}, cellSharedProps, {
8919
9322
  name: numericProp,
@@ -8922,8 +9325,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
8922
9325
  readonly: Boolean,
8923
9326
  lazyRender: truthProp
8924
9327
  });
8925
- var stdin_default$1c = vue.defineComponent({
8926
- name: name$13,
9328
+ var stdin_default$19 = vue.defineComponent({
9329
+ name: name$10,
8927
9330
  props: collapseItemProps,
8928
9331
  setup(props2, {
8929
9332
  slots
@@ -9005,7 +9408,7 @@ var stdin_default$1c = vue.defineComponent({
9005
9408
  }
9006
9409
  return vue.createVNode(Cell, vue.mergeProps({
9007
9410
  "role": "button",
9008
- "class": bem$12("title", {
9411
+ "class": bem$$("title", {
9009
9412
  disabled,
9010
9413
  expanded: expanded.value,
9011
9414
  borderless: !border
@@ -9018,11 +9421,11 @@ var stdin_default$1c = vue.defineComponent({
9018
9421
  var _a;
9019
9422
  return vue.withDirectives(vue.createVNode("div", {
9020
9423
  "ref": wrapperRef,
9021
- "class": bem$12("wrapper"),
9424
+ "class": bem$$("wrapper"),
9022
9425
  "onTransitionend": onTransitionEnd
9023
9426
  }, [vue.createVNode("div", {
9024
9427
  "ref": contentRef,
9025
- "class": bem$12("content")
9428
+ "class": bem$$("content")
9026
9429
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
9027
9430
  });
9028
9431
  useExpose({
@@ -9031,15 +9434,15 @@ var stdin_default$1c = vue.defineComponent({
9031
9434
  itemName: name2
9032
9435
  });
9033
9436
  return () => vue.createVNode("div", {
9034
- "class": [bem$12({
9437
+ "class": [bem$$({
9035
9438
  border: index.value && props2.border
9036
9439
  })]
9037
9440
  }, [renderTitle(), renderContent()]);
9038
9441
  }
9039
9442
  });
9040
- const CollapseItem = withInstall(stdin_default$1c);
9443
+ const CollapseItem = withInstall(stdin_default$19);
9041
9444
  const ConfigProvider = withInstall(stdin_default$24);
9042
- const [name$12, bem$11, t$d] = createNamespace("contact-card");
9445
+ const [name$$, bem$_, t$b] = createNamespace("contact-card");
9043
9446
  const contactCardProps = {
9044
9447
  tel: String,
9045
9448
  name: String,
@@ -9047,8 +9450,8 @@ const contactCardProps = {
9047
9450
  addText: String,
9048
9451
  editable: truthProp
9049
9452
  };
9050
- var stdin_default$1b = vue.defineComponent({
9051
- name: name$12,
9453
+ var stdin_default$18 = vue.defineComponent({
9454
+ name: name$$,
9052
9455
  props: contactCardProps,
9053
9456
  emits: ["click"],
9054
9457
  setup(props2, {
@@ -9061,25 +9464,25 @@ var stdin_default$1b = vue.defineComponent({
9061
9464
  };
9062
9465
  const renderContent = () => {
9063
9466
  if (props2.type === "add") {
9064
- return props2.addText || t$d("addContact");
9467
+ return props2.addText || t$b("addContact");
9065
9468
  }
9066
- return [vue.createVNode("div", null, [`${t$d("name")}:${props2.name}`]), vue.createVNode("div", null, [`${t$d("tel")}:${props2.tel}`])];
9469
+ return [vue.createVNode("div", null, [`${t$b("name")}:${props2.name}`]), vue.createVNode("div", null, [`${t$b("tel")}:${props2.tel}`])];
9067
9470
  };
9068
9471
  return () => vue.createVNode(Cell, {
9069
9472
  "center": true,
9070
9473
  "icon": props2.type === "edit" ? "contact" : "add-square",
9071
- "class": bem$11([props2.type]),
9474
+ "class": bem$_([props2.type]),
9072
9475
  "border": false,
9073
9476
  "isLink": props2.editable,
9074
- "valueClass": bem$11("value"),
9477
+ "valueClass": bem$_("value"),
9075
9478
  "onClick": onClick
9076
9479
  }, {
9077
9480
  value: renderContent
9078
9481
  });
9079
9482
  }
9080
9483
  });
9081
- const ContactCard = withInstall(stdin_default$1b);
9082
- const [name$11, bem$10, t$c] = createNamespace("contact-edit");
9484
+ const ContactCard = withInstall(stdin_default$18);
9485
+ const [name$_, bem$Z, t$a] = createNamespace("contact-edit");
9083
9486
  const DEFAULT_CONTACT = {
9084
9487
  tel: "",
9085
9488
  name: ""
@@ -9099,8 +9502,8 @@ const contactEditProps = {
9099
9502
  default: isMobile
9100
9503
  }
9101
9504
  };
9102
- var stdin_default$1a = vue.defineComponent({
9103
- name: name$11,
9505
+ var stdin_default$17 = vue.defineComponent({
9506
+ name: name$_,
9104
9507
  props: contactEditProps,
9105
9508
  emits: ["save", "delete", "change-default"],
9106
9509
  setup(props2, {
@@ -9114,20 +9517,20 @@ var stdin_default$1a = vue.defineComponent({
9114
9517
  };
9115
9518
  const onDelete = () => emit("delete", contact);
9116
9519
  const renderButtons = () => vue.createVNode("div", {
9117
- "class": bem$10("buttons")
9520
+ "class": bem$Z("buttons")
9118
9521
  }, [vue.createVNode(Button, {
9119
9522
  "block": true,
9120
9523
  "round": true,
9121
9524
  "type": "primary",
9122
- "text": t$c("save"),
9123
- "class": bem$10("button"),
9525
+ "text": t$a("save"),
9526
+ "class": bem$Z("button"),
9124
9527
  "loading": props2.isSaving,
9125
9528
  "nativeType": "submit"
9126
9529
  }, null), props2.isEdit && vue.createVNode(Button, {
9127
9530
  "block": true,
9128
9531
  "round": true,
9129
- "text": t$c("delete"),
9130
- "class": bem$10("button"),
9532
+ "text": t$a("delete"),
9533
+ "class": bem$Z("button"),
9131
9534
  "loading": props2.isDeleting,
9132
9535
  "onClick": onDelete
9133
9536
  }, null)]);
@@ -9141,7 +9544,7 @@ var stdin_default$1a = vue.defineComponent({
9141
9544
  if (props2.showSetDefault) {
9142
9545
  return vue.createVNode(Cell, {
9143
9546
  "title": props2.setDefaultLabel,
9144
- "class": bem$10("switch-cell"),
9547
+ "class": bem$Z("switch-cell"),
9145
9548
  "border": false
9146
9549
  }, {
9147
9550
  "right-icon": renderSwitch
@@ -9150,47 +9553,47 @@ var stdin_default$1a = vue.defineComponent({
9150
9553
  };
9151
9554
  vue.watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
9152
9555
  return () => vue.createVNode(Form, {
9153
- "class": bem$10(),
9556
+ "class": bem$Z(),
9154
9557
  "onSubmit": onSave
9155
9558
  }, {
9156
9559
  default: () => [vue.createVNode("div", {
9157
- "class": bem$10("fields")
9560
+ "class": bem$Z("fields")
9158
9561
  }, [vue.createVNode(Field, {
9159
9562
  "modelValue": contact.name,
9160
9563
  "onUpdate:modelValue": ($event) => contact.name = $event,
9161
9564
  "clearable": true,
9162
- "label": t$c("name"),
9565
+ "label": t$a("name"),
9163
9566
  "rules": [{
9164
9567
  required: true,
9165
- message: t$c("nameEmpty")
9568
+ message: t$a("nameEmpty")
9166
9569
  }],
9167
9570
  "maxlength": "30",
9168
- "placeholder": t$c("name")
9571
+ "placeholder": t$a("name")
9169
9572
  }, null), vue.createVNode(Field, {
9170
9573
  "modelValue": contact.tel,
9171
9574
  "onUpdate:modelValue": ($event) => contact.tel = $event,
9172
9575
  "clearable": true,
9173
9576
  "type": "tel",
9174
- "label": t$c("tel"),
9577
+ "label": t$a("tel"),
9175
9578
  "rules": [{
9176
9579
  validator: props2.telValidator,
9177
- message: t$c("telInvalid")
9580
+ message: t$a("telInvalid")
9178
9581
  }],
9179
- "placeholder": t$c("tel")
9582
+ "placeholder": t$a("tel")
9180
9583
  }, null)]), renderSetDefault(), renderButtons()]
9181
9584
  });
9182
9585
  }
9183
9586
  });
9184
- const ContactEdit = withInstall(stdin_default$1a);
9185
- const [name$10, bem$$, t$b] = createNamespace("contact-list");
9587
+ const ContactEdit = withInstall(stdin_default$17);
9588
+ const [name$Z, bem$Y, t$9] = createNamespace("contact-list");
9186
9589
  const contactListProps = {
9187
9590
  list: Array,
9188
9591
  addText: String,
9189
9592
  modelValue: unknownProp,
9190
9593
  defaultTagText: String
9191
9594
  };
9192
- var stdin_default$19 = vue.defineComponent({
9193
- name: name$10,
9595
+ var stdin_default$16 = vue.defineComponent({
9596
+ name: name$Z,
9194
9597
  props: contactListProps,
9195
9598
  emits: ["add", "edit", "select", "update:modelValue"],
9196
9599
  setup(props2, {
@@ -9202,13 +9605,13 @@ var stdin_default$19 = vue.defineComponent({
9202
9605
  emit("select", item, index);
9203
9606
  };
9204
9607
  const renderRightIcon = () => vue.createVNode(Radio, {
9205
- "class": bem$$("radio"),
9608
+ "class": bem$Y("radio"),
9206
9609
  "name": item.id,
9207
9610
  "size": "large"
9208
9611
  }, null);
9209
9612
  const renderEditIcon = () => vue.createVNode(Icon, {
9210
9613
  "name": "edit",
9211
- "class": bem$$("edit"),
9614
+ "class": bem$Y("edit"),
9212
9615
  "onClick": (event) => {
9213
9616
  event.stopPropagation();
9214
9617
  emit("edit", item, index);
@@ -9220,7 +9623,7 @@ var stdin_default$19 = vue.defineComponent({
9220
9623
  nodes.push(vue.createVNode(Tag, {
9221
9624
  "type": "primary",
9222
9625
  "round": true,
9223
- "class": bem$$("item-tag")
9626
+ "class": bem$Y("item-tag")
9224
9627
  }, {
9225
9628
  default: () => [props2.defaultTagText]
9226
9629
  }));
@@ -9231,8 +9634,8 @@ var stdin_default$19 = vue.defineComponent({
9231
9634
  "key": item.id,
9232
9635
  "isLink": true,
9233
9636
  "center": true,
9234
- "class": bem$$("item"),
9235
- "valueClass": bem$$("item-value"),
9637
+ "class": bem$Y("item"),
9638
+ "valueClass": bem$Y("item-value"),
9236
9639
  "onClick": onClick
9237
9640
  }, {
9238
9641
  icon: renderEditIcon,
@@ -9241,34 +9644,34 @@ var stdin_default$19 = vue.defineComponent({
9241
9644
  });
9242
9645
  };
9243
9646
  return () => vue.createVNode("div", {
9244
- "class": bem$$()
9647
+ "class": bem$Y()
9245
9648
  }, [vue.createVNode(RadioGroup, {
9246
9649
  "modelValue": props2.modelValue,
9247
- "class": bem$$("group")
9650
+ "class": bem$Y("group")
9248
9651
  }, {
9249
9652
  default: () => [props2.list && props2.list.map(renderItem)]
9250
9653
  }), vue.createVNode("div", {
9251
- "class": [bem$$("bottom"), "van-safe-area-bottom"]
9654
+ "class": [bem$Y("bottom"), "van-safe-area-bottom"]
9252
9655
  }, [vue.createVNode(Button, {
9253
9656
  "round": true,
9254
9657
  "block": true,
9255
9658
  "type": "primary",
9256
- "class": bem$$("add"),
9257
- "text": props2.addText || t$b("addContact"),
9659
+ "class": bem$Y("add"),
9660
+ "text": props2.addText || t$9("addContact"),
9258
9661
  "onClick": () => emit("add")
9259
9662
  }, null)])]);
9260
9663
  }
9261
9664
  });
9262
- const ContactList = withInstall(stdin_default$19);
9263
- const [name$$, bem$_] = createNamespace("content-panel");
9665
+ const ContactList = withInstall(stdin_default$16);
9666
+ const [name$Y, bem$X] = createNamespace("content-panel");
9264
9667
  const contentPanelProps = {
9265
9668
  show: Boolean,
9266
9669
  title: String,
9267
9670
  confirmText: makeStringProp("我已知晓"),
9268
9671
  showFooter: truthProp
9269
9672
  };
9270
- var stdin_default$18 = vue.defineComponent({
9271
- name: name$$,
9673
+ var stdin_default$15 = vue.defineComponent({
9674
+ name: name$Y,
9272
9675
  props: contentPanelProps,
9273
9676
  emits: ["update:show", "confirm", "close"],
9274
9677
  setup(props2, {
@@ -9285,7 +9688,7 @@ var stdin_default$18 = vue.defineComponent({
9285
9688
  };
9286
9689
  return () => vue.createVNode(ActionSheet, {
9287
9690
  "show": props2.show,
9288
- "class": bem$_(),
9691
+ "class": bem$X(),
9289
9692
  "onUpdate:show": (show) => {
9290
9693
  emit("update:show", show);
9291
9694
  if (!show)
@@ -9295,13 +9698,13 @@ var stdin_default$18 = vue.defineComponent({
9295
9698
  default: () => {
9296
9699
  var _a, _b;
9297
9700
  return [vue.createVNode("div", {
9298
- "class": bem$_("content")
9701
+ "class": bem$X("content")
9299
9702
  }, [vue.createVNode("div", {
9300
- "class": bem$_("nav-wrapper")
9703
+ "class": bem$X("nav-wrapper")
9301
9704
  }, [vue.createVNode(NavBar, {
9302
9705
  "title": props2.title,
9303
9706
  "border": false,
9304
- "class": bem$_("nav")
9707
+ "class": bem$X("nav")
9305
9708
  }, {
9306
9709
  left: () => vue.createVNode(Icon, {
9307
9710
  "name": "cross",
@@ -9309,9 +9712,9 @@ var stdin_default$18 = vue.defineComponent({
9309
9712
  "onClick": close
9310
9713
  }, null)
9311
9714
  })]), vue.createVNode("div", {
9312
- "class": bem$_("body")
9715
+ "class": bem$X("body")
9313
9716
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), props2.showFooter && vue.createVNode("div", {
9314
- "class": bem$_("footer")
9717
+ "class": bem$X("footer")
9315
9718
  }, [((_b = slots.footer) == null ? void 0 : _b.call(slots)) || vue.createVNode(Button, {
9316
9719
  "block": true,
9317
9720
  "type": "primary",
@@ -9323,7 +9726,7 @@ var stdin_default$18 = vue.defineComponent({
9323
9726
  });
9324
9727
  }
9325
9728
  });
9326
- const ContentPanel = withInstall(stdin_default$18);
9729
+ const ContentPanel = withInstall(stdin_default$15);
9327
9730
  function parseFormat(format2, currentTime) {
9328
9731
  const { days } = currentTime;
9329
9732
  let { hours, minutes, seconds, milliseconds } = currentTime;
@@ -9359,15 +9762,15 @@ function parseFormat(format2, currentTime) {
9359
9762
  }
9360
9763
  return format2;
9361
9764
  }
9362
- const [name$_, bem$Z] = createNamespace("count-down");
9765
+ const [name$X, bem$W] = createNamespace("count-down");
9363
9766
  const countDownProps = {
9364
9767
  time: makeNumericProp(0),
9365
9768
  format: makeStringProp("HH:mm:ss"),
9366
9769
  autoStart: truthProp,
9367
9770
  millisecond: Boolean
9368
9771
  };
9369
- var stdin_default$17 = vue.defineComponent({
9370
- name: name$_,
9772
+ var stdin_default$14 = vue.defineComponent({
9773
+ name: name$X,
9371
9774
  props: countDownProps,
9372
9775
  emits: ["change", "finish"],
9373
9776
  setup(props2, {
@@ -9402,11 +9805,11 @@ var stdin_default$17 = vue.defineComponent({
9402
9805
  });
9403
9806
  return () => vue.createVNode("div", {
9404
9807
  "role": "timer",
9405
- "class": bem$Z()
9808
+ "class": bem$W()
9406
9809
  }, [slots.default ? slots.default(current2.value) : timeText.value]);
9407
9810
  }
9408
9811
  });
9409
- const CountDown = withInstall(stdin_default$17);
9812
+ const CountDown = withInstall(stdin_default$14);
9410
9813
  function getDate(timeStamp) {
9411
9814
  const date = new Date(timeStamp * 1e3);
9412
9815
  return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
@@ -9415,9 +9818,9 @@ function getDate(timeStamp) {
9415
9818
  }
9416
9819
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
9417
9820
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
9418
- const [name$Z, bem$Y, t$a] = createNamespace("coupon");
9419
- var stdin_default$16 = vue.defineComponent({
9420
- name: name$Z,
9821
+ const [name$W, bem$V, t$8] = createNamespace("coupon");
9822
+ var stdin_default$13 = vue.defineComponent({
9823
+ name: name$W,
9421
9824
  props: {
9422
9825
  chosen: Boolean,
9423
9826
  coupon: makeRequiredProp(Object),
@@ -9445,13 +9848,13 @@ var stdin_default$16 = vue.defineComponent({
9445
9848
  return [vue.createVNode("span", null, [currency]), ` ${denominations}`];
9446
9849
  }
9447
9850
  if (coupon.discount) {
9448
- return t$a("discount", formatDiscount(coupon.discount));
9851
+ return t$8("discount", formatDiscount(coupon.discount));
9449
9852
  }
9450
9853
  return "";
9451
9854
  });
9452
9855
  const conditionMessage = vue.computed(() => {
9453
9856
  const condition = formatAmount(props2.coupon.originCondition || 0);
9454
- return condition === "0" ? t$a("unlimited") : t$a("condition", condition);
9857
+ return condition === "0" ? t$8("unlimited") : t$8("condition", condition);
9455
9858
  });
9456
9859
  return () => {
9457
9860
  const {
@@ -9461,34 +9864,34 @@ var stdin_default$16 = vue.defineComponent({
9461
9864
  } = props2;
9462
9865
  const description = disabled && coupon.reason || coupon.description;
9463
9866
  return vue.createVNode("div", {
9464
- "class": bem$Y({
9867
+ "class": bem$V({
9465
9868
  disabled
9466
9869
  })
9467
9870
  }, [vue.createVNode("div", {
9468
- "class": bem$Y("content")
9871
+ "class": bem$V("content")
9469
9872
  }, [vue.createVNode("div", {
9470
- "class": bem$Y("head")
9873
+ "class": bem$V("head")
9471
9874
  }, [vue.createVNode("h2", {
9472
- "class": bem$Y("amount")
9875
+ "class": bem$V("amount")
9473
9876
  }, [faceAmount.value]), vue.createVNode("p", {
9474
- "class": bem$Y("condition")
9877
+ "class": bem$V("condition")
9475
9878
  }, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
9476
- "class": bem$Y("body")
9879
+ "class": bem$V("body")
9477
9880
  }, [vue.createVNode("p", {
9478
- "class": bem$Y("name")
9881
+ "class": bem$V("name")
9479
9882
  }, [coupon.name]), vue.createVNode("p", {
9480
- "class": bem$Y("valid")
9883
+ "class": bem$V("valid")
9481
9884
  }, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
9482
- "class": bem$Y("corner"),
9885
+ "class": bem$V("corner"),
9483
9886
  "modelValue": chosen
9484
9887
  }, null)])]), description && vue.createVNode("p", {
9485
- "class": bem$Y("description")
9888
+ "class": bem$V("description")
9486
9889
  }, [description])]);
9487
9890
  };
9488
9891
  }
9489
9892
  });
9490
- const Coupon = withInstall(stdin_default$16);
9491
- const [name$Y, bem$X, t$9] = createNamespace("coupon-cell");
9893
+ const Coupon = withInstall(stdin_default$13);
9894
+ const [name$V, bem$U, t$7] = createNamespace("coupon-cell");
9492
9895
  const couponCellProps = {
9493
9896
  title: String,
9494
9897
  border: truthProp,
@@ -9514,78 +9917,29 @@ function formatValue({
9514
9917
  }
9515
9918
  return `-${currency} ${(value / 100).toFixed(2)}`;
9516
9919
  }
9517
- return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
9920
+ return coupons.length === 0 ? t$7("noCoupon") : t$7("count", coupons.length);
9518
9921
  }
9519
- var stdin_default$15 = vue.defineComponent({
9520
- name: name$Y,
9922
+ var stdin_default$12 = vue.defineComponent({
9923
+ name: name$V,
9521
9924
  props: couponCellProps,
9522
9925
  setup(props2) {
9523
9926
  return () => {
9524
9927
  const selected = props2.coupons[+props2.chosenCoupon];
9525
9928
  return vue.createVNode(Cell, {
9526
- "class": bem$X(),
9929
+ "class": bem$U(),
9527
9930
  "value": formatValue(props2),
9528
- "title": props2.title || t$9("title"),
9931
+ "title": props2.title || t$7("title"),
9529
9932
  "border": props2.border,
9530
9933
  "isLink": props2.editable,
9531
- "valueClass": bem$X("value", {
9934
+ "valueClass": bem$U("value", {
9532
9935
  selected
9533
9936
  })
9534
9937
  }, null);
9535
9938
  };
9536
9939
  }
9537
9940
  });
9538
- const CouponCell = withInstall(stdin_default$15);
9539
- const [name$X, bem$W] = createNamespace("empty");
9540
- const emptyProps = {
9541
- image: makeStringProp("default"),
9542
- imageSize: [Number, String, Array],
9543
- description: String
9544
- };
9545
- var stdin_default$14 = vue.defineComponent({
9546
- name: name$X,
9547
- props: emptyProps,
9548
- setup(props2, {
9549
- slots
9550
- }) {
9551
- const renderDescription = () => {
9552
- const description = slots.description ? slots.description() : props2.description;
9553
- if (description) {
9554
- return vue.createVNode("p", {
9555
- "class": bem$W("description")
9556
- }, [description]);
9557
- }
9558
- };
9559
- const renderBottom = () => {
9560
- if (slots.default) {
9561
- return vue.createVNode("div", {
9562
- "class": bem$W("bottom")
9563
- }, [slots.default()]);
9564
- }
9565
- };
9566
- const renderImage = () => {
9567
- if (slots.image) {
9568
- return slots.image();
9569
- }
9570
- if (props2.image === "default" || props2.image === "network") {
9571
- return vue.createVNode("div", {
9572
- "class": bem$W("image-preset", props2.image)
9573
- }, null);
9574
- }
9575
- return vue.createVNode("img", {
9576
- "src": props2.image
9577
- }, null);
9578
- };
9579
- return () => vue.createVNode("div", {
9580
- "class": bem$W()
9581
- }, [vue.createVNode("div", {
9582
- "class": bem$W("image"),
9583
- "style": getSizeStyle(props2.imageSize)
9584
- }, [renderImage()]), renderDescription(), renderBottom()]);
9585
- }
9586
- });
9587
- const Empty = withInstall(stdin_default$14);
9588
- const [name$W, bem$V, t$8] = createNamespace("coupon-list");
9941
+ const CouponCell = withInstall(stdin_default$12);
9942
+ const [name$U, bem$T, t$6] = createNamespace("coupon-list");
9589
9943
  const couponListProps = {
9590
9944
  code: makeStringProp(""),
9591
9945
  coupons: makeArrayProp(),
@@ -9606,8 +9960,8 @@ const couponListProps = {
9606
9960
  exchangeButtonLoading: Boolean,
9607
9961
  exchangeButtonDisabled: Boolean
9608
9962
  };
9609
- var stdin_default$13 = vue.defineComponent({
9610
- name: name$W,
9963
+ var stdin_default$11 = vue.defineComponent({
9964
+ name: name$U,
9611
9965
  props: couponListProps,
9612
9966
  emits: ["change", "exchange", "update:code"],
9613
9967
  setup(props2, {
@@ -9643,27 +9997,27 @@ var stdin_default$13 = vue.defineComponent({
9643
9997
  "image": props2.emptyImage
9644
9998
  }, {
9645
9999
  default: () => [vue.createVNode("p", {
9646
- "class": bem$V("empty-tip")
9647
- }, [t$8("noCoupon")])]
10000
+ "class": bem$T("empty-tip")
10001
+ }, [t$6("noCoupon")])]
9648
10002
  });
9649
10003
  const renderExchangeBar = () => {
9650
10004
  if (props2.showExchangeBar) {
9651
10005
  return vue.createVNode("div", {
9652
10006
  "ref": barRef,
9653
- "class": bem$V("exchange-bar")
10007
+ "class": bem$T("exchange-bar")
9654
10008
  }, [vue.createVNode(Field, {
9655
10009
  "modelValue": currentCode.value,
9656
10010
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
9657
10011
  "clearable": true,
9658
10012
  "border": false,
9659
- "class": bem$V("field"),
9660
- "placeholder": props2.inputPlaceholder || t$8("placeholder"),
10013
+ "class": bem$T("field"),
10014
+ "placeholder": props2.inputPlaceholder || t$6("placeholder"),
9661
10015
  "maxlength": "20"
9662
10016
  }, null), vue.createVNode(Button, {
9663
10017
  "plain": true,
9664
10018
  "type": "primary",
9665
- "class": bem$V("exchange"),
9666
- "text": props2.exchangeButtonText || t$8("exchange"),
10019
+ "class": bem$T("exchange"),
10020
+ "text": props2.exchangeButtonText || t$6("exchange"),
9667
10021
  "loading": props2.exchangeButtonLoading,
9668
10022
  "disabled": buttonDisabled.value,
9669
10023
  "onClick": onExchange
@@ -9675,14 +10029,14 @@ var stdin_default$13 = vue.defineComponent({
9675
10029
  coupons
9676
10030
  } = props2;
9677
10031
  const count = props2.showCount ? ` (${coupons.length})` : "";
9678
- const title = (props2.enabledTitle || t$8("enable")) + count;
10032
+ const title = (props2.enabledTitle || t$6("enable")) + count;
9679
10033
  return vue.createVNode(Tab, {
9680
10034
  "title": title
9681
10035
  }, {
9682
10036
  default: () => {
9683
10037
  var _a;
9684
10038
  return [vue.createVNode("div", {
9685
- "class": bem$V("list", {
10039
+ "class": bem$T("list", {
9686
10040
  "with-bottom": props2.showCloseButton
9687
10041
  }),
9688
10042
  "style": {
@@ -9704,14 +10058,14 @@ var stdin_default$13 = vue.defineComponent({
9704
10058
  disabledCoupons
9705
10059
  } = props2;
9706
10060
  const count = props2.showCount ? ` (${disabledCoupons.length})` : "";
9707
- const title = (props2.disabledTitle || t$8("disabled")) + count;
10061
+ const title = (props2.disabledTitle || t$6("disabled")) + count;
9708
10062
  return vue.createVNode(Tab, {
9709
10063
  "title": title
9710
10064
  }, {
9711
10065
  default: () => {
9712
10066
  var _a;
9713
10067
  return [vue.createVNode("div", {
9714
- "class": bem$V("list", {
10068
+ "class": bem$T("list", {
9715
10069
  "with-bottom": props2.showCloseButton
9716
10070
  }),
9717
10071
  "style": {
@@ -9738,27 +10092,27 @@ var stdin_default$13 = vue.defineComponent({
9738
10092
  });
9739
10093
  return () => vue.createVNode("div", {
9740
10094
  "ref": root,
9741
- "class": bem$V()
10095
+ "class": bem$T()
9742
10096
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
9743
10097
  "active": activeTab.value,
9744
10098
  "onUpdate:active": ($event) => activeTab.value = $event,
9745
- "class": bem$V("tab")
10099
+ "class": bem$T("tab")
9746
10100
  }, {
9747
10101
  default: () => [renderCouponTab(), renderDisabledTab()]
9748
10102
  }), vue.createVNode("div", {
9749
- "class": bem$V("bottom")
10103
+ "class": bem$T("bottom")
9750
10104
  }, [vue.withDirectives(vue.createVNode(Button, {
9751
10105
  "round": true,
9752
10106
  "block": true,
9753
10107
  "type": "primary",
9754
- "class": bem$V("close"),
9755
- "text": props2.closeButtonText || t$8("close"),
10108
+ "class": bem$T("close"),
10109
+ "text": props2.closeButtonText || t$6("close"),
9756
10110
  "onClick": () => emit("change", -1)
9757
10111
  }, null), [[vue.vShow, props2.showCloseButton]])])]);
9758
10112
  }
9759
10113
  });
9760
- const CouponList = withInstall(stdin_default$13);
9761
- const [name$V, bem$U] = createNamespace("filter-tag");
10114
+ const CouponList = withInstall(stdin_default$11);
10115
+ const [name$T, bem$S] = createNamespace("filter-tag");
9762
10116
  const filterTagProps = {
9763
10117
  selected: Boolean,
9764
10118
  disabled: Boolean,
@@ -9775,8 +10129,8 @@ const filterTagProps = {
9775
10129
  dot: Boolean,
9776
10130
  badge: numericProp
9777
10131
  };
9778
- var stdin_default$12 = vue.defineComponent({
9779
- name: name$V,
10132
+ var stdin_default$10 = vue.defineComponent({
10133
+ name: name$T,
9780
10134
  props: filterTagProps,
9781
10135
  emits: ["click"],
9782
10136
  setup(props2, {
@@ -9785,7 +10139,7 @@ var stdin_default$12 = vue.defineComponent({
9785
10139
  }) {
9786
10140
  const renderIcon = () => props2.icon && vue.createVNode(Icon, {
9787
10141
  "name": props2.icon,
9788
- "class": bem$U("icon"),
10142
+ "class": bem$S("icon"),
9789
10143
  "classPrefix": props2.iconPrefix
9790
10144
  }, null);
9791
10145
  const renderBadge = () => {
@@ -9806,7 +10160,7 @@ var stdin_default$12 = vue.defineComponent({
9806
10160
  const content = (_a = slots.default) == null ? void 0 : _a.call(slots);
9807
10161
  return vue.createVNode("button", {
9808
10162
  "type": "button",
9809
- "class": bem$U({
10163
+ "class": bem$S({
9810
10164
  selected: props2.selected,
9811
10165
  disabled: props2.disabled,
9812
10166
  large: props2.size === "large"
@@ -9814,15 +10168,15 @@ var stdin_default$12 = vue.defineComponent({
9814
10168
  "disabled": props2.disabled,
9815
10169
  "onClick": (event) => emit("click", event)
9816
10170
  }, [props2.iconPosition === "left" && icon, vue.createVNode("span", {
9817
- "class": bem$U("text")
10171
+ "class": bem$S("text")
9818
10172
  }, [content]), props2.iconPosition === "right" && icon, renderBadge()]);
9819
10173
  };
9820
10174
  }
9821
10175
  });
9822
- const FilterTag = withInstall(stdin_default$12);
9823
- const [name$U] = createNamespace("time-picker");
9824
- var stdin_default$11 = vue.defineComponent({
9825
- name: name$U,
10176
+ const FilterTag = withInstall(stdin_default$10);
10177
+ const [name$S] = createNamespace("time-picker");
10178
+ var stdin_default$$ = vue.defineComponent({
10179
+ name: name$S,
9826
10180
  props: extend({}, sharedProps, {
9827
10181
  minHour: makeNumericProp(0),
9828
10182
  maxHour: makeNumericProp(23),
@@ -9929,9 +10283,9 @@ var stdin_default$11 = vue.defineComponent({
9929
10283
  }
9930
10284
  });
9931
10285
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
9932
- const [name$T] = createNamespace("date-picker");
9933
- var stdin_default$10 = vue.defineComponent({
9934
- name: name$T,
10286
+ const [name$R] = createNamespace("date-picker");
10287
+ var stdin_default$_ = vue.defineComponent({
10288
+ name: name$R,
9935
10289
  props: extend({}, sharedProps, {
9936
10290
  type: makeStringProp("datetime"),
9937
10291
  modelValue: Date,
@@ -10169,10 +10523,10 @@ var stdin_default$10 = vue.defineComponent({
10169
10523
  }, pick(props2, pickerInheritKeys)), slots);
10170
10524
  }
10171
10525
  });
10172
- const [name$S, bem$T] = createNamespace("datetime-picker");
10173
- const timePickerPropKeys = Object.keys(stdin_default$11.props);
10174
- const datePickerPropKeys = Object.keys(stdin_default$10.props);
10175
- const datetimePickerProps = extend({}, stdin_default$11.props, stdin_default$10.props, {
10526
+ const [name$Q, bem$R] = createNamespace("datetime-picker");
10527
+ const timePickerPropKeys = Object.keys(stdin_default$$.props);
10528
+ const datePickerPropKeys = Object.keys(stdin_default$_.props);
10529
+ const datetimePickerProps = extend({}, stdin_default$$.props, stdin_default$_.props, {
10176
10530
  modelValue: [String, Date],
10177
10531
  showTimeRange: Boolean,
10178
10532
  startTimeFromCurrent: {
@@ -10190,8 +10544,8 @@ const datetimePickerProps = extend({}, stdin_default$11.props, stdin_default$10.
10190
10544
  default: "结束时间"
10191
10545
  }
10192
10546
  });
10193
- var stdin_default$$ = vue.defineComponent({
10194
- name: name$S,
10547
+ var stdin_default$Z = vue.defineComponent({
10548
+ name: name$Q,
10195
10549
  props: datetimePickerProps,
10196
10550
  emits: ["update:startTime", "update:endTime", "time-range-change"],
10197
10551
  setup(props2, {
@@ -10260,7 +10614,7 @@ var stdin_default$$ = vue.defineComponent({
10260
10614
  });
10261
10615
  return () => {
10262
10616
  const isTimePicker = props2.type === "time";
10263
- const Component = isTimePicker ? stdin_default$11 : stdin_default$10;
10617
+ const Component = isTimePicker ? stdin_default$$ : stdin_default$_;
10264
10618
  const inheritProps = pick(props2, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
10265
10619
  const showTimeRange = props2.showTimeRange && props2.type === "datetime";
10266
10620
  const timeRangeSlots = showTimeRange ? {
@@ -10273,7 +10627,7 @@ var stdin_default$$ = vue.defineComponent({
10273
10627
  "columns-top": () => {
10274
10628
  var _a;
10275
10629
  return [vue.createVNode("div", {
10276
- "class": bem$T("time-range")
10630
+ "class": bem$R("time-range")
10277
10631
  }, [vue.createVNode(FilterTag, {
10278
10632
  "selected": activeTimeRange.value === "start",
10279
10633
  "onClick": () => onTimeRangeClick("start")
@@ -10289,14 +10643,14 @@ var stdin_default$$ = vue.defineComponent({
10289
10643
  "columns-bottom": () => {
10290
10644
  var _a;
10291
10645
  return [vue.createVNode("div", {
10292
- "class": bem$T("time-range-bottom")
10646
+ "class": bem$R("time-range-bottom")
10293
10647
  }, null), (_a = slots["columns-bottom"]) == null ? void 0 : _a.call(slots)];
10294
10648
  }
10295
10649
  } : slots;
10296
10650
  if (showTimeRange) {
10297
- return vue.createVNode(stdin_default$10, vue.mergeProps({
10651
+ return vue.createVNode(stdin_default$_, vue.mergeProps({
10298
10652
  "ref": root,
10299
- "class": bem$T()
10653
+ "class": bem$R()
10300
10654
  }, pick(props2, datePickerPropKeys), attrs, {
10301
10655
  "modelValue": rangeModelValue.value,
10302
10656
  "minDate": rangeMinDate.value,
@@ -10307,13 +10661,13 @@ var stdin_default$$ = vue.defineComponent({
10307
10661
  }
10308
10662
  return vue.createVNode(Component, vue.mergeProps({
10309
10663
  "ref": root,
10310
- "class": bem$T()
10664
+ "class": bem$R()
10311
10665
  }, inheritProps, attrs), timeRangeSlots);
10312
10666
  };
10313
10667
  }
10314
10668
  });
10315
- const DatetimePicker = withInstall(stdin_default$$);
10316
- const [name$R, bem$S, t$7] = createNamespace("dialog");
10669
+ const DatetimePicker = withInstall(stdin_default$Z);
10670
+ const [name$P, bem$Q, t$5] = createNamespace("dialog");
10317
10671
  const dialogProps = extend({}, popupSharedProps, {
10318
10672
  title: String,
10319
10673
  theme: String,
@@ -10345,8 +10699,8 @@ const dialogProps = extend({}, popupSharedProps, {
10345
10699
  closeOnClickOverlay: Boolean
10346
10700
  });
10347
10701
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
10348
- var stdin_default$_ = vue.defineComponent({
10349
- name: name$R,
10702
+ var stdin_default$Y = vue.defineComponent({
10703
+ name: name$P,
10350
10704
  props: dialogProps,
10351
10705
  emits: ["confirm", "cancel", "third", "keydown", "input", "update:show", "update:inputValue"],
10352
10706
  setup(props2, {
@@ -10406,7 +10760,7 @@ var stdin_default$_ = vue.defineComponent({
10406
10760
  const title = slots.title ? slots.title() : props2.title;
10407
10761
  if (title) {
10408
10762
  return vue.createVNode("div", {
10409
- "class": bem$S("header", {
10763
+ "class": bem$Q("header", {
10410
10764
  isolated: !props2.message && !props2.showInput && !slots.default
10411
10765
  })
10412
10766
  }, [title]);
@@ -10418,7 +10772,7 @@ var stdin_default$_ = vue.defineComponent({
10418
10772
  allowHtml,
10419
10773
  messageAlign
10420
10774
  } = props2;
10421
- const classNames = bem$S("message", {
10775
+ const classNames = bem$Q("message", {
10422
10776
  "has-title": hasTitle,
10423
10777
  [messageAlign]: messageAlign
10424
10778
  });
@@ -10445,7 +10799,7 @@ var stdin_default$_ = vue.defineComponent({
10445
10799
  "ref": inputRef,
10446
10800
  "size": "normal",
10447
10801
  "border": false,
10448
- "class": bem$S("input"),
10802
+ "class": bem$Q("input"),
10449
10803
  "modelValue": props2.inputValue,
10450
10804
  "inputAlign": props2.inputAlign,
10451
10805
  "placeholder": props2.inputPlaceholder,
@@ -10464,7 +10818,7 @@ var stdin_default$_ = vue.defineComponent({
10464
10818
  const hasTitle = !!(title || slots.title);
10465
10819
  return vue.createVNode("div", {
10466
10820
  "key": allowHtml ? 1 : 0,
10467
- "class": bem$S("content", {
10821
+ "class": bem$Q("content", {
10468
10822
  isolated: !hasTitle,
10469
10823
  "with-input": showInput
10470
10824
  })
@@ -10472,13 +10826,13 @@ var stdin_default$_ = vue.defineComponent({
10472
10826
  }
10473
10827
  };
10474
10828
  const renderButtons = () => vue.createVNode("div", {
10475
- "class": [BORDER_TOP, bem$S("footer", {
10829
+ "class": [BORDER_TOP, bem$Q("footer", {
10476
10830
  vertical: props2.showThirdButton
10477
10831
  })]
10478
10832
  }, [props2.showCancelButton && vue.createVNode(Button, {
10479
10833
  "size": "large",
10480
- "text": props2.cancelButtonText || t$7("cancel"),
10481
- "class": bem$S("cancel"),
10834
+ "text": props2.cancelButtonText || t$5("cancel"),
10835
+ "class": bem$Q("cancel"),
10482
10836
  "style": {
10483
10837
  color: props2.cancelButtonColor
10484
10838
  },
@@ -10487,8 +10841,8 @@ var stdin_default$_ = vue.defineComponent({
10487
10841
  "onClick": onCancel
10488
10842
  }, null), props2.showConfirmButton && vue.createVNode(Button, {
10489
10843
  "size": "large",
10490
- "text": props2.confirmButtonText || t$7("confirm"),
10491
- "class": [bem$S("confirm"), {
10844
+ "text": props2.confirmButtonText || t$5("confirm"),
10845
+ "class": [bem$Q("confirm"), {
10492
10846
  [BORDER_LEFT]: props2.showCancelButton && !props2.showThirdButton
10493
10847
  }],
10494
10848
  "style": {
@@ -10500,7 +10854,7 @@ var stdin_default$_ = vue.defineComponent({
10500
10854
  }, null), props2.showThirdButton && vue.createVNode(Button, {
10501
10855
  "size": "large",
10502
10856
  "text": props2.thirdButtonText,
10503
- "class": bem$S("third"),
10857
+ "class": bem$Q("third"),
10504
10858
  "style": {
10505
10859
  color: props2.thirdButtonColor
10506
10860
  },
@@ -10509,20 +10863,20 @@ var stdin_default$_ = vue.defineComponent({
10509
10863
  "onClick": onThird
10510
10864
  }, null)]);
10511
10865
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
10512
- "class": bem$S("footer")
10866
+ "class": bem$Q("footer")
10513
10867
  }, {
10514
10868
  default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
10515
10869
  "type": "warning",
10516
- "text": props2.cancelButtonText || t$7("cancel"),
10517
- "class": bem$S("cancel"),
10870
+ "text": props2.cancelButtonText || t$5("cancel"),
10871
+ "class": bem$Q("cancel"),
10518
10872
  "color": props2.cancelButtonColor,
10519
10873
  "loading": loading.cancel,
10520
10874
  "disabled": props2.cancelButtonDisabled,
10521
10875
  "onClick": onCancel
10522
10876
  }, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
10523
10877
  "type": "primary",
10524
- "text": props2.confirmButtonText || t$7("confirm"),
10525
- "class": bem$S("confirm"),
10878
+ "text": props2.confirmButtonText || t$5("confirm"),
10879
+ "class": bem$Q("confirm"),
10526
10880
  "color": props2.confirmButtonColor,
10527
10881
  "loading": loading.confirm,
10528
10882
  "disabled": props2.confirmButtonDisabled,
@@ -10554,7 +10908,7 @@ var stdin_default$_ = vue.defineComponent({
10554
10908
  return vue.createVNode(Popup, vue.mergeProps({
10555
10909
  "ref": root,
10556
10910
  "role": "dialog",
10557
- "class": [bem$S([theme]), className],
10911
+ "class": [bem$Q([theme]), className],
10558
10912
  "style": {
10559
10913
  width: addUnit(width)
10560
10914
  },
@@ -10577,7 +10931,7 @@ function initInstance$3() {
10577
10931
  state,
10578
10932
  toggle
10579
10933
  } = usePopupState();
10580
- return () => vue.createVNode(stdin_default$_, vue.mergeProps(state, {
10934
+ return () => vue.createVNode(stdin_default$Y, vue.mergeProps(state, {
10581
10935
  "onUpdate:show": toggle
10582
10936
  }), null);
10583
10937
  }
@@ -10644,12 +10998,12 @@ Dialog.setDefaultOptions = (options) => {
10644
10998
  Dialog.resetDefaultOptions = () => {
10645
10999
  Dialog.currentOptions = extend({}, Dialog.defaultOptions);
10646
11000
  };
10647
- Dialog.Component = withInstall(stdin_default$_);
11001
+ Dialog.Component = withInstall(stdin_default$Y);
10648
11002
  Dialog.install = (app) => {
10649
11003
  app.use(Dialog.Component);
10650
11004
  app.config.globalProperties.$dialog = Dialog;
10651
11005
  };
10652
- const [name$Q, bem$R] = createNamespace("dropdown-menu");
11006
+ const [name$O, bem$P] = createNamespace("dropdown-menu");
10653
11007
  const dropdownMenuProps = {
10654
11008
  overlay: truthProp,
10655
11009
  zIndex: numericProp,
@@ -10661,9 +11015,9 @@ const dropdownMenuProps = {
10661
11015
  closeOnClickOutside: truthProp,
10662
11016
  closeOnClickOverlay: truthProp
10663
11017
  };
10664
- const DROPDOWN_KEY = Symbol(name$Q);
10665
- var stdin_default$Z = vue.defineComponent({
10666
- name: name$Q,
11018
+ const DROPDOWN_KEY = Symbol(name$O);
11019
+ var stdin_default$X = vue.defineComponent({
11020
+ name: name$O,
10667
11021
  props: dropdownMenuProps,
10668
11022
  setup(props2, {
10669
11023
  slots
@@ -10735,7 +11089,7 @@ var stdin_default$Z = vue.defineComponent({
10735
11089
  "id": `${id}-${index}`,
10736
11090
  "role": "button",
10737
11091
  "tabindex": disabled ? void 0 : 0,
10738
- "class": [bem$R("item", {
11092
+ "class": [bem$P("item", {
10739
11093
  disabled
10740
11094
  }), {
10741
11095
  [HAPTICS_FEEDBACK]: !disabled
@@ -10746,7 +11100,7 @@ var stdin_default$Z = vue.defineComponent({
10746
11100
  }
10747
11101
  }
10748
11102
  }, [vue.createVNode("span", {
10749
- "class": [bem$R("title", {
11103
+ "class": [bem$P("title", {
10750
11104
  down: showPopup === (props2.direction === "down"),
10751
11105
  active: showPopup
10752
11106
  }), titleClass],
@@ -10771,18 +11125,18 @@ var stdin_default$Z = vue.defineComponent({
10771
11125
  var _a;
10772
11126
  return vue.createVNode("div", {
10773
11127
  "ref": root,
10774
- "class": bem$R()
11128
+ "class": bem$P()
10775
11129
  }, [props2.showBar && vue.createVNode("div", {
10776
11130
  "ref": barRef,
10777
11131
  "style": barStyle.value,
10778
- "class": bem$R("bar", {
11132
+ "class": bem$P("bar", {
10779
11133
  opened: opened.value
10780
11134
  })
10781
11135
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
10782
11136
  };
10783
11137
  }
10784
11138
  });
10785
- const [name$P, bem$Q] = createNamespace("dropdown-item");
11139
+ const [name$N, bem$O] = createNamespace("dropdown-item");
10786
11140
  const dropdownItemProps = {
10787
11141
  title: String,
10788
11142
  options: makeArrayProp(),
@@ -10792,8 +11146,8 @@ const dropdownItemProps = {
10792
11146
  modelValue: unknownProp,
10793
11147
  titleClass: unknownProp
10794
11148
  };
10795
- var stdin_default$Y = vue.defineComponent({
10796
- name: name$P,
11149
+ var stdin_default$W = vue.defineComponent({
11150
+ name: name$N,
10797
11151
  props: dropdownItemProps,
10798
11152
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
10799
11153
  setup(props2, {
@@ -10863,7 +11217,7 @@ var stdin_default$Y = vue.defineComponent({
10863
11217
  const renderIcon = () => {
10864
11218
  if (active) {
10865
11219
  return vue.createVNode(Icon, {
10866
- "class": bem$Q("icon"),
11220
+ "class": bem$O("icon"),
10867
11221
  "color": activeColor,
10868
11222
  "name": "success"
10869
11223
  }, null);
@@ -10874,7 +11228,7 @@ var stdin_default$Y = vue.defineComponent({
10874
11228
  "key": option.value,
10875
11229
  "icon": option.icon,
10876
11230
  "title": option.text,
10877
- "class": bem$Q("option", {
11231
+ "class": bem$O("option", {
10878
11232
  active
10879
11233
  }),
10880
11234
  "style": {
@@ -10906,13 +11260,13 @@ var stdin_default$Y = vue.defineComponent({
10906
11260
  }
10907
11261
  return vue.withDirectives(vue.createVNode("div", {
10908
11262
  "style": style,
10909
- "class": bem$Q([direction]),
11263
+ "class": bem$O([direction]),
10910
11264
  "onClick": onClickWrapper
10911
11265
  }, [vue.createVNode(Popup, {
10912
11266
  "show": state.showPopup,
10913
11267
  "onUpdate:show": ($event) => state.showPopup = $event,
10914
11268
  "role": "menu",
10915
- "class": bem$Q("content"),
11269
+ "class": bem$O("content"),
10916
11270
  "overlay": overlay,
10917
11271
  "position": direction === "down" ? "top" : "bottom",
10918
11272
  "duration": state.transition ? duration : 0,
@@ -10950,15 +11304,15 @@ var stdin_default$Y = vue.defineComponent({
10950
11304
  };
10951
11305
  }
10952
11306
  });
10953
- const DropdownItem = withInstall(stdin_default$Y);
10954
- const DropdownMenu = withInstall(stdin_default$Z);
10955
- const [name$O, bem$P] = createNamespace("sidebar");
10956
- const SIDEBAR_KEY = Symbol(name$O);
11307
+ const DropdownItem = withInstall(stdin_default$W);
11308
+ const DropdownMenu = withInstall(stdin_default$X);
11309
+ const [name$M, bem$N] = createNamespace("sidebar");
11310
+ const SIDEBAR_KEY = Symbol(name$M);
10957
11311
  const sidebarProps = {
10958
11312
  modelValue: makeNumericProp(0)
10959
11313
  };
10960
- var stdin_default$X = vue.defineComponent({
10961
- name: name$O,
11314
+ var stdin_default$V = vue.defineComponent({
11315
+ name: name$M,
10962
11316
  props: sidebarProps,
10963
11317
  emits: ["change", "update:modelValue"],
10964
11318
  setup(props2, {
@@ -10983,13 +11337,13 @@ var stdin_default$X = vue.defineComponent({
10983
11337
  var _a;
10984
11338
  return vue.createVNode("div", {
10985
11339
  "role": "tablist",
10986
- "class": bem$P()
11340
+ "class": bem$N()
10987
11341
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
10988
11342
  };
10989
11343
  }
10990
11344
  });
10991
- const Sidebar = withInstall(stdin_default$X);
10992
- const [name$N, bem$O] = createNamespace("sidebar-item");
11345
+ const Sidebar = withInstall(stdin_default$V);
11346
+ const [name$L, bem$M] = createNamespace("sidebar-item");
10993
11347
  const sidebarItemProps = extend({}, routeProps, {
10994
11348
  dot: Boolean,
10995
11349
  title: String,
@@ -10997,8 +11351,8 @@ const sidebarItemProps = extend({}, routeProps, {
10997
11351
  disabled: Boolean,
10998
11352
  badgeProps: Object
10999
11353
  });
11000
- var stdin_default$W = vue.defineComponent({
11001
- name: name$N,
11354
+ var stdin_default$U = vue.defineComponent({
11355
+ name: name$L,
11002
11356
  props: sidebarItemProps,
11003
11357
  emits: ["click"],
11004
11358
  setup(props2, {
@@ -11034,7 +11388,7 @@ var stdin_default$W = vue.defineComponent({
11034
11388
  const selected = index.value === parent.getActive();
11035
11389
  return vue.createVNode("div", {
11036
11390
  "role": "tab",
11037
- "class": bem$O({
11391
+ "class": bem$M({
11038
11392
  select: selected,
11039
11393
  disabled
11040
11394
  }),
@@ -11043,7 +11397,7 @@ var stdin_default$W = vue.defineComponent({
11043
11397
  "onClick": onClick
11044
11398
  }, [vue.createVNode(Badge, vue.mergeProps({
11045
11399
  "dot": dot,
11046
- "class": bem$O("text"),
11400
+ "class": bem$M("text"),
11047
11401
  "content": badge
11048
11402
  }, props2.badgeProps), {
11049
11403
  default: () => [slots.title ? slots.title() : title]
@@ -11051,8 +11405,8 @@ var stdin_default$W = vue.defineComponent({
11051
11405
  };
11052
11406
  }
11053
11407
  });
11054
- const SidebarItem = withInstall(stdin_default$W);
11055
- const [name$M, bem$N] = createNamespace("floor-select");
11408
+ const SidebarItem = withInstall(stdin_default$U);
11409
+ const [name$K, bem$L] = createNamespace("floor-select");
11056
11410
  const defaultBuildings = [{
11057
11411
  id: "building-a",
11058
11412
  text: "建筑A座",
@@ -11167,8 +11521,8 @@ const floorSelectProps = {
11167
11521
  },
11168
11522
  more: Boolean
11169
11523
  };
11170
- var stdin_default$V = vue.defineComponent({
11171
- name: name$M,
11524
+ var stdin_default$T = vue.defineComponent({
11525
+ name: name$K,
11172
11526
  props: floorSelectProps,
11173
11527
  emits: ["change", "update:activeBuilding", "update:modelValue"],
11174
11528
  setup(props2, {
@@ -11226,7 +11580,7 @@ var stdin_default$V = vue.defineComponent({
11226
11580
  });
11227
11581
  return vue.createVNode("div", {
11228
11582
  "key": item.id,
11229
- "class": bem$N("cell")
11583
+ "class": bem$L("cell")
11230
11584
  }, [cell || vue.createVNode(Cell, {
11231
11585
  "title": item.text,
11232
11586
  "border": index < spaces.value.length - 1,
@@ -11238,14 +11592,14 @@ var stdin_default$V = vue.defineComponent({
11238
11592
  }, null)]);
11239
11593
  };
11240
11594
  return () => vue.createVNode("div", {
11241
- "class": bem$N()
11595
+ "class": bem$L()
11242
11596
  }, [vue.createVNode(Tabs, {
11243
11597
  "active": activeBuilding.value,
11244
11598
  "type": "filter",
11245
11599
  "shrink": true,
11246
11600
  "more": props2.more,
11247
11601
  "showMore": showMore.value,
11248
- "class": bem$N("tabs"),
11602
+ "class": bem$L("tabs"),
11249
11603
  "onUpdate:active": selectBuilding,
11250
11604
  "onUpdate:showMore": (value) => {
11251
11605
  showMore.value = value;
@@ -11257,10 +11611,10 @@ var stdin_default$V = vue.defineComponent({
11257
11611
  "title": building.text
11258
11612
  }, null))]
11259
11613
  }), vue.createVNode("div", {
11260
- "class": bem$N("content")
11614
+ "class": bem$L("content")
11261
11615
  }, [vue.createVNode(Sidebar, {
11262
11616
  "modelValue": activeFloor.value,
11263
- "class": bem$N("sidebar"),
11617
+ "class": bem$L("sidebar"),
11264
11618
  "onUpdate:modelValue": (value) => {
11265
11619
  activeFloor.value = +value;
11266
11620
  }
@@ -11275,19 +11629,19 @@ var stdin_default$V = vue.defineComponent({
11275
11629
  "disabled": floor.disabled
11276
11630
  }, null))]
11277
11631
  }), vue.createVNode("div", {
11278
- "class": bem$N("cells")
11632
+ "class": bem$L("cells")
11279
11633
  }, [spaces.value.map(renderCell)])])]);
11280
11634
  }
11281
11635
  });
11282
- const FloorSelect = withInstall(stdin_default$V);
11283
- const [name$L, bem$M] = createNamespace("form-panel");
11636
+ const FloorSelect = withInstall(stdin_default$T);
11637
+ const [name$J, bem$K] = createNamespace("form-panel");
11284
11638
  const formPanelProps = {
11285
11639
  show: Boolean,
11286
11640
  title: String,
11287
11641
  confirmText: makeStringProp("确定")
11288
11642
  };
11289
- var stdin_default$U = vue.defineComponent({
11290
- name: name$L,
11643
+ var stdin_default$S = vue.defineComponent({
11644
+ name: name$J,
11291
11645
  props: formPanelProps,
11292
11646
  emits: ["update:show", "confirm"],
11293
11647
  setup(props2, {
@@ -11301,19 +11655,19 @@ var stdin_default$U = vue.defineComponent({
11301
11655
  };
11302
11656
  return () => vue.createVNode(ActionSheet, {
11303
11657
  "show": props2.show,
11304
- "class": bem$M(),
11658
+ "class": bem$K(),
11305
11659
  "onUpdate:show": (show) => emit("update:show", show)
11306
11660
  }, {
11307
11661
  default: () => {
11308
11662
  var _a;
11309
11663
  return [vue.createVNode("div", {
11310
- "class": bem$M("content")
11664
+ "class": bem$K("content")
11311
11665
  }, [vue.createVNode("div", {
11312
- "class": bem$M("nav-wrapper")
11666
+ "class": bem$K("nav-wrapper")
11313
11667
  }, [vue.createVNode(NavBar, {
11314
11668
  "title": props2.title,
11315
11669
  "border": false,
11316
- "class": bem$M("nav")
11670
+ "class": bem$K("nav")
11317
11671
  }, {
11318
11672
  left: () => vue.createVNode(Icon, {
11319
11673
  "name": "cross",
@@ -11321,9 +11675,9 @@ var stdin_default$U = vue.defineComponent({
11321
11675
  "onClick": close
11322
11676
  }, null)
11323
11677
  })]), vue.createVNode("div", {
11324
- "class": bem$M("body")
11678
+ "class": bem$K("body")
11325
11679
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), vue.createVNode("div", {
11326
- "class": bem$M("footer")
11680
+ "class": bem$K("footer")
11327
11681
  }, [vue.createVNode(Button, {
11328
11682
  "block": true,
11329
11683
  "type": "primary",
@@ -11335,8 +11689,8 @@ var stdin_default$U = vue.defineComponent({
11335
11689
  });
11336
11690
  }
11337
11691
  });
11338
- const FormPanel = withInstall(stdin_default$U);
11339
- const [name$K, bem$L] = createNamespace("friendly-tip");
11692
+ const FormPanel = withInstall(stdin_default$S);
11693
+ const [name$I, bem$J] = createNamespace("friendly-tip");
11340
11694
  const friendlyTipProps = {
11341
11695
  show: truthProp,
11342
11696
  message: String,
@@ -11353,8 +11707,8 @@ const friendlyTipProps = {
11353
11707
  default: "body"
11354
11708
  }
11355
11709
  };
11356
- var stdin_default$T = vue.defineComponent({
11357
- name: name$K,
11710
+ var stdin_default$R = vue.defineComponent({
11711
+ name: name$I,
11358
11712
  props: friendlyTipProps,
11359
11713
  emits: ["update:show"],
11360
11714
  setup(props2, {
@@ -11365,7 +11719,7 @@ var stdin_default$T = vue.defineComponent({
11365
11719
  return () => vue.createVNode(Popover, {
11366
11720
  "show": props2.show,
11367
11721
  "trigger": "manual",
11368
- "class": bem$L("popover"),
11722
+ "class": bem$J("popover"),
11369
11723
  "placement": props2.placement,
11370
11724
  "showArrow": props2.showArrow,
11371
11725
  "iconPrefix": props2.iconPrefix,
@@ -11378,19 +11732,19 @@ var stdin_default$T = vue.defineComponent({
11378
11732
  return (_a = slots.reference) == null ? void 0 : _a.call(slots);
11379
11733
  },
11380
11734
  default: () => vue.createVNode("div", {
11381
- "class": bem$L()
11735
+ "class": bem$J()
11382
11736
  }, [props2.icon && vue.createVNode(Icon, {
11383
11737
  "name": props2.icon,
11384
- "class": bem$L("icon"),
11738
+ "class": bem$J("icon"),
11385
11739
  "classPrefix": props2.iconPrefix
11386
11740
  }, null), vue.createVNode("span", {
11387
- "class": bem$L("message")
11741
+ "class": bem$J("message")
11388
11742
  }, [slots.default ? slots.default() : props2.message])])
11389
11743
  });
11390
11744
  }
11391
11745
  });
11392
- const FriendlyTip = withInstall(stdin_default$T);
11393
- const [name$J, bem$K] = createNamespace("grid");
11746
+ const FriendlyTip = withInstall(stdin_default$R);
11747
+ const [name$H, bem$I] = createNamespace("grid");
11394
11748
  const gridProps = {
11395
11749
  square: Boolean,
11396
11750
  center: truthProp,
@@ -11402,9 +11756,9 @@ const gridProps = {
11402
11756
  clickable: Boolean,
11403
11757
  columnNum: makeNumericProp(4)
11404
11758
  };
11405
- const GRID_KEY = Symbol(name$J);
11406
- var stdin_default$S = vue.defineComponent({
11407
- name: name$J,
11759
+ const GRID_KEY = Symbol(name$H);
11760
+ var stdin_default$Q = vue.defineComponent({
11761
+ name: name$H,
11408
11762
  props: gridProps,
11409
11763
  setup(props2, {
11410
11764
  slots
@@ -11421,15 +11775,15 @@ var stdin_default$S = vue.defineComponent({
11421
11775
  "style": {
11422
11776
  paddingLeft: addUnit(props2.gutter)
11423
11777
  },
11424
- "class": [bem$K(), {
11778
+ "class": [bem$I(), {
11425
11779
  [BORDER_TOP]: props2.border && !props2.gutter
11426
11780
  }]
11427
11781
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
11428
11782
  };
11429
11783
  }
11430
11784
  });
11431
- const Grid = withInstall(stdin_default$S);
11432
- const [name$I, bem$J] = createNamespace("grid-item");
11785
+ const Grid = withInstall(stdin_default$Q);
11786
+ const [name$G, bem$H] = createNamespace("grid-item");
11433
11787
  const gridItemProps = extend({}, routeProps, {
11434
11788
  dot: Boolean,
11435
11789
  text: String,
@@ -11439,8 +11793,8 @@ const gridItemProps = extend({}, routeProps, {
11439
11793
  iconPrefix: String,
11440
11794
  badgeProps: Object
11441
11795
  });
11442
- var stdin_default$R = vue.defineComponent({
11443
- name: name$I,
11796
+ var stdin_default$P = vue.defineComponent({
11797
+ name: name$G,
11444
11798
  props: gridItemProps,
11445
11799
  setup(props2, {
11446
11800
  slots
@@ -11506,7 +11860,7 @@ var stdin_default$R = vue.defineComponent({
11506
11860
  "name": props2.icon,
11507
11861
  "size": parent.props.iconSize,
11508
11862
  "badge": props2.badge,
11509
- "class": bem$J("icon"),
11863
+ "class": bem$H("icon"),
11510
11864
  "color": props2.iconColor,
11511
11865
  "badgeProps": props2.badgeProps,
11512
11866
  "classPrefix": props2.iconPrefix
@@ -11519,7 +11873,7 @@ var stdin_default$R = vue.defineComponent({
11519
11873
  }
11520
11874
  if (props2.text) {
11521
11875
  return vue.createVNode("span", {
11522
- "class": bem$J("text")
11876
+ "class": bem$H("text")
11523
11877
  }, [props2.text]);
11524
11878
  }
11525
11879
  };
@@ -11539,7 +11893,7 @@ var stdin_default$R = vue.defineComponent({
11539
11893
  direction,
11540
11894
  clickable
11541
11895
  } = parent.props;
11542
- const classes = [bem$J("content", [direction, {
11896
+ const classes = [bem$H("content", [direction, {
11543
11897
  center,
11544
11898
  square,
11545
11899
  reverse,
@@ -11549,7 +11903,7 @@ var stdin_default$R = vue.defineComponent({
11549
11903
  [BORDER]: border
11550
11904
  }];
11551
11905
  return vue.createVNode("div", {
11552
- "class": [bem$J({
11906
+ "class": [bem$H({
11553
11907
  square
11554
11908
  })],
11555
11909
  "style": rootStyle.value
@@ -11563,10 +11917,10 @@ var stdin_default$R = vue.defineComponent({
11563
11917
  };
11564
11918
  }
11565
11919
  });
11566
- const GridItem = withInstall(stdin_default$R);
11920
+ const GridItem = withInstall(stdin_default$P);
11567
11921
  const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
11568
- const bem$I = createNamespace("image-preview")[1];
11569
- var stdin_default$Q = vue.defineComponent({
11922
+ const bem$G = createNamespace("image-preview")[1];
11923
+ var stdin_default$O = vue.defineComponent({
11570
11924
  props: {
11571
11925
  src: String,
11572
11926
  show: Boolean,
@@ -11792,19 +12146,19 @@ var stdin_default$Q = vue.defineComponent({
11792
12146
  };
11793
12147
  return vue.createVNode(SwipeItem, {
11794
12148
  "ref": swipeItem,
11795
- "class": bem$I("swipe-item"),
12149
+ "class": bem$G("swipe-item"),
11796
12150
  "onTouchstartPassive": onTouchStart,
11797
12151
  "onTouchend": onTouchEnd,
11798
12152
  "onTouchcancel": onTouchEnd
11799
12153
  }, {
11800
12154
  default: () => [slots.image ? vue.createVNode("div", {
11801
- "class": bem$I("image-wrap")
12155
+ "class": bem$G("image-wrap")
11802
12156
  }, [slots.image({
11803
12157
  src: props2.src
11804
12158
  })]) : vue.createVNode(Image$1, {
11805
12159
  "src": props2.src,
11806
12160
  "fit": "contain",
11807
- "class": bem$I("image", {
12161
+ "class": bem$G("image", {
11808
12162
  vertical: vertical.value
11809
12163
  }),
11810
12164
  "style": imageStyle.value,
@@ -11814,7 +12168,7 @@ var stdin_default$Q = vue.defineComponent({
11814
12168
  };
11815
12169
  }
11816
12170
  });
11817
- const [name$H, bem$H] = createNamespace("image-preview");
12171
+ const [name$F, bem$F] = createNamespace("image-preview");
11818
12172
  const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
11819
12173
  const imagePreviewProps = {
11820
12174
  show: Boolean,
@@ -11837,8 +12191,8 @@ const imagePreviewProps = {
11837
12191
  closeOnPopstate: truthProp,
11838
12192
  closeIconPosition: makeStringProp("top-right")
11839
12193
  };
11840
- var stdin_default$P = vue.defineComponent({
11841
- name: name$H,
12194
+ var stdin_default$N = vue.defineComponent({
12195
+ name: name$F,
11842
12196
  props: imagePreviewProps,
11843
12197
  emits: ["scale", "close", "closed", "change", "update:show"],
11844
12198
  setup(props2, {
@@ -11876,7 +12230,7 @@ var stdin_default$P = vue.defineComponent({
11876
12230
  const renderIndex = () => {
11877
12231
  if (props2.showIndex) {
11878
12232
  return vue.createVNode("div", {
11879
- "class": bem$H("index")
12233
+ "class": bem$F("index")
11880
12234
  }, [slots.index ? slots.index({
11881
12235
  index: state.active
11882
12236
  }) : `${state.active + 1} / ${props2.images.length}`]);
@@ -11885,7 +12239,7 @@ var stdin_default$P = vue.defineComponent({
11885
12239
  const renderCover = () => {
11886
12240
  if (slots.cover) {
11887
12241
  return vue.createVNode("div", {
11888
- "class": bem$H("cover")
12242
+ "class": bem$F("cover")
11889
12243
  }, [slots.cover()]);
11890
12244
  }
11891
12245
  };
@@ -11893,14 +12247,14 @@ var stdin_default$P = vue.defineComponent({
11893
12247
  "ref": swipeRef,
11894
12248
  "lazyRender": true,
11895
12249
  "loop": props2.loop,
11896
- "class": bem$H("swipe"),
12250
+ "class": bem$F("swipe"),
11897
12251
  "duration": props2.swipeDuration,
11898
12252
  "initialSwipe": props2.startPosition,
11899
12253
  "showIndicators": props2.showIndicators,
11900
12254
  "indicatorColor": "white",
11901
12255
  "onChange": setActive
11902
12256
  }, {
11903
- default: () => [props2.images.map((image) => vue.createVNode(stdin_default$Q, {
12257
+ default: () => [props2.images.map((image) => vue.createVNode(stdin_default$O, {
11904
12258
  "src": image,
11905
12259
  "show": props2.show,
11906
12260
  "active": state.active,
@@ -11919,7 +12273,7 @@ var stdin_default$P = vue.defineComponent({
11919
12273
  return vue.createVNode(Icon, {
11920
12274
  "role": "button",
11921
12275
  "name": props2.closeIcon,
11922
- "class": [bem$H("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
12276
+ "class": [bem$F("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
11923
12277
  "onClick": emitClose
11924
12278
  }, null);
11925
12279
  }
@@ -11956,8 +12310,8 @@ var stdin_default$P = vue.defineComponent({
11956
12310
  }
11957
12311
  });
11958
12312
  return () => vue.createVNode(Popup, vue.mergeProps({
11959
- "class": [bem$H(), props2.className],
11960
- "overlayClass": [bem$H("overlay"), props2.overlayClass],
12313
+ "class": [bem$F(), props2.className],
12314
+ "overlayClass": [bem$F("overlay"), props2.overlayClass],
11961
12315
  "onClosed": onClosed,
11962
12316
  "onUpdate:show": updateShow
11963
12317
  }, pick(props2, popupProps$1)), {
@@ -12001,7 +12355,7 @@ function initInstance$2() {
12001
12355
  const onClosed = () => {
12002
12356
  state.images = [];
12003
12357
  };
12004
- return () => vue.createVNode(stdin_default$P, vue.mergeProps(state, {
12358
+ return () => vue.createVNode(stdin_default$N, vue.mergeProps(state, {
12005
12359
  "onClosed": onClosed,
12006
12360
  "onUpdate:show": toggle
12007
12361
  }), null);
@@ -12022,7 +12376,7 @@ const ImagePreview = (options, startPosition = 0) => {
12022
12376
  instance$2.open(extend({}, defaultConfig$1, options));
12023
12377
  return instance$2;
12024
12378
  };
12025
- ImagePreview.Component = withInstall(stdin_default$P);
12379
+ ImagePreview.Component = withInstall(stdin_default$N);
12026
12380
  ImagePreview.install = (app) => {
12027
12381
  app.use(ImagePreview.Component);
12028
12382
  };
@@ -12031,7 +12385,7 @@ function genAlphabet() {
12031
12385
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
12032
12386
  return indexList;
12033
12387
  }
12034
- const [name$G, bem$G] = createNamespace("index-bar");
12388
+ const [name$E, bem$E] = createNamespace("index-bar");
12035
12389
  const indexBarProps = {
12036
12390
  sticky: truthProp,
12037
12391
  zIndex: numericProp,
@@ -12043,9 +12397,9 @@ const indexBarProps = {
12043
12397
  default: genAlphabet
12044
12398
  }
12045
12399
  };
12046
- const INDEX_BAR_KEY = Symbol(name$G);
12047
- var stdin_default$O = vue.defineComponent({
12048
- name: name$G,
12400
+ const INDEX_BAR_KEY = Symbol(name$E);
12401
+ var stdin_default$M = vue.defineComponent({
12402
+ name: name$E,
12049
12403
  props: indexBarProps,
12050
12404
  emits: ["select", "change"],
12051
12405
  setup(props2, {
@@ -12157,7 +12511,7 @@ var stdin_default$O = vue.defineComponent({
12157
12511
  const renderIndexes = () => props2.indexList.map((index) => {
12158
12512
  const active = index === activeAnchor.value;
12159
12513
  return vue.createVNode("span", {
12160
- "class": bem$G("index", {
12514
+ "class": bem$E("index", {
12161
12515
  active
12162
12516
  }),
12163
12517
  "style": active ? highlightStyle.value : void 0,
@@ -12218,7 +12572,7 @@ var stdin_default$O = vue.defineComponent({
12218
12572
  };
12219
12573
  const renderSidebar = () => vue.createVNode("div", {
12220
12574
  "ref": sidebar,
12221
- "class": bem$G("sidebar"),
12575
+ "class": bem$E("sidebar"),
12222
12576
  "style": sidebarStyle.value,
12223
12577
  "onClick": onClickSidebar,
12224
12578
  "onTouchstartPassive": touch.start
@@ -12234,7 +12588,7 @@ var stdin_default$O = vue.defineComponent({
12234
12588
  var _a;
12235
12589
  return vue.createVNode("div", {
12236
12590
  "ref": root,
12237
- "class": bem$G()
12591
+ "class": bem$E()
12238
12592
  }, [props2.teleport ? vue.createVNode(vue.Teleport, {
12239
12593
  "to": props2.teleport
12240
12594
  }, {
@@ -12243,12 +12597,12 @@ var stdin_default$O = vue.defineComponent({
12243
12597
  };
12244
12598
  }
12245
12599
  });
12246
- const [name$F, bem$F] = createNamespace("index-anchor");
12600
+ const [name$D, bem$D] = createNamespace("index-anchor");
12247
12601
  const indexAnchorProps = {
12248
12602
  index: numericProp
12249
12603
  };
12250
- var stdin_default$N = vue.defineComponent({
12251
- name: name$F,
12604
+ var stdin_default$L = vue.defineComponent({
12605
+ name: name$D,
12252
12606
  props: indexAnchorProps,
12253
12607
  setup(props2, {
12254
12608
  slots
@@ -12311,7 +12665,7 @@ var stdin_default$N = vue.defineComponent({
12311
12665
  }
12312
12666
  }, [vue.createVNode("div", {
12313
12667
  "style": anchorStyle.value,
12314
- "class": [bem$F({
12668
+ "class": [bem$D({
12315
12669
  sticky
12316
12670
  }), {
12317
12671
  [BORDER_BOTTOM]: sticky
@@ -12320,9 +12674,9 @@ var stdin_default$N = vue.defineComponent({
12320
12674
  };
12321
12675
  }
12322
12676
  });
12323
- const IndexAnchor = withInstall(stdin_default$N);
12324
- const IndexBar = withInstall(stdin_default$O);
12325
- const [name$E, bem$E] = createNamespace("label");
12677
+ const IndexAnchor = withInstall(stdin_default$L);
12678
+ const IndexBar = withInstall(stdin_default$M);
12679
+ const [name$C, bem$C] = createNamespace("label");
12326
12680
  const labelProps = {
12327
12681
  label: makeStringProp(""),
12328
12682
  showLabel: truthProp,
@@ -12332,6 +12686,10 @@ const labelProps = {
12332
12686
  default: void 0
12333
12687
  },
12334
12688
  content: makeStringProp(""),
12689
+ contentList: {
12690
+ type: Array,
12691
+ default: () => []
12692
+ },
12335
12693
  type: makeStringProp("default"),
12336
12694
  size: makeStringProp("default"),
12337
12695
  contentAlign: makeStringProp("follow"),
@@ -12351,8 +12709,8 @@ const labelProps = {
12351
12709
  default: () => []
12352
12710
  }
12353
12711
  };
12354
- var stdin_default$M = vue.defineComponent({
12355
- name: name$E,
12712
+ var stdin_default$K = vue.defineComponent({
12713
+ name: name$C,
12356
12714
  props: labelProps,
12357
12715
  emits: ["click", "click-media", "long-press"],
12358
12716
  setup(props2, {
@@ -12361,7 +12719,9 @@ var stdin_default$M = vue.defineComponent({
12361
12719
  }) {
12362
12720
  let longPressTimer;
12363
12721
  const vertical = vue.computed(() => props2.vertical || props2.type === "media");
12364
- const ellipsis = vue.computed(() => props2.ellipsis && !vertical.value && !["tag", "media"].includes(props2.type));
12722
+ const hasContentList = vue.computed(() => props2.contentList.length > 0);
12723
+ const displayContent = vue.computed(() => hasContentList.value ? props2.contentList.join("、") : props2.content);
12724
+ const ellipsis = vue.computed(() => props2.ellipsis && !hasContentList.value && !vertical.value && !["tag", "media"].includes(props2.type));
12365
12725
  const displayLabel = vue.computed(() => {
12366
12726
  var _a;
12367
12727
  const showColon = (_a = props2.showColon) != null ? _a : !vertical.value && props2.contentAlign !== "right";
@@ -12393,24 +12753,24 @@ var stdin_default$M = vue.defineComponent({
12393
12753
  };
12394
12754
  const renderText = () => {
12395
12755
  var _a;
12396
- const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || props2.content;
12756
+ const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || displayContent.value;
12397
12757
  if (props2.type === "link") {
12398
12758
  return props2.href ? vue.createVNode("a", {
12399
- "class": bem$E("link"),
12759
+ "class": bem$C("link"),
12400
12760
  "href": props2.href,
12401
12761
  "onClick": (event) => emit("click", event)
12402
12762
  }, [content]) : vue.createVNode("button", {
12403
- "class": bem$E("link"),
12763
+ "class": bem$C("link"),
12404
12764
  "type": "button",
12405
12765
  "onClick": (event) => emit("click", event)
12406
12766
  }, [content]);
12407
12767
  }
12408
12768
  return vue.createVNode("span", {
12409
- "class": bem$E("text")
12769
+ "class": bem$C("text")
12410
12770
  }, [content]);
12411
12771
  };
12412
12772
  const renderTags = () => vue.createVNode("div", {
12413
- "class": bem$E("tags")
12773
+ "class": bem$C("tags")
12414
12774
  }, [props2.tags.map((tag) => vue.createVNode(Tag, {
12415
12775
  "key": tag,
12416
12776
  "type": "gray"
@@ -12418,10 +12778,10 @@ var stdin_default$M = vue.defineComponent({
12418
12778
  default: () => [tag]
12419
12779
  }))]);
12420
12780
  const renderMedia = () => vue.createVNode("div", {
12421
- "class": bem$E("media")
12781
+ "class": bem$C("media")
12422
12782
  }, [props2.media.map((item, index) => vue.createVNode("button", {
12423
12783
  "key": `${item.url}-${index}`,
12424
- "class": bem$E("media-item"),
12784
+ "class": bem$C("media-item"),
12425
12785
  "type": "button",
12426
12786
  "onClick": (event) => emit("click-media", item, index, event)
12427
12787
  }, [vue.createVNode(Image$1, {
@@ -12430,7 +12790,7 @@ var stdin_default$M = vue.defineComponent({
12430
12790
  "fit": "cover"
12431
12791
  }, null), item.type === "video" && vue.createVNode(Icon, {
12432
12792
  "name": "play-circle-o",
12433
- "class": bem$E("play")
12793
+ "class": bem$C("play")
12434
12794
  }, null)]))]);
12435
12795
  const renderContent = () => {
12436
12796
  if (props2.type === "tag")
@@ -12440,40 +12800,41 @@ var stdin_default$M = vue.defineComponent({
12440
12800
  return renderText();
12441
12801
  };
12442
12802
  return () => vue.createVNode("div", {
12443
- "class": bem$E([props2.type, {
12803
+ "class": bem$C([props2.type, {
12444
12804
  mini: props2.size === "mini",
12445
12805
  vertical: vertical.value,
12446
12806
  ellipsis: ellipsis.value,
12447
12807
  location: showLocation.value,
12448
12808
  "content-right": props2.contentAlign === "right",
12449
- "same-color": props2.sameColor
12809
+ "same-color": props2.sameColor,
12810
+ "multiple-content": hasContentList.value
12450
12811
  }])
12451
12812
  }, [showLeftIcon.value && vue.createVNode("div", {
12452
- "class": bem$E("left-icon")
12813
+ "class": bem$C("left-icon")
12453
12814
  }, [vue.createVNode(Icon, {
12454
12815
  "name": props2.leftIcon,
12455
12816
  "size": "12"
12456
12817
  }, null)]), props2.showLabel && vue.createVNode("span", {
12457
- "class": bem$E("label"),
12818
+ "class": bem$C("label"),
12458
12819
  "onPointerdown": () => startLongPress("label", displayLabel.value),
12459
12820
  "onPointerup": clearLongPress,
12460
12821
  "onPointercancel": clearLongPress,
12461
12822
  "onPointerleave": clearLongPress
12462
12823
  }, [displayLabel.value]), props2.showContent && vue.createVNode("div", {
12463
- "class": bem$E("value"),
12464
- "onPointerdown": () => startLongPress("content", props2.content),
12824
+ "class": bem$C("value"),
12825
+ "onPointerdown": () => startLongPress("content", displayContent.value),
12465
12826
  "onPointerup": clearLongPress,
12466
12827
  "onPointercancel": clearLongPress,
12467
12828
  "onPointerleave": clearLongPress
12468
12829
  }, [renderContent(), showLocation.value && vue.createVNode("div", {
12469
- "class": bem$E("location")
12830
+ "class": bem$C("location")
12470
12831
  }, [vue.createVNode(Icon, {
12471
12832
  "name": "location-o"
12472
12833
  }, null), vue.createVNode("span", null, [props2.location])])])]);
12473
12834
  }
12474
12835
  });
12475
- const Label = withInstall(stdin_default$M);
12476
- const [name$D, bem$D] = createNamespace("info-card");
12836
+ const Label = withInstall(stdin_default$K);
12837
+ const [name$B, bem$B] = createNamespace("info-card");
12477
12838
  const infoCardProps = {
12478
12839
  title: makeStringProp(""),
12479
12840
  showTitle: truthProp,
@@ -12495,8 +12856,8 @@ const infoCardProps = {
12495
12856
  expandText: makeStringProp("查看更多"),
12496
12857
  collapseText: makeStringProp("收起")
12497
12858
  };
12498
- var stdin_default$L = vue.defineComponent({
12499
- name: name$D,
12859
+ var stdin_default$J = vue.defineComponent({
12860
+ name: name$B,
12500
12861
  props: infoCardProps,
12501
12862
  emits: ["update:modelValue", "change", "click", "click-media"],
12502
12863
  setup(props2, {
@@ -12544,22 +12905,22 @@ var stdin_default$L = vue.defineComponent({
12544
12905
  "name": "van-info-card-expand"
12545
12906
  }, {
12546
12907
  default: () => [showExtra.value && vue.createVNode("div", {
12547
- "class": bem$D("extra")
12908
+ "class": bem$B("extra")
12548
12909
  }, [visibleExtraFields.value.map(renderField), extraSlot])]
12549
12910
  });
12550
12911
  };
12551
12912
  return () => {
12552
12913
  var _a, _b;
12553
12914
  return vue.createVNode("section", {
12554
- "class": bem$D()
12915
+ "class": bem$B()
12555
12916
  }, [props2.showCacheBadge && vue.createVNode("div", {
12556
- "class": bem$D("cache-badge")
12917
+ "class": bem$B("cache-badge")
12557
12918
  }, [vue.createVNode(Icon, {
12558
12919
  "name": "success",
12559
12920
  "size": "12",
12560
- "class": bem$D("cache-badge-icon")
12921
+ "class": bem$B("cache-badge-icon")
12561
12922
  }, null), vue.createVNode("span", null, [props2.cacheText])]), props2.showTitle && (slots.title || props2.title) && vue.createVNode("div", {
12562
- "class": bem$D("title", {
12923
+ "class": bem$B("title", {
12563
12924
  collapsible: showTitleCollapse.value
12564
12925
  }),
12565
12926
  "role": showTitleCollapse.value ? "button" : void 0,
@@ -12568,14 +12929,14 @@ var stdin_default$L = vue.defineComponent({
12568
12929
  "onClick": showTitleCollapse.value ? onTitleCollapse : void 0,
12569
12930
  "onKeydown": showTitleCollapse.value ? onTitleCollapseKeydown : void 0
12570
12931
  }, [vue.createVNode("span", {
12571
- "class": bem$D("title-content")
12932
+ "class": bem$B("title-content")
12572
12933
  }, [((_a = slots.title) == null ? void 0 : _a.call(slots)) || props2.title]), showTitleCollapse.value && vue.createVNode("div", {
12573
- "class": bem$D("title-collapse"),
12934
+ "class": bem$B("title-collapse"),
12574
12935
  "aria-hidden": "true"
12575
12936
  }, [vue.createVNode(Icon, {
12576
12937
  "name": "trangle-down",
12577
12938
  "size": "16",
12578
- "class": bem$D("title-collapse-icon", {
12939
+ "class": bem$B("title-collapse-icon", {
12579
12940
  expanded: props2.modelValue
12580
12941
  })
12581
12942
  }, null)])]), visibleFields.value.map(renderField), (_b = slots.default) == null ? void 0 : _b.call(slots), hasExtra.value && showCollapse.value && !showTitleCollapse.value && vue.createVNode(CollapseToggle, {
@@ -12586,255 +12947,12 @@ var stdin_default$L = vue.defineComponent({
12586
12947
  "onUpdate:modelValue": (value) => emit("update:modelValue", value),
12587
12948
  "onChange": (value) => emit("change", value)
12588
12949
  }, null), hasExtra.value && !showCollapse.value && props2.divider && vue.createVNode(Divider, {
12589
- "class": bem$D("divider")
12950
+ "class": bem$B("divider")
12590
12951
  }, null), renderExtra()]);
12591
12952
  };
12592
12953
  }
12593
12954
  });
12594
- const InfoCard = withInstall(stdin_default$L);
12595
- const [name$C, bem$C, t$6] = createNamespace("list");
12596
- const listProps = {
12597
- error: Boolean,
12598
- offset: makeNumericProp(300),
12599
- loading: Boolean,
12600
- finished: Boolean,
12601
- errorText: String,
12602
- direction: makeStringProp("down"),
12603
- loadingText: String,
12604
- finishedText: String,
12605
- immediateCheck: truthProp
12606
- };
12607
- var stdin_default$K = vue.defineComponent({
12608
- name: name$C,
12609
- props: listProps,
12610
- emits: ["load", "update:error", "update:loading"],
12611
- setup(props2, {
12612
- emit,
12613
- slots
12614
- }) {
12615
- const loading = vue.ref(props2.loading);
12616
- const root = vue.ref();
12617
- const placeholder = vue.ref();
12618
- const tabStatus = useTabStatus();
12619
- const scrollParent = use.useScrollParent(root);
12620
- const check = () => {
12621
- vue.nextTick(() => {
12622
- if (loading.value || props2.finished || props2.error || // skip check when inside an inactive tab
12623
- (tabStatus == null ? void 0 : tabStatus.value) === false) {
12624
- return;
12625
- }
12626
- const {
12627
- offset,
12628
- direction
12629
- } = props2;
12630
- const scrollParentRect = use.useRect(scrollParent);
12631
- if (!scrollParentRect.height || isHidden(root)) {
12632
- return;
12633
- }
12634
- let isReachEdge = false;
12635
- const placeholderRect = use.useRect(placeholder);
12636
- if (direction === "up") {
12637
- isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;
12638
- } else {
12639
- isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;
12640
- }
12641
- if (isReachEdge) {
12642
- loading.value = true;
12643
- emit("update:loading", true);
12644
- emit("load");
12645
- }
12646
- });
12647
- };
12648
- const renderFinishedText = () => {
12649
- if (props2.finished) {
12650
- const text = slots.finished ? slots.finished() : props2.finishedText;
12651
- if (text) {
12652
- return vue.createVNode("div", {
12653
- "class": bem$C("finished-text")
12654
- }, [text]);
12655
- }
12656
- }
12657
- };
12658
- const clickErrorText = () => {
12659
- emit("update:error", false);
12660
- check();
12661
- };
12662
- const renderErrorText = () => {
12663
- if (props2.error) {
12664
- const text = slots.error ? slots.error() : props2.errorText;
12665
- if (text) {
12666
- return vue.createVNode("div", {
12667
- "role": "button",
12668
- "class": bem$C("error-text"),
12669
- "tabindex": 0,
12670
- "onClick": clickErrorText
12671
- }, [text]);
12672
- }
12673
- }
12674
- };
12675
- const renderLoading = () => {
12676
- if (loading.value && !props2.finished) {
12677
- return vue.createVNode("div", {
12678
- "class": bem$C("loading")
12679
- }, [slots.loading ? slots.loading() : vue.createVNode(Loading, {
12680
- "class": bem$C("loading-icon")
12681
- }, {
12682
- default: () => [props2.loadingText || t$6("loading")]
12683
- })]);
12684
- }
12685
- };
12686
- vue.watch(() => [props2.loading, props2.finished, props2.error], check);
12687
- if (tabStatus) {
12688
- vue.watch(tabStatus, (tabActive) => {
12689
- if (tabActive) {
12690
- check();
12691
- }
12692
- });
12693
- }
12694
- vue.onUpdated(() => {
12695
- loading.value = props2.loading;
12696
- });
12697
- vue.onMounted(() => {
12698
- if (props2.immediateCheck) {
12699
- check();
12700
- }
12701
- });
12702
- useExpose({
12703
- check
12704
- });
12705
- use.useEventListener("scroll", check, {
12706
- target: scrollParent,
12707
- passive: true
12708
- });
12709
- return () => {
12710
- var _a;
12711
- const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
12712
- const Placeholder = vue.createVNode("div", {
12713
- "ref": placeholder,
12714
- "class": bem$C("placeholder")
12715
- }, null);
12716
- return vue.createVNode("div", {
12717
- "ref": root,
12718
- "role": "feed",
12719
- "class": bem$C(),
12720
- "aria-busy": loading.value
12721
- }, [props2.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props2.direction === "up" ? Content : Placeholder]);
12722
- };
12723
- }
12724
- });
12725
- const List = withInstall(stdin_default$K);
12726
- const [name$B, bem$B, t$5] = createNamespace("search");
12727
- const searchProps = extend({}, fieldSharedProps, {
12728
- label: String,
12729
- shape: makeStringProp("round"),
12730
- variant: makeStringProp("default"),
12731
- inputAlign: makeStringProp("left"),
12732
- leftIcon: makeStringProp("search"),
12733
- clearable: truthProp,
12734
- actionText: String,
12735
- background: String,
12736
- showAction: Boolean
12737
- });
12738
- var stdin_default$J = vue.defineComponent({
12739
- name: name$B,
12740
- props: searchProps,
12741
- emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
12742
- setup(props2, {
12743
- emit,
12744
- slots,
12745
- attrs
12746
- }) {
12747
- const id = useId();
12748
- const filedRef = vue.ref();
12749
- const onCancel = () => {
12750
- if (!slots.action) {
12751
- emit("update:modelValue", "");
12752
- emit("cancel");
12753
- }
12754
- };
12755
- const onKeypress = (event) => {
12756
- const ENTER_CODE = 13;
12757
- if (event.keyCode === ENTER_CODE) {
12758
- preventDefault(event);
12759
- emit("search", props2.modelValue);
12760
- }
12761
- };
12762
- const getInputId = () => props2.id || `${id}-input`;
12763
- const renderLabel = () => {
12764
- if (slots.label || props2.label) {
12765
- return vue.createVNode("label", {
12766
- "class": bem$B("label"),
12767
- "for": getInputId()
12768
- }, [slots.label ? slots.label() : props2.label]);
12769
- }
12770
- };
12771
- const renderAction = () => {
12772
- if (props2.showAction) {
12773
- const text = props2.actionText || t$5("cancel");
12774
- return vue.createVNode("div", {
12775
- "class": bem$B("action"),
12776
- "role": "button",
12777
- "tabindex": 0,
12778
- "onClick": onCancel
12779
- }, [slots.action ? slots.action() : text]);
12780
- }
12781
- };
12782
- const blur = () => {
12783
- var _a;
12784
- return (_a = filedRef.value) == null ? void 0 : _a.blur();
12785
- };
12786
- const focus = () => {
12787
- var _a;
12788
- return (_a = filedRef.value) == null ? void 0 : _a.focus();
12789
- };
12790
- const onBlur = (event) => emit("blur", event);
12791
- const onFocus = (event) => emit("focus", event);
12792
- const onClear = (event) => emit("clear", event);
12793
- const onClickInput = (event) => emit("click-input", event);
12794
- const onClickLeftIcon = (event) => emit("click-left-icon", event);
12795
- const onClickRightIcon = (event) => emit("click-right-icon", event);
12796
- const fieldPropNames = Object.keys(fieldSharedProps);
12797
- const renderField = () => {
12798
- const fieldAttrs = extend({}, attrs, pick(props2, fieldPropNames), {
12799
- id: getInputId()
12800
- });
12801
- const onInput = (value) => emit("update:modelValue", value);
12802
- return vue.createVNode(Field, vue.mergeProps({
12803
- "ref": filedRef,
12804
- "type": "search",
12805
- "class": bem$B("field"),
12806
- "border": false,
12807
- "onBlur": onBlur,
12808
- "onFocus": onFocus,
12809
- "onClear": onClear,
12810
- "onKeypress": onKeypress,
12811
- "onClick-input": onClickInput,
12812
- "onClick-left-icon": onClickLeftIcon,
12813
- "onClick-right-icon": onClickRightIcon,
12814
- "onUpdate:modelValue": onInput
12815
- }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
12816
- };
12817
- useExpose({
12818
- focus,
12819
- blur
12820
- });
12821
- return () => {
12822
- var _a;
12823
- return vue.createVNode("div", {
12824
- "class": bem$B({
12825
- "show-action": props2.showAction,
12826
- pure: props2.variant === "pure"
12827
- }),
12828
- "style": {
12829
- background: props2.variant === "default" ? props2.background : void 0
12830
- }
12831
- }, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
12832
- "class": bem$B("content", props2.shape)
12833
- }, [renderLabel(), renderField()]), renderAction()]);
12834
- };
12835
- }
12836
- });
12837
- const Search = withInstall(stdin_default$J);
12955
+ const InfoCard = withInstall(stdin_default$J);
12838
12956
  var __defProp = Object.defineProperty;
12839
12957
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
12840
12958
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -13546,6 +13664,8 @@ var stdin_default$E = vue.defineComponent({
13546
13664
  default: ""
13547
13665
  },
13548
13666
  selected: Boolean,
13667
+ showDetail: truthProp,
13668
+ stepperTheme: makeStringProp("round-outline"),
13549
13669
  enableInputDialog: truthProp,
13550
13670
  showWarning: Boolean,
13551
13671
  warning: {
@@ -13621,7 +13741,7 @@ var stdin_default$E = vue.defineComponent({
13621
13741
  };
13622
13742
  vue.onBeforeUnmount(clearDetailLongPress);
13623
13743
  return () => {
13624
- var _a, _b, _c, _d, _e;
13744
+ var _a, _b, _c, _d;
13625
13745
  return vue.createVNode("div", {
13626
13746
  "class": bem$x({
13627
13747
  selected: props2.selected
@@ -13650,7 +13770,7 @@ var stdin_default$E = vue.defineComponent({
13650
13770
  "modelValue": props2.modelValue,
13651
13771
  "min": 0,
13652
13772
  "max": props2.max,
13653
- "theme": "round",
13773
+ "theme": props2.stepperTheme,
13654
13774
  "buttonSize": 18,
13655
13775
  "disableInput": true,
13656
13776
  "onUpdate:modelValue": (value) => emit("update:modelValue", Number(value))
@@ -13661,7 +13781,7 @@ var stdin_default$E = vue.defineComponent({
13661
13781
  "onClick": openInputDialog
13662
13782
  }, null)]), vue.createVNode("span", {
13663
13783
  "class": bem$x("unit")
13664
- }, [props2.item.unit])]), vue.createVNode("p", {
13784
+ }, [props2.item.unit])]), props2.showDetail && vue.createVNode("p", {
13665
13785
  "class": bem$x("desc"),
13666
13786
  "onTouchstart": onDetailLongPressStart,
13667
13787
  "onTouchmove": clearDetailLongPress,
@@ -13682,7 +13802,9 @@ var stdin_default$E = vue.defineComponent({
13682
13802
  "style": {
13683
13803
  fontWeight: props2.picking.outboundBold ? 600 : 400
13684
13804
  }
13685
- }, [props2.picking.outboundValue])]), (_e = slots.default) == null ? void 0 : _e.call(slots), vue.createVNode(Dialog.Component, {
13805
+ }, [props2.picking.outboundValue])]), slots.default && vue.createVNode("div", {
13806
+ "class": bem$x("bottom")
13807
+ }, [slots.default()]), vue.createVNode(Dialog.Component, {
13686
13808
  "show": showInputDialog.value,
13687
13809
  "inputValue": inputValue.value,
13688
13810
  "inputAlign": "left",
@@ -14719,7 +14841,6 @@ var stdin_default$y = vue.defineComponent({
14719
14841
  return vue.createVNode(Label, {
14720
14842
  "key": `${field.label}-${index}`,
14721
14843
  "class": bem$t("field"),
14722
- "size": "mini",
14723
14844
  "label": field.label,
14724
14845
  "showLabel": field.showLabel,
14725
14846
  "showContent": field.showContent,
@@ -17257,7 +17378,7 @@ Rate.install = (app) => {
17257
17378
  installRate(app);
17258
17379
  app.use(RateCell);
17259
17380
  };
17260
- const Row = withInstall(stdin_default$1f);
17381
+ const Row = withInstall(stdin_default$1c);
17261
17382
  const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
17262
17383
  const iconMap = {
17263
17384
  qq: "qq",
@@ -18436,8 +18557,11 @@ const titleBarProps = {
18436
18557
  description: makeStringProp(""),
18437
18558
  icon: String,
18438
18559
  showIcon: Boolean,
18560
+ rightIcon: makeStringProp("cross"),
18561
+ showRightIcon: Boolean,
18439
18562
  showDescription: Boolean,
18440
18563
  showArrow: Boolean,
18564
+ showExpandIcon: truthProp,
18441
18565
  actionText: makeStringProp("操作"),
18442
18566
  showAction: Boolean,
18443
18567
  size: makeStringProp("default"),
@@ -18508,11 +18632,14 @@ var stdin_default$9 = vue.defineComponent({
18508
18632
  "onClick": onActionClick
18509
18633
  }, null)])]), props2.size !== "mini" && props2.showDescription && props2.description && vue.createVNode("span", {
18510
18634
  "class": bem$4("description")
18511
- }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props2.description])]), (props2.showArrow || props2.expandable) && vue.createVNode(Icon, {
18635
+ }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props2.description])]), (props2.showArrow || props2.expandable && props2.showExpandIcon) && vue.createVNode(Icon, {
18512
18636
  "name": "arrow-up",
18513
18637
  "class": bem$4("arrow", {
18514
18638
  expanded: props2.expandable && props2.modelValue
18515
18639
  })
18640
+ }, null), props2.showRightIcon && vue.createVNode(Icon, {
18641
+ "name": props2.rightIcon,
18642
+ "class": bem$4("right-icon")
18516
18643
  }, null)]), (!props2.expandable || props2.modelValue) && ((_c = slots.default) == null ? void 0 : _c.call(slots))]);
18517
18644
  };
18518
18645
  }
@@ -18811,6 +18938,7 @@ const uploaderProps = {
18811
18938
  deletable: truthProp,
18812
18939
  afterRead: Function,
18813
18940
  showUpload: truthProp,
18941
+ uploadFirst: Boolean,
18814
18942
  modelValue: makeArrayProp(),
18815
18943
  beforeRead: Function,
18816
18944
  beforeDelete: Function,
@@ -19031,7 +19159,7 @@ var stdin_default$7 = vue.defineComponent({
19031
19159
  "class": bem$3("wrapper", {
19032
19160
  disabled: props2.disabled
19033
19161
  })
19034
- }, [renderPreviewList(), renderUpload()])]);
19162
+ }, [props2.uploadFirst ? vue.createVNode(vue.Fragment, null, [renderUpload(), renderPreviewList()]) : vue.createVNode(vue.Fragment, null, [renderPreviewList(), renderUpload()])])]);
19035
19163
  }
19036
19164
  });
19037
19165
  const Uploader = withInstall(stdin_default$7);
@@ -20911,7 +21039,7 @@ const Lazyload = {
20911
21039
  });
20912
21040
  }
20913
21041
  };
20914
- const version = "0.0.39";
21042
+ const version = "0.0.41";
20915
21043
  function install(app) {
20916
21044
  const components = [
20917
21045
  ActionBar,