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