vant 4.2.1 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/date-picker/utils.mjs +3 -4
- package/es/field/index.css +1 -1
- package/es/image/Image.mjs +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/locale/lang/bg-BG.d.ts +2 -1
- package/es/locale/lang/bg-BG.mjs +2 -1
- package/es/locale/lang/bn-BD.d.ts +2 -1
- package/es/locale/lang/bn-BD.mjs +2 -1
- package/es/locale/lang/da-DK.d.ts +2 -1
- package/es/locale/lang/da-DK.mjs +2 -1
- package/es/locale/lang/de-DE-formal.d.ts +2 -1
- package/es/locale/lang/de-DE-formal.mjs +2 -1
- package/es/locale/lang/de-DE.d.ts +2 -1
- package/es/locale/lang/de-DE.mjs +2 -1
- package/es/locale/lang/el-GR.d.ts +2 -1
- package/es/locale/lang/el-GR.mjs +2 -1
- package/es/locale/lang/en-US.d.ts +2 -1
- package/es/locale/lang/en-US.mjs +2 -1
- package/es/locale/lang/eo-EO.d.ts +2 -1
- package/es/locale/lang/eo-EO.mjs +2 -1
- package/es/locale/lang/es-ES.d.ts +2 -1
- package/es/locale/lang/es-ES.mjs +2 -1
- package/es/locale/lang/fa-IR.d.ts +2 -1
- package/es/locale/lang/fa-IR.mjs +2 -1
- package/es/locale/lang/fr-FR.d.ts +2 -1
- package/es/locale/lang/fr-FR.mjs +2 -1
- package/es/locale/lang/he-IL.d.ts +2 -1
- package/es/locale/lang/he-IL.mjs +2 -1
- package/es/locale/lang/hi-IN.d.ts +2 -1
- package/es/locale/lang/hi-IN.mjs +2 -1
- package/es/locale/lang/id-ID.d.ts +2 -1
- package/es/locale/lang/id-ID.mjs +2 -1
- package/es/locale/lang/is-IS.d.ts +2 -1
- package/es/locale/lang/is-IS.mjs +2 -1
- package/es/locale/lang/it-IT.d.ts +2 -1
- package/es/locale/lang/it-IT.mjs +3 -10
- package/es/locale/lang/ja-JP.d.ts +2 -1
- package/es/locale/lang/ja-JP.mjs +2 -1
- package/es/locale/lang/km-KH.d.ts +2 -1
- package/es/locale/lang/km-KH.mjs +2 -1
- package/es/locale/lang/ko-KR.d.ts +2 -1
- package/es/locale/lang/ko-KR.mjs +2 -1
- package/es/locale/lang/la-LA.d.ts +2 -1
- package/es/locale/lang/la-LA.mjs +2 -1
- package/es/locale/lang/mm-MN.d.ts +2 -1
- package/es/locale/lang/mm-MN.mjs +2 -1
- package/es/locale/lang/nb-NO.d.ts +2 -1
- package/es/locale/lang/nb-NO.mjs +2 -1
- package/es/locale/lang/nl-NL.d.ts +2 -1
- package/es/locale/lang/nl-NL.mjs +2 -1
- package/es/locale/lang/pt-BR.d.ts +2 -1
- package/es/locale/lang/pt-BR.mjs +2 -1
- package/es/locale/lang/ro-RO.d.ts +2 -1
- package/es/locale/lang/ro-RO.mjs +2 -1
- package/es/locale/lang/ru-RU.d.ts +2 -1
- package/es/locale/lang/ru-RU.mjs +2 -1
- package/es/locale/lang/sv-SE.d.ts +2 -1
- package/es/locale/lang/sv-SE.mjs +2 -1
- package/es/locale/lang/th-TH.d.ts +2 -1
- package/es/locale/lang/th-TH.mjs +2 -1
- package/es/locale/lang/tr-TR.d.ts +2 -1
- package/es/locale/lang/tr-TR.mjs +2 -1
- package/es/locale/lang/uk-UA.d.ts +2 -1
- package/es/locale/lang/uk-UA.mjs +3 -10
- package/es/locale/lang/vi-VN.d.ts +2 -1
- package/es/locale/lang/vi-VN.mjs +2 -1
- package/es/locale/lang/zh-CN.d.ts +2 -1
- package/es/locale/lang/zh-CN.mjs +2 -1
- package/es/locale/lang/zh-HK.d.ts +2 -1
- package/es/locale/lang/zh-HK.mjs +2 -1
- package/es/locale/lang/zh-TW.d.ts +2 -1
- package/es/locale/lang/zh-TW.mjs +2 -1
- package/es/signature/Signature.d.ts +63 -0
- package/es/signature/Signature.mjs +129 -0
- package/es/signature/index.css +1 -0
- package/es/signature/index.d.ts +50 -0
- package/es/signature/index.mjs +8 -0
- package/es/signature/style/index.d.ts +1 -0
- package/es/signature/style/index.mjs +6 -0
- package/lib/date-picker/utils.js +2 -3
- package/lib/field/index.css +1 -1
- package/lib/image/Image.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/locale/lang/bg-BG.d.ts +2 -1
- package/lib/locale/lang/bg-BG.js +2 -1
- package/lib/locale/lang/bn-BD.d.ts +2 -1
- package/lib/locale/lang/bn-BD.js +2 -1
- package/lib/locale/lang/da-DK.d.ts +2 -1
- package/lib/locale/lang/da-DK.js +2 -1
- package/lib/locale/lang/de-DE-formal.d.ts +2 -1
- package/lib/locale/lang/de-DE-formal.js +2 -1
- package/lib/locale/lang/de-DE.d.ts +2 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/el-GR.d.ts +2 -1
- package/lib/locale/lang/el-GR.js +2 -1
- package/lib/locale/lang/en-US.d.ts +2 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/eo-EO.d.ts +2 -1
- package/lib/locale/lang/eo-EO.js +2 -1
- package/lib/locale/lang/es-ES.d.ts +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/fa-IR.d.ts +2 -1
- package/lib/locale/lang/fa-IR.js +2 -1
- package/lib/locale/lang/fr-FR.d.ts +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/he-IL.d.ts +2 -1
- package/lib/locale/lang/he-IL.js +2 -1
- package/lib/locale/lang/hi-IN.d.ts +2 -1
- package/lib/locale/lang/hi-IN.js +2 -1
- package/lib/locale/lang/id-ID.d.ts +2 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/is-IS.d.ts +2 -1
- package/lib/locale/lang/is-IS.js +2 -1
- package/lib/locale/lang/it-IT.d.ts +2 -1
- package/lib/locale/lang/it-IT.js +3 -10
- package/lib/locale/lang/ja-JP.d.ts +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/km-KH.d.ts +2 -1
- package/lib/locale/lang/km-KH.js +2 -1
- package/lib/locale/lang/ko-KR.d.ts +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/la-LA.d.ts +2 -1
- package/lib/locale/lang/la-LA.js +2 -1
- package/lib/locale/lang/mm-MN.d.ts +2 -1
- package/lib/locale/lang/mm-MN.js +2 -1
- package/lib/locale/lang/nb-NO.d.ts +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nl-NL.d.ts +2 -1
- package/lib/locale/lang/nl-NL.js +2 -1
- package/lib/locale/lang/pt-BR.d.ts +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/ro-RO.d.ts +2 -1
- package/lib/locale/lang/ro-RO.js +2 -1
- package/lib/locale/lang/ru-RU.d.ts +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/sv-SE.d.ts +2 -1
- package/lib/locale/lang/sv-SE.js +2 -1
- package/lib/locale/lang/th-TH.d.ts +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/tr-TR.d.ts +2 -1
- package/lib/locale/lang/tr-TR.js +2 -1
- package/lib/locale/lang/uk-UA.d.ts +2 -1
- package/lib/locale/lang/uk-UA.js +3 -10
- package/lib/locale/lang/vi-VN.d.ts +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/zh-CN.d.ts +2 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-HK.d.ts +2 -1
- package/lib/locale/lang/zh-HK.js +2 -1
- package/lib/locale/lang/zh-TW.d.ts +2 -1
- package/lib/locale/lang/zh-TW.js +2 -1
- package/lib/signature/Signature.d.ts +63 -0
- package/lib/signature/Signature.js +148 -0
- package/lib/signature/index.css +1 -0
- package/lib/signature/index.d.ts +50 -0
- package/lib/signature/index.js +37 -0
- package/lib/signature/style/index.d.ts +1 -0
- package/lib/signature/style/index.js +6 -0
- package/lib/vant.cjs.js +909 -786
- package/lib/vant.es.js +909 -786
- package/lib/vant.js +909 -786
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +6 -6
package/lib/vant.es.js
CHANGED
@@ -235,12 +235,13 @@ function deepAssign(to, from) {
|
|
235
235
|
});
|
236
236
|
return to;
|
237
237
|
}
|
238
|
-
var stdin_default$
|
238
|
+
var stdin_default$1P = {
|
239
239
|
name: "姓名",
|
240
240
|
tel: "电话",
|
241
241
|
save: "保存",
|
242
|
-
|
242
|
+
clear: "清空",
|
243
243
|
cancel: "取消",
|
244
|
+
confirm: "确认",
|
244
245
|
delete: "删除",
|
245
246
|
loading: "加载中...",
|
246
247
|
noCoupon: "暂无优惠券",
|
@@ -298,7 +299,7 @@ var stdin_default$1O = {
|
|
298
299
|
};
|
299
300
|
const lang = ref("zh-CN");
|
300
301
|
const messages = reactive({
|
301
|
-
"zh-CN": stdin_default$
|
302
|
+
"zh-CN": stdin_default$1P
|
302
303
|
});
|
303
304
|
const Locale = {
|
304
305
|
messages() {
|
@@ -313,11 +314,11 @@ const Locale = {
|
|
313
314
|
}
|
314
315
|
};
|
315
316
|
const useCurrentLang = () => lang;
|
316
|
-
var stdin_default$
|
317
|
+
var stdin_default$1O = Locale;
|
317
318
|
function createTranslate(name2) {
|
318
319
|
const prefix = camelize(name2) + ".";
|
319
320
|
return (path, ...args) => {
|
320
|
-
const messages2 = stdin_default$
|
321
|
+
const messages2 = stdin_default$1O.messages();
|
321
322
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
322
323
|
return isFunction(message) ? message(...args) : message;
|
323
324
|
};
|
@@ -439,20 +440,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
439
440
|
}
|
440
441
|
}, [renderContent()]);
|
441
442
|
}
|
442
|
-
const [name$
|
443
|
-
const ACTION_BAR_KEY = Symbol(name$
|
443
|
+
const [name$1E, bem$1z] = createNamespace("action-bar");
|
444
|
+
const ACTION_BAR_KEY = Symbol(name$1E);
|
444
445
|
const actionBarProps = {
|
445
446
|
placeholder: Boolean,
|
446
447
|
safeAreaInsetBottom: truthProp
|
447
448
|
};
|
448
|
-
var stdin_default$
|
449
|
-
name: name$
|
449
|
+
var stdin_default$1N = defineComponent({
|
450
|
+
name: name$1E,
|
450
451
|
props: actionBarProps,
|
451
452
|
setup(props, {
|
452
453
|
slots
|
453
454
|
}) {
|
454
455
|
const root = ref();
|
455
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
456
|
+
const renderPlaceholder = usePlaceholder(root, bem$1z);
|
456
457
|
const {
|
457
458
|
linkChildren
|
458
459
|
} = useChildren(ACTION_BAR_KEY);
|
@@ -461,7 +462,7 @@ var stdin_default$1M = defineComponent({
|
|
461
462
|
var _a;
|
462
463
|
return createVNode("div", {
|
463
464
|
"ref": root,
|
464
|
-
"class": [bem$
|
465
|
+
"class": [bem$1z(), {
|
465
466
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
466
467
|
}]
|
467
468
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -474,7 +475,7 @@ var stdin_default$1M = defineComponent({
|
|
474
475
|
};
|
475
476
|
}
|
476
477
|
});
|
477
|
-
const ActionBar = withInstall(stdin_default$
|
478
|
+
const ActionBar = withInstall(stdin_default$1N);
|
478
479
|
function useExpose(apis) {
|
479
480
|
const instance2 = getCurrentInstance();
|
480
481
|
if (instance2) {
|
@@ -502,7 +503,7 @@ function useRoute() {
|
|
502
503
|
const vm = getCurrentInstance().proxy;
|
503
504
|
return () => route(vm);
|
504
505
|
}
|
505
|
-
const [name$
|
506
|
+
const [name$1D, bem$1y] = createNamespace("badge");
|
506
507
|
const badgeProps = {
|
507
508
|
dot: Boolean,
|
508
509
|
max: numericProp,
|
@@ -513,8 +514,8 @@ const badgeProps = {
|
|
513
514
|
showZero: truthProp,
|
514
515
|
position: makeStringProp("top-right")
|
515
516
|
};
|
516
|
-
var stdin_default$
|
517
|
-
name: name$
|
517
|
+
var stdin_default$1M = defineComponent({
|
518
|
+
name: name$1D,
|
518
519
|
props: badgeProps,
|
519
520
|
setup(props, {
|
520
521
|
slots
|
@@ -577,7 +578,7 @@ var stdin_default$1L = defineComponent({
|
|
577
578
|
const renderBadge = () => {
|
578
579
|
if (hasContent() || props.dot) {
|
579
580
|
return createVNode("div", {
|
580
|
-
"class": bem$
|
581
|
+
"class": bem$1y([props.position, {
|
581
582
|
dot: props.dot,
|
582
583
|
fixed: !!slots.default
|
583
584
|
}]),
|
@@ -591,7 +592,7 @@ var stdin_default$1L = defineComponent({
|
|
591
592
|
tag
|
592
593
|
} = props;
|
593
594
|
return createVNode(tag, {
|
594
|
-
"class": bem$
|
595
|
+
"class": bem$1y("wrapper")
|
595
596
|
}, {
|
596
597
|
default: () => [slots.default(), renderBadge()]
|
597
598
|
});
|
@@ -600,14 +601,14 @@ var stdin_default$1L = defineComponent({
|
|
600
601
|
};
|
601
602
|
}
|
602
603
|
});
|
603
|
-
const Badge = withInstall(stdin_default$
|
604
|
+
const Badge = withInstall(stdin_default$1M);
|
604
605
|
let globalZIndex = 2e3;
|
605
606
|
const useGlobalZIndex = () => ++globalZIndex;
|
606
607
|
const setGlobalZIndex = (val) => {
|
607
608
|
globalZIndex = val;
|
608
609
|
};
|
609
|
-
const [name$
|
610
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
610
|
+
const [name$1C, bem$1x] = createNamespace("config-provider");
|
611
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1C);
|
611
612
|
const configProviderProps = {
|
612
613
|
tag: makeStringProp("div"),
|
613
614
|
theme: makeStringProp("light"),
|
@@ -624,8 +625,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
624
625
|
});
|
625
626
|
return cssVars;
|
626
627
|
}
|
627
|
-
var stdin_default$
|
628
|
-
name: name$
|
628
|
+
var stdin_default$1L = defineComponent({
|
629
|
+
name: name$1C,
|
629
630
|
props: configProviderProps,
|
630
631
|
setup(props, {
|
631
632
|
slots
|
@@ -657,7 +658,7 @@ var stdin_default$1K = defineComponent({
|
|
657
658
|
}
|
658
659
|
});
|
659
660
|
return () => createVNode(props.tag, {
|
660
|
-
"class": bem$
|
661
|
+
"class": bem$1x(),
|
661
662
|
"style": style.value
|
662
663
|
}, {
|
663
664
|
default: () => {
|
@@ -667,7 +668,7 @@ var stdin_default$1K = defineComponent({
|
|
667
668
|
});
|
668
669
|
}
|
669
670
|
});
|
670
|
-
const [name$
|
671
|
+
const [name$1B, bem$1w] = createNamespace("icon");
|
671
672
|
const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
|
672
673
|
const iconProps = {
|
673
674
|
dot: Boolean,
|
@@ -679,14 +680,14 @@ const iconProps = {
|
|
679
680
|
badgeProps: Object,
|
680
681
|
classPrefix: String
|
681
682
|
};
|
682
|
-
var stdin_default$
|
683
|
-
name: name$
|
683
|
+
var stdin_default$1K = defineComponent({
|
684
|
+
name: name$1B,
|
684
685
|
props: iconProps,
|
685
686
|
setup(props, {
|
686
687
|
slots
|
687
688
|
}) {
|
688
689
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
689
|
-
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
690
|
+
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1w());
|
690
691
|
return () => {
|
691
692
|
const {
|
692
693
|
tag,
|
@@ -710,7 +711,7 @@ var stdin_default$1J = defineComponent({
|
|
710
711
|
default: () => {
|
711
712
|
var _a;
|
712
713
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
|
713
|
-
"class": bem$
|
714
|
+
"class": bem$1w("image"),
|
714
715
|
"src": name2
|
715
716
|
}, null)];
|
716
717
|
}
|
@@ -718,13 +719,13 @@ var stdin_default$1J = defineComponent({
|
|
718
719
|
};
|
719
720
|
}
|
720
721
|
});
|
721
|
-
const Icon = withInstall(stdin_default$
|
722
|
-
const [name$
|
722
|
+
const Icon = withInstall(stdin_default$1K);
|
723
|
+
const [name$1A, bem$1v] = createNamespace("loading");
|
723
724
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
724
|
-
"class": bem$
|
725
|
+
"class": bem$1v("line", String(index + 1))
|
725
726
|
}, null));
|
726
727
|
const CircularIcon = createVNode("svg", {
|
727
|
-
"class": bem$
|
728
|
+
"class": bem$1v("circular"),
|
728
729
|
"viewBox": "25 25 50 50"
|
729
730
|
}, [createVNode("circle", {
|
730
731
|
"cx": "50",
|
@@ -740,8 +741,8 @@ const loadingProps = {
|
|
740
741
|
textSize: numericProp,
|
741
742
|
textColor: String
|
742
743
|
};
|
743
|
-
var stdin_default$
|
744
|
-
name: name$
|
744
|
+
var stdin_default$1J = defineComponent({
|
745
|
+
name: name$1A,
|
745
746
|
props: loadingProps,
|
746
747
|
setup(props, {
|
747
748
|
slots
|
@@ -752,7 +753,7 @@ var stdin_default$1I = defineComponent({
|
|
752
753
|
const renderIcon = () => {
|
753
754
|
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
754
755
|
return createVNode("span", {
|
755
|
-
"class": bem$
|
756
|
+
"class": bem$1v("spinner", props.type),
|
756
757
|
"style": spinnerStyle.value
|
757
758
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
758
759
|
};
|
@@ -760,7 +761,7 @@ var stdin_default$1I = defineComponent({
|
|
760
761
|
var _a;
|
761
762
|
if (slots.default) {
|
762
763
|
return createVNode("span", {
|
763
|
-
"class": bem$
|
764
|
+
"class": bem$1v("text"),
|
764
765
|
"style": {
|
765
766
|
fontSize: addUnit(props.textSize),
|
766
767
|
color: (_a = props.textColor) != null ? _a : props.color
|
@@ -774,7 +775,7 @@ var stdin_default$1I = defineComponent({
|
|
774
775
|
vertical
|
775
776
|
} = props;
|
776
777
|
return createVNode("div", {
|
777
|
-
"class": bem$
|
778
|
+
"class": bem$1v([type, {
|
778
779
|
vertical
|
779
780
|
}]),
|
780
781
|
"aria-live": "polite",
|
@@ -783,8 +784,8 @@ var stdin_default$1I = defineComponent({
|
|
783
784
|
};
|
784
785
|
}
|
785
786
|
});
|
786
|
-
const Loading = withInstall(stdin_default$
|
787
|
-
const [name$
|
787
|
+
const Loading = withInstall(stdin_default$1J);
|
788
|
+
const [name$1z, bem$1u] = createNamespace("button");
|
788
789
|
const buttonProps = extend({}, routeProps, {
|
789
790
|
tag: makeStringProp("button"),
|
790
791
|
text: String,
|
@@ -806,8 +807,8 @@ const buttonProps = extend({}, routeProps, {
|
|
806
807
|
loadingType: String,
|
807
808
|
iconPosition: makeStringProp("left")
|
808
809
|
});
|
809
|
-
var stdin_default$
|
810
|
-
name: name$
|
810
|
+
var stdin_default$1I = defineComponent({
|
811
|
+
name: name$1z,
|
811
812
|
props: buttonProps,
|
812
813
|
emits: ["click"],
|
813
814
|
setup(props, {
|
@@ -822,7 +823,7 @@ var stdin_default$1H = defineComponent({
|
|
822
823
|
return createVNode(Loading, {
|
823
824
|
"size": props.loadingSize,
|
824
825
|
"type": props.loadingType,
|
825
|
-
"class": bem$
|
826
|
+
"class": bem$1u("loading")
|
826
827
|
}, null);
|
827
828
|
};
|
828
829
|
const renderIcon = () => {
|
@@ -831,13 +832,13 @@ var stdin_default$1H = defineComponent({
|
|
831
832
|
}
|
832
833
|
if (slots.icon) {
|
833
834
|
return createVNode("div", {
|
834
|
-
"class": bem$
|
835
|
+
"class": bem$1u("icon")
|
835
836
|
}, [slots.icon()]);
|
836
837
|
}
|
837
838
|
if (props.icon) {
|
838
839
|
return createVNode(Icon, {
|
839
840
|
"name": props.icon,
|
840
|
-
"class": bem$
|
841
|
+
"class": bem$1u("icon"),
|
841
842
|
"classPrefix": props.iconPrefix
|
842
843
|
}, null);
|
843
844
|
}
|
@@ -851,7 +852,7 @@ var stdin_default$1H = defineComponent({
|
|
851
852
|
}
|
852
853
|
if (text) {
|
853
854
|
return createVNode("span", {
|
854
|
-
"class": bem$
|
855
|
+
"class": bem$1u("text")
|
855
856
|
}, [text]);
|
856
857
|
}
|
857
858
|
};
|
@@ -898,7 +899,7 @@ var stdin_default$1H = defineComponent({
|
|
898
899
|
nativeType,
|
899
900
|
iconPosition
|
900
901
|
} = props;
|
901
|
-
const classes = [bem$
|
902
|
+
const classes = [bem$1u([type, size, {
|
902
903
|
plain,
|
903
904
|
block,
|
904
905
|
round,
|
@@ -917,14 +918,14 @@ var stdin_default$1H = defineComponent({
|
|
917
918
|
"onClick": onClick
|
918
919
|
}, {
|
919
920
|
default: () => [createVNode("div", {
|
920
|
-
"class": bem$
|
921
|
+
"class": bem$1u("content")
|
921
922
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
922
923
|
});
|
923
924
|
};
|
924
925
|
}
|
925
926
|
});
|
926
|
-
const Button = withInstall(stdin_default$
|
927
|
-
const [name$
|
927
|
+
const Button = withInstall(stdin_default$1I);
|
928
|
+
const [name$1y, bem$1t] = createNamespace("action-bar-button");
|
928
929
|
const actionBarButtonProps = extend({}, routeProps, {
|
929
930
|
type: String,
|
930
931
|
text: String,
|
@@ -933,8 +934,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
933
934
|
loading: Boolean,
|
934
935
|
disabled: Boolean
|
935
936
|
});
|
936
|
-
var stdin_default$
|
937
|
-
name: name$
|
937
|
+
var stdin_default$1H = defineComponent({
|
938
|
+
name: name$1y,
|
938
939
|
props: actionBarButtonProps,
|
939
940
|
setup(props, {
|
940
941
|
slots
|
@@ -969,7 +970,7 @@ var stdin_default$1G = defineComponent({
|
|
969
970
|
disabled
|
970
971
|
} = props;
|
971
972
|
return createVNode(Button, {
|
972
|
-
"class": bem$
|
973
|
+
"class": bem$1t([type, {
|
973
974
|
last: isLast.value,
|
974
975
|
first: isFirst.value
|
975
976
|
}]),
|
@@ -986,8 +987,8 @@ var stdin_default$1G = defineComponent({
|
|
986
987
|
};
|
987
988
|
}
|
988
989
|
});
|
989
|
-
const ActionBarButton = withInstall(stdin_default$
|
990
|
-
const [name$
|
990
|
+
const ActionBarButton = withInstall(stdin_default$1H);
|
991
|
+
const [name$1x, bem$1s] = createNamespace("action-bar-icon");
|
991
992
|
const actionBarIconProps = extend({}, routeProps, {
|
992
993
|
dot: Boolean,
|
993
994
|
text: String,
|
@@ -998,8 +999,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
998
999
|
badgeProps: Object,
|
999
1000
|
iconPrefix: String
|
1000
1001
|
});
|
1001
|
-
var stdin_default$
|
1002
|
-
name: name$
|
1002
|
+
var stdin_default$1G = defineComponent({
|
1003
|
+
name: name$1x,
|
1003
1004
|
props: actionBarIconProps,
|
1004
1005
|
setup(props, {
|
1005
1006
|
slots
|
@@ -1019,7 +1020,7 @@ var stdin_default$1F = defineComponent({
|
|
1019
1020
|
if (slots.icon) {
|
1020
1021
|
return createVNode(Badge, mergeProps({
|
1021
1022
|
"dot": dot,
|
1022
|
-
"class": bem$
|
1023
|
+
"class": bem$1s("icon"),
|
1023
1024
|
"content": badge
|
1024
1025
|
}, badgeProps2), {
|
1025
1026
|
default: slots.icon
|
@@ -1031,20 +1032,20 @@ var stdin_default$1F = defineComponent({
|
|
1031
1032
|
"name": icon,
|
1032
1033
|
"badge": badge,
|
1033
1034
|
"color": color,
|
1034
|
-
"class": [bem$
|
1035
|
+
"class": [bem$1s("icon"), iconClass],
|
1035
1036
|
"badgeProps": badgeProps2,
|
1036
1037
|
"classPrefix": iconPrefix
|
1037
1038
|
}, null);
|
1038
1039
|
};
|
1039
1040
|
return () => createVNode("div", {
|
1040
1041
|
"role": "button",
|
1041
|
-
"class": bem$
|
1042
|
+
"class": bem$1s(),
|
1042
1043
|
"tabindex": 0,
|
1043
1044
|
"onClick": route2
|
1044
1045
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1045
1046
|
}
|
1046
1047
|
});
|
1047
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1048
|
+
const ActionBarIcon = withInstall(stdin_default$1G);
|
1048
1049
|
const popupSharedProps = {
|
1049
1050
|
// whether to show popup
|
1050
1051
|
show: Boolean,
|
@@ -1195,7 +1196,7 @@ function useLazyRender(show) {
|
|
1195
1196
|
);
|
1196
1197
|
return (render) => () => inited.value ? render() : null;
|
1197
1198
|
}
|
1198
|
-
const [name$
|
1199
|
+
const [name$1w, bem$1r] = createNamespace("overlay");
|
1199
1200
|
const overlayProps = {
|
1200
1201
|
show: Boolean,
|
1201
1202
|
zIndex: numericProp,
|
@@ -1205,8 +1206,8 @@ const overlayProps = {
|
|
1205
1206
|
lazyRender: truthProp,
|
1206
1207
|
customStyle: Object
|
1207
1208
|
};
|
1208
|
-
var stdin_default$
|
1209
|
-
name: name$
|
1209
|
+
var stdin_default$1F = defineComponent({
|
1210
|
+
name: name$1w,
|
1210
1211
|
props: overlayProps,
|
1211
1212
|
setup(props, {
|
1212
1213
|
slots
|
@@ -1227,7 +1228,7 @@ var stdin_default$1E = defineComponent({
|
|
1227
1228
|
return withDirectives(createVNode("div", {
|
1228
1229
|
"ref": root,
|
1229
1230
|
"style": style,
|
1230
|
-
"class": [bem$
|
1231
|
+
"class": [bem$1r(), props.className]
|
1231
1232
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
|
1232
1233
|
});
|
1233
1234
|
useEventListener("touchmove", onTouchMove, {
|
@@ -1241,7 +1242,7 @@ var stdin_default$1E = defineComponent({
|
|
1241
1242
|
});
|
1242
1243
|
}
|
1243
1244
|
});
|
1244
|
-
const Overlay = withInstall(stdin_default$
|
1245
|
+
const Overlay = withInstall(stdin_default$1F);
|
1245
1246
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1246
1247
|
round: Boolean,
|
1247
1248
|
position: makeStringProp("center"),
|
@@ -1254,9 +1255,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1254
1255
|
safeAreaInsetTop: Boolean,
|
1255
1256
|
safeAreaInsetBottom: Boolean
|
1256
1257
|
});
|
1257
|
-
const [name$
|
1258
|
-
var stdin_default$
|
1259
|
-
name: name$
|
1258
|
+
const [name$1v, bem$1q] = createNamespace("popup");
|
1259
|
+
var stdin_default$1E = defineComponent({
|
1260
|
+
name: name$1v,
|
1260
1261
|
inheritAttrs: false,
|
1261
1262
|
props: popupProps$2,
|
1262
1263
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1330,7 +1331,7 @@ var stdin_default$1D = defineComponent({
|
|
1330
1331
|
"role": "button",
|
1331
1332
|
"tabindex": 0,
|
1332
1333
|
"name": props.closeIcon,
|
1333
|
-
"class": [bem$
|
1334
|
+
"class": [bem$1q("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
1334
1335
|
"classPrefix": props.iconPrefix,
|
1335
1336
|
"onClick": onClickCloseIcon
|
1336
1337
|
}, null);
|
@@ -1352,7 +1353,7 @@ var stdin_default$1D = defineComponent({
|
|
1352
1353
|
"style": style.value,
|
1353
1354
|
"role": "dialog",
|
1354
1355
|
"tabindex": 0,
|
1355
|
-
"class": [bem$
|
1356
|
+
"class": [bem$1q({
|
1356
1357
|
round,
|
1357
1358
|
[position]: position
|
1358
1359
|
}), {
|
@@ -1433,8 +1434,8 @@ var stdin_default$1D = defineComponent({
|
|
1433
1434
|
};
|
1434
1435
|
}
|
1435
1436
|
});
|
1436
|
-
const Popup = withInstall(stdin_default$
|
1437
|
-
const [name$
|
1437
|
+
const Popup = withInstall(stdin_default$1E);
|
1438
|
+
const [name$1u, bem$1p] = createNamespace("action-sheet");
|
1438
1439
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1439
1440
|
title: String,
|
1440
1441
|
round: truthProp,
|
@@ -1448,8 +1449,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1448
1449
|
safeAreaInsetBottom: truthProp
|
1449
1450
|
});
|
1450
1451
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1451
|
-
var stdin_default$
|
1452
|
-
name: name$
|
1452
|
+
var stdin_default$1D = defineComponent({
|
1453
|
+
name: name$1u,
|
1453
1454
|
props: actionSheetProps,
|
1454
1455
|
emits: ["select", "cancel", "update:show"],
|
1455
1456
|
setup(props, {
|
@@ -1464,10 +1465,10 @@ var stdin_default$1C = defineComponent({
|
|
1464
1465
|
const renderHeader = () => {
|
1465
1466
|
if (props.title) {
|
1466
1467
|
return createVNode("div", {
|
1467
|
-
"class": bem$
|
1468
|
+
"class": bem$1p("header")
|
1468
1469
|
}, [props.title, props.closeable && createVNode(Icon, {
|
1469
1470
|
"name": props.closeIcon,
|
1470
|
-
"class": [bem$
|
1471
|
+
"class": [bem$1p("close"), HAPTICS_FEEDBACK],
|
1471
1472
|
"onClick": onCancel
|
1472
1473
|
}, null)]);
|
1473
1474
|
}
|
@@ -1475,10 +1476,10 @@ var stdin_default$1C = defineComponent({
|
|
1475
1476
|
const renderCancel = () => {
|
1476
1477
|
if (slots.cancel || props.cancelText) {
|
1477
1478
|
return [createVNode("div", {
|
1478
|
-
"class": bem$
|
1479
|
+
"class": bem$1p("gap")
|
1479
1480
|
}, null), createVNode("button", {
|
1480
1481
|
"type": "button",
|
1481
|
-
"class": bem$
|
1482
|
+
"class": bem$1p("cancel"),
|
1482
1483
|
"onClick": onCancel
|
1483
1484
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1484
1485
|
}
|
@@ -1486,7 +1487,7 @@ var stdin_default$1C = defineComponent({
|
|
1486
1487
|
const renderActionContent = (action, index) => {
|
1487
1488
|
if (action.loading) {
|
1488
1489
|
return createVNode(Loading, {
|
1489
|
-
"class": bem$
|
1490
|
+
"class": bem$1p("loading-icon")
|
1490
1491
|
}, null);
|
1491
1492
|
}
|
1492
1493
|
if (slots.action) {
|
@@ -1496,9 +1497,9 @@ var stdin_default$1C = defineComponent({
|
|
1496
1497
|
});
|
1497
1498
|
}
|
1498
1499
|
return [createVNode("span", {
|
1499
|
-
"class": bem$
|
1500
|
+
"class": bem$1p("name")
|
1500
1501
|
}, [action.name]), action.subname && createVNode("div", {
|
1501
|
-
"class": bem$
|
1502
|
+
"class": bem$1p("subname")
|
1502
1503
|
}, [action.subname])];
|
1503
1504
|
};
|
1504
1505
|
const renderAction = (action, index) => {
|
@@ -1526,7 +1527,7 @@ var stdin_default$1C = defineComponent({
|
|
1526
1527
|
"style": {
|
1527
1528
|
color
|
1528
1529
|
},
|
1529
|
-
"class": [bem$
|
1530
|
+
"class": [bem$1p("item", {
|
1530
1531
|
loading,
|
1531
1532
|
disabled
|
1532
1533
|
}), className],
|
@@ -1537,26 +1538,26 @@ var stdin_default$1C = defineComponent({
|
|
1537
1538
|
if (props.description || slots.description) {
|
1538
1539
|
const content = slots.description ? slots.description() : props.description;
|
1539
1540
|
return createVNode("div", {
|
1540
|
-
"class": bem$
|
1541
|
+
"class": bem$1p("description")
|
1541
1542
|
}, [content]);
|
1542
1543
|
}
|
1543
1544
|
};
|
1544
1545
|
return () => createVNode(Popup, mergeProps({
|
1545
|
-
"class": bem$
|
1546
|
+
"class": bem$1p(),
|
1546
1547
|
"position": "bottom",
|
1547
1548
|
"onUpdate:show": updateShow
|
1548
1549
|
}, pick(props, popupInheritKeys$2)), {
|
1549
1550
|
default: () => {
|
1550
1551
|
var _a;
|
1551
1552
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
1552
|
-
"class": bem$
|
1553
|
+
"class": bem$1p("content")
|
1553
1554
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1554
1555
|
}
|
1555
1556
|
});
|
1556
1557
|
}
|
1557
1558
|
});
|
1558
|
-
const ActionSheet = withInstall(stdin_default$
|
1559
|
-
const [name$
|
1559
|
+
const ActionSheet = withInstall(stdin_default$1D);
|
1560
|
+
const [name$1t, bem$1o, t$k] = createNamespace("picker");
|
1560
1561
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1561
1562
|
function getColumnsType(columns, fields) {
|
1562
1563
|
const firstColumn = columns[0];
|
@@ -1625,10 +1626,10 @@ function assignDefaultFields(fields) {
|
|
1625
1626
|
const DEFAULT_DURATION = 200;
|
1626
1627
|
const MOMENTUM_TIME = 300;
|
1627
1628
|
const MOMENTUM_DISTANCE = 15;
|
1628
|
-
const [name$
|
1629
|
-
const PICKER_KEY = Symbol(name$
|
1630
|
-
var stdin_default$
|
1631
|
-
name: name$
|
1629
|
+
const [name$1s, bem$1n] = createNamespace("picker-column");
|
1630
|
+
const PICKER_KEY = Symbol(name$1s);
|
1631
|
+
var stdin_default$1C = defineComponent({
|
1632
|
+
name: name$1s,
|
1632
1633
|
props: {
|
1633
1634
|
value: numericProp,
|
1634
1635
|
fields: makeRequiredProp(Object),
|
@@ -1767,7 +1768,7 @@ var stdin_default$1B = defineComponent({
|
|
1767
1768
|
role: "button",
|
1768
1769
|
style: optionStyle,
|
1769
1770
|
tabindex: disabled ? -1 : 0,
|
1770
|
-
class: [bem$
|
1771
|
+
class: [bem$1n("item", {
|
1771
1772
|
disabled,
|
1772
1773
|
selected: value === props.value
|
1773
1774
|
}), option.className],
|
@@ -1795,7 +1796,7 @@ var stdin_default$1B = defineComponent({
|
|
1795
1796
|
});
|
1796
1797
|
return () => createVNode("div", {
|
1797
1798
|
"ref": root,
|
1798
|
-
"class": bem$
|
1799
|
+
"class": bem$1n(),
|
1799
1800
|
"onTouchstartPassive": onTouchStart,
|
1800
1801
|
"onTouchend": onTouchEnd,
|
1801
1802
|
"onTouchcancel": onTouchEnd
|
@@ -1806,12 +1807,12 @@ var stdin_default$1B = defineComponent({
|
|
1806
1807
|
transitionDuration: `${currentDuration.value}ms`,
|
1807
1808
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1808
1809
|
},
|
1809
|
-
"class": bem$
|
1810
|
+
"class": bem$1n("wrapper"),
|
1810
1811
|
"onTransitionend": stopMomentum
|
1811
1812
|
}, [renderOptions()])]);
|
1812
1813
|
}
|
1813
1814
|
});
|
1814
|
-
const [name$
|
1815
|
+
const [name$1r] = createNamespace("picker-toolbar");
|
1815
1816
|
const pickerToolbarProps = {
|
1816
1817
|
title: String,
|
1817
1818
|
cancelButtonText: String,
|
@@ -1819,8 +1820,8 @@ const pickerToolbarProps = {
|
|
1819
1820
|
};
|
1820
1821
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1821
1822
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1822
|
-
var stdin_default$
|
1823
|
-
name: name$
|
1823
|
+
var stdin_default$1B = defineComponent({
|
1824
|
+
name: name$1r,
|
1824
1825
|
props: pickerToolbarProps,
|
1825
1826
|
emits: ["confirm", "cancel"],
|
1826
1827
|
setup(props, {
|
@@ -1833,30 +1834,30 @@ var stdin_default$1A = defineComponent({
|
|
1833
1834
|
}
|
1834
1835
|
if (props.title) {
|
1835
1836
|
return createVNode("div", {
|
1836
|
-
"class": [bem$
|
1837
|
+
"class": [bem$1o("title"), "van-ellipsis"]
|
1837
1838
|
}, [props.title]);
|
1838
1839
|
}
|
1839
1840
|
};
|
1840
1841
|
const onCancel = () => emit("cancel");
|
1841
1842
|
const onConfirm = () => emit("confirm");
|
1842
1843
|
const renderCancel = () => {
|
1843
|
-
const text = props.cancelButtonText || t$
|
1844
|
+
const text = props.cancelButtonText || t$k("cancel");
|
1844
1845
|
return createVNode("button", {
|
1845
1846
|
"type": "button",
|
1846
|
-
"class": [bem$
|
1847
|
+
"class": [bem$1o("cancel"), HAPTICS_FEEDBACK],
|
1847
1848
|
"onClick": onCancel
|
1848
1849
|
}, [slots.cancel ? slots.cancel() : text]);
|
1849
1850
|
};
|
1850
1851
|
const renderConfirm = () => {
|
1851
|
-
const text = props.confirmButtonText || t$
|
1852
|
+
const text = props.confirmButtonText || t$k("confirm");
|
1852
1853
|
return createVNode("button", {
|
1853
1854
|
"type": "button",
|
1854
|
-
"class": [bem$
|
1855
|
+
"class": [bem$1o("confirm"), HAPTICS_FEEDBACK],
|
1855
1856
|
"onClick": onConfirm
|
1856
1857
|
}, [slots.confirm ? slots.confirm() : text]);
|
1857
1858
|
};
|
1858
1859
|
return () => createVNode("div", {
|
1859
|
-
"class": bem$
|
1860
|
+
"class": bem$1o("toolbar")
|
1860
1861
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1861
1862
|
}
|
1862
1863
|
});
|
@@ -1940,7 +1941,7 @@ function useVisibilityChange(target, onChange) {
|
|
1940
1941
|
onBeforeUnmount(unobserve);
|
1941
1942
|
onMountedOrActivated(observe);
|
1942
1943
|
}
|
1943
|
-
const [name$
|
1944
|
+
const [name$1q, bem$1m] = createNamespace("sticky");
|
1944
1945
|
const stickyProps = {
|
1945
1946
|
zIndex: numericProp,
|
1946
1947
|
position: makeStringProp("top"),
|
@@ -1948,8 +1949,8 @@ const stickyProps = {
|
|
1948
1949
|
offsetTop: makeNumericProp(0),
|
1949
1950
|
offsetBottom: makeNumericProp(0)
|
1950
1951
|
};
|
1951
|
-
var stdin_default$
|
1952
|
-
name: name$
|
1952
|
+
var stdin_default$1A = defineComponent({
|
1953
|
+
name: name$1q,
|
1953
1954
|
props: stickyProps,
|
1954
1955
|
emits: ["scroll", "change"],
|
1955
1956
|
setup(props, {
|
@@ -2062,7 +2063,7 @@ var stdin_default$1z = defineComponent({
|
|
2062
2063
|
"ref": root,
|
2063
2064
|
"style": rootStyle.value
|
2064
2065
|
}, [createVNode("div", {
|
2065
|
-
"class": bem$
|
2066
|
+
"class": bem$1m({
|
2066
2067
|
fixed: state.fixed && !isReset.value
|
2067
2068
|
}),
|
2068
2069
|
"style": stickyStyle.value
|
@@ -2070,8 +2071,8 @@ var stdin_default$1z = defineComponent({
|
|
2070
2071
|
};
|
2071
2072
|
}
|
2072
2073
|
});
|
2073
|
-
const Sticky = withInstall(stdin_default$
|
2074
|
-
const [name$
|
2074
|
+
const Sticky = withInstall(stdin_default$1A);
|
2075
|
+
const [name$1p, bem$1l] = createNamespace("swipe");
|
2075
2076
|
const swipeProps = {
|
2076
2077
|
loop: truthProp,
|
2077
2078
|
width: numericProp,
|
@@ -2086,9 +2087,9 @@ const swipeProps = {
|
|
2086
2087
|
showIndicators: truthProp,
|
2087
2088
|
stopPropagation: truthProp
|
2088
2089
|
};
|
2089
|
-
const SWIPE_KEY = Symbol(name$
|
2090
|
-
var stdin_default$
|
2091
|
-
name: name$
|
2090
|
+
const SWIPE_KEY = Symbol(name$1p);
|
2091
|
+
var stdin_default$1z = defineComponent({
|
2092
|
+
name: name$1p,
|
2092
2093
|
props: swipeProps,
|
2093
2094
|
emits: ["change", "dragStart", "dragEnd"],
|
2094
2095
|
setup(props, {
|
@@ -2366,7 +2367,7 @@ var stdin_default$1y = defineComponent({
|
|
2366
2367
|
} : void 0;
|
2367
2368
|
return createVNode("i", {
|
2368
2369
|
"style": style,
|
2369
|
-
"class": bem$
|
2370
|
+
"class": bem$1l("indicator", {
|
2370
2371
|
active
|
2371
2372
|
})
|
2372
2373
|
}, null);
|
@@ -2380,7 +2381,7 @@ var stdin_default$1y = defineComponent({
|
|
2380
2381
|
}
|
2381
2382
|
if (props.showIndicators && count.value > 1) {
|
2382
2383
|
return createVNode("div", {
|
2383
|
-
"class": bem$
|
2384
|
+
"class": bem$1l("indicators", {
|
2384
2385
|
vertical: props.vertical
|
2385
2386
|
})
|
2386
2387
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2422,11 +2423,11 @@ var stdin_default$1y = defineComponent({
|
|
2422
2423
|
var _a;
|
2423
2424
|
return createVNode("div", {
|
2424
2425
|
"ref": root,
|
2425
|
-
"class": bem$
|
2426
|
+
"class": bem$1l()
|
2426
2427
|
}, [createVNode("div", {
|
2427
2428
|
"ref": track,
|
2428
2429
|
"style": trackStyle.value,
|
2429
|
-
"class": bem$
|
2430
|
+
"class": bem$1l("track", {
|
2430
2431
|
vertical: props.vertical
|
2431
2432
|
}),
|
2432
2433
|
"onTouchstartPassive": onTouchStart,
|
@@ -2436,10 +2437,10 @@ var stdin_default$1y = defineComponent({
|
|
2436
2437
|
};
|
2437
2438
|
}
|
2438
2439
|
});
|
2439
|
-
const Swipe = withInstall(stdin_default$
|
2440
|
-
const [name$
|
2441
|
-
var stdin_default$
|
2442
|
-
name: name$
|
2440
|
+
const Swipe = withInstall(stdin_default$1z);
|
2441
|
+
const [name$1o, bem$1k] = createNamespace("tabs");
|
2442
|
+
var stdin_default$1y = defineComponent({
|
2443
|
+
name: name$1o,
|
2443
2444
|
props: {
|
2444
2445
|
count: makeRequiredProp(Number),
|
2445
2446
|
inited: Boolean,
|
@@ -2463,7 +2464,7 @@ var stdin_default$1x = defineComponent({
|
|
2463
2464
|
return createVNode(Swipe, {
|
2464
2465
|
"ref": swipeRef,
|
2465
2466
|
"loop": false,
|
2466
|
-
"class": bem$
|
2467
|
+
"class": bem$1k("track"),
|
2467
2468
|
"duration": +props.duration * 1e3,
|
2468
2469
|
"touchable": props.swipeable,
|
2469
2470
|
"lazyRender": props.lazyRender,
|
@@ -2491,13 +2492,13 @@ var stdin_default$1x = defineComponent({
|
|
2491
2492
|
swipeRef
|
2492
2493
|
});
|
2493
2494
|
return () => createVNode("div", {
|
2494
|
-
"class": bem$
|
2495
|
+
"class": bem$1k("content", {
|
2495
2496
|
animated: props.animated || props.swipeable
|
2496
2497
|
})
|
2497
2498
|
}, [renderChildren()]);
|
2498
2499
|
}
|
2499
2500
|
});
|
2500
|
-
const [name$
|
2501
|
+
const [name$1n, bem$1j] = createNamespace("tabs");
|
2501
2502
|
const tabsProps = {
|
2502
2503
|
type: makeStringProp("line"),
|
2503
2504
|
color: String,
|
@@ -2520,9 +2521,9 @@ const tabsProps = {
|
|
2520
2521
|
titleActiveColor: String,
|
2521
2522
|
titleInactiveColor: String
|
2522
2523
|
};
|
2523
|
-
const TABS_KEY = Symbol(name$
|
2524
|
-
var stdin_default$
|
2525
|
-
name: name$
|
2524
|
+
const TABS_KEY = Symbol(name$1n);
|
2525
|
+
var stdin_default$1x = defineComponent({
|
2526
|
+
name: name$1n,
|
2526
2527
|
props: tabsProps,
|
2527
2528
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2528
2529
|
setup(props, {
|
@@ -2714,7 +2715,7 @@ var stdin_default$1w = defineComponent({
|
|
2714
2715
|
const renderLine = () => {
|
2715
2716
|
if (props.type === "line" && children.length) {
|
2716
2717
|
return createVNode("div", {
|
2717
|
-
"class": bem$
|
2718
|
+
"class": bem$1j("line"),
|
2718
2719
|
"style": state.lineStyle
|
2719
2720
|
}, null);
|
2720
2721
|
}
|
@@ -2728,13 +2729,13 @@ var stdin_default$1w = defineComponent({
|
|
2728
2729
|
} = props;
|
2729
2730
|
const Header = [createVNode("div", {
|
2730
2731
|
"ref": sticky ? void 0 : wrapRef,
|
2731
|
-
"class": [bem$
|
2732
|
+
"class": [bem$1j("wrap"), {
|
2732
2733
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2733
2734
|
}]
|
2734
2735
|
}, [createVNode("div", {
|
2735
2736
|
"ref": navRef,
|
2736
2737
|
"role": "tablist",
|
2737
|
-
"class": bem$
|
2738
|
+
"class": bem$1j("nav", [type, {
|
2738
2739
|
shrink: props.shrink,
|
2739
2740
|
complete: scrollable.value
|
2740
2741
|
}]),
|
@@ -2807,14 +2808,14 @@ var stdin_default$1w = defineComponent({
|
|
2807
2808
|
});
|
2808
2809
|
return () => createVNode("div", {
|
2809
2810
|
"ref": root,
|
2810
|
-
"class": bem$
|
2811
|
+
"class": bem$1j([props.type])
|
2811
2812
|
}, [props.sticky ? createVNode(Sticky, {
|
2812
2813
|
"container": root.value,
|
2813
2814
|
"offsetTop": offsetTopPx.value,
|
2814
2815
|
"onScroll": onStickyScroll
|
2815
2816
|
}, {
|
2816
2817
|
default: () => [renderHeader()]
|
2817
|
-
}) : renderHeader(), createVNode(stdin_default$
|
2818
|
+
}) : renderHeader(), createVNode(stdin_default$1y, {
|
2818
2819
|
"ref": contentRef,
|
2819
2820
|
"count": children.length,
|
2820
2821
|
"inited": state.inited,
|
@@ -2834,9 +2835,9 @@ var stdin_default$1w = defineComponent({
|
|
2834
2835
|
});
|
2835
2836
|
const TAB_STATUS_KEY = Symbol();
|
2836
2837
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
2837
|
-
const [name$
|
2838
|
+
const [name$1m, bem$1i] = createNamespace("tab");
|
2838
2839
|
const TabTitle = defineComponent({
|
2839
|
-
name: name$
|
2840
|
+
name: name$1m,
|
2840
2841
|
props: {
|
2841
2842
|
id: String,
|
2842
2843
|
dot: Boolean,
|
@@ -2885,7 +2886,7 @@ const TabTitle = defineComponent({
|
|
2885
2886
|
});
|
2886
2887
|
const renderText = () => {
|
2887
2888
|
const Text2 = createVNode("span", {
|
2888
|
-
"class": bem$
|
2889
|
+
"class": bem$1i("text", {
|
2889
2890
|
ellipsis: !props.scrollable
|
2890
2891
|
})
|
2891
2892
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -2903,7 +2904,7 @@ const TabTitle = defineComponent({
|
|
2903
2904
|
return () => createVNode("div", {
|
2904
2905
|
"id": props.id,
|
2905
2906
|
"role": "tab",
|
2906
|
-
"class": [bem$
|
2907
|
+
"class": [bem$1i([props.type, {
|
2907
2908
|
grow: props.scrollable && !props.shrink,
|
2908
2909
|
shrink: props.shrink,
|
2909
2910
|
active: props.isActive,
|
@@ -2917,9 +2918,9 @@ const TabTitle = defineComponent({
|
|
2917
2918
|
}, [renderText()]);
|
2918
2919
|
}
|
2919
2920
|
});
|
2920
|
-
const [name$
|
2921
|
-
var stdin_default$
|
2922
|
-
name: name$
|
2921
|
+
const [name$1l, bem$1h] = createNamespace("swipe-item");
|
2922
|
+
var stdin_default$1w = defineComponent({
|
2923
|
+
name: name$1l,
|
2923
2924
|
setup(props, {
|
2924
2925
|
slots
|
2925
2926
|
}) {
|
@@ -2984,14 +2985,14 @@ var stdin_default$1v = defineComponent({
|
|
2984
2985
|
return () => {
|
2985
2986
|
var _a;
|
2986
2987
|
return createVNode("div", {
|
2987
|
-
"class": bem$
|
2988
|
+
"class": bem$1h(),
|
2988
2989
|
"style": style.value
|
2989
2990
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
2990
2991
|
};
|
2991
2992
|
}
|
2992
2993
|
});
|
2993
|
-
const SwipeItem = withInstall(stdin_default$
|
2994
|
-
const [name$
|
2994
|
+
const SwipeItem = withInstall(stdin_default$1w);
|
2995
|
+
const [name$1k, bem$1g] = createNamespace("tab");
|
2995
2996
|
const tabProps = extend({}, routeProps, {
|
2996
2997
|
dot: Boolean,
|
2997
2998
|
name: numericProp,
|
@@ -3002,8 +3003,8 @@ const tabProps = extend({}, routeProps, {
|
|
3002
3003
|
titleStyle: [String, Object],
|
3003
3004
|
showZeroBadge: truthProp
|
3004
3005
|
});
|
3005
|
-
var stdin_default$
|
3006
|
-
name: name$
|
3006
|
+
var stdin_default$1v = defineComponent({
|
3007
|
+
name: name$1k,
|
3007
3008
|
props: tabProps,
|
3008
3009
|
setup(props, {
|
3009
3010
|
slots
|
@@ -3091,7 +3092,7 @@ var stdin_default$1u = defineComponent({
|
|
3091
3092
|
return createVNode(SwipeItem, {
|
3092
3093
|
"id": id,
|
3093
3094
|
"role": "tabpanel",
|
3094
|
-
"class": bem$
|
3095
|
+
"class": bem$1g("panel-wrapper", {
|
3095
3096
|
inactive: hasInactiveClass.value
|
3096
3097
|
}),
|
3097
3098
|
"tabindex": active.value ? 0 : -1,
|
@@ -3101,7 +3102,7 @@ var stdin_default$1u = defineComponent({
|
|
3101
3102
|
default: () => {
|
3102
3103
|
var _a2;
|
3103
3104
|
return [createVNode("div", {
|
3104
|
-
"class": bem$
|
3105
|
+
"class": bem$1g("panel")
|
3105
3106
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3106
3107
|
}
|
3107
3108
|
});
|
@@ -3111,23 +3112,23 @@ var stdin_default$1u = defineComponent({
|
|
3111
3112
|
return withDirectives(createVNode("div", {
|
3112
3113
|
"id": id,
|
3113
3114
|
"role": "tabpanel",
|
3114
|
-
"class": bem$
|
3115
|
+
"class": bem$1g("panel"),
|
3115
3116
|
"tabindex": show ? 0 : -1,
|
3116
3117
|
"aria-labelledby": label
|
3117
3118
|
}, [Content]), [[vShow, show]]);
|
3118
3119
|
};
|
3119
3120
|
}
|
3120
3121
|
});
|
3121
|
-
const Tab = withInstall(stdin_default$
|
3122
|
-
const Tabs = withInstall(stdin_default$
|
3123
|
-
const [name$
|
3124
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3122
|
+
const Tab = withInstall(stdin_default$1v);
|
3123
|
+
const Tabs = withInstall(stdin_default$1x);
|
3124
|
+
const [name$1j, bem$1f] = createNamespace("picker-group");
|
3125
|
+
const PICKER_GROUP_KEY = Symbol(name$1j);
|
3125
3126
|
const pickerGroupProps = extend({
|
3126
3127
|
tabs: makeArrayProp(),
|
3127
3128
|
nextStepText: String
|
3128
3129
|
}, pickerToolbarProps);
|
3129
|
-
var stdin_default$
|
3130
|
-
name: name$
|
3130
|
+
var stdin_default$1u = defineComponent({
|
3131
|
+
name: name$1j,
|
3131
3132
|
props: pickerGroupProps,
|
3132
3133
|
emits: ["confirm", "cancel"],
|
3133
3134
|
setup(props, {
|
@@ -3154,8 +3155,8 @@ var stdin_default$1t = defineComponent({
|
|
3154
3155
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3155
3156
|
const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
|
3156
3157
|
return createVNode("div", {
|
3157
|
-
"class": bem$
|
3158
|
-
}, [createVNode(stdin_default$
|
3158
|
+
"class": bem$1f()
|
3159
|
+
}, [createVNode(stdin_default$1B, {
|
3159
3160
|
"title": props.title,
|
3160
3161
|
"cancelButtonText": props.cancelButtonText,
|
3161
3162
|
"confirmButtonText": confirmButtonText,
|
@@ -3164,14 +3165,14 @@ var stdin_default$1t = defineComponent({
|
|
3164
3165
|
}, pick(slots, pickerToolbarSlots)), createVNode(Tabs, {
|
3165
3166
|
"active": activeTab.value,
|
3166
3167
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
3167
|
-
"class": bem$
|
3168
|
+
"class": bem$1f("tabs"),
|
3168
3169
|
"shrink": true,
|
3169
3170
|
"animated": true,
|
3170
3171
|
"lazyRender": false
|
3171
3172
|
}, {
|
3172
3173
|
default: () => [props.tabs.map((title, index) => createVNode(Tab, {
|
3173
3174
|
"title": title,
|
3174
|
-
"titleClass": bem$
|
3175
|
+
"titleClass": bem$1f("tab-title")
|
3175
3176
|
}, {
|
3176
3177
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3177
3178
|
}))]
|
@@ -3194,8 +3195,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3194
3195
|
toolbarPosition: makeStringProp("top"),
|
3195
3196
|
columnsFieldNames: Object
|
3196
3197
|
});
|
3197
|
-
var stdin_default$
|
3198
|
-
name: name$
|
3198
|
+
var stdin_default$1t = defineComponent({
|
3199
|
+
name: name$1t,
|
3199
3200
|
props: pickerProps,
|
3200
3201
|
emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
|
3201
3202
|
setup(props, {
|
@@ -3276,7 +3277,7 @@ var stdin_default$1s = defineComponent({
|
|
3276
3277
|
return params;
|
3277
3278
|
};
|
3278
3279
|
const cancel = () => emit("cancel", getEventParams());
|
3279
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
3280
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1C, {
|
3280
3281
|
"value": selectedValues.value[columnIndex],
|
3281
3282
|
"fields": fields.value,
|
3282
3283
|
"options": options,
|
@@ -3305,10 +3306,10 @@ var stdin_default$1s = defineComponent({
|
|
3305
3306
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3306
3307
|
};
|
3307
3308
|
return [createVNode("div", {
|
3308
|
-
"class": bem$
|
3309
|
+
"class": bem$1o("mask"),
|
3309
3310
|
"style": maskStyle
|
3310
3311
|
}, null), createVNode("div", {
|
3311
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3312
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1o("frame")],
|
3312
3313
|
"style": frameStyle
|
3313
3314
|
}, null)];
|
3314
3315
|
}
|
@@ -3320,13 +3321,13 @@ var stdin_default$1s = defineComponent({
|
|
3320
3321
|
};
|
3321
3322
|
return createVNode("div", {
|
3322
3323
|
"ref": columnsRef,
|
3323
|
-
"class": bem$
|
3324
|
+
"class": bem$1o("columns"),
|
3324
3325
|
"style": columnsStyle
|
3325
3326
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3326
3327
|
};
|
3327
3328
|
const renderToolbar = () => {
|
3328
3329
|
if (props.showToolbar && !parent) {
|
3329
|
-
return createVNode(stdin_default$
|
3330
|
+
return createVNode(stdin_default$1B, mergeProps(pick(props, pickerToolbarPropKeys), {
|
3330
3331
|
"onConfirm": confirm,
|
3331
3332
|
"onCancel": cancel
|
3332
3333
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3369,9 +3370,9 @@ var stdin_default$1s = defineComponent({
|
|
3369
3370
|
return () => {
|
3370
3371
|
var _a, _b;
|
3371
3372
|
return createVNode("div", {
|
3372
|
-
"class": bem$
|
3373
|
+
"class": bem$1o()
|
3373
3374
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
|
3374
|
-
"class": bem$
|
3375
|
+
"class": bem$1o("loading")
|
3375
3376
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3376
3377
|
};
|
3377
3378
|
}
|
@@ -3462,8 +3463,8 @@ function formatDataForCascade({
|
|
3462
3463
|
}
|
3463
3464
|
return options;
|
3464
3465
|
}
|
3465
|
-
const Picker = withInstall(stdin_default$
|
3466
|
-
const [name$
|
3466
|
+
const Picker = withInstall(stdin_default$1t);
|
3467
|
+
const [name$1i, bem$1e] = createNamespace("area");
|
3467
3468
|
const areaProps = extend({}, pickerSharedProps, {
|
3468
3469
|
modelValue: String,
|
3469
3470
|
columnsNum: makeNumericProp(3),
|
@@ -3473,8 +3474,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3473
3474
|
default: () => ({})
|
3474
3475
|
}
|
3475
3476
|
});
|
3476
|
-
var stdin_default$
|
3477
|
-
name: name$
|
3477
|
+
var stdin_default$1s = defineComponent({
|
3478
|
+
name: name$1i,
|
3478
3479
|
props: areaProps,
|
3479
3480
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3480
3481
|
setup(props, {
|
@@ -3521,7 +3522,7 @@ var stdin_default$1r = defineComponent({
|
|
3521
3522
|
"ref": picker,
|
3522
3523
|
"modelValue": codes.value,
|
3523
3524
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3524
|
-
"class": bem$
|
3525
|
+
"class": bem$1e(),
|
3525
3526
|
"columns": columns.value,
|
3526
3527
|
"onChange": onChange,
|
3527
3528
|
"onCancel": onCancel,
|
@@ -3529,8 +3530,8 @@ var stdin_default$1r = defineComponent({
|
|
3529
3530
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3530
3531
|
}
|
3531
3532
|
});
|
3532
|
-
const Area = withInstall(stdin_default$
|
3533
|
-
const [name$
|
3533
|
+
const Area = withInstall(stdin_default$1s);
|
3534
|
+
const [name$1h, bem$1d] = createNamespace("cell");
|
3534
3535
|
const cellSharedProps = {
|
3535
3536
|
tag: makeStringProp("div"),
|
3536
3537
|
icon: String,
|
@@ -3554,8 +3555,8 @@ const cellSharedProps = {
|
|
3554
3555
|
}
|
3555
3556
|
};
|
3556
3557
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3557
|
-
var stdin_default$
|
3558
|
-
name: name$
|
3558
|
+
var stdin_default$1r = defineComponent({
|
3559
|
+
name: name$1h,
|
3559
3560
|
props: cellProps,
|
3560
3561
|
setup(props, {
|
3561
3562
|
slots
|
@@ -3565,7 +3566,7 @@ var stdin_default$1q = defineComponent({
|
|
3565
3566
|
const showLabel = slots.label || isDef(props.label);
|
3566
3567
|
if (showLabel) {
|
3567
3568
|
return createVNode("div", {
|
3568
|
-
"class": [bem$
|
3569
|
+
"class": [bem$1d("label"), props.labelClass]
|
3569
3570
|
}, [slots.label ? slots.label() : props.label]);
|
3570
3571
|
}
|
3571
3572
|
};
|
@@ -3577,7 +3578,7 @@ var stdin_default$1q = defineComponent({
|
|
3577
3578
|
return;
|
3578
3579
|
}
|
3579
3580
|
return createVNode("div", {
|
3580
|
-
"class": [bem$
|
3581
|
+
"class": [bem$1d("title"), props.titleClass],
|
3581
3582
|
"style": props.titleStyle
|
3582
3583
|
}, [titleSlot || createVNode("span", null, [props.title]), renderLabel()]);
|
3583
3584
|
}
|
@@ -3587,7 +3588,7 @@ var stdin_default$1q = defineComponent({
|
|
3587
3588
|
const hasValue = slot || isDef(props.value);
|
3588
3589
|
if (hasValue) {
|
3589
3590
|
return createVNode("div", {
|
3590
|
-
"class": [bem$
|
3591
|
+
"class": [bem$1d("value"), props.valueClass]
|
3591
3592
|
}, [slot ? slot() : createVNode("span", null, [props.value])]);
|
3592
3593
|
}
|
3593
3594
|
};
|
@@ -3598,7 +3599,7 @@ var stdin_default$1q = defineComponent({
|
|
3598
3599
|
if (props.icon) {
|
3599
3600
|
return createVNode(Icon, {
|
3600
3601
|
"name": props.icon,
|
3601
|
-
"class": bem$
|
3602
|
+
"class": bem$1d("left-icon"),
|
3602
3603
|
"classPrefix": props.iconPrefix
|
3603
3604
|
}, null);
|
3604
3605
|
}
|
@@ -3611,7 +3612,7 @@ var stdin_default$1q = defineComponent({
|
|
3611
3612
|
const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
|
3612
3613
|
return createVNode(Icon, {
|
3613
3614
|
"name": name2,
|
3614
|
-
"class": bem$
|
3615
|
+
"class": bem$1d("right-icon")
|
3615
3616
|
}, null);
|
3616
3617
|
}
|
3617
3618
|
};
|
@@ -3636,7 +3637,7 @@ var stdin_default$1q = defineComponent({
|
|
3636
3637
|
classes[size] = !!size;
|
3637
3638
|
}
|
3638
3639
|
return createVNode(tag, {
|
3639
|
-
"class": bem$
|
3640
|
+
"class": bem$1d(classes),
|
3640
3641
|
"role": clickable ? "button" : void 0,
|
3641
3642
|
"tabindex": clickable ? 0 : void 0,
|
3642
3643
|
"onClick": route2
|
@@ -3649,8 +3650,8 @@ var stdin_default$1q = defineComponent({
|
|
3649
3650
|
};
|
3650
3651
|
}
|
3651
3652
|
});
|
3652
|
-
const Cell = withInstall(stdin_default$
|
3653
|
-
const [name$
|
3653
|
+
const Cell = withInstall(stdin_default$1r);
|
3654
|
+
const [name$1g, bem$1c] = createNamespace("form");
|
3654
3655
|
const formProps = {
|
3655
3656
|
colon: Boolean,
|
3656
3657
|
disabled: Boolean,
|
@@ -3669,8 +3670,8 @@ const formProps = {
|
|
3669
3670
|
default: "onBlur"
|
3670
3671
|
}
|
3671
3672
|
};
|
3672
|
-
var stdin_default$
|
3673
|
-
name: name$
|
3673
|
+
var stdin_default$1q = defineComponent({
|
3674
|
+
name: name$1g,
|
3674
3675
|
props: formProps,
|
3675
3676
|
emits: ["submit", "failed"],
|
3676
3677
|
setup(props, {
|
@@ -3796,13 +3797,13 @@ var stdin_default$1p = defineComponent({
|
|
3796
3797
|
return () => {
|
3797
3798
|
var _a;
|
3798
3799
|
return createVNode("form", {
|
3799
|
-
"class": bem$
|
3800
|
+
"class": bem$1c(),
|
3800
3801
|
"onSubmit": onSubmit
|
3801
3802
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3802
3803
|
};
|
3803
3804
|
}
|
3804
3805
|
});
|
3805
|
-
const Form = withInstall(stdin_default$
|
3806
|
+
const Form = withInstall(stdin_default$1q);
|
3806
3807
|
function isEmptyValue(value) {
|
3807
3808
|
if (Array.isArray(value)) {
|
3808
3809
|
return !value.length;
|
@@ -3891,7 +3892,7 @@ function getStringLength(str) {
|
|
3891
3892
|
function cutString(str, maxlength) {
|
3892
3893
|
return [...str].slice(0, maxlength).join("");
|
3893
3894
|
}
|
3894
|
-
const [name$
|
3895
|
+
const [name$1f, bem$1b] = createNamespace("field");
|
3895
3896
|
const fieldSharedProps = {
|
3896
3897
|
id: String,
|
3897
3898
|
name: String,
|
@@ -3938,8 +3939,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3938
3939
|
default: null
|
3939
3940
|
}
|
3940
3941
|
});
|
3941
|
-
var stdin_default$
|
3942
|
-
name: name$
|
3942
|
+
var stdin_default$1p = defineComponent({
|
3943
|
+
name: name$1f,
|
3943
3944
|
props: fieldProps,
|
3944
3945
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
3945
3946
|
setup(props, {
|
@@ -4213,7 +4214,7 @@ var stdin_default$1o = defineComponent({
|
|
4213
4214
|
const getInputId = () => props.id || `${id}-input`;
|
4214
4215
|
const getValidationStatus = () => state.status;
|
4215
4216
|
const renderInput = () => {
|
4216
|
-
const controlClass = bem$
|
4217
|
+
const controlClass = bem$1b("control", [getProp("inputAlign"), {
|
4217
4218
|
error: showError.value,
|
4218
4219
|
custom: !!slots.input,
|
4219
4220
|
"min-height": props.type === "textarea" && !props.autosize
|
@@ -4255,7 +4256,7 @@ var stdin_default$1o = defineComponent({
|
|
4255
4256
|
const leftIconSlot = slots["left-icon"];
|
4256
4257
|
if (props.leftIcon || leftIconSlot) {
|
4257
4258
|
return createVNode("div", {
|
4258
|
-
"class": bem$
|
4259
|
+
"class": bem$1b("left-icon"),
|
4259
4260
|
"onClick": onClickLeftIcon
|
4260
4261
|
}, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
|
4261
4262
|
"name": props.leftIcon,
|
@@ -4267,7 +4268,7 @@ var stdin_default$1o = defineComponent({
|
|
4267
4268
|
const rightIconSlot = slots["right-icon"];
|
4268
4269
|
if (props.rightIcon || rightIconSlot) {
|
4269
4270
|
return createVNode("div", {
|
4270
|
-
"class": bem$
|
4271
|
+
"class": bem$1b("right-icon"),
|
4271
4272
|
"onClick": onClickRightIcon
|
4272
4273
|
}, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
|
4273
4274
|
"name": props.rightIcon,
|
@@ -4279,9 +4280,9 @@ var stdin_default$1o = defineComponent({
|
|
4279
4280
|
if (props.showWordLimit && props.maxlength) {
|
4280
4281
|
const count = getStringLength(getModelValue());
|
4281
4282
|
return createVNode("div", {
|
4282
|
-
"class": bem$
|
4283
|
+
"class": bem$1b("word-limit")
|
4283
4284
|
}, [createVNode("span", {
|
4284
|
-
"class": bem$
|
4285
|
+
"class": bem$1b("word-num")
|
4285
4286
|
}, [count]), createTextVNode("/"), props.maxlength]);
|
4286
4287
|
}
|
4287
4288
|
};
|
@@ -4294,7 +4295,7 @@ var stdin_default$1o = defineComponent({
|
|
4294
4295
|
const slot = slots["error-message"];
|
4295
4296
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4296
4297
|
return createVNode("div", {
|
4297
|
-
"class": bem$
|
4298
|
+
"class": bem$1b("error-message", errorMessageAlign)
|
4298
4299
|
}, [slot ? slot({
|
4299
4300
|
message
|
4300
4301
|
}) : message]);
|
@@ -4318,13 +4319,13 @@ var stdin_default$1o = defineComponent({
|
|
4318
4319
|
}
|
4319
4320
|
};
|
4320
4321
|
const renderFieldBody = () => [createVNode("div", {
|
4321
|
-
"class": bem$
|
4322
|
+
"class": bem$1b("body")
|
4322
4323
|
}, [renderInput(), showClear.value && createVNode(Icon, {
|
4323
4324
|
"ref": clearIconRef,
|
4324
4325
|
"name": props.clearIcon,
|
4325
|
-
"class": bem$
|
4326
|
+
"class": bem$1b("clear")
|
4326
4327
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
4327
|
-
"class": bem$
|
4328
|
+
"class": bem$1b("button")
|
4328
4329
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4329
4330
|
useExpose({
|
4330
4331
|
blur,
|
@@ -4368,7 +4369,7 @@ var stdin_default$1o = defineComponent({
|
|
4368
4369
|
};
|
4369
4370
|
return createVNode(Cell, {
|
4370
4371
|
"size": props.size,
|
4371
|
-
"class": bem$
|
4372
|
+
"class": bem$1b({
|
4372
4373
|
error: showError.value,
|
4373
4374
|
disabled,
|
4374
4375
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4378,8 +4379,8 @@ var stdin_default$1o = defineComponent({
|
|
4378
4379
|
"isLink": props.isLink,
|
4379
4380
|
"clickable": props.clickable,
|
4380
4381
|
"titleStyle": labelStyle.value,
|
4381
|
-
"valueClass": bem$
|
4382
|
-
"titleClass": [bem$
|
4382
|
+
"valueClass": bem$1b("value"),
|
4383
|
+
"titleClass": [bem$1b("label", [labelAlign, {
|
4383
4384
|
required: props.required
|
4384
4385
|
}]), props.labelClass],
|
4385
4386
|
"arrowDirection": props.arrowDirection
|
@@ -4392,7 +4393,7 @@ var stdin_default$1o = defineComponent({
|
|
4392
4393
|
};
|
4393
4394
|
}
|
4394
4395
|
});
|
4395
|
-
const Field = withInstall(stdin_default$
|
4396
|
+
const Field = withInstall(stdin_default$1p);
|
4396
4397
|
let lockCount = 0;
|
4397
4398
|
function lockClick(lock) {
|
4398
4399
|
if (lock) {
|
@@ -4407,7 +4408,7 @@ function lockClick(lock) {
|
|
4407
4408
|
}
|
4408
4409
|
}
|
4409
4410
|
}
|
4410
|
-
const [name$
|
4411
|
+
const [name$1e, bem$1a] = createNamespace("toast");
|
4411
4412
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4412
4413
|
const toastProps = {
|
4413
4414
|
icon: String,
|
@@ -4430,8 +4431,8 @@ const toastProps = {
|
|
4430
4431
|
closeOnClick: Boolean,
|
4431
4432
|
closeOnClickOverlay: Boolean
|
4432
4433
|
};
|
4433
|
-
var stdin_default$
|
4434
|
-
name: name$
|
4434
|
+
var stdin_default$1o = defineComponent({
|
4435
|
+
name: name$1e,
|
4435
4436
|
props: toastProps,
|
4436
4437
|
emits: ["update:show"],
|
4437
4438
|
setup(props, {
|
@@ -4467,13 +4468,13 @@ var stdin_default$1n = defineComponent({
|
|
4467
4468
|
return createVNode(Icon, {
|
4468
4469
|
"name": icon || type,
|
4469
4470
|
"size": iconSize,
|
4470
|
-
"class": bem$
|
4471
|
+
"class": bem$1a("icon"),
|
4471
4472
|
"classPrefix": iconPrefix
|
4472
4473
|
}, null);
|
4473
4474
|
}
|
4474
4475
|
if (type === "loading") {
|
4475
4476
|
return createVNode(Loading, {
|
4476
|
-
"class": bem$
|
4477
|
+
"class": bem$1a("loading"),
|
4477
4478
|
"size": iconSize,
|
4478
4479
|
"type": loadingType
|
4479
4480
|
}, null);
|
@@ -4486,16 +4487,16 @@ var stdin_default$1n = defineComponent({
|
|
4486
4487
|
} = props;
|
4487
4488
|
if (slots.message) {
|
4488
4489
|
return createVNode("div", {
|
4489
|
-
"class": bem$
|
4490
|
+
"class": bem$1a("text")
|
4490
4491
|
}, [slots.message()]);
|
4491
4492
|
}
|
4492
4493
|
if (isDef(message) && message !== "") {
|
4493
4494
|
return type === "html" ? createVNode("div", {
|
4494
4495
|
"key": 0,
|
4495
|
-
"class": bem$
|
4496
|
+
"class": bem$1a("text"),
|
4496
4497
|
"innerHTML": String(message)
|
4497
4498
|
}, null) : createVNode("div", {
|
4498
|
-
"class": bem$
|
4499
|
+
"class": bem$1a("text")
|
4499
4500
|
}, [message]);
|
4500
4501
|
}
|
4501
4502
|
};
|
@@ -4511,7 +4512,7 @@ var stdin_default$1n = defineComponent({
|
|
4511
4512
|
onMounted(toggleClickable);
|
4512
4513
|
onUnmounted(toggleClickable);
|
4513
4514
|
return () => createVNode(Popup, mergeProps({
|
4514
|
-
"class": [bem$
|
4515
|
+
"class": [bem$1a([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
4515
4516
|
[props.type]: !props.icon
|
4516
4517
|
}]), props.className],
|
4517
4518
|
"lockScroll": false,
|
@@ -4612,7 +4613,7 @@ function createInstance() {
|
|
4612
4613
|
onClosed,
|
4613
4614
|
"onUpdate:show": toggle
|
4614
4615
|
};
|
4615
|
-
return createVNode(stdin_default$
|
4616
|
+
return createVNode(stdin_default$1o, mergeProps(state, attrs), null);
|
4616
4617
|
};
|
4617
4618
|
watch(message, (val) => {
|
4618
4619
|
state.message = val;
|
@@ -4682,8 +4683,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4682
4683
|
const allowMultipleToast = (value = true) => {
|
4683
4684
|
allowMultiple = value;
|
4684
4685
|
};
|
4685
|
-
const Toast = withInstall(stdin_default$
|
4686
|
-
const [name$
|
4686
|
+
const Toast = withInstall(stdin_default$1o);
|
4687
|
+
const [name$1d, bem$19] = createNamespace("switch");
|
4687
4688
|
const switchProps = {
|
4688
4689
|
size: numericProp,
|
4689
4690
|
loading: Boolean,
|
@@ -4700,8 +4701,8 @@ const switchProps = {
|
|
4700
4701
|
default: false
|
4701
4702
|
}
|
4702
4703
|
};
|
4703
|
-
var stdin_default$
|
4704
|
-
name: name$
|
4704
|
+
var stdin_default$1n = defineComponent({
|
4705
|
+
name: name$1d,
|
4705
4706
|
props: switchProps,
|
4706
4707
|
emits: ["change", "update:modelValue"],
|
4707
4708
|
setup(props, {
|
@@ -4720,7 +4721,7 @@ var stdin_default$1m = defineComponent({
|
|
4720
4721
|
if (props.loading) {
|
4721
4722
|
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
4722
4723
|
return createVNode(Loading, {
|
4723
|
-
"class": bem$
|
4724
|
+
"class": bem$19("loading"),
|
4724
4725
|
"color": color
|
4725
4726
|
}, null);
|
4726
4727
|
}
|
@@ -4745,7 +4746,7 @@ var stdin_default$1m = defineComponent({
|
|
4745
4746
|
};
|
4746
4747
|
return createVNode("div", {
|
4747
4748
|
"role": "switch",
|
4748
|
-
"class": bem$
|
4749
|
+
"class": bem$19({
|
4749
4750
|
on: checked,
|
4750
4751
|
loading,
|
4751
4752
|
disabled
|
@@ -4755,16 +4756,16 @@ var stdin_default$1m = defineComponent({
|
|
4755
4756
|
"aria-checked": checked,
|
4756
4757
|
"onClick": onClick
|
4757
4758
|
}, [createVNode("div", {
|
4758
|
-
"class": bem$
|
4759
|
+
"class": bem$19("node")
|
4759
4760
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4760
4761
|
};
|
4761
4762
|
}
|
4762
4763
|
});
|
4763
|
-
const Switch = withInstall(stdin_default$
|
4764
|
-
const [name$
|
4765
|
-
const t$
|
4766
|
-
var stdin_default$
|
4767
|
-
name: name$
|
4764
|
+
const Switch = withInstall(stdin_default$1n);
|
4765
|
+
const [name$1c, bem$18] = createNamespace("address-edit-detail");
|
4766
|
+
const t$j = createNamespace("address-edit")[2];
|
4767
|
+
var stdin_default$1m = defineComponent({
|
4768
|
+
name: name$1c,
|
4768
4769
|
props: {
|
4769
4770
|
show: Boolean,
|
4770
4771
|
rows: numericProp,
|
@@ -4798,7 +4799,7 @@ var stdin_default$1l = defineComponent({
|
|
4798
4799
|
"icon": "location-o",
|
4799
4800
|
"title": express.name,
|
4800
4801
|
"label": express.address,
|
4801
|
-
"class": bem$
|
4802
|
+
"class": bem$18("search-item"),
|
4802
4803
|
"border": false,
|
4803
4804
|
"onClick": () => onSelect(express)
|
4804
4805
|
}, null));
|
@@ -4812,15 +4813,15 @@ var stdin_default$1l = defineComponent({
|
|
4812
4813
|
"autosize": true,
|
4813
4814
|
"clearable": true,
|
4814
4815
|
"ref": field,
|
4815
|
-
"class": bem$
|
4816
|
+
"class": bem$18(),
|
4816
4817
|
"rows": props.rows,
|
4817
4818
|
"type": "textarea",
|
4818
4819
|
"rules": props.rules,
|
4819
|
-
"label": t$
|
4820
|
+
"label": t$j("addressDetail"),
|
4820
4821
|
"border": !showSearchResult(),
|
4821
4822
|
"maxlength": props.maxlength,
|
4822
4823
|
"modelValue": props.value,
|
4823
|
-
"placeholder": t$
|
4824
|
+
"placeholder": t$j("addressDetail"),
|
4824
4825
|
"onBlur": onBlur,
|
4825
4826
|
"onFocus": onFocus,
|
4826
4827
|
"onUpdate:modelValue": onInput
|
@@ -4829,7 +4830,7 @@ var stdin_default$1l = defineComponent({
|
|
4829
4830
|
};
|
4830
4831
|
}
|
4831
4832
|
});
|
4832
|
-
const [name$
|
4833
|
+
const [name$1b, bem$17, t$i] = createNamespace("address-edit");
|
4833
4834
|
const DEFAULT_DATA = {
|
4834
4835
|
name: "",
|
4835
4836
|
tel: "",
|
@@ -4869,8 +4870,8 @@ const addressEditProps = {
|
|
4869
4870
|
default: isMobile
|
4870
4871
|
}
|
4871
4872
|
};
|
4872
|
-
var stdin_default$
|
4873
|
-
name: name$
|
4873
|
+
var stdin_default$1l = defineComponent({
|
4874
|
+
name: name$1b,
|
4874
4875
|
props: addressEditProps,
|
4875
4876
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
4876
4877
|
setup(props, {
|
@@ -4926,13 +4927,13 @@ var stdin_default$1k = defineComponent({
|
|
4926
4927
|
}
|
4927
4928
|
});
|
4928
4929
|
return {
|
4929
|
-
name: [makeRule("name", t$
|
4930
|
-
tel: [makeRule("tel", t$
|
4930
|
+
name: [makeRule("name", t$i("nameEmpty"))],
|
4931
|
+
tel: [makeRule("tel", t$i("telInvalid")), {
|
4931
4932
|
validator: telValidator,
|
4932
|
-
message: t$
|
4933
|
+
message: t$i("telInvalid")
|
4933
4934
|
}],
|
4934
|
-
areaCode: [makeRule("areaCode", t$
|
4935
|
-
addressDetail: [makeRule("addressDetail", t$
|
4935
|
+
areaCode: [makeRule("areaCode", t$i("areaEmpty"))],
|
4936
|
+
addressDetail: [makeRule("addressDetail", t$i("addressEmpty"))]
|
4936
4937
|
};
|
4937
4938
|
});
|
4938
4939
|
const onSave = () => emit("save", data);
|
@@ -4950,7 +4951,7 @@ var stdin_default$1k = defineComponent({
|
|
4950
4951
|
selectedOptions
|
4951
4952
|
}) => {
|
4952
4953
|
if (selectedValues.some((value) => value === AREA_EMPTY_CODE)) {
|
4953
|
-
showToast(t$
|
4954
|
+
showToast(t$i("areaEmpty"));
|
4954
4955
|
} else {
|
4955
4956
|
showAreaPopup.value = false;
|
4956
4957
|
assignAreaText(selectedOptions);
|
@@ -4980,8 +4981,8 @@ var stdin_default$1k = defineComponent({
|
|
4980
4981
|
};
|
4981
4982
|
return withDirectives(createVNode(Cell, {
|
4982
4983
|
"center": true,
|
4983
|
-
"title": t$
|
4984
|
-
"class": bem$
|
4984
|
+
"title": t$i("defaultAddress"),
|
4985
|
+
"class": bem$17("default")
|
4985
4986
|
}, slots2), [[vShow, !hideBottomFields.value]]);
|
4986
4987
|
}
|
4987
4988
|
};
|
@@ -5007,44 +5008,44 @@ var stdin_default$1k = defineComponent({
|
|
5007
5008
|
disableArea
|
5008
5009
|
} = props;
|
5009
5010
|
return createVNode(Form, {
|
5010
|
-
"class": bem$
|
5011
|
+
"class": bem$17(),
|
5011
5012
|
"onSubmit": onSave
|
5012
5013
|
}, {
|
5013
5014
|
default: () => {
|
5014
5015
|
var _a;
|
5015
5016
|
return [createVNode("div", {
|
5016
|
-
"class": bem$
|
5017
|
+
"class": bem$17("fields")
|
5017
5018
|
}, [createVNode(Field, {
|
5018
5019
|
"modelValue": data.name,
|
5019
5020
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
5020
5021
|
"clearable": true,
|
5021
|
-
"label": t$
|
5022
|
+
"label": t$i("name"),
|
5022
5023
|
"rules": rules.value.name,
|
5023
|
-
"placeholder": t$
|
5024
|
+
"placeholder": t$i("name"),
|
5024
5025
|
"onFocus": () => onFocus("name")
|
5025
5026
|
}, null), createVNode(Field, {
|
5026
5027
|
"modelValue": data.tel,
|
5027
5028
|
"onUpdate:modelValue": ($event) => data.tel = $event,
|
5028
5029
|
"clearable": true,
|
5029
5030
|
"type": "tel",
|
5030
|
-
"label": t$
|
5031
|
+
"label": t$i("tel"),
|
5031
5032
|
"rules": rules.value.tel,
|
5032
5033
|
"maxlength": props.telMaxlength,
|
5033
|
-
"placeholder": t$
|
5034
|
+
"placeholder": t$i("tel"),
|
5034
5035
|
"onFocus": () => onFocus("tel")
|
5035
5036
|
}, null), withDirectives(createVNode(Field, {
|
5036
5037
|
"readonly": true,
|
5037
|
-
"label": t$
|
5038
|
+
"label": t$i("area"),
|
5038
5039
|
"is-link": !disableArea,
|
5039
5040
|
"modelValue": areaText.value,
|
5040
5041
|
"rules": rules.value.areaCode,
|
5041
|
-
"placeholder": props.areaPlaceholder || t$
|
5042
|
+
"placeholder": props.areaPlaceholder || t$i("area"),
|
5042
5043
|
"onFocus": () => onFocus("areaCode"),
|
5043
5044
|
"onClick": () => {
|
5044
5045
|
emit("clickArea");
|
5045
5046
|
showAreaPopup.value = !disableArea;
|
5046
5047
|
}
|
5047
|
-
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$
|
5048
|
+
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$1m, {
|
5048
5049
|
"show": props.showDetail,
|
5049
5050
|
"rows": props.detailRows,
|
5050
5051
|
"rules": rules.value.addressDetail,
|
@@ -5058,21 +5059,21 @@ var stdin_default$1k = defineComponent({
|
|
5058
5059
|
"onInput": onChangeDetail,
|
5059
5060
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5060
5061
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
5061
|
-
"class": bem$
|
5062
|
+
"class": bem$17("buttons")
|
5062
5063
|
}, [createVNode(Button, {
|
5063
5064
|
"block": true,
|
5064
5065
|
"round": true,
|
5065
5066
|
"type": "primary",
|
5066
|
-
"text": props.saveButtonText || t$
|
5067
|
-
"class": bem$
|
5067
|
+
"text": props.saveButtonText || t$i("save"),
|
5068
|
+
"class": bem$17("button"),
|
5068
5069
|
"loading": props.isSaving,
|
5069
5070
|
"nativeType": "submit"
|
5070
5071
|
}, null), props.showDelete && createVNode(Button, {
|
5071
5072
|
"block": true,
|
5072
5073
|
"round": true,
|
5073
|
-
"class": bem$
|
5074
|
+
"class": bem$17("button"),
|
5074
5075
|
"loading": props.isDeleting,
|
5075
|
-
"text": props.deleteButtonText || t$
|
5076
|
+
"text": props.deleteButtonText || t$i("delete"),
|
5076
5077
|
"onClick": onDelete
|
5077
5078
|
}, null)]), [[vShow, !hideBottomFields.value]]), createVNode(Popup, {
|
5078
5079
|
"show": showAreaPopup.value,
|
@@ -5100,8 +5101,8 @@ var stdin_default$1k = defineComponent({
|
|
5100
5101
|
};
|
5101
5102
|
}
|
5102
5103
|
});
|
5103
|
-
const AddressEdit = withInstall(stdin_default$
|
5104
|
-
const [name$
|
5104
|
+
const AddressEdit = withInstall(stdin_default$1l);
|
5105
|
+
const [name$1a, bem$16] = createNamespace("radio-group");
|
5105
5106
|
const radioGroupProps = {
|
5106
5107
|
disabled: Boolean,
|
5107
5108
|
iconSize: numericProp,
|
@@ -5109,9 +5110,9 @@ const radioGroupProps = {
|
|
5109
5110
|
modelValue: unknownProp,
|
5110
5111
|
checkedColor: String
|
5111
5112
|
};
|
5112
|
-
const RADIO_KEY = Symbol(name$
|
5113
|
-
var stdin_default$
|
5114
|
-
name: name$
|
5113
|
+
const RADIO_KEY = Symbol(name$1a);
|
5114
|
+
var stdin_default$1k = defineComponent({
|
5115
|
+
name: name$1a,
|
5115
5116
|
props: radioGroupProps,
|
5116
5117
|
emits: ["change", "update:modelValue"],
|
5117
5118
|
setup(props, {
|
@@ -5131,14 +5132,14 @@ var stdin_default$1j = defineComponent({
|
|
5131
5132
|
return () => {
|
5132
5133
|
var _a;
|
5133
5134
|
return createVNode("div", {
|
5134
|
-
"class": bem$
|
5135
|
+
"class": bem$16([props.direction]),
|
5135
5136
|
"role": "radiogroup"
|
5136
5137
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5137
5138
|
};
|
5138
5139
|
}
|
5139
5140
|
});
|
5140
|
-
const RadioGroup = withInstall(stdin_default$
|
5141
|
-
const [name$
|
5141
|
+
const RadioGroup = withInstall(stdin_default$1k);
|
5142
|
+
const [name$19, bem$15] = createNamespace("tag");
|
5142
5143
|
const tagProps = {
|
5143
5144
|
size: String,
|
5144
5145
|
mark: Boolean,
|
@@ -5150,8 +5151,8 @@ const tagProps = {
|
|
5150
5151
|
textColor: String,
|
5151
5152
|
closeable: Boolean
|
5152
5153
|
};
|
5153
|
-
var stdin_default$
|
5154
|
-
name: name$
|
5154
|
+
var stdin_default$1j = defineComponent({
|
5155
|
+
name: name$19,
|
5155
5156
|
props: tagProps,
|
5156
5157
|
emits: ["close"],
|
5157
5158
|
setup(props, {
|
@@ -5194,12 +5195,12 @@ var stdin_default$1i = defineComponent({
|
|
5194
5195
|
}
|
5195
5196
|
const CloseIcon = closeable && createVNode(Icon, {
|
5196
5197
|
"name": "cross",
|
5197
|
-
"class": [bem$
|
5198
|
+
"class": [bem$15("close"), HAPTICS_FEEDBACK],
|
5198
5199
|
"onClick": onClose
|
5199
5200
|
}, null);
|
5200
5201
|
return createVNode("span", {
|
5201
5202
|
"style": getStyle(),
|
5202
|
-
"class": bem$
|
5203
|
+
"class": bem$15([classes, type])
|
5203
5204
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5204
5205
|
};
|
5205
5206
|
return () => createVNode(Transition, {
|
@@ -5209,7 +5210,7 @@ var stdin_default$1i = defineComponent({
|
|
5209
5210
|
});
|
5210
5211
|
}
|
5211
5212
|
});
|
5212
|
-
const Tag = withInstall(stdin_default$
|
5213
|
+
const Tag = withInstall(stdin_default$1j);
|
5213
5214
|
const checkerProps = {
|
5214
5215
|
name: unknownProp,
|
5215
5216
|
shape: makeStringProp("round"),
|
@@ -5220,7 +5221,7 @@ const checkerProps = {
|
|
5220
5221
|
labelPosition: String,
|
5221
5222
|
labelDisabled: Boolean
|
5222
5223
|
};
|
5223
|
-
var stdin_default$
|
5224
|
+
var stdin_default$1i = defineComponent({
|
5224
5225
|
props: extend({}, checkerProps, {
|
5225
5226
|
bem: makeRequiredProp(Function),
|
5226
5227
|
role: String,
|
@@ -5310,9 +5311,9 @@ var stdin_default$1h = defineComponent({
|
|
5310
5311
|
}
|
5311
5312
|
});
|
5312
5313
|
const radioProps = checkerProps;
|
5313
|
-
const [name$
|
5314
|
-
var stdin_default$
|
5315
|
-
name: name$
|
5314
|
+
const [name$18, bem$14] = createNamespace("radio");
|
5315
|
+
var stdin_default$1h = defineComponent({
|
5316
|
+
name: name$18,
|
5316
5317
|
props: checkerProps,
|
5317
5318
|
emits: ["update:modelValue"],
|
5318
5319
|
setup(props, {
|
@@ -5333,8 +5334,8 @@ var stdin_default$1g = defineComponent({
|
|
5333
5334
|
emit("update:modelValue", props.name);
|
5334
5335
|
}
|
5335
5336
|
};
|
5336
|
-
return () => createVNode(stdin_default$
|
5337
|
-
"bem": bem$
|
5337
|
+
return () => createVNode(stdin_default$1i, mergeProps({
|
5338
|
+
"bem": bem$14,
|
5338
5339
|
"role": "radio",
|
5339
5340
|
"parent": parent,
|
5340
5341
|
"checked": checked(),
|
@@ -5342,10 +5343,10 @@ var stdin_default$1g = defineComponent({
|
|
5342
5343
|
}, props), pick(slots, ["default", "icon"]));
|
5343
5344
|
}
|
5344
5345
|
});
|
5345
|
-
const Radio = withInstall(stdin_default$
|
5346
|
-
const [name$
|
5347
|
-
var stdin_default$
|
5348
|
-
name: name$
|
5346
|
+
const Radio = withInstall(stdin_default$1h);
|
5347
|
+
const [name$17, bem$13] = createNamespace("address-item");
|
5348
|
+
var stdin_default$1g = defineComponent({
|
5349
|
+
name: name$17,
|
5349
5350
|
props: {
|
5350
5351
|
address: makeRequiredProp(Object),
|
5351
5352
|
disabled: Boolean,
|
@@ -5365,7 +5366,7 @@ var stdin_default$1f = defineComponent({
|
|
5365
5366
|
};
|
5366
5367
|
const renderRightIcon = () => createVNode(Icon, {
|
5367
5368
|
"name": "edit",
|
5368
|
-
"class": bem$
|
5369
|
+
"class": bem$13("edit"),
|
5369
5370
|
"onClick": (event) => {
|
5370
5371
|
event.stopPropagation();
|
5371
5372
|
emit("edit");
|
@@ -5380,7 +5381,7 @@ var stdin_default$1f = defineComponent({
|
|
5380
5381
|
return createVNode(Tag, {
|
5381
5382
|
"type": "primary",
|
5382
5383
|
"round": true,
|
5383
|
-
"class": bem$
|
5384
|
+
"class": bem$13("tag")
|
5384
5385
|
}, {
|
5385
5386
|
default: () => [props.defaultTagText]
|
5386
5387
|
});
|
@@ -5393,9 +5394,9 @@ var stdin_default$1f = defineComponent({
|
|
5393
5394
|
switchable
|
5394
5395
|
} = props;
|
5395
5396
|
const Info = [createVNode("div", {
|
5396
|
-
"class": bem$
|
5397
|
+
"class": bem$13("name")
|
5397
5398
|
}, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
|
5398
|
-
"class": bem$
|
5399
|
+
"class": bem$13("address")
|
5399
5400
|
}, [address.address])];
|
5400
5401
|
if (switchable && !disabled) {
|
5401
5402
|
return createVNode(Radio, {
|
@@ -5413,13 +5414,13 @@ var stdin_default$1f = defineComponent({
|
|
5413
5414
|
disabled
|
5414
5415
|
} = props;
|
5415
5416
|
return createVNode("div", {
|
5416
|
-
"class": bem$
|
5417
|
+
"class": bem$13({
|
5417
5418
|
disabled
|
5418
5419
|
}),
|
5419
5420
|
"onClick": onClick
|
5420
5421
|
}, [createVNode(Cell, {
|
5421
5422
|
"border": false,
|
5422
|
-
"titleClass": bem$
|
5423
|
+
"titleClass": bem$13("title")
|
5423
5424
|
}, {
|
5424
5425
|
title: renderContent,
|
5425
5426
|
"right-icon": renderRightIcon
|
@@ -5429,7 +5430,7 @@ var stdin_default$1f = defineComponent({
|
|
5429
5430
|
};
|
5430
5431
|
}
|
5431
5432
|
});
|
5432
|
-
const [name$
|
5433
|
+
const [name$16, bem$12, t$h] = createNamespace("address-list");
|
5433
5434
|
const addressListProps = {
|
5434
5435
|
list: makeArrayProp(),
|
5435
5436
|
modelValue: numericProp,
|
@@ -5439,8 +5440,8 @@ const addressListProps = {
|
|
5439
5440
|
addButtonText: String,
|
5440
5441
|
defaultTagText: String
|
5441
5442
|
};
|
5442
|
-
var stdin_default$
|
5443
|
-
name: name$
|
5443
|
+
var stdin_default$1f = defineComponent({
|
5444
|
+
name: name$16,
|
5444
5445
|
props: addressListProps,
|
5445
5446
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5446
5447
|
setup(props, {
|
@@ -5456,7 +5457,7 @@ var stdin_default$1e = defineComponent({
|
|
5456
5457
|
emit("update:modelValue", item.id);
|
5457
5458
|
}
|
5458
5459
|
};
|
5459
|
-
return createVNode(stdin_default$
|
5460
|
+
return createVNode(stdin_default$1g, {
|
5460
5461
|
"key": item.id,
|
5461
5462
|
"address": item,
|
5462
5463
|
"disabled": disabled,
|
@@ -5476,13 +5477,13 @@ var stdin_default$1e = defineComponent({
|
|
5476
5477
|
}
|
5477
5478
|
};
|
5478
5479
|
const renderBottom = () => createVNode("div", {
|
5479
|
-
"class": [bem$
|
5480
|
+
"class": [bem$12("bottom"), "van-safe-area-bottom"]
|
5480
5481
|
}, [createVNode(Button, {
|
5481
5482
|
"round": true,
|
5482
5483
|
"block": true,
|
5483
5484
|
"type": "primary",
|
5484
|
-
"text": props.addButtonText || t$
|
5485
|
-
"class": bem$
|
5485
|
+
"text": props.addButtonText || t$h("add"),
|
5486
|
+
"class": bem$12("add"),
|
5486
5487
|
"onClick": () => emit("add")
|
5487
5488
|
}, null)]);
|
5488
5489
|
return () => {
|
@@ -5490,10 +5491,10 @@ var stdin_default$1e = defineComponent({
|
|
5490
5491
|
const List2 = renderList(props.list);
|
5491
5492
|
const DisabledList = renderList(props.disabledList, true);
|
5492
5493
|
const DisabledText = props.disabledText && createVNode("div", {
|
5493
|
-
"class": bem$
|
5494
|
+
"class": bem$12("disabled-text")
|
5494
5495
|
}, [props.disabledText]);
|
5495
5496
|
return createVNode("div", {
|
5496
|
-
"class": bem$
|
5497
|
+
"class": bem$12()
|
5497
5498
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
|
5498
5499
|
"modelValue": props.modelValue
|
5499
5500
|
}, {
|
@@ -5502,7 +5503,7 @@ var stdin_default$1e = defineComponent({
|
|
5502
5503
|
};
|
5503
5504
|
}
|
5504
5505
|
});
|
5505
|
-
const AddressList = withInstall(stdin_default$
|
5506
|
+
const AddressList = withInstall(stdin_default$1f);
|
5506
5507
|
const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5507
5508
|
const modeType = {
|
5508
5509
|
event: "event",
|
@@ -5655,7 +5656,7 @@ class ImageCache {
|
|
5655
5656
|
this.caches.shift();
|
5656
5657
|
}
|
5657
5658
|
}
|
5658
|
-
const [name$
|
5659
|
+
const [name$15, bem$11] = createNamespace("back-top");
|
5659
5660
|
const backTopProps = {
|
5660
5661
|
right: numericProp,
|
5661
5662
|
bottom: numericProp,
|
@@ -5668,8 +5669,8 @@ const backTopProps = {
|
|
5668
5669
|
default: "body"
|
5669
5670
|
}
|
5670
5671
|
};
|
5671
|
-
var stdin_default$
|
5672
|
-
name: name$
|
5672
|
+
var stdin_default$1e = defineComponent({
|
5673
|
+
name: name$15,
|
5673
5674
|
inheritAttrs: false,
|
5674
5675
|
props: backTopProps,
|
5675
5676
|
emits: ["click"],
|
@@ -5728,14 +5729,14 @@ var stdin_default$1d = defineComponent({
|
|
5728
5729
|
return () => {
|
5729
5730
|
const Content = createVNode("div", mergeProps({
|
5730
5731
|
"ref": root,
|
5731
|
-
"class": bem$
|
5732
|
+
"class": bem$11({
|
5732
5733
|
active: show.value
|
5733
5734
|
}),
|
5734
5735
|
"style": style.value,
|
5735
5736
|
"onClick": onClick
|
5736
5737
|
}, attrs), [slots.default ? slots.default() : createVNode(Icon, {
|
5737
5738
|
"name": "back-top",
|
5738
|
-
"class": bem$
|
5739
|
+
"class": bem$11("icon")
|
5739
5740
|
}, null)]);
|
5740
5741
|
if (props.teleport) {
|
5741
5742
|
return createVNode(Teleport, {
|
@@ -5748,9 +5749,9 @@ var stdin_default$1d = defineComponent({
|
|
5748
5749
|
};
|
5749
5750
|
}
|
5750
5751
|
});
|
5751
|
-
const BackTop = withInstall(stdin_default$
|
5752
|
-
const [name$
|
5753
|
-
const formatMonthTitle = (date) => t$
|
5752
|
+
const BackTop = withInstall(stdin_default$1e);
|
5753
|
+
const [name$14, bem$10, t$g] = createNamespace("calendar");
|
5754
|
+
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5754
5755
|
function compareMonth(date1, date2) {
|
5755
5756
|
const year1 = date1.getFullYear();
|
5756
5757
|
const year2 = date2.getFullYear();
|
@@ -5823,16 +5824,15 @@ const genOptions = (min, max, type, formatter, filter) => {
|
|
5823
5824
|
const formatValueRange = (values, columns) => values.map((value, index) => {
|
5824
5825
|
const column = columns[index];
|
5825
5826
|
if (column.length) {
|
5827
|
+
const minValue = +column[0].value;
|
5826
5828
|
const maxValue = +column[column.length - 1].value;
|
5827
|
-
|
5828
|
-
return String(maxValue);
|
5829
|
-
}
|
5829
|
+
return padZero(clamp(+value, minValue, maxValue));
|
5830
5830
|
}
|
5831
5831
|
return value;
|
5832
5832
|
});
|
5833
|
-
const [name$
|
5834
|
-
var stdin_default$
|
5835
|
-
name: name$
|
5833
|
+
const [name$13] = createNamespace("calendar-day");
|
5834
|
+
var stdin_default$1d = defineComponent({
|
5835
|
+
name: name$13,
|
5836
5836
|
props: {
|
5837
5837
|
item: makeRequiredProp(Object),
|
5838
5838
|
color: String,
|
@@ -5894,7 +5894,7 @@ var stdin_default$1c = defineComponent({
|
|
5894
5894
|
} = props.item;
|
5895
5895
|
if (topInfo || slots["top-info"]) {
|
5896
5896
|
return createVNode("div", {
|
5897
|
-
"class": bem
|
5897
|
+
"class": bem$10("top-info")
|
5898
5898
|
}, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
|
5899
5899
|
}
|
5900
5900
|
};
|
@@ -5904,7 +5904,7 @@ var stdin_default$1c = defineComponent({
|
|
5904
5904
|
} = props.item;
|
5905
5905
|
if (bottomInfo || slots["bottom-info"]) {
|
5906
5906
|
return createVNode("div", {
|
5907
|
-
"class": bem
|
5907
|
+
"class": bem$10("bottom-info")
|
5908
5908
|
}, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
|
5909
5909
|
}
|
5910
5910
|
};
|
@@ -5921,7 +5921,7 @@ var stdin_default$1c = defineComponent({
|
|
5921
5921
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
5922
5922
|
if (type === "selected") {
|
5923
5923
|
return createVNode("div", {
|
5924
|
-
"class": bem
|
5924
|
+
"class": bem$10("selected-day"),
|
5925
5925
|
"style": {
|
5926
5926
|
width: rowHeight,
|
5927
5927
|
height: rowHeight,
|
@@ -5938,21 +5938,21 @@ var stdin_default$1c = defineComponent({
|
|
5938
5938
|
} = props.item;
|
5939
5939
|
if (type === "placeholder") {
|
5940
5940
|
return createVNode("div", {
|
5941
|
-
"class": bem
|
5941
|
+
"class": bem$10("day"),
|
5942
5942
|
"style": style.value
|
5943
5943
|
}, null);
|
5944
5944
|
}
|
5945
5945
|
return createVNode("div", {
|
5946
5946
|
"role": "gridcell",
|
5947
5947
|
"style": style.value,
|
5948
|
-
"class": [bem
|
5948
|
+
"class": [bem$10("day", type), className],
|
5949
5949
|
"tabindex": type === "disabled" ? void 0 : -1,
|
5950
5950
|
"onClick": onClick
|
5951
5951
|
}, [renderContent()]);
|
5952
5952
|
};
|
5953
5953
|
}
|
5954
5954
|
});
|
5955
|
-
const [name$
|
5955
|
+
const [name$12] = createNamespace("calendar-month");
|
5956
5956
|
const calendarMonthProps = {
|
5957
5957
|
date: makeRequiredProp(Date),
|
5958
5958
|
type: String,
|
@@ -5969,8 +5969,8 @@ const calendarMonthProps = {
|
|
5969
5969
|
showMonthTitle: Boolean,
|
5970
5970
|
firstDayOfWeek: Number
|
5971
5971
|
};
|
5972
|
-
var stdin_default$
|
5973
|
-
name: name$
|
5972
|
+
var stdin_default$1c = defineComponent({
|
5973
|
+
name: name$12,
|
5974
5974
|
props: calendarMonthProps,
|
5975
5975
|
emits: ["click"],
|
5976
5976
|
setup(props, {
|
@@ -6065,17 +6065,17 @@ var stdin_default$1b = defineComponent({
|
|
6065
6065
|
const getBottomInfo = (dayType) => {
|
6066
6066
|
if (props.type === "range") {
|
6067
6067
|
if (dayType === "start" || dayType === "end") {
|
6068
|
-
return t$
|
6068
|
+
return t$g(dayType);
|
6069
6069
|
}
|
6070
6070
|
if (dayType === "start-end") {
|
6071
|
-
return `${t$
|
6071
|
+
return `${t$g("start")}/${t$g("end")}`;
|
6072
6072
|
}
|
6073
6073
|
}
|
6074
6074
|
};
|
6075
6075
|
const renderTitle = () => {
|
6076
6076
|
if (props.showMonthTitle) {
|
6077
6077
|
return createVNode("div", {
|
6078
|
-
"class": bem
|
6078
|
+
"class": bem$10("month-title")
|
6079
6079
|
}, [slots["month-title"] ? slots["month-title"]({
|
6080
6080
|
date: props.date,
|
6081
6081
|
text: title.value
|
@@ -6085,7 +6085,7 @@ var stdin_default$1b = defineComponent({
|
|
6085
6085
|
const renderMark = () => {
|
6086
6086
|
if (props.showMark && shouldRender.value) {
|
6087
6087
|
return createVNode("div", {
|
6088
|
-
"class": bem
|
6088
|
+
"class": bem$10("month-mark")
|
6089
6089
|
}, [props.date.getMonth() + 1]);
|
6090
6090
|
}
|
6091
6091
|
};
|
@@ -6125,7 +6125,7 @@ var stdin_default$1b = defineComponent({
|
|
6125
6125
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
6126
6126
|
}
|
6127
6127
|
};
|
6128
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
6128
|
+
const renderDay = (item, index) => createVNode(stdin_default$1d, {
|
6129
6129
|
"item": item,
|
6130
6130
|
"index": index,
|
6131
6131
|
"color": props.color,
|
@@ -6136,7 +6136,7 @@ var stdin_default$1b = defineComponent({
|
|
6136
6136
|
const renderDays = () => createVNode("div", {
|
6137
6137
|
"ref": daysRef,
|
6138
6138
|
"role": "grid",
|
6139
|
-
"class": bem
|
6139
|
+
"class": bem$10("days")
|
6140
6140
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6141
6141
|
useExpose({
|
6142
6142
|
getTitle,
|
@@ -6146,14 +6146,14 @@ var stdin_default$1b = defineComponent({
|
|
6146
6146
|
disabledDays
|
6147
6147
|
});
|
6148
6148
|
return () => createVNode("div", {
|
6149
|
-
"class": bem
|
6149
|
+
"class": bem$10("month"),
|
6150
6150
|
"ref": monthRef
|
6151
6151
|
}, [renderTitle(), renderDays()]);
|
6152
6152
|
}
|
6153
6153
|
});
|
6154
|
-
const [name$
|
6155
|
-
var stdin_default$
|
6156
|
-
name: name$
|
6154
|
+
const [name$11] = createNamespace("calendar-header");
|
6155
|
+
var stdin_default$1b = defineComponent({
|
6156
|
+
name: name$11,
|
6157
6157
|
props: {
|
6158
6158
|
date: Date,
|
6159
6159
|
title: String,
|
@@ -6169,10 +6169,10 @@ var stdin_default$1a = defineComponent({
|
|
6169
6169
|
}) {
|
6170
6170
|
const renderTitle = () => {
|
6171
6171
|
if (props.showTitle) {
|
6172
|
-
const text = props.title || t$
|
6172
|
+
const text = props.title || t$g("title");
|
6173
6173
|
const title = slots.title ? slots.title() : text;
|
6174
6174
|
return createVNode("div", {
|
6175
|
-
"class": bem
|
6175
|
+
"class": bem$10("header-title")
|
6176
6176
|
}, [title]);
|
6177
6177
|
}
|
6178
6178
|
};
|
@@ -6184,7 +6184,7 @@ var stdin_default$1a = defineComponent({
|
|
6184
6184
|
text: props.subtitle
|
6185
6185
|
}) : props.subtitle;
|
6186
6186
|
return createVNode("div", {
|
6187
|
-
"class": bem
|
6187
|
+
"class": bem$10("header-subtitle"),
|
6188
6188
|
"onClick": onClickSubtitle
|
6189
6189
|
}, [title]);
|
6190
6190
|
}
|
@@ -6193,16 +6193,16 @@ var stdin_default$1a = defineComponent({
|
|
6193
6193
|
const {
|
6194
6194
|
firstDayOfWeek
|
6195
6195
|
} = props;
|
6196
|
-
const weekdays = t$
|
6196
|
+
const weekdays = t$g("weekdays");
|
6197
6197
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
6198
6198
|
return createVNode("div", {
|
6199
|
-
"class": bem
|
6199
|
+
"class": bem$10("weekdays")
|
6200
6200
|
}, [renderWeekDays2.map((text) => createVNode("span", {
|
6201
|
-
"class": bem
|
6201
|
+
"class": bem$10("weekday")
|
6202
6202
|
}, [text]))]);
|
6203
6203
|
};
|
6204
6204
|
return () => createVNode("div", {
|
6205
|
-
"class": bem
|
6205
|
+
"class": bem$10("header")
|
6206
6206
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
6207
6207
|
}
|
6208
6208
|
});
|
@@ -6253,8 +6253,8 @@ const calendarProps = {
|
|
6253
6253
|
validator: (val) => val >= 0 && val <= 6
|
6254
6254
|
}
|
6255
6255
|
};
|
6256
|
-
var stdin_default$
|
6257
|
-
name: name$
|
6256
|
+
var stdin_default$1a = defineComponent({
|
6257
|
+
name: name$14,
|
6258
6258
|
props: calendarProps,
|
6259
6259
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
6260
6260
|
setup(props, {
|
@@ -6420,7 +6420,7 @@ var stdin_default$19 = defineComponent({
|
|
6420
6420
|
} = props;
|
6421
6421
|
if (maxRange && calcDateNum(date) > +maxRange) {
|
6422
6422
|
if (showRangePrompt) {
|
6423
|
-
showToast(rangePrompt || t$
|
6423
|
+
showToast(rangePrompt || t$g("rangePrompt", maxRange));
|
6424
6424
|
}
|
6425
6425
|
emit("overRange");
|
6426
6426
|
return false;
|
@@ -6506,7 +6506,7 @@ var stdin_default$19 = defineComponent({
|
|
6506
6506
|
const [unselectedDate] = dates.splice(selectedIndex, 1);
|
6507
6507
|
emit("unselect", cloneDate(unselectedDate));
|
6508
6508
|
} else if (props.maxRange && dates.length >= +props.maxRange) {
|
6509
|
-
showToast(props.rangePrompt || t$
|
6509
|
+
showToast(props.rangePrompt || t$g("rangePrompt", props.maxRange));
|
6510
6510
|
} else {
|
6511
6511
|
select([...dates, date]);
|
6512
6512
|
}
|
@@ -6517,7 +6517,7 @@ var stdin_default$19 = defineComponent({
|
|
6517
6517
|
const updateShow = (value) => emit("update:show", value);
|
6518
6518
|
const renderMonth = (date, index) => {
|
6519
6519
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
6520
|
-
return createVNode(stdin_default$
|
6520
|
+
return createVNode(stdin_default$1c, mergeProps({
|
6521
6521
|
"ref": setMonthRefs(index),
|
6522
6522
|
"date": date,
|
6523
6523
|
"currentDate": currentDate.value,
|
@@ -6540,25 +6540,25 @@ var stdin_default$19 = defineComponent({
|
|
6540
6540
|
"block": true,
|
6541
6541
|
"type": "primary",
|
6542
6542
|
"color": props.color,
|
6543
|
-
"class": bem
|
6543
|
+
"class": bem$10("confirm"),
|
6544
6544
|
"disabled": disabled,
|
6545
6545
|
"nativeType": "button",
|
6546
6546
|
"onClick": onConfirm
|
6547
6547
|
}, {
|
6548
6548
|
default: () => [slot ? slot({
|
6549
6549
|
disabled
|
6550
|
-
}) : text || t$
|
6550
|
+
}) : text || t$g("confirm")]
|
6551
6551
|
});
|
6552
6552
|
}
|
6553
6553
|
};
|
6554
6554
|
const renderFooter = () => createVNode("div", {
|
6555
|
-
"class": [bem
|
6555
|
+
"class": [bem$10("footer"), {
|
6556
6556
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
6557
6557
|
}]
|
6558
6558
|
}, [renderFooterButton()]);
|
6559
6559
|
const renderCalendar = () => createVNode("div", {
|
6560
|
-
"class": bem
|
6561
|
-
}, [createVNode(stdin_default$
|
6560
|
+
"class": bem$10()
|
6561
|
+
}, [createVNode(stdin_default$1b, {
|
6562
6562
|
"date": subtitle.value.date,
|
6563
6563
|
"title": props.title,
|
6564
6564
|
"subtitle": subtitle.value.text,
|
@@ -6568,7 +6568,7 @@ var stdin_default$19 = defineComponent({
|
|
6568
6568
|
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6569
6569
|
}, pick(slots, ["title", "subtitle"])), createVNode("div", {
|
6570
6570
|
"ref": bodyRef,
|
6571
|
-
"class": bem
|
6571
|
+
"class": bem$10("body"),
|
6572
6572
|
"onScroll": onScroll
|
6573
6573
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6574
6574
|
watch(() => props.show, init);
|
@@ -6587,7 +6587,7 @@ var stdin_default$19 = defineComponent({
|
|
6587
6587
|
if (props.poppable) {
|
6588
6588
|
return createVNode(Popup, {
|
6589
6589
|
"show": props.show,
|
6590
|
-
"class": bem
|
6590
|
+
"class": bem$10("popup"),
|
6591
6591
|
"round": props.round,
|
6592
6592
|
"position": props.position,
|
6593
6593
|
"closeable": props.showTitle || props.showSubtitle,
|
@@ -6604,8 +6604,8 @@ var stdin_default$19 = defineComponent({
|
|
6604
6604
|
};
|
6605
6605
|
}
|
6606
6606
|
});
|
6607
|
-
const Calendar = withInstall(stdin_default$
|
6608
|
-
const [name
|
6607
|
+
const Calendar = withInstall(stdin_default$1a);
|
6608
|
+
const [name$10, bem$$] = createNamespace("image");
|
6609
6609
|
const imageProps = {
|
6610
6610
|
src: String,
|
6611
6611
|
alt: String,
|
@@ -6624,8 +6624,8 @@ const imageProps = {
|
|
6624
6624
|
showLoading: truthProp,
|
6625
6625
|
loadingIcon: makeStringProp("photo")
|
6626
6626
|
};
|
6627
|
-
var stdin_default$
|
6628
|
-
name: name
|
6627
|
+
var stdin_default$19 = defineComponent({
|
6628
|
+
name: name$10,
|
6629
6629
|
props: imageProps,
|
6630
6630
|
emits: ["load", "error"],
|
6631
6631
|
setup(props, {
|
@@ -6686,13 +6686,13 @@ var stdin_default$18 = defineComponent({
|
|
6686
6686
|
const renderPlaceholder = () => {
|
6687
6687
|
if (loading.value && props.showLoading) {
|
6688
6688
|
return createVNode("div", {
|
6689
|
-
"class": bem
|
6690
|
-
}, [renderIcon(props.loadingIcon, bem
|
6689
|
+
"class": bem$$("loading")
|
6690
|
+
}, [renderIcon(props.loadingIcon, bem$$("loading-icon"), slots.loading)]);
|
6691
6691
|
}
|
6692
6692
|
if (error.value && props.showError) {
|
6693
6693
|
return createVNode("div", {
|
6694
|
-
"class": bem
|
6695
|
-
}, [renderIcon(props.errorIcon, bem
|
6694
|
+
"class": bem$$("error")
|
6695
|
+
}, [renderIcon(props.errorIcon, bem$$("error-icon"), slots.error)]);
|
6696
6696
|
}
|
6697
6697
|
};
|
6698
6698
|
const renderImage = () => {
|
@@ -6701,7 +6701,7 @@ var stdin_default$18 = defineComponent({
|
|
6701
6701
|
}
|
6702
6702
|
const attrs = {
|
6703
6703
|
alt: props.alt,
|
6704
|
-
class: bem
|
6704
|
+
class: bem$$("img"),
|
6705
6705
|
style: {
|
6706
6706
|
objectFit: props.fit,
|
6707
6707
|
objectPosition: props.position
|
@@ -6751,7 +6751,7 @@ var stdin_default$18 = defineComponent({
|
|
6751
6751
|
onMounted(() => {
|
6752
6752
|
nextTick(() => {
|
6753
6753
|
var _a;
|
6754
|
-
if ((_a = imageRef.value) == null ? void 0 : _a.complete) {
|
6754
|
+
if (((_a = imageRef.value) == null ? void 0 : _a.complete) && !props.lazyLoad) {
|
6755
6755
|
triggerLoad();
|
6756
6756
|
}
|
6757
6757
|
});
|
@@ -6759,7 +6759,7 @@ var stdin_default$18 = defineComponent({
|
|
6759
6759
|
return () => {
|
6760
6760
|
var _a;
|
6761
6761
|
return createVNode("div", {
|
6762
|
-
"class": bem
|
6762
|
+
"class": bem$$({
|
6763
6763
|
round: props.round,
|
6764
6764
|
block: props.block
|
6765
6765
|
}),
|
@@ -6768,8 +6768,8 @@ var stdin_default$18 = defineComponent({
|
|
6768
6768
|
};
|
6769
6769
|
}
|
6770
6770
|
});
|
6771
|
-
const Image$1 = withInstall(stdin_default$
|
6772
|
-
const [name
|
6771
|
+
const Image$1 = withInstall(stdin_default$19);
|
6772
|
+
const [name$$, bem$_] = createNamespace("card");
|
6773
6773
|
const cardProps = {
|
6774
6774
|
tag: String,
|
6775
6775
|
num: numericProp,
|
@@ -6783,8 +6783,8 @@ const cardProps = {
|
|
6783
6783
|
thumbLink: String,
|
6784
6784
|
originPrice: numericProp
|
6785
6785
|
};
|
6786
|
-
var stdin_default$
|
6787
|
-
name: name
|
6786
|
+
var stdin_default$18 = defineComponent({
|
6787
|
+
name: name$$,
|
6788
6788
|
props: cardProps,
|
6789
6789
|
emits: ["clickThumb"],
|
6790
6790
|
setup(props, {
|
@@ -6797,14 +6797,14 @@ var stdin_default$17 = defineComponent({
|
|
6797
6797
|
}
|
6798
6798
|
if (props.title) {
|
6799
6799
|
return createVNode("div", {
|
6800
|
-
"class": [bem$
|
6800
|
+
"class": [bem$_("title"), "van-multi-ellipsis--l2"]
|
6801
6801
|
}, [props.title]);
|
6802
6802
|
}
|
6803
6803
|
};
|
6804
6804
|
const renderThumbTag = () => {
|
6805
6805
|
if (slots.tag || props.tag) {
|
6806
6806
|
return createVNode("div", {
|
6807
|
-
"class": bem$
|
6807
|
+
"class": bem$_("tag")
|
6808
6808
|
}, [slots.tag ? slots.tag() : createVNode(Tag, {
|
6809
6809
|
"mark": true,
|
6810
6810
|
"type": "primary"
|
@@ -6829,7 +6829,7 @@ var stdin_default$17 = defineComponent({
|
|
6829
6829
|
if (slots.thumb || props.thumb) {
|
6830
6830
|
return createVNode("a", {
|
6831
6831
|
"href": props.thumbLink,
|
6832
|
-
"class": bem$
|
6832
|
+
"class": bem$_("thumb"),
|
6833
6833
|
"onClick": (event) => emit("clickThumb", event)
|
6834
6834
|
}, [renderThumbImage(), renderThumbTag()]);
|
6835
6835
|
}
|
@@ -6840,18 +6840,18 @@ var stdin_default$17 = defineComponent({
|
|
6840
6840
|
}
|
6841
6841
|
if (props.desc) {
|
6842
6842
|
return createVNode("div", {
|
6843
|
-
"class": [bem$
|
6843
|
+
"class": [bem$_("desc"), "van-ellipsis"]
|
6844
6844
|
}, [props.desc]);
|
6845
6845
|
}
|
6846
6846
|
};
|
6847
6847
|
const renderPriceText = () => {
|
6848
6848
|
const priceArr = props.price.toString().split(".");
|
6849
6849
|
return createVNode("div", null, [createVNode("span", {
|
6850
|
-
"class": bem$
|
6850
|
+
"class": bem$_("price-currency")
|
6851
6851
|
}, [props.currency]), createVNode("span", {
|
6852
|
-
"class": bem$
|
6852
|
+
"class": bem$_("price-integer")
|
6853
6853
|
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
6854
|
-
"class": bem$
|
6854
|
+
"class": bem$_("price-decimal")
|
6855
6855
|
}, [priceArr[1]])]);
|
6856
6856
|
};
|
6857
6857
|
return () => {
|
@@ -6861,34 +6861,34 @@ var stdin_default$17 = defineComponent({
|
|
6861
6861
|
const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
|
6862
6862
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
6863
6863
|
const Price = showPrice && createVNode("div", {
|
6864
|
-
"class": bem$
|
6864
|
+
"class": bem$_("price")
|
6865
6865
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
6866
6866
|
const OriginPrice = showOriginPrice && createVNode("div", {
|
6867
|
-
"class": bem$
|
6867
|
+
"class": bem$_("origin-price")
|
6868
6868
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
|
6869
6869
|
const Num = showNum && createVNode("div", {
|
6870
|
-
"class": bem$
|
6870
|
+
"class": bem$_("num")
|
6871
6871
|
}, [slots.num ? slots.num() : `x${props.num}`]);
|
6872
6872
|
const Footer = slots.footer && createVNode("div", {
|
6873
|
-
"class": bem$
|
6873
|
+
"class": bem$_("footer")
|
6874
6874
|
}, [slots.footer()]);
|
6875
6875
|
const Bottom = showBottom && createVNode("div", {
|
6876
|
-
"class": bem$
|
6876
|
+
"class": bem$_("bottom")
|
6877
6877
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
6878
6878
|
return createVNode("div", {
|
6879
|
-
"class": bem$
|
6879
|
+
"class": bem$_()
|
6880
6880
|
}, [createVNode("div", {
|
6881
|
-
"class": bem$
|
6881
|
+
"class": bem$_("header")
|
6882
6882
|
}, [renderThumb(), createVNode("div", {
|
6883
|
-
"class": bem$
|
6883
|
+
"class": bem$_("content", {
|
6884
6884
|
centered: props.centered
|
6885
6885
|
})
|
6886
6886
|
}, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
6887
6887
|
};
|
6888
6888
|
}
|
6889
6889
|
});
|
6890
|
-
const Card = withInstall(stdin_default$
|
6891
|
-
const [name$
|
6890
|
+
const Card = withInstall(stdin_default$18);
|
6891
|
+
const [name$_, bem$Z, t$f] = createNamespace("cascader");
|
6892
6892
|
const cascaderProps = {
|
6893
6893
|
title: String,
|
6894
6894
|
options: makeArrayProp(),
|
@@ -6901,8 +6901,8 @@ const cascaderProps = {
|
|
6901
6901
|
placeholder: String,
|
6902
6902
|
activeColor: String
|
6903
6903
|
};
|
6904
|
-
var stdin_default$
|
6905
|
-
name: name$
|
6904
|
+
var stdin_default$17 = defineComponent({
|
6905
|
+
name: name$_,
|
6906
6906
|
props: cascaderProps,
|
6907
6907
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
6908
6908
|
setup(props, {
|
@@ -7010,12 +7010,12 @@ var stdin_default$16 = defineComponent({
|
|
7010
7010
|
title
|
7011
7011
|
}) => emit("clickTab", name2, title);
|
7012
7012
|
const renderHeader = () => props.showHeader ? createVNode("div", {
|
7013
|
-
"class": bem$
|
7013
|
+
"class": bem$Z("header")
|
7014
7014
|
}, [createVNode("h2", {
|
7015
|
-
"class": bem$
|
7015
|
+
"class": bem$Z("title")
|
7016
7016
|
}, [slots.title ? slots.title() : props.title]), props.closeable ? createVNode(Icon, {
|
7017
7017
|
"name": props.closeIcon,
|
7018
|
-
"class": [bem$
|
7018
|
+
"class": [bem$Z("close-icon"), HAPTICS_FEEDBACK],
|
7019
7019
|
"onClick": onClose
|
7020
7020
|
}, null) : null]) : null;
|
7021
7021
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7030,7 +7030,7 @@ var stdin_default$16 = defineComponent({
|
|
7030
7030
|
}) : createVNode("span", null, [option[textKey]]);
|
7031
7031
|
return createVNode("li", {
|
7032
7032
|
"role": "menuitemradio",
|
7033
|
-
"class": [bem$
|
7033
|
+
"class": [bem$Z("option", {
|
7034
7034
|
selected,
|
7035
7035
|
disabled
|
7036
7036
|
}), option.className],
|
@@ -7043,23 +7043,23 @@ var stdin_default$16 = defineComponent({
|
|
7043
7043
|
"onClick": () => onSelect(option, tabIndex)
|
7044
7044
|
}, [Text2, selected ? createVNode(Icon, {
|
7045
7045
|
"name": "success",
|
7046
|
-
"class": bem$
|
7046
|
+
"class": bem$Z("selected-icon")
|
7047
7047
|
}, null) : null]);
|
7048
7048
|
};
|
7049
7049
|
const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
|
7050
7050
|
"role": "menu",
|
7051
|
-
"class": bem$
|
7051
|
+
"class": bem$Z("options")
|
7052
7052
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
7053
7053
|
const renderTab = (tab, tabIndex) => {
|
7054
7054
|
const {
|
7055
7055
|
options,
|
7056
7056
|
selected
|
7057
7057
|
} = tab;
|
7058
|
-
const placeholder = props.placeholder || t$
|
7058
|
+
const placeholder = props.placeholder || t$f("select");
|
7059
7059
|
const title = selected ? selected[textKey] : placeholder;
|
7060
7060
|
return createVNode(Tab, {
|
7061
7061
|
"title": title,
|
7062
|
-
"titleClass": bem$
|
7062
|
+
"titleClass": bem$Z("tab", {
|
7063
7063
|
unselected: !selected
|
7064
7064
|
})
|
7065
7065
|
}, {
|
@@ -7078,7 +7078,7 @@ var stdin_default$16 = defineComponent({
|
|
7078
7078
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7079
7079
|
"shrink": true,
|
7080
7080
|
"animated": true,
|
7081
|
-
"class": bem$
|
7081
|
+
"class": bem$Z("tabs"),
|
7082
7082
|
"color": props.activeColor,
|
7083
7083
|
"swipeable": props.swipeable,
|
7084
7084
|
"onClickTab": onClickTab
|
@@ -7102,19 +7102,19 @@ var stdin_default$16 = defineComponent({
|
|
7102
7102
|
updateTabs();
|
7103
7103
|
});
|
7104
7104
|
return () => createVNode("div", {
|
7105
|
-
"class": bem$
|
7105
|
+
"class": bem$Z()
|
7106
7106
|
}, [renderHeader(), renderTabs()]);
|
7107
7107
|
}
|
7108
7108
|
});
|
7109
|
-
const Cascader = withInstall(stdin_default$
|
7110
|
-
const [name$
|
7109
|
+
const Cascader = withInstall(stdin_default$17);
|
7110
|
+
const [name$Z, bem$Y] = createNamespace("cell-group");
|
7111
7111
|
const cellGroupProps = {
|
7112
7112
|
title: String,
|
7113
7113
|
inset: Boolean,
|
7114
7114
|
border: truthProp
|
7115
7115
|
};
|
7116
|
-
var stdin_default$
|
7117
|
-
name: name$
|
7116
|
+
var stdin_default$16 = defineComponent({
|
7117
|
+
name: name$Z,
|
7118
7118
|
inheritAttrs: false,
|
7119
7119
|
props: cellGroupProps,
|
7120
7120
|
setup(props, {
|
@@ -7124,7 +7124,7 @@ var stdin_default$15 = defineComponent({
|
|
7124
7124
|
const renderGroup = () => {
|
7125
7125
|
var _a;
|
7126
7126
|
return createVNode("div", mergeProps({
|
7127
|
-
"class": [bem$
|
7127
|
+
"class": [bem$Y({
|
7128
7128
|
inset: props.inset
|
7129
7129
|
}), {
|
7130
7130
|
[BORDER_TOP_BOTTOM]: props.border && !props.inset
|
@@ -7132,7 +7132,7 @@ var stdin_default$15 = defineComponent({
|
|
7132
7132
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7133
7133
|
};
|
7134
7134
|
const renderTitle = () => createVNode("div", {
|
7135
|
-
"class": bem$
|
7135
|
+
"class": bem$Y("title", {
|
7136
7136
|
inset: props.inset
|
7137
7137
|
})
|
7138
7138
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -7144,8 +7144,8 @@ var stdin_default$15 = defineComponent({
|
|
7144
7144
|
};
|
7145
7145
|
}
|
7146
7146
|
});
|
7147
|
-
const CellGroup = withInstall(stdin_default$
|
7148
|
-
const [name$
|
7147
|
+
const CellGroup = withInstall(stdin_default$16);
|
7148
|
+
const [name$Y, bem$X] = createNamespace("checkbox-group");
|
7149
7149
|
const checkboxGroupProps = {
|
7150
7150
|
max: numericProp,
|
7151
7151
|
disabled: Boolean,
|
@@ -7154,9 +7154,9 @@ const checkboxGroupProps = {
|
|
7154
7154
|
modelValue: makeArrayProp(),
|
7155
7155
|
checkedColor: String
|
7156
7156
|
};
|
7157
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
7158
|
-
var stdin_default$
|
7159
|
-
name: name$
|
7157
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$Y);
|
7158
|
+
var stdin_default$15 = defineComponent({
|
7159
|
+
name: name$Y,
|
7160
7160
|
props: checkboxGroupProps,
|
7161
7161
|
emits: ["change", "update:modelValue"],
|
7162
7162
|
setup(props, {
|
@@ -7202,17 +7202,17 @@ var stdin_default$14 = defineComponent({
|
|
7202
7202
|
return () => {
|
7203
7203
|
var _a;
|
7204
7204
|
return createVNode("div", {
|
7205
|
-
"class": bem$
|
7205
|
+
"class": bem$X([props.direction])
|
7206
7206
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7207
7207
|
};
|
7208
7208
|
}
|
7209
7209
|
});
|
7210
|
-
const [name$
|
7210
|
+
const [name$X, bem$W] = createNamespace("checkbox");
|
7211
7211
|
const checkboxProps = extend({}, checkerProps, {
|
7212
7212
|
bindGroup: truthProp
|
7213
7213
|
});
|
7214
|
-
var stdin_default$
|
7215
|
-
name: name$
|
7214
|
+
var stdin_default$14 = defineComponent({
|
7215
|
+
name: name$X,
|
7216
7216
|
props: checkboxProps,
|
7217
7217
|
emits: ["change", "update:modelValue"],
|
7218
7218
|
setup(props, {
|
@@ -7269,8 +7269,8 @@ var stdin_default$13 = defineComponent({
|
|
7269
7269
|
checked
|
7270
7270
|
});
|
7271
7271
|
useCustomFieldValue(() => props.modelValue);
|
7272
|
-
return () => createVNode(stdin_default$
|
7273
|
-
"bem": bem$
|
7272
|
+
return () => createVNode(stdin_default$1i, mergeProps({
|
7273
|
+
"bem": bem$W,
|
7274
7274
|
"role": "checkbox",
|
7275
7275
|
"parent": parent,
|
7276
7276
|
"checked": checked.value,
|
@@ -7278,9 +7278,9 @@ var stdin_default$13 = defineComponent({
|
|
7278
7278
|
}, props), pick(slots, ["default", "icon"]));
|
7279
7279
|
}
|
7280
7280
|
});
|
7281
|
-
const Checkbox = withInstall(stdin_default$
|
7282
|
-
const CheckboxGroup = withInstall(stdin_default$
|
7283
|
-
const [name$
|
7281
|
+
const Checkbox = withInstall(stdin_default$14);
|
7282
|
+
const CheckboxGroup = withInstall(stdin_default$15);
|
7283
|
+
const [name$W, bem$V] = createNamespace("circle");
|
7284
7284
|
let uid = 0;
|
7285
7285
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7286
7286
|
function getPath(clockwise, viewBoxSize) {
|
@@ -7301,8 +7301,8 @@ const circleProps = {
|
|
7301
7301
|
strokeLinecap: String,
|
7302
7302
|
startPosition: makeStringProp("top")
|
7303
7303
|
};
|
7304
|
-
var stdin_default$
|
7305
|
-
name: name$
|
7304
|
+
var stdin_default$13 = defineComponent({
|
7305
|
+
name: name$W,
|
7306
7306
|
props: circleProps,
|
7307
7307
|
emits: ["update:currentRate"],
|
7308
7308
|
setup(props, {
|
@@ -7370,7 +7370,7 @@ var stdin_default$12 = defineComponent({
|
|
7370
7370
|
return createVNode("path", {
|
7371
7371
|
"d": path.value,
|
7372
7372
|
"style": style,
|
7373
|
-
"class": bem$
|
7373
|
+
"class": bem$V("hover"),
|
7374
7374
|
"stroke": color
|
7375
7375
|
}, null);
|
7376
7376
|
};
|
@@ -7381,7 +7381,7 @@ var stdin_default$12 = defineComponent({
|
|
7381
7381
|
strokeWidth: `${props.strokeWidth}px`
|
7382
7382
|
};
|
7383
7383
|
return createVNode("path", {
|
7384
|
-
"class": bem$
|
7384
|
+
"class": bem$V("layer"),
|
7385
7385
|
"style": style,
|
7386
7386
|
"d": path.value
|
7387
7387
|
}, null);
|
@@ -7412,12 +7412,12 @@ var stdin_default$12 = defineComponent({
|
|
7412
7412
|
}
|
7413
7413
|
if (props.text) {
|
7414
7414
|
return createVNode("div", {
|
7415
|
-
"class": bem$
|
7415
|
+
"class": bem$V("text")
|
7416
7416
|
}, [props.text]);
|
7417
7417
|
}
|
7418
7418
|
};
|
7419
7419
|
return () => createVNode("div", {
|
7420
|
-
"class": bem$
|
7420
|
+
"class": bem$V(),
|
7421
7421
|
"style": getSizeStyle(props.size)
|
7422
7422
|
}, [createVNode("svg", {
|
7423
7423
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -7425,9 +7425,9 @@ var stdin_default$12 = defineComponent({
|
|
7425
7425
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7426
7426
|
}
|
7427
7427
|
});
|
7428
|
-
const Circle = withInstall(stdin_default$
|
7429
|
-
const [name$
|
7430
|
-
const ROW_KEY = Symbol(name$
|
7428
|
+
const Circle = withInstall(stdin_default$13);
|
7429
|
+
const [name$V, bem$U] = createNamespace("row");
|
7430
|
+
const ROW_KEY = Symbol(name$V);
|
7431
7431
|
const rowProps = {
|
7432
7432
|
tag: makeStringProp("div"),
|
7433
7433
|
wrap: truthProp,
|
@@ -7435,8 +7435,8 @@ const rowProps = {
|
|
7435
7435
|
gutter: makeNumericProp(0),
|
7436
7436
|
justify: String
|
7437
7437
|
};
|
7438
|
-
var stdin_default$
|
7439
|
-
name: name$
|
7438
|
+
var stdin_default$12 = defineComponent({
|
7439
|
+
name: name$V,
|
7440
7440
|
props: rowProps,
|
7441
7441
|
setup(props, {
|
7442
7442
|
slots
|
@@ -7495,7 +7495,7 @@ var stdin_default$11 = defineComponent({
|
|
7495
7495
|
justify
|
7496
7496
|
} = props;
|
7497
7497
|
return createVNode(tag, {
|
7498
|
-
"class": bem$
|
7498
|
+
"class": bem$U({
|
7499
7499
|
[`align-${align}`]: align,
|
7500
7500
|
[`justify-${justify}`]: justify,
|
7501
7501
|
nowrap: !wrap
|
@@ -7509,14 +7509,14 @@ var stdin_default$11 = defineComponent({
|
|
7509
7509
|
};
|
7510
7510
|
}
|
7511
7511
|
});
|
7512
|
-
const [name$
|
7512
|
+
const [name$U, bem$T] = createNamespace("col");
|
7513
7513
|
const colProps = {
|
7514
7514
|
tag: makeStringProp("div"),
|
7515
7515
|
span: makeNumericProp(0),
|
7516
7516
|
offset: numericProp
|
7517
7517
|
};
|
7518
|
-
var stdin_default$
|
7519
|
-
name: name$
|
7518
|
+
var stdin_default$11 = defineComponent({
|
7519
|
+
name: name$U,
|
7520
7520
|
props: colProps,
|
7521
7521
|
setup(props, {
|
7522
7522
|
slots
|
@@ -7551,7 +7551,7 @@ var stdin_default$10 = defineComponent({
|
|
7551
7551
|
} = props;
|
7552
7552
|
return createVNode(tag, {
|
7553
7553
|
"style": style.value,
|
7554
|
-
"class": bem$
|
7554
|
+
"class": bem$T({
|
7555
7555
|
[span]: span,
|
7556
7556
|
[`offset-${offset}`]: offset
|
7557
7557
|
})
|
@@ -7564,9 +7564,9 @@ var stdin_default$10 = defineComponent({
|
|
7564
7564
|
};
|
7565
7565
|
}
|
7566
7566
|
});
|
7567
|
-
const Col = withInstall(stdin_default$
|
7568
|
-
const [name$
|
7569
|
-
const COLLAPSE_KEY = Symbol(name$
|
7567
|
+
const Col = withInstall(stdin_default$11);
|
7568
|
+
const [name$T, bem$S] = createNamespace("collapse");
|
7569
|
+
const COLLAPSE_KEY = Symbol(name$T);
|
7570
7570
|
const collapseProps = {
|
7571
7571
|
border: truthProp,
|
7572
7572
|
accordion: Boolean,
|
@@ -7586,8 +7586,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7586
7586
|
}
|
7587
7587
|
return true;
|
7588
7588
|
}
|
7589
|
-
var stdin_default
|
7590
|
-
name: name$
|
7589
|
+
var stdin_default$10 = defineComponent({
|
7590
|
+
name: name$T,
|
7591
7591
|
props: collapseProps,
|
7592
7592
|
emits: ["change", "update:modelValue"],
|
7593
7593
|
setup(props, {
|
@@ -7657,15 +7657,15 @@ var stdin_default$$ = defineComponent({
|
|
7657
7657
|
return () => {
|
7658
7658
|
var _a;
|
7659
7659
|
return createVNode("div", {
|
7660
|
-
"class": [bem$
|
7660
|
+
"class": [bem$S(), {
|
7661
7661
|
[BORDER_TOP_BOTTOM]: props.border
|
7662
7662
|
}]
|
7663
7663
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7664
7664
|
};
|
7665
7665
|
}
|
7666
7666
|
});
|
7667
|
-
const Collapse = withInstall(stdin_default
|
7668
|
-
const [name$
|
7667
|
+
const Collapse = withInstall(stdin_default$10);
|
7668
|
+
const [name$S, bem$R] = createNamespace("collapse-item");
|
7669
7669
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
7670
7670
|
const collapseItemProps = extend({}, cellSharedProps, {
|
7671
7671
|
name: numericProp,
|
@@ -7674,8 +7674,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7674
7674
|
readonly: Boolean,
|
7675
7675
|
lazyRender: truthProp
|
7676
7676
|
});
|
7677
|
-
var stdin_default
|
7678
|
-
name: name$
|
7677
|
+
var stdin_default$$ = defineComponent({
|
7678
|
+
name: name$S,
|
7679
7679
|
props: collapseItemProps,
|
7680
7680
|
setup(props, {
|
7681
7681
|
slots
|
@@ -7757,7 +7757,7 @@ var stdin_default$_ = defineComponent({
|
|
7757
7757
|
}
|
7758
7758
|
return createVNode(Cell, mergeProps({
|
7759
7759
|
"role": "button",
|
7760
|
-
"class": bem$
|
7760
|
+
"class": bem$R("title", {
|
7761
7761
|
disabled,
|
7762
7762
|
expanded: expanded.value,
|
7763
7763
|
borderless: !border
|
@@ -7770,11 +7770,11 @@ var stdin_default$_ = defineComponent({
|
|
7770
7770
|
var _a;
|
7771
7771
|
return withDirectives(createVNode("div", {
|
7772
7772
|
"ref": wrapperRef,
|
7773
|
-
"class": bem$
|
7773
|
+
"class": bem$R("wrapper"),
|
7774
7774
|
"onTransitionend": onTransitionEnd
|
7775
7775
|
}, [createVNode("div", {
|
7776
7776
|
"ref": contentRef,
|
7777
|
-
"class": bem$
|
7777
|
+
"class": bem$R("content")
|
7778
7778
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
|
7779
7779
|
});
|
7780
7780
|
useExpose({
|
@@ -7783,15 +7783,15 @@ var stdin_default$_ = defineComponent({
|
|
7783
7783
|
itemName: name2
|
7784
7784
|
});
|
7785
7785
|
return () => createVNode("div", {
|
7786
|
-
"class": [bem$
|
7786
|
+
"class": [bem$R({
|
7787
7787
|
border: index.value && props.border
|
7788
7788
|
})]
|
7789
7789
|
}, [renderTitle(), renderContent()]);
|
7790
7790
|
}
|
7791
7791
|
});
|
7792
|
-
const CollapseItem = withInstall(stdin_default
|
7793
|
-
const ConfigProvider = withInstall(stdin_default$
|
7794
|
-
const [name$
|
7792
|
+
const CollapseItem = withInstall(stdin_default$$);
|
7793
|
+
const ConfigProvider = withInstall(stdin_default$1L);
|
7794
|
+
const [name$R, bem$Q, t$e] = createNamespace("contact-card");
|
7795
7795
|
const contactCardProps = {
|
7796
7796
|
tel: String,
|
7797
7797
|
name: String,
|
@@ -7799,8 +7799,8 @@ const contactCardProps = {
|
|
7799
7799
|
addText: String,
|
7800
7800
|
editable: truthProp
|
7801
7801
|
};
|
7802
|
-
var stdin_default$
|
7803
|
-
name: name$
|
7802
|
+
var stdin_default$_ = defineComponent({
|
7803
|
+
name: name$R,
|
7804
7804
|
props: contactCardProps,
|
7805
7805
|
emits: ["click"],
|
7806
7806
|
setup(props, {
|
@@ -7813,25 +7813,25 @@ var stdin_default$Z = defineComponent({
|
|
7813
7813
|
};
|
7814
7814
|
const renderContent = () => {
|
7815
7815
|
if (props.type === "add") {
|
7816
|
-
return props.addText || t$
|
7816
|
+
return props.addText || t$e("addContact");
|
7817
7817
|
}
|
7818
|
-
return [createVNode("div", null, [`${t$
|
7818
|
+
return [createVNode("div", null, [`${t$e("name")}:${props.name}`]), createVNode("div", null, [`${t$e("tel")}:${props.tel}`])];
|
7819
7819
|
};
|
7820
7820
|
return () => createVNode(Cell, {
|
7821
7821
|
"center": true,
|
7822
7822
|
"icon": props.type === "edit" ? "contact" : "add-square",
|
7823
|
-
"class": bem$
|
7823
|
+
"class": bem$Q([props.type]),
|
7824
7824
|
"border": false,
|
7825
7825
|
"isLink": props.editable,
|
7826
|
-
"titleClass": bem$
|
7826
|
+
"titleClass": bem$Q("title"),
|
7827
7827
|
"onClick": onClick
|
7828
7828
|
}, {
|
7829
7829
|
title: renderContent
|
7830
7830
|
});
|
7831
7831
|
}
|
7832
7832
|
});
|
7833
|
-
const ContactCard = withInstall(stdin_default$
|
7834
|
-
const [name$
|
7833
|
+
const ContactCard = withInstall(stdin_default$_);
|
7834
|
+
const [name$Q, bem$P, t$d] = createNamespace("contact-edit");
|
7835
7835
|
const DEFAULT_CONTACT = {
|
7836
7836
|
tel: "",
|
7837
7837
|
name: ""
|
@@ -7851,8 +7851,8 @@ const contactEditProps = {
|
|
7851
7851
|
default: isMobile
|
7852
7852
|
}
|
7853
7853
|
};
|
7854
|
-
var stdin_default$
|
7855
|
-
name: name$
|
7854
|
+
var stdin_default$Z = defineComponent({
|
7855
|
+
name: name$Q,
|
7856
7856
|
props: contactEditProps,
|
7857
7857
|
emits: ["save", "delete", "changeDefault"],
|
7858
7858
|
setup(props, {
|
@@ -7866,20 +7866,20 @@ var stdin_default$Y = defineComponent({
|
|
7866
7866
|
};
|
7867
7867
|
const onDelete = () => emit("delete", contact);
|
7868
7868
|
const renderButtons = () => createVNode("div", {
|
7869
|
-
"class": bem$
|
7869
|
+
"class": bem$P("buttons")
|
7870
7870
|
}, [createVNode(Button, {
|
7871
7871
|
"block": true,
|
7872
7872
|
"round": true,
|
7873
7873
|
"type": "primary",
|
7874
|
-
"text": t$
|
7875
|
-
"class": bem$
|
7874
|
+
"text": t$d("save"),
|
7875
|
+
"class": bem$P("button"),
|
7876
7876
|
"loading": props.isSaving,
|
7877
7877
|
"nativeType": "submit"
|
7878
7878
|
}, null), props.isEdit && createVNode(Button, {
|
7879
7879
|
"block": true,
|
7880
7880
|
"round": true,
|
7881
|
-
"text": t$
|
7882
|
-
"class": bem$
|
7881
|
+
"text": t$d("delete"),
|
7882
|
+
"class": bem$P("button"),
|
7883
7883
|
"loading": props.isDeleting,
|
7884
7884
|
"onClick": onDelete
|
7885
7885
|
}, null)]);
|
@@ -7892,7 +7892,7 @@ var stdin_default$Y = defineComponent({
|
|
7892
7892
|
if (props.showSetDefault) {
|
7893
7893
|
return createVNode(Cell, {
|
7894
7894
|
"title": props.setDefaultLabel,
|
7895
|
-
"class": bem$
|
7895
|
+
"class": bem$P("switch-cell"),
|
7896
7896
|
"border": false
|
7897
7897
|
}, {
|
7898
7898
|
"right-icon": renderSwitch
|
@@ -7901,47 +7901,47 @@ var stdin_default$Y = defineComponent({
|
|
7901
7901
|
};
|
7902
7902
|
watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
7903
7903
|
return () => createVNode(Form, {
|
7904
|
-
"class": bem$
|
7904
|
+
"class": bem$P(),
|
7905
7905
|
"onSubmit": onSave
|
7906
7906
|
}, {
|
7907
7907
|
default: () => [createVNode("div", {
|
7908
|
-
"class": bem$
|
7908
|
+
"class": bem$P("fields")
|
7909
7909
|
}, [createVNode(Field, {
|
7910
7910
|
"modelValue": contact.name,
|
7911
7911
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
7912
7912
|
"clearable": true,
|
7913
|
-
"label": t$
|
7913
|
+
"label": t$d("name"),
|
7914
7914
|
"rules": [{
|
7915
7915
|
required: true,
|
7916
|
-
message: t$
|
7916
|
+
message: t$d("nameEmpty")
|
7917
7917
|
}],
|
7918
7918
|
"maxlength": "30",
|
7919
|
-
"placeholder": t$
|
7919
|
+
"placeholder": t$d("name")
|
7920
7920
|
}, null), createVNode(Field, {
|
7921
7921
|
"modelValue": contact.tel,
|
7922
7922
|
"onUpdate:modelValue": ($event) => contact.tel = $event,
|
7923
7923
|
"clearable": true,
|
7924
7924
|
"type": "tel",
|
7925
|
-
"label": t$
|
7925
|
+
"label": t$d("tel"),
|
7926
7926
|
"rules": [{
|
7927
7927
|
validator: props.telValidator,
|
7928
|
-
message: t$
|
7928
|
+
message: t$d("telInvalid")
|
7929
7929
|
}],
|
7930
|
-
"placeholder": t$
|
7930
|
+
"placeholder": t$d("tel")
|
7931
7931
|
}, null)]), renderSetDefault(), renderButtons()]
|
7932
7932
|
});
|
7933
7933
|
}
|
7934
7934
|
});
|
7935
|
-
const ContactEdit = withInstall(stdin_default$
|
7936
|
-
const [name$
|
7935
|
+
const ContactEdit = withInstall(stdin_default$Z);
|
7936
|
+
const [name$P, bem$O, t$c] = createNamespace("contact-list");
|
7937
7937
|
const contactListProps = {
|
7938
7938
|
list: Array,
|
7939
7939
|
addText: String,
|
7940
7940
|
modelValue: unknownProp,
|
7941
7941
|
defaultTagText: String
|
7942
7942
|
};
|
7943
|
-
var stdin_default$
|
7944
|
-
name: name$
|
7943
|
+
var stdin_default$Y = defineComponent({
|
7944
|
+
name: name$P,
|
7945
7945
|
props: contactListProps,
|
7946
7946
|
emits: ["add", "edit", "select", "update:modelValue"],
|
7947
7947
|
setup(props, {
|
@@ -7953,13 +7953,13 @@ var stdin_default$X = defineComponent({
|
|
7953
7953
|
emit("select", item, index);
|
7954
7954
|
};
|
7955
7955
|
const renderRightIcon = () => createVNode(Radio, {
|
7956
|
-
"class": bem$
|
7956
|
+
"class": bem$O("radio"),
|
7957
7957
|
"name": item.id,
|
7958
7958
|
"iconSize": 16
|
7959
7959
|
}, null);
|
7960
7960
|
const renderEditIcon = () => createVNode(Icon, {
|
7961
7961
|
"name": "edit",
|
7962
|
-
"class": bem$
|
7962
|
+
"class": bem$O("edit"),
|
7963
7963
|
"onClick": (event) => {
|
7964
7964
|
event.stopPropagation();
|
7965
7965
|
emit("edit", item, index);
|
@@ -7971,7 +7971,7 @@ var stdin_default$X = defineComponent({
|
|
7971
7971
|
nodes.push(createVNode(Tag, {
|
7972
7972
|
"type": "primary",
|
7973
7973
|
"round": true,
|
7974
|
-
"class": bem$
|
7974
|
+
"class": bem$O("item-tag")
|
7975
7975
|
}, {
|
7976
7976
|
default: () => [props.defaultTagText]
|
7977
7977
|
}));
|
@@ -7982,8 +7982,8 @@ var stdin_default$X = defineComponent({
|
|
7982
7982
|
"key": item.id,
|
7983
7983
|
"isLink": true,
|
7984
7984
|
"center": true,
|
7985
|
-
"class": bem$
|
7986
|
-
"titleClass": bem$
|
7985
|
+
"class": bem$O("item"),
|
7986
|
+
"titleClass": bem$O("item-title"),
|
7987
7987
|
"onClick": onClick
|
7988
7988
|
}, {
|
7989
7989
|
icon: renderEditIcon,
|
@@ -7992,25 +7992,25 @@ var stdin_default$X = defineComponent({
|
|
7992
7992
|
});
|
7993
7993
|
};
|
7994
7994
|
return () => createVNode("div", {
|
7995
|
-
"class": bem$
|
7995
|
+
"class": bem$O()
|
7996
7996
|
}, [createVNode(RadioGroup, {
|
7997
7997
|
"modelValue": props.modelValue,
|
7998
|
-
"class": bem$
|
7998
|
+
"class": bem$O("group")
|
7999
7999
|
}, {
|
8000
8000
|
default: () => [props.list && props.list.map(renderItem)]
|
8001
8001
|
}), createVNode("div", {
|
8002
|
-
"class": [bem$
|
8002
|
+
"class": [bem$O("bottom"), "van-safe-area-bottom"]
|
8003
8003
|
}, [createVNode(Button, {
|
8004
8004
|
"round": true,
|
8005
8005
|
"block": true,
|
8006
8006
|
"type": "primary",
|
8007
|
-
"class": bem$
|
8008
|
-
"text": props.addText || t$
|
8007
|
+
"class": bem$O("add"),
|
8008
|
+
"text": props.addText || t$c("addContact"),
|
8009
8009
|
"onClick": () => emit("add")
|
8010
8010
|
}, null)])]);
|
8011
8011
|
}
|
8012
8012
|
});
|
8013
|
-
const ContactList = withInstall(stdin_default$
|
8013
|
+
const ContactList = withInstall(stdin_default$Y);
|
8014
8014
|
function parseFormat(format2, currentTime) {
|
8015
8015
|
const { days } = currentTime;
|
8016
8016
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -8046,15 +8046,15 @@ function parseFormat(format2, currentTime) {
|
|
8046
8046
|
}
|
8047
8047
|
return format2;
|
8048
8048
|
}
|
8049
|
-
const [name$
|
8049
|
+
const [name$O, bem$N] = createNamespace("count-down");
|
8050
8050
|
const countDownProps = {
|
8051
8051
|
time: makeNumericProp(0),
|
8052
8052
|
format: makeStringProp("HH:mm:ss"),
|
8053
8053
|
autoStart: truthProp,
|
8054
8054
|
millisecond: Boolean
|
8055
8055
|
};
|
8056
|
-
var stdin_default$
|
8057
|
-
name: name$
|
8056
|
+
var stdin_default$X = defineComponent({
|
8057
|
+
name: name$O,
|
8058
8058
|
props: countDownProps,
|
8059
8059
|
emits: ["change", "finish"],
|
8060
8060
|
setup(props, {
|
@@ -8089,11 +8089,11 @@ var stdin_default$W = defineComponent({
|
|
8089
8089
|
});
|
8090
8090
|
return () => createVNode("div", {
|
8091
8091
|
"role": "timer",
|
8092
|
-
"class": bem$
|
8092
|
+
"class": bem$N()
|
8093
8093
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8094
8094
|
}
|
8095
8095
|
});
|
8096
|
-
const CountDown = withInstall(stdin_default$
|
8096
|
+
const CountDown = withInstall(stdin_default$X);
|
8097
8097
|
function getDate(timeStamp) {
|
8098
8098
|
const date = new Date(timeStamp * 1e3);
|
8099
8099
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8102,9 +8102,9 @@ function getDate(timeStamp) {
|
|
8102
8102
|
}
|
8103
8103
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8104
8104
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8105
|
-
const [name$
|
8106
|
-
var stdin_default$
|
8107
|
-
name: name$
|
8105
|
+
const [name$N, bem$M, t$b] = createNamespace("coupon");
|
8106
|
+
var stdin_default$W = defineComponent({
|
8107
|
+
name: name$N,
|
8108
8108
|
props: {
|
8109
8109
|
chosen: Boolean,
|
8110
8110
|
coupon: makeRequiredProp(Object),
|
@@ -8132,13 +8132,13 @@ var stdin_default$V = defineComponent({
|
|
8132
8132
|
return [createVNode("span", null, [currency]), ` ${denominations}`];
|
8133
8133
|
}
|
8134
8134
|
if (coupon.discount) {
|
8135
|
-
return t$
|
8135
|
+
return t$b("discount", formatDiscount(coupon.discount));
|
8136
8136
|
}
|
8137
8137
|
return "";
|
8138
8138
|
});
|
8139
8139
|
const conditionMessage = computed(() => {
|
8140
8140
|
const condition = formatAmount(props.coupon.originCondition || 0);
|
8141
|
-
return condition === "0" ? t$
|
8141
|
+
return condition === "0" ? t$b("unlimited") : t$b("condition", condition);
|
8142
8142
|
});
|
8143
8143
|
return () => {
|
8144
8144
|
const {
|
@@ -8148,34 +8148,34 @@ var stdin_default$V = defineComponent({
|
|
8148
8148
|
} = props;
|
8149
8149
|
const description = disabled && coupon.reason || coupon.description;
|
8150
8150
|
return createVNode("div", {
|
8151
|
-
"class": bem$
|
8151
|
+
"class": bem$M({
|
8152
8152
|
disabled
|
8153
8153
|
})
|
8154
8154
|
}, [createVNode("div", {
|
8155
|
-
"class": bem$
|
8155
|
+
"class": bem$M("content")
|
8156
8156
|
}, [createVNode("div", {
|
8157
|
-
"class": bem$
|
8157
|
+
"class": bem$M("head")
|
8158
8158
|
}, [createVNode("h2", {
|
8159
|
-
"class": bem$
|
8159
|
+
"class": bem$M("amount")
|
8160
8160
|
}, [faceAmount.value]), createVNode("p", {
|
8161
|
-
"class": bem$
|
8161
|
+
"class": bem$M("condition")
|
8162
8162
|
}, [coupon.condition || conditionMessage.value])]), createVNode("div", {
|
8163
|
-
"class": bem$
|
8163
|
+
"class": bem$M("body")
|
8164
8164
|
}, [createVNode("p", {
|
8165
|
-
"class": bem$
|
8165
|
+
"class": bem$M("name")
|
8166
8166
|
}, [coupon.name]), createVNode("p", {
|
8167
|
-
"class": bem$
|
8167
|
+
"class": bem$M("valid")
|
8168
8168
|
}, [validPeriod.value]), !disabled && createVNode(Checkbox, {
|
8169
|
-
"class": bem$
|
8169
|
+
"class": bem$M("corner"),
|
8170
8170
|
"modelValue": chosen
|
8171
8171
|
}, null)])]), description && createVNode("p", {
|
8172
|
-
"class": bem$
|
8172
|
+
"class": bem$M("description")
|
8173
8173
|
}, [description])]);
|
8174
8174
|
};
|
8175
8175
|
}
|
8176
8176
|
});
|
8177
|
-
const Coupon = withInstall(stdin_default$
|
8178
|
-
const [name$
|
8177
|
+
const Coupon = withInstall(stdin_default$W);
|
8178
|
+
const [name$M, bem$L, t$a] = createNamespace("coupon-cell");
|
8179
8179
|
const couponCellProps = {
|
8180
8180
|
title: String,
|
8181
8181
|
border: truthProp,
|
@@ -8201,36 +8201,36 @@ function formatValue({
|
|
8201
8201
|
}
|
8202
8202
|
return `-${currency} ${(value / 100).toFixed(2)}`;
|
8203
8203
|
}
|
8204
|
-
return coupons.length === 0 ? t$
|
8204
|
+
return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
|
8205
8205
|
}
|
8206
|
-
var stdin_default$
|
8207
|
-
name: name$
|
8206
|
+
var stdin_default$V = defineComponent({
|
8207
|
+
name: name$M,
|
8208
8208
|
props: couponCellProps,
|
8209
8209
|
setup(props) {
|
8210
8210
|
return () => {
|
8211
8211
|
const selected = props.coupons[+props.chosenCoupon];
|
8212
8212
|
return createVNode(Cell, {
|
8213
|
-
"class": bem$
|
8213
|
+
"class": bem$L(),
|
8214
8214
|
"value": formatValue(props),
|
8215
|
-
"title": props.title || t$
|
8215
|
+
"title": props.title || t$a("title"),
|
8216
8216
|
"border": props.border,
|
8217
8217
|
"isLink": props.editable,
|
8218
|
-
"valueClass": bem$
|
8218
|
+
"valueClass": bem$L("value", {
|
8219
8219
|
selected
|
8220
8220
|
})
|
8221
8221
|
}, null);
|
8222
8222
|
};
|
8223
8223
|
}
|
8224
8224
|
});
|
8225
|
-
const CouponCell = withInstall(stdin_default$
|
8226
|
-
const [name$
|
8225
|
+
const CouponCell = withInstall(stdin_default$V);
|
8226
|
+
const [name$L, bem$K] = createNamespace("empty");
|
8227
8227
|
const emptyProps = {
|
8228
8228
|
image: makeStringProp("default"),
|
8229
8229
|
imageSize: [Number, String, Array],
|
8230
8230
|
description: String
|
8231
8231
|
};
|
8232
|
-
var stdin_default$
|
8233
|
-
name: name$
|
8232
|
+
var stdin_default$U = defineComponent({
|
8233
|
+
name: name$L,
|
8234
8234
|
props: emptyProps,
|
8235
8235
|
setup(props, {
|
8236
8236
|
slots
|
@@ -8239,14 +8239,14 @@ var stdin_default$T = defineComponent({
|
|
8239
8239
|
const description = slots.description ? slots.description() : props.description;
|
8240
8240
|
if (description) {
|
8241
8241
|
return createVNode("p", {
|
8242
|
-
"class": bem$
|
8242
|
+
"class": bem$K("description")
|
8243
8243
|
}, [description]);
|
8244
8244
|
}
|
8245
8245
|
};
|
8246
8246
|
const renderBottom = () => {
|
8247
8247
|
if (slots.default) {
|
8248
8248
|
return createVNode("div", {
|
8249
|
-
"class": bem$
|
8249
|
+
"class": bem$K("bottom")
|
8250
8250
|
}, [slots.default()]);
|
8251
8251
|
}
|
8252
8252
|
};
|
@@ -8531,15 +8531,15 @@ var stdin_default$T = defineComponent({
|
|
8531
8531
|
}, null);
|
8532
8532
|
};
|
8533
8533
|
return () => createVNode("div", {
|
8534
|
-
"class": bem$
|
8534
|
+
"class": bem$K()
|
8535
8535
|
}, [createVNode("div", {
|
8536
|
-
"class": bem$
|
8536
|
+
"class": bem$K("image"),
|
8537
8537
|
"style": getSizeStyle(props.imageSize)
|
8538
8538
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8539
8539
|
}
|
8540
8540
|
});
|
8541
|
-
const Empty = withInstall(stdin_default$
|
8542
|
-
const [name$
|
8541
|
+
const Empty = withInstall(stdin_default$U);
|
8542
|
+
const [name$K, bem$J, t$9] = createNamespace("coupon-list");
|
8543
8543
|
const couponListProps = {
|
8544
8544
|
code: makeStringProp(""),
|
8545
8545
|
coupons: makeArrayProp(),
|
@@ -8560,8 +8560,8 @@ const couponListProps = {
|
|
8560
8560
|
exchangeButtonLoading: Boolean,
|
8561
8561
|
exchangeButtonDisabled: Boolean
|
8562
8562
|
};
|
8563
|
-
var stdin_default$
|
8564
|
-
name: name$
|
8563
|
+
var stdin_default$T = defineComponent({
|
8564
|
+
name: name$K,
|
8565
8565
|
props: couponListProps,
|
8566
8566
|
emits: ["change", "exchange", "update:code"],
|
8567
8567
|
setup(props, {
|
@@ -8597,27 +8597,27 @@ var stdin_default$S = defineComponent({
|
|
8597
8597
|
"image": props.emptyImage
|
8598
8598
|
}, {
|
8599
8599
|
default: () => [createVNode("p", {
|
8600
|
-
"class": bem$
|
8601
|
-
}, [t$
|
8600
|
+
"class": bem$J("empty-tip")
|
8601
|
+
}, [t$9("noCoupon")])]
|
8602
8602
|
});
|
8603
8603
|
const renderExchangeBar = () => {
|
8604
8604
|
if (props.showExchangeBar) {
|
8605
8605
|
return createVNode("div", {
|
8606
8606
|
"ref": barRef,
|
8607
|
-
"class": bem$
|
8607
|
+
"class": bem$J("exchange-bar")
|
8608
8608
|
}, [createVNode(Field, {
|
8609
8609
|
"modelValue": currentCode.value,
|
8610
8610
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8611
8611
|
"clearable": true,
|
8612
8612
|
"border": false,
|
8613
|
-
"class": bem$
|
8614
|
-
"placeholder": props.inputPlaceholder || t$
|
8613
|
+
"class": bem$J("field"),
|
8614
|
+
"placeholder": props.inputPlaceholder || t$9("placeholder"),
|
8615
8615
|
"maxlength": "20"
|
8616
8616
|
}, null), createVNode(Button, {
|
8617
8617
|
"plain": true,
|
8618
8618
|
"type": "primary",
|
8619
|
-
"class": bem$
|
8620
|
-
"text": props.exchangeButtonText || t$
|
8619
|
+
"class": bem$J("exchange"),
|
8620
|
+
"text": props.exchangeButtonText || t$9("exchange"),
|
8621
8621
|
"loading": props.exchangeButtonLoading,
|
8622
8622
|
"disabled": buttonDisabled.value,
|
8623
8623
|
"onClick": onExchange
|
@@ -8629,14 +8629,14 @@ var stdin_default$S = defineComponent({
|
|
8629
8629
|
coupons
|
8630
8630
|
} = props;
|
8631
8631
|
const count = props.showCount ? ` (${coupons.length})` : "";
|
8632
|
-
const title = (props.enabledTitle || t$
|
8632
|
+
const title = (props.enabledTitle || t$9("enable")) + count;
|
8633
8633
|
return createVNode(Tab, {
|
8634
8634
|
"title": title
|
8635
8635
|
}, {
|
8636
8636
|
default: () => {
|
8637
8637
|
var _a;
|
8638
8638
|
return [createVNode("div", {
|
8639
|
-
"class": bem$
|
8639
|
+
"class": bem$J("list", {
|
8640
8640
|
"with-bottom": props.showCloseButton
|
8641
8641
|
}),
|
8642
8642
|
"style": {
|
@@ -8658,14 +8658,14 @@ var stdin_default$S = defineComponent({
|
|
8658
8658
|
disabledCoupons
|
8659
8659
|
} = props;
|
8660
8660
|
const count = props.showCount ? ` (${disabledCoupons.length})` : "";
|
8661
|
-
const title = (props.disabledTitle || t$
|
8661
|
+
const title = (props.disabledTitle || t$9("disabled")) + count;
|
8662
8662
|
return createVNode(Tab, {
|
8663
8663
|
"title": title
|
8664
8664
|
}, {
|
8665
8665
|
default: () => {
|
8666
8666
|
var _a;
|
8667
8667
|
return [createVNode("div", {
|
8668
|
-
"class": bem$
|
8668
|
+
"class": bem$J("list", {
|
8669
8669
|
"with-bottom": props.showCloseButton
|
8670
8670
|
}),
|
8671
8671
|
"style": {
|
@@ -8692,28 +8692,28 @@ var stdin_default$S = defineComponent({
|
|
8692
8692
|
});
|
8693
8693
|
return () => createVNode("div", {
|
8694
8694
|
"ref": root,
|
8695
|
-
"class": bem$
|
8695
|
+
"class": bem$J()
|
8696
8696
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
8697
8697
|
"active": activeTab.value,
|
8698
8698
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
8699
|
-
"class": bem$
|
8699
|
+
"class": bem$J("tab")
|
8700
8700
|
}, {
|
8701
8701
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
8702
8702
|
}), createVNode("div", {
|
8703
|
-
"class": bem$
|
8703
|
+
"class": bem$J("bottom")
|
8704
8704
|
}, [withDirectives(createVNode(Button, {
|
8705
8705
|
"round": true,
|
8706
8706
|
"block": true,
|
8707
8707
|
"type": "primary",
|
8708
|
-
"class": bem$
|
8709
|
-
"text": props.closeButtonText || t$
|
8708
|
+
"class": bem$J("close"),
|
8709
|
+
"text": props.closeButtonText || t$9("close"),
|
8710
8710
|
"onClick": () => emit("change", -1)
|
8711
8711
|
}, null), [[vShow, props.showCloseButton]])])]);
|
8712
8712
|
}
|
8713
8713
|
});
|
8714
|
-
const CouponList = withInstall(stdin_default$
|
8714
|
+
const CouponList = withInstall(stdin_default$T);
|
8715
8715
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
8716
|
-
const [name$
|
8716
|
+
const [name$J] = createNamespace("date-picker");
|
8717
8717
|
const datePickerProps = extend({}, sharedProps, {
|
8718
8718
|
columnsType: {
|
8719
8719
|
type: Array,
|
@@ -8730,8 +8730,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
8730
8730
|
validator: isDate
|
8731
8731
|
}
|
8732
8732
|
});
|
8733
|
-
var stdin_default$
|
8734
|
-
name: name$
|
8733
|
+
var stdin_default$S = defineComponent({
|
8734
|
+
name: name$J,
|
8735
8735
|
props: datePickerProps,
|
8736
8736
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
8737
8737
|
setup(props, {
|
@@ -8821,8 +8821,8 @@ var stdin_default$R = defineComponent({
|
|
8821
8821
|
}, pick(props, pickerInheritKeys)), slots);
|
8822
8822
|
}
|
8823
8823
|
});
|
8824
|
-
const DatePicker = withInstall(stdin_default$
|
8825
|
-
const [name$
|
8824
|
+
const DatePicker = withInstall(stdin_default$S);
|
8825
|
+
const [name$I, bem$I, t$8] = createNamespace("dialog");
|
8826
8826
|
const dialogProps = extend({}, popupSharedProps, {
|
8827
8827
|
title: String,
|
8828
8828
|
theme: String,
|
@@ -8845,8 +8845,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8845
8845
|
closeOnClickOverlay: Boolean
|
8846
8846
|
});
|
8847
8847
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8848
|
-
var stdin_default$
|
8849
|
-
name: name$
|
8848
|
+
var stdin_default$R = defineComponent({
|
8849
|
+
name: name$I,
|
8850
8850
|
props: dialogProps,
|
8851
8851
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8852
8852
|
setup(props, {
|
@@ -8903,7 +8903,7 @@ var stdin_default$Q = defineComponent({
|
|
8903
8903
|
const title = slots.title ? slots.title() : props.title;
|
8904
8904
|
if (title) {
|
8905
8905
|
return createVNode("div", {
|
8906
|
-
"class": bem$
|
8906
|
+
"class": bem$I("header", {
|
8907
8907
|
isolated: !props.message && !slots.default
|
8908
8908
|
})
|
8909
8909
|
}, [title]);
|
@@ -8915,7 +8915,7 @@ var stdin_default$Q = defineComponent({
|
|
8915
8915
|
allowHtml,
|
8916
8916
|
messageAlign
|
8917
8917
|
} = props;
|
8918
|
-
const classNames = bem$
|
8918
|
+
const classNames = bem$I("message", {
|
8919
8919
|
"has-title": hasTitle,
|
8920
8920
|
[messageAlign]: messageAlign
|
8921
8921
|
});
|
@@ -8933,7 +8933,7 @@ var stdin_default$Q = defineComponent({
|
|
8933
8933
|
const renderContent = () => {
|
8934
8934
|
if (slots.default) {
|
8935
8935
|
return createVNode("div", {
|
8936
|
-
"class": bem$
|
8936
|
+
"class": bem$I("content")
|
8937
8937
|
}, [slots.default()]);
|
8938
8938
|
}
|
8939
8939
|
const {
|
@@ -8945,18 +8945,18 @@ var stdin_default$Q = defineComponent({
|
|
8945
8945
|
const hasTitle = !!(title || slots.title);
|
8946
8946
|
return createVNode("div", {
|
8947
8947
|
"key": allowHtml ? 1 : 0,
|
8948
|
-
"class": bem$
|
8948
|
+
"class": bem$I("content", {
|
8949
8949
|
isolated: !hasTitle
|
8950
8950
|
})
|
8951
8951
|
}, [renderMessage(hasTitle)]);
|
8952
8952
|
}
|
8953
8953
|
};
|
8954
8954
|
const renderButtons = () => createVNode("div", {
|
8955
|
-
"class": [BORDER_TOP, bem$
|
8955
|
+
"class": [BORDER_TOP, bem$I("footer")]
|
8956
8956
|
}, [props.showCancelButton && createVNode(Button, {
|
8957
8957
|
"size": "large",
|
8958
|
-
"text": props.cancelButtonText || t$
|
8959
|
-
"class": bem$
|
8958
|
+
"text": props.cancelButtonText || t$8("cancel"),
|
8959
|
+
"class": bem$I("cancel"),
|
8960
8960
|
"style": {
|
8961
8961
|
color: props.cancelButtonColor
|
8962
8962
|
},
|
@@ -8965,8 +8965,8 @@ var stdin_default$Q = defineComponent({
|
|
8965
8965
|
"onClick": onCancel
|
8966
8966
|
}, null), props.showConfirmButton && createVNode(Button, {
|
8967
8967
|
"size": "large",
|
8968
|
-
"text": props.confirmButtonText || t$
|
8969
|
-
"class": [bem$
|
8968
|
+
"text": props.confirmButtonText || t$8("confirm"),
|
8969
|
+
"class": [bem$I("confirm"), {
|
8970
8970
|
[BORDER_LEFT]: props.showCancelButton
|
8971
8971
|
}],
|
8972
8972
|
"style": {
|
@@ -8977,20 +8977,20 @@ var stdin_default$Q = defineComponent({
|
|
8977
8977
|
"onClick": onConfirm
|
8978
8978
|
}, null)]);
|
8979
8979
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
8980
|
-
"class": bem$
|
8980
|
+
"class": bem$I("footer")
|
8981
8981
|
}, {
|
8982
8982
|
default: () => [props.showCancelButton && createVNode(ActionBarButton, {
|
8983
8983
|
"type": "warning",
|
8984
|
-
"text": props.cancelButtonText || t$
|
8985
|
-
"class": bem$
|
8984
|
+
"text": props.cancelButtonText || t$8("cancel"),
|
8985
|
+
"class": bem$I("cancel"),
|
8986
8986
|
"color": props.cancelButtonColor,
|
8987
8987
|
"loading": loading.cancel,
|
8988
8988
|
"disabled": props.cancelButtonDisabled,
|
8989
8989
|
"onClick": onCancel
|
8990
8990
|
}, null), props.showConfirmButton && createVNode(ActionBarButton, {
|
8991
8991
|
"type": "danger",
|
8992
|
-
"text": props.confirmButtonText || t$
|
8993
|
-
"class": bem$
|
8992
|
+
"text": props.confirmButtonText || t$8("confirm"),
|
8993
|
+
"class": bem$I("confirm"),
|
8994
8994
|
"color": props.confirmButtonColor,
|
8995
8995
|
"loading": loading.confirm,
|
8996
8996
|
"disabled": props.confirmButtonDisabled,
|
@@ -9014,7 +9014,7 @@ var stdin_default$Q = defineComponent({
|
|
9014
9014
|
return createVNode(Popup, mergeProps({
|
9015
9015
|
"ref": root,
|
9016
9016
|
"role": "dialog",
|
9017
|
-
"class": [bem$
|
9017
|
+
"class": [bem$I([theme]), className],
|
9018
9018
|
"style": {
|
9019
9019
|
width: addUnit(width)
|
9020
9020
|
},
|
@@ -9064,7 +9064,7 @@ function initInstance$2() {
|
|
9064
9064
|
state,
|
9065
9065
|
toggle
|
9066
9066
|
} = usePopupState();
|
9067
|
-
return () => createVNode(stdin_default$
|
9067
|
+
return () => createVNode(stdin_default$R, mergeProps(state, {
|
9068
9068
|
"onUpdate:show": toggle
|
9069
9069
|
}), null);
|
9070
9070
|
}
|
@@ -9102,15 +9102,15 @@ const closeDialog = () => {
|
|
9102
9102
|
instance$2.toggle(false);
|
9103
9103
|
}
|
9104
9104
|
};
|
9105
|
-
const Dialog = withInstall(stdin_default$
|
9106
|
-
const [name$
|
9105
|
+
const Dialog = withInstall(stdin_default$R);
|
9106
|
+
const [name$H, bem$H] = createNamespace("divider");
|
9107
9107
|
const dividerProps = {
|
9108
9108
|
dashed: Boolean,
|
9109
9109
|
hairline: truthProp,
|
9110
9110
|
contentPosition: makeStringProp("center")
|
9111
9111
|
};
|
9112
|
-
var stdin_default$
|
9113
|
-
name: name$
|
9112
|
+
var stdin_default$Q = defineComponent({
|
9113
|
+
name: name$H,
|
9114
9114
|
props: dividerProps,
|
9115
9115
|
setup(props, {
|
9116
9116
|
slots
|
@@ -9119,7 +9119,7 @@ var stdin_default$P = defineComponent({
|
|
9119
9119
|
var _a;
|
9120
9120
|
return createVNode("div", {
|
9121
9121
|
"role": "separator",
|
9122
|
-
"class": bem$
|
9122
|
+
"class": bem$H({
|
9123
9123
|
dashed: props.dashed,
|
9124
9124
|
hairline: props.hairline,
|
9125
9125
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -9128,8 +9128,8 @@ var stdin_default$P = defineComponent({
|
|
9128
9128
|
};
|
9129
9129
|
}
|
9130
9130
|
});
|
9131
|
-
const Divider = withInstall(stdin_default$
|
9132
|
-
const [name$
|
9131
|
+
const Divider = withInstall(stdin_default$Q);
|
9132
|
+
const [name$G, bem$G] = createNamespace("dropdown-menu");
|
9133
9133
|
const dropdownMenuProps = {
|
9134
9134
|
overlay: truthProp,
|
9135
9135
|
zIndex: numericProp,
|
@@ -9139,9 +9139,9 @@ const dropdownMenuProps = {
|
|
9139
9139
|
closeOnClickOutside: truthProp,
|
9140
9140
|
closeOnClickOverlay: truthProp
|
9141
9141
|
};
|
9142
|
-
const DROPDOWN_KEY = Symbol(name$
|
9143
|
-
var stdin_default$
|
9144
|
-
name: name$
|
9142
|
+
const DROPDOWN_KEY = Symbol(name$G);
|
9143
|
+
var stdin_default$P = defineComponent({
|
9144
|
+
name: name$G,
|
9145
9145
|
props: dropdownMenuProps,
|
9146
9146
|
setup(props, {
|
9147
9147
|
slots
|
@@ -9208,7 +9208,7 @@ var stdin_default$O = defineComponent({
|
|
9208
9208
|
"id": `${id}-${index}`,
|
9209
9209
|
"role": "button",
|
9210
9210
|
"tabindex": disabled ? void 0 : 0,
|
9211
|
-
"class": [bem$
|
9211
|
+
"class": [bem$G("item", {
|
9212
9212
|
disabled
|
9213
9213
|
}), {
|
9214
9214
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -9219,7 +9219,7 @@ var stdin_default$O = defineComponent({
|
|
9219
9219
|
}
|
9220
9220
|
}
|
9221
9221
|
}, [createVNode("span", {
|
9222
|
-
"class": [bem$
|
9222
|
+
"class": [bem$G("title", {
|
9223
9223
|
down: showPopup === (props.direction === "down"),
|
9224
9224
|
active: showPopup
|
9225
9225
|
}), titleClass],
|
@@ -9245,18 +9245,18 @@ var stdin_default$O = defineComponent({
|
|
9245
9245
|
var _a;
|
9246
9246
|
return createVNode("div", {
|
9247
9247
|
"ref": root,
|
9248
|
-
"class": bem$
|
9248
|
+
"class": bem$G()
|
9249
9249
|
}, [createVNode("div", {
|
9250
9250
|
"ref": barRef,
|
9251
9251
|
"style": barStyle.value,
|
9252
|
-
"class": bem$
|
9252
|
+
"class": bem$G("bar", {
|
9253
9253
|
opened: opened.value
|
9254
9254
|
})
|
9255
9255
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9256
9256
|
};
|
9257
9257
|
}
|
9258
9258
|
});
|
9259
|
-
const [name$
|
9259
|
+
const [name$F, bem$F] = createNamespace("dropdown-item");
|
9260
9260
|
const dropdownItemProps = {
|
9261
9261
|
title: String,
|
9262
9262
|
options: makeArrayProp(),
|
@@ -9266,8 +9266,8 @@ const dropdownItemProps = {
|
|
9266
9266
|
modelValue: unknownProp,
|
9267
9267
|
titleClass: unknownProp
|
9268
9268
|
};
|
9269
|
-
var stdin_default$
|
9270
|
-
name: name$
|
9269
|
+
var stdin_default$O = defineComponent({
|
9270
|
+
name: name$F,
|
9271
9271
|
inheritAttrs: false,
|
9272
9272
|
props: dropdownItemProps,
|
9273
9273
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
@@ -9340,7 +9340,7 @@ var stdin_default$N = defineComponent({
|
|
9340
9340
|
const renderIcon = () => {
|
9341
9341
|
if (active) {
|
9342
9342
|
return createVNode(Icon, {
|
9343
|
-
"class": bem$
|
9343
|
+
"class": bem$F("icon"),
|
9344
9344
|
"color": activeColor,
|
9345
9345
|
"name": "success"
|
9346
9346
|
}, null);
|
@@ -9351,7 +9351,7 @@ var stdin_default$N = defineComponent({
|
|
9351
9351
|
"key": option.value,
|
9352
9352
|
"icon": option.icon,
|
9353
9353
|
"title": option.text,
|
9354
|
-
"class": bem$
|
9354
|
+
"class": bem$F("option", {
|
9355
9355
|
active
|
9356
9356
|
}),
|
9357
9357
|
"style": {
|
@@ -9383,13 +9383,13 @@ var stdin_default$N = defineComponent({
|
|
9383
9383
|
}
|
9384
9384
|
return withDirectives(createVNode("div", mergeProps({
|
9385
9385
|
"style": style,
|
9386
|
-
"class": bem$
|
9386
|
+
"class": bem$F([direction]),
|
9387
9387
|
"onClick": onClickWrapper
|
9388
9388
|
}, attrs), [createVNode(Popup, {
|
9389
9389
|
"show": state.showPopup,
|
9390
9390
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
9391
9391
|
"role": "menu",
|
9392
|
-
"class": bem$
|
9392
|
+
"class": bem$F("content"),
|
9393
9393
|
"overlay": overlay,
|
9394
9394
|
"position": direction === "down" ? "top" : "bottom",
|
9395
9395
|
"duration": state.transition ? duration : 0,
|
@@ -9427,9 +9427,9 @@ var stdin_default$N = defineComponent({
|
|
9427
9427
|
};
|
9428
9428
|
}
|
9429
9429
|
});
|
9430
|
-
const DropdownItem = withInstall(stdin_default$
|
9431
|
-
const DropdownMenu = withInstall(stdin_default$
|
9432
|
-
const [name$
|
9430
|
+
const DropdownItem = withInstall(stdin_default$O);
|
9431
|
+
const DropdownMenu = withInstall(stdin_default$P);
|
9432
|
+
const [name$E, bem$E] = createNamespace("grid");
|
9433
9433
|
const gridProps = {
|
9434
9434
|
square: Boolean,
|
9435
9435
|
center: truthProp,
|
@@ -9441,9 +9441,9 @@ const gridProps = {
|
|
9441
9441
|
clickable: Boolean,
|
9442
9442
|
columnNum: makeNumericProp(4)
|
9443
9443
|
};
|
9444
|
-
const GRID_KEY = Symbol(name$
|
9445
|
-
var stdin_default$
|
9446
|
-
name: name$
|
9444
|
+
const GRID_KEY = Symbol(name$E);
|
9445
|
+
var stdin_default$N = defineComponent({
|
9446
|
+
name: name$E,
|
9447
9447
|
props: gridProps,
|
9448
9448
|
setup(props, {
|
9449
9449
|
slots
|
@@ -9460,15 +9460,15 @@ var stdin_default$M = defineComponent({
|
|
9460
9460
|
"style": {
|
9461
9461
|
paddingLeft: addUnit(props.gutter)
|
9462
9462
|
},
|
9463
|
-
"class": [bem$
|
9463
|
+
"class": [bem$E(), {
|
9464
9464
|
[BORDER_TOP]: props.border && !props.gutter
|
9465
9465
|
}]
|
9466
9466
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9467
9467
|
};
|
9468
9468
|
}
|
9469
9469
|
});
|
9470
|
-
const Grid = withInstall(stdin_default$
|
9471
|
-
const [name$
|
9470
|
+
const Grid = withInstall(stdin_default$N);
|
9471
|
+
const [name$D, bem$D] = createNamespace("grid-item");
|
9472
9472
|
const gridItemProps = extend({}, routeProps, {
|
9473
9473
|
dot: Boolean,
|
9474
9474
|
text: String,
|
@@ -9478,8 +9478,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
9478
9478
|
iconPrefix: String,
|
9479
9479
|
badgeProps: Object
|
9480
9480
|
});
|
9481
|
-
var stdin_default$
|
9482
|
-
name: name$
|
9481
|
+
var stdin_default$M = defineComponent({
|
9482
|
+
name: name$D,
|
9483
9483
|
props: gridItemProps,
|
9484
9484
|
setup(props, {
|
9485
9485
|
slots
|
@@ -9545,7 +9545,7 @@ var stdin_default$L = defineComponent({
|
|
9545
9545
|
"name": props.icon,
|
9546
9546
|
"size": parent.props.iconSize,
|
9547
9547
|
"badge": props.badge,
|
9548
|
-
"class": bem$
|
9548
|
+
"class": bem$D("icon"),
|
9549
9549
|
"color": props.iconColor,
|
9550
9550
|
"badgeProps": props.badgeProps,
|
9551
9551
|
"classPrefix": props.iconPrefix
|
@@ -9558,7 +9558,7 @@ var stdin_default$L = defineComponent({
|
|
9558
9558
|
}
|
9559
9559
|
if (props.text) {
|
9560
9560
|
return createVNode("span", {
|
9561
|
-
"class": bem$
|
9561
|
+
"class": bem$D("text")
|
9562
9562
|
}, [props.text]);
|
9563
9563
|
}
|
9564
9564
|
};
|
@@ -9578,7 +9578,7 @@ var stdin_default$L = defineComponent({
|
|
9578
9578
|
direction,
|
9579
9579
|
clickable
|
9580
9580
|
} = parent.props;
|
9581
|
-
const classes = [bem$
|
9581
|
+
const classes = [bem$D("content", [direction, {
|
9582
9582
|
center,
|
9583
9583
|
square,
|
9584
9584
|
reverse,
|
@@ -9588,7 +9588,7 @@ var stdin_default$L = defineComponent({
|
|
9588
9588
|
[BORDER]: border
|
9589
9589
|
}];
|
9590
9590
|
return createVNode("div", {
|
9591
|
-
"class": [bem$
|
9591
|
+
"class": [bem$D({
|
9592
9592
|
square
|
9593
9593
|
})],
|
9594
9594
|
"style": rootStyle.value
|
@@ -9602,10 +9602,10 @@ var stdin_default$L = defineComponent({
|
|
9602
9602
|
};
|
9603
9603
|
}
|
9604
9604
|
});
|
9605
|
-
const GridItem = withInstall(stdin_default$
|
9605
|
+
const GridItem = withInstall(stdin_default$M);
|
9606
9606
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9607
|
-
const bem$
|
9608
|
-
var stdin_default$
|
9607
|
+
const bem$C = createNamespace("image-preview")[1];
|
9608
|
+
var stdin_default$L = defineComponent({
|
9609
9609
|
props: {
|
9610
9610
|
src: String,
|
9611
9611
|
show: Boolean,
|
@@ -9848,19 +9848,19 @@ var stdin_default$K = defineComponent({
|
|
9848
9848
|
};
|
9849
9849
|
return createVNode(SwipeItem, {
|
9850
9850
|
"ref": swipeItem,
|
9851
|
-
"class": bem$
|
9851
|
+
"class": bem$C("swipe-item"),
|
9852
9852
|
"onTouchstartPassive": onTouchStart,
|
9853
9853
|
"onTouchend": onTouchEnd,
|
9854
9854
|
"onTouchcancel": onTouchEnd
|
9855
9855
|
}, {
|
9856
9856
|
default: () => [slots.image ? createVNode("div", {
|
9857
|
-
"class": bem$
|
9857
|
+
"class": bem$C("image-wrap")
|
9858
9858
|
}, [slots.image({
|
9859
9859
|
src: props.src
|
9860
9860
|
})]) : createVNode(Image$1, {
|
9861
9861
|
"src": props.src,
|
9862
9862
|
"fit": "contain",
|
9863
|
-
"class": bem$
|
9863
|
+
"class": bem$C("image", {
|
9864
9864
|
vertical: vertical.value
|
9865
9865
|
}),
|
9866
9866
|
"style": imageStyle.value,
|
@@ -9870,7 +9870,7 @@ var stdin_default$K = defineComponent({
|
|
9870
9870
|
};
|
9871
9871
|
}
|
9872
9872
|
});
|
9873
|
-
const [name$
|
9873
|
+
const [name$C, bem$B] = createNamespace("image-preview");
|
9874
9874
|
const popupProps$1 = ["show", "teleport", "transition", "overlayStyle", "closeOnPopstate"];
|
9875
9875
|
const imagePreviewProps = {
|
9876
9876
|
show: Boolean,
|
@@ -9894,8 +9894,8 @@ const imagePreviewProps = {
|
|
9894
9894
|
closeIconPosition: makeStringProp("top-right"),
|
9895
9895
|
teleport: [String, Object]
|
9896
9896
|
};
|
9897
|
-
var stdin_default$
|
9898
|
-
name: name$
|
9897
|
+
var stdin_default$K = defineComponent({
|
9898
|
+
name: name$C,
|
9899
9899
|
props: imagePreviewProps,
|
9900
9900
|
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
9901
9901
|
setup(props, {
|
@@ -9934,7 +9934,7 @@ var stdin_default$J = defineComponent({
|
|
9934
9934
|
const renderIndex = () => {
|
9935
9935
|
if (props.showIndex) {
|
9936
9936
|
return createVNode("div", {
|
9937
|
-
"class": bem$
|
9937
|
+
"class": bem$B("index")
|
9938
9938
|
}, [slots.index ? slots.index({
|
9939
9939
|
index: state.active
|
9940
9940
|
}) : `${state.active + 1} / ${props.images.length}`]);
|
@@ -9943,7 +9943,7 @@ var stdin_default$J = defineComponent({
|
|
9943
9943
|
const renderCover = () => {
|
9944
9944
|
if (slots.cover) {
|
9945
9945
|
return createVNode("div", {
|
9946
|
-
"class": bem$
|
9946
|
+
"class": bem$B("cover")
|
9947
9947
|
}, [slots.cover()]);
|
9948
9948
|
}
|
9949
9949
|
};
|
@@ -9957,7 +9957,7 @@ var stdin_default$J = defineComponent({
|
|
9957
9957
|
"ref": swipeRef,
|
9958
9958
|
"lazyRender": true,
|
9959
9959
|
"loop": props.loop,
|
9960
|
-
"class": bem$
|
9960
|
+
"class": bem$B("swipe"),
|
9961
9961
|
"duration": props.swipeDuration,
|
9962
9962
|
"initialSwipe": props.startPosition,
|
9963
9963
|
"showIndicators": props.showIndicators,
|
@@ -9966,7 +9966,7 @@ var stdin_default$J = defineComponent({
|
|
9966
9966
|
"onDragEnd": onDragEnd,
|
9967
9967
|
"onDragStart": onDragStart
|
9968
9968
|
}, {
|
9969
|
-
default: () => [props.images.map((image, index) => createVNode(stdin_default$
|
9969
|
+
default: () => [props.images.map((image, index) => createVNode(stdin_default$L, {
|
9970
9970
|
"src": image,
|
9971
9971
|
"show": props.show,
|
9972
9972
|
"active": state.active,
|
@@ -9989,7 +9989,7 @@ var stdin_default$J = defineComponent({
|
|
9989
9989
|
return createVNode(Icon, {
|
9990
9990
|
"role": "button",
|
9991
9991
|
"name": props.closeIcon,
|
9992
|
-
"class": [bem$
|
9992
|
+
"class": [bem$B("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
9993
9993
|
"onClick": emitClose
|
9994
9994
|
}, null);
|
9995
9995
|
}
|
@@ -10026,8 +10026,8 @@ var stdin_default$J = defineComponent({
|
|
10026
10026
|
}
|
10027
10027
|
});
|
10028
10028
|
return () => createVNode(Popup, mergeProps({
|
10029
|
-
"class": [bem$
|
10030
|
-
"overlayClass": [bem$
|
10029
|
+
"class": [bem$B(), props.className],
|
10030
|
+
"overlayClass": [bem$B("overlay"), props.overlayClass],
|
10031
10031
|
"onClosed": onClosed,
|
10032
10032
|
"onUpdate:show": updateShow
|
10033
10033
|
}, pick(props, popupProps$1)), {
|
@@ -10071,7 +10071,7 @@ function initInstance$1() {
|
|
10071
10071
|
const onClosed = () => {
|
10072
10072
|
state.images = [];
|
10073
10073
|
};
|
10074
|
-
return () => createVNode(stdin_default$
|
10074
|
+
return () => createVNode(stdin_default$K, mergeProps(state, {
|
10075
10075
|
"onClosed": onClosed,
|
10076
10076
|
"onUpdate:show": toggle
|
10077
10077
|
}), null);
|
@@ -10092,13 +10092,13 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
10092
10092
|
instance$1.open(extend({}, defaultConfig, options));
|
10093
10093
|
return instance$1;
|
10094
10094
|
};
|
10095
|
-
const ImagePreview = withInstall(stdin_default$
|
10095
|
+
const ImagePreview = withInstall(stdin_default$K);
|
10096
10096
|
function genAlphabet() {
|
10097
10097
|
const charCodeOfA = "A".charCodeAt(0);
|
10098
10098
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
10099
10099
|
return indexList;
|
10100
10100
|
}
|
10101
|
-
const [name$
|
10101
|
+
const [name$B, bem$A] = createNamespace("index-bar");
|
10102
10102
|
const indexBarProps = {
|
10103
10103
|
sticky: truthProp,
|
10104
10104
|
zIndex: numericProp,
|
@@ -10110,9 +10110,9 @@ const indexBarProps = {
|
|
10110
10110
|
default: genAlphabet
|
10111
10111
|
}
|
10112
10112
|
};
|
10113
|
-
const INDEX_BAR_KEY = Symbol(name$
|
10114
|
-
var stdin_default$
|
10115
|
-
name: name$
|
10113
|
+
const INDEX_BAR_KEY = Symbol(name$B);
|
10114
|
+
var stdin_default$J = defineComponent({
|
10115
|
+
name: name$B,
|
10116
10116
|
props: indexBarProps,
|
10117
10117
|
emits: ["select", "change"],
|
10118
10118
|
setup(props, {
|
@@ -10224,7 +10224,7 @@ var stdin_default$I = defineComponent({
|
|
10224
10224
|
const renderIndexes = () => props.indexList.map((index) => {
|
10225
10225
|
const active = index === activeAnchor.value;
|
10226
10226
|
return createVNode("span", {
|
10227
|
-
"class": bem$
|
10227
|
+
"class": bem$A("index", {
|
10228
10228
|
active
|
10229
10229
|
}),
|
10230
10230
|
"style": active ? highlightStyle.value : void 0,
|
@@ -10285,7 +10285,7 @@ var stdin_default$I = defineComponent({
|
|
10285
10285
|
};
|
10286
10286
|
const renderSidebar = () => createVNode("div", {
|
10287
10287
|
"ref": sidebar,
|
10288
|
-
"class": bem$
|
10288
|
+
"class": bem$A("sidebar"),
|
10289
10289
|
"style": sidebarStyle.value,
|
10290
10290
|
"onClick": onClickSidebar,
|
10291
10291
|
"onTouchstartPassive": touch.start
|
@@ -10300,7 +10300,7 @@ var stdin_default$I = defineComponent({
|
|
10300
10300
|
var _a;
|
10301
10301
|
return createVNode("div", {
|
10302
10302
|
"ref": root,
|
10303
|
-
"class": bem$
|
10303
|
+
"class": bem$A()
|
10304
10304
|
}, [props.teleport ? createVNode(Teleport, {
|
10305
10305
|
"to": props.teleport
|
10306
10306
|
}, {
|
@@ -10309,12 +10309,12 @@ var stdin_default$I = defineComponent({
|
|
10309
10309
|
};
|
10310
10310
|
}
|
10311
10311
|
});
|
10312
|
-
const [name$
|
10312
|
+
const [name$A, bem$z] = createNamespace("index-anchor");
|
10313
10313
|
const indexAnchorProps = {
|
10314
10314
|
index: numericProp
|
10315
10315
|
};
|
10316
|
-
var stdin_default$
|
10317
|
-
name: name$
|
10316
|
+
var stdin_default$I = defineComponent({
|
10317
|
+
name: name$A,
|
10318
10318
|
props: indexAnchorProps,
|
10319
10319
|
setup(props, {
|
10320
10320
|
slots
|
@@ -10377,7 +10377,7 @@ var stdin_default$H = defineComponent({
|
|
10377
10377
|
}
|
10378
10378
|
}, [createVNode("div", {
|
10379
10379
|
"style": anchorStyle.value,
|
10380
|
-
"class": [bem$
|
10380
|
+
"class": [bem$z({
|
10381
10381
|
sticky
|
10382
10382
|
}), {
|
10383
10383
|
[BORDER_BOTTOM]: sticky
|
@@ -10386,9 +10386,9 @@ var stdin_default$H = defineComponent({
|
|
10386
10386
|
};
|
10387
10387
|
}
|
10388
10388
|
});
|
10389
|
-
const IndexAnchor = withInstall(stdin_default$
|
10390
|
-
const IndexBar = withInstall(stdin_default$
|
10391
|
-
const [name$
|
10389
|
+
const IndexAnchor = withInstall(stdin_default$I);
|
10390
|
+
const IndexBar = withInstall(stdin_default$J);
|
10391
|
+
const [name$z, bem$y, t$7] = createNamespace("list");
|
10392
10392
|
const listProps = {
|
10393
10393
|
error: Boolean,
|
10394
10394
|
offset: makeNumericProp(300),
|
@@ -10401,8 +10401,8 @@ const listProps = {
|
|
10401
10401
|
finishedText: String,
|
10402
10402
|
immediateCheck: truthProp
|
10403
10403
|
};
|
10404
|
-
var stdin_default$
|
10405
|
-
name: name$
|
10404
|
+
var stdin_default$H = defineComponent({
|
10405
|
+
name: name$z,
|
10406
10406
|
props: listProps,
|
10407
10407
|
emits: ["load", "update:error", "update:loading"],
|
10408
10408
|
setup(props, {
|
@@ -10447,7 +10447,7 @@ var stdin_default$G = defineComponent({
|
|
10447
10447
|
const text = slots.finished ? slots.finished() : props.finishedText;
|
10448
10448
|
if (text) {
|
10449
10449
|
return createVNode("div", {
|
10450
|
-
"class": bem$
|
10450
|
+
"class": bem$y("finished-text")
|
10451
10451
|
}, [text]);
|
10452
10452
|
}
|
10453
10453
|
}
|
@@ -10462,7 +10462,7 @@ var stdin_default$G = defineComponent({
|
|
10462
10462
|
if (text) {
|
10463
10463
|
return createVNode("div", {
|
10464
10464
|
"role": "button",
|
10465
|
-
"class": bem$
|
10465
|
+
"class": bem$y("error-text"),
|
10466
10466
|
"tabindex": 0,
|
10467
10467
|
"onClick": clickErrorText
|
10468
10468
|
}, [text]);
|
@@ -10472,11 +10472,11 @@ var stdin_default$G = defineComponent({
|
|
10472
10472
|
const renderLoading = () => {
|
10473
10473
|
if (loading.value && !props.finished && !props.disabled) {
|
10474
10474
|
return createVNode("div", {
|
10475
|
-
"class": bem$
|
10475
|
+
"class": bem$y("loading")
|
10476
10476
|
}, [slots.loading ? slots.loading() : createVNode(Loading, {
|
10477
|
-
"class": bem$
|
10477
|
+
"class": bem$y("loading-icon")
|
10478
10478
|
}, {
|
10479
|
-
default: () => [props.loadingText || t$
|
10479
|
+
default: () => [props.loadingText || t$7("loading")]
|
10480
10480
|
})]);
|
10481
10481
|
}
|
10482
10482
|
};
|
@@ -10508,19 +10508,19 @@ var stdin_default$G = defineComponent({
|
|
10508
10508
|
const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
10509
10509
|
const Placeholder = createVNode("div", {
|
10510
10510
|
"ref": placeholder,
|
10511
|
-
"class": bem$
|
10511
|
+
"class": bem$y("placeholder")
|
10512
10512
|
}, null);
|
10513
10513
|
return createVNode("div", {
|
10514
10514
|
"ref": root,
|
10515
10515
|
"role": "feed",
|
10516
|
-
"class": bem$
|
10516
|
+
"class": bem$y(),
|
10517
10517
|
"aria-busy": loading.value
|
10518
10518
|
}, [props.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === "up" ? Content : Placeholder]);
|
10519
10519
|
};
|
10520
10520
|
}
|
10521
10521
|
});
|
10522
|
-
const List = withInstall(stdin_default$
|
10523
|
-
const [name$
|
10522
|
+
const List = withInstall(stdin_default$H);
|
10523
|
+
const [name$y, bem$x] = createNamespace("nav-bar");
|
10524
10524
|
const navBarProps = {
|
10525
10525
|
title: String,
|
10526
10526
|
fixed: Boolean,
|
@@ -10533,8 +10533,8 @@ const navBarProps = {
|
|
10533
10533
|
safeAreaInsetTop: Boolean,
|
10534
10534
|
clickable: truthProp
|
10535
10535
|
};
|
10536
|
-
var stdin_default$
|
10537
|
-
name: name$
|
10536
|
+
var stdin_default$G = defineComponent({
|
10537
|
+
name: name$y,
|
10538
10538
|
props: navBarProps,
|
10539
10539
|
emits: ["clickLeft", "clickRight"],
|
10540
10540
|
setup(props, {
|
@@ -10542,7 +10542,7 @@ var stdin_default$F = defineComponent({
|
|
10542
10542
|
slots
|
10543
10543
|
}) {
|
10544
10544
|
const navBarRef = ref();
|
10545
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
10545
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$x);
|
10546
10546
|
const onClickLeft = (event) => emit("clickLeft", event);
|
10547
10547
|
const onClickRight = (event) => emit("clickRight", event);
|
10548
10548
|
const renderLeft = () => {
|
@@ -10550,10 +10550,10 @@ var stdin_default$F = defineComponent({
|
|
10550
10550
|
return slots.left();
|
10551
10551
|
}
|
10552
10552
|
return [props.leftArrow && createVNode(Icon, {
|
10553
|
-
"class": bem$
|
10553
|
+
"class": bem$x("arrow"),
|
10554
10554
|
"name": "arrow-left"
|
10555
10555
|
}, null), props.leftText && createVNode("span", {
|
10556
|
-
"class": bem$
|
10556
|
+
"class": bem$x("text")
|
10557
10557
|
}, [props.leftText])];
|
10558
10558
|
};
|
10559
10559
|
const renderRight = () => {
|
@@ -10561,7 +10561,7 @@ var stdin_default$F = defineComponent({
|
|
10561
10561
|
return slots.right();
|
10562
10562
|
}
|
10563
10563
|
return createVNode("span", {
|
10564
|
-
"class": bem$
|
10564
|
+
"class": bem$x("text")
|
10565
10565
|
}, [props.rightText]);
|
10566
10566
|
};
|
10567
10567
|
const renderNavBar = () => {
|
@@ -10577,21 +10577,21 @@ var stdin_default$F = defineComponent({
|
|
10577
10577
|
return createVNode("div", {
|
10578
10578
|
"ref": navBarRef,
|
10579
10579
|
"style": style,
|
10580
|
-
"class": [bem$
|
10580
|
+
"class": [bem$x({
|
10581
10581
|
fixed
|
10582
10582
|
}), {
|
10583
10583
|
[BORDER_BOTTOM]: border,
|
10584
10584
|
"van-safe-area-top": props.safeAreaInsetTop
|
10585
10585
|
}]
|
10586
10586
|
}, [createVNode("div", {
|
10587
|
-
"class": bem$
|
10587
|
+
"class": bem$x("content")
|
10588
10588
|
}, [hasLeft && createVNode("div", {
|
10589
|
-
"class": [bem$
|
10589
|
+
"class": [bem$x("left"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10590
10590
|
"onClick": onClickLeft
|
10591
10591
|
}, [renderLeft()]), createVNode("div", {
|
10592
|
-
"class": [bem$
|
10592
|
+
"class": [bem$x("title"), "van-ellipsis"]
|
10593
10593
|
}, [slots.title ? slots.title() : title]), hasRight && createVNode("div", {
|
10594
|
-
"class": [bem$
|
10594
|
+
"class": [bem$x("right"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10595
10595
|
"onClick": onClickRight
|
10596
10596
|
}, [renderRight()])])]);
|
10597
10597
|
};
|
@@ -10603,8 +10603,8 @@ var stdin_default$F = defineComponent({
|
|
10603
10603
|
};
|
10604
10604
|
}
|
10605
10605
|
});
|
10606
|
-
const NavBar = withInstall(stdin_default$
|
10607
|
-
const [name$
|
10606
|
+
const NavBar = withInstall(stdin_default$G);
|
10607
|
+
const [name$x, bem$w] = createNamespace("notice-bar");
|
10608
10608
|
const noticeBarProps = {
|
10609
10609
|
text: String,
|
10610
10610
|
mode: String,
|
@@ -10619,8 +10619,8 @@ const noticeBarProps = {
|
|
10619
10619
|
default: null
|
10620
10620
|
}
|
10621
10621
|
};
|
10622
|
-
var stdin_default$
|
10623
|
-
name: name$
|
10622
|
+
var stdin_default$F = defineComponent({
|
10623
|
+
name: name$x,
|
10624
10624
|
props: noticeBarProps,
|
10625
10625
|
emits: ["close", "replay"],
|
10626
10626
|
setup(props, {
|
@@ -10643,7 +10643,7 @@ var stdin_default$E = defineComponent({
|
|
10643
10643
|
}
|
10644
10644
|
if (props.leftIcon) {
|
10645
10645
|
return createVNode(Icon, {
|
10646
|
-
"class": bem$
|
10646
|
+
"class": bem$w("left-icon"),
|
10647
10647
|
"name": props.leftIcon
|
10648
10648
|
}, null);
|
10649
10649
|
}
|
@@ -10670,7 +10670,7 @@ var stdin_default$E = defineComponent({
|
|
10670
10670
|
if (name2) {
|
10671
10671
|
return createVNode(Icon, {
|
10672
10672
|
"name": name2,
|
10673
|
-
"class": bem$
|
10673
|
+
"class": bem$w("right-icon"),
|
10674
10674
|
"onClick": onClickRightIcon
|
10675
10675
|
}, null);
|
10676
10676
|
}
|
@@ -10695,11 +10695,11 @@ var stdin_default$E = defineComponent({
|
|
10695
10695
|
return createVNode("div", {
|
10696
10696
|
"ref": wrapRef,
|
10697
10697
|
"role": "marquee",
|
10698
|
-
"class": bem$
|
10698
|
+
"class": bem$w("wrap")
|
10699
10699
|
}, [createVNode("div", {
|
10700
10700
|
"ref": contentRef,
|
10701
10701
|
"style": style,
|
10702
|
-
"class": [bem$
|
10702
|
+
"class": [bem$w("content"), {
|
10703
10703
|
"van-ellipsis": ellipsis
|
10704
10704
|
}],
|
10705
10705
|
"onTransitionend": onTransitionEnd
|
@@ -10748,7 +10748,7 @@ var stdin_default$E = defineComponent({
|
|
10748
10748
|
} = props;
|
10749
10749
|
return withDirectives(createVNode("div", {
|
10750
10750
|
"role": "alert",
|
10751
|
-
"class": bem$
|
10751
|
+
"class": bem$w({
|
10752
10752
|
wrapable
|
10753
10753
|
}),
|
10754
10754
|
"style": {
|
@@ -10759,8 +10759,8 @@ var stdin_default$E = defineComponent({
|
|
10759
10759
|
};
|
10760
10760
|
}
|
10761
10761
|
});
|
10762
|
-
const NoticeBar = withInstall(stdin_default$
|
10763
|
-
const [name$
|
10762
|
+
const NoticeBar = withInstall(stdin_default$F);
|
10763
|
+
const [name$w, bem$v] = createNamespace("notify");
|
10764
10764
|
const notifyProps = extend({}, popupSharedProps, {
|
10765
10765
|
type: makeStringProp("danger"),
|
10766
10766
|
color: String,
|
@@ -10770,8 +10770,8 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
10770
10770
|
background: String,
|
10771
10771
|
lockScroll: Boolean
|
10772
10772
|
});
|
10773
|
-
var stdin_default$
|
10774
|
-
name: name$
|
10773
|
+
var stdin_default$E = defineComponent({
|
10774
|
+
name: name$w,
|
10775
10775
|
props: notifyProps,
|
10776
10776
|
emits: ["update:show"],
|
10777
10777
|
setup(props, {
|
@@ -10781,7 +10781,7 @@ var stdin_default$D = defineComponent({
|
|
10781
10781
|
const updateShow = (show) => emit("update:show", show);
|
10782
10782
|
return () => createVNode(Popup, {
|
10783
10783
|
"show": props.show,
|
10784
|
-
"class": [bem$
|
10784
|
+
"class": [bem$v([props.type]), props.className],
|
10785
10785
|
"style": {
|
10786
10786
|
color: props.color,
|
10787
10787
|
background: props.background
|
@@ -10811,7 +10811,7 @@ function initInstance() {
|
|
10811
10811
|
state,
|
10812
10812
|
toggle
|
10813
10813
|
} = usePopupState();
|
10814
|
-
return () => createVNode(stdin_default$
|
10814
|
+
return () => createVNode(stdin_default$E, mergeProps(state, {
|
10815
10815
|
"onUpdate:show": toggle
|
10816
10816
|
}), null);
|
10817
10817
|
}
|
@@ -10855,24 +10855,24 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
10855
10855
|
const resetNotifyDefaultOptions = () => {
|
10856
10856
|
currentOptions = getDefaultOptions();
|
10857
10857
|
};
|
10858
|
-
const Notify = withInstall(stdin_default$
|
10859
|
-
const [name$
|
10858
|
+
const Notify = withInstall(stdin_default$E);
|
10859
|
+
const [name$v, bem$u] = createNamespace("key");
|
10860
10860
|
const CollapseIcon = createVNode("svg", {
|
10861
|
-
"class": bem$
|
10861
|
+
"class": bem$u("collapse-icon"),
|
10862
10862
|
"viewBox": "0 0 30 24"
|
10863
10863
|
}, [createVNode("path", {
|
10864
10864
|
"d": "M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",
|
10865
10865
|
"fill": "currentColor"
|
10866
10866
|
}, null)]);
|
10867
10867
|
const DeleteIcon = createVNode("svg", {
|
10868
|
-
"class": bem$
|
10868
|
+
"class": bem$u("delete-icon"),
|
10869
10869
|
"viewBox": "0 0 32 22"
|
10870
10870
|
}, [createVNode("path", {
|
10871
10871
|
"d": "M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",
|
10872
10872
|
"fill": "currentColor"
|
10873
10873
|
}, null)]);
|
10874
|
-
var stdin_default$
|
10875
|
-
name: name$
|
10874
|
+
var stdin_default$D = defineComponent({
|
10875
|
+
name: name$v,
|
10876
10876
|
props: {
|
10877
10877
|
type: String,
|
10878
10878
|
text: numericProp,
|
@@ -10910,7 +10910,7 @@ var stdin_default$C = defineComponent({
|
|
10910
10910
|
const renderContent = () => {
|
10911
10911
|
if (props.loading) {
|
10912
10912
|
return createVNode(Loading, {
|
10913
|
-
"class": bem$
|
10913
|
+
"class": bem$u("loading-icon")
|
10914
10914
|
}, null);
|
10915
10915
|
}
|
10916
10916
|
const text = slots.default ? slots.default() : props.text;
|
@@ -10924,7 +10924,7 @@ var stdin_default$C = defineComponent({
|
|
10924
10924
|
}
|
10925
10925
|
};
|
10926
10926
|
return () => createVNode("div", {
|
10927
|
-
"class": bem$
|
10927
|
+
"class": bem$u("wrapper", {
|
10928
10928
|
wider: props.wider
|
10929
10929
|
}),
|
10930
10930
|
"onTouchstartPassive": onTouchStart,
|
@@ -10934,7 +10934,7 @@ var stdin_default$C = defineComponent({
|
|
10934
10934
|
}, [createVNode("div", {
|
10935
10935
|
"role": "button",
|
10936
10936
|
"tabindex": 0,
|
10937
|
-
"class": bem$
|
10937
|
+
"class": bem$u([props.color, {
|
10938
10938
|
large: props.large,
|
10939
10939
|
active: active.value,
|
10940
10940
|
delete: props.type === "delete"
|
@@ -10942,7 +10942,7 @@ var stdin_default$C = defineComponent({
|
|
10942
10942
|
}, [renderContent()])]);
|
10943
10943
|
}
|
10944
10944
|
});
|
10945
|
-
const [name$
|
10945
|
+
const [name$u, bem$t] = createNamespace("number-keyboard");
|
10946
10946
|
const numberKeyboardProps = {
|
10947
10947
|
show: Boolean,
|
10948
10948
|
title: String,
|
@@ -10974,8 +10974,8 @@ function shuffle(array) {
|
|
10974
10974
|
}
|
10975
10975
|
return array;
|
10976
10976
|
}
|
10977
|
-
var stdin_default$
|
10978
|
-
name: name$
|
10977
|
+
var stdin_default$C = defineComponent({
|
10978
|
+
name: name$u,
|
10979
10979
|
inheritAttrs: false,
|
10980
10980
|
props: numberKeyboardProps,
|
10981
10981
|
emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
|
@@ -11074,14 +11074,14 @@ var stdin_default$B = defineComponent({
|
|
11074
11074
|
return;
|
11075
11075
|
}
|
11076
11076
|
return createVNode("div", {
|
11077
|
-
"class": bem$
|
11077
|
+
"class": bem$t("header")
|
11078
11078
|
}, [leftSlot && createVNode("span", {
|
11079
|
-
"class": bem$
|
11079
|
+
"class": bem$t("title-left")
|
11080
11080
|
}, [leftSlot()]), title && createVNode("h2", {
|
11081
|
-
"class": bem$
|
11081
|
+
"class": bem$t("title")
|
11082
11082
|
}, [title]), showClose && createVNode("button", {
|
11083
11083
|
"type": "button",
|
11084
|
-
"class": [bem$
|
11084
|
+
"class": [bem$t("close"), HAPTICS_FEEDBACK],
|
11085
11085
|
"onClick": onClose
|
11086
11086
|
}, [closeButtonText])]);
|
11087
11087
|
};
|
@@ -11093,7 +11093,7 @@ var stdin_default$B = defineComponent({
|
|
11093
11093
|
if (key.type === "extra") {
|
11094
11094
|
keySlots.default = slots["extra-key"];
|
11095
11095
|
}
|
11096
|
-
return createVNode(stdin_default$
|
11096
|
+
return createVNode(stdin_default$D, {
|
11097
11097
|
"key": key.text,
|
11098
11098
|
"text": key.text,
|
11099
11099
|
"type": key.type,
|
@@ -11105,15 +11105,15 @@ var stdin_default$B = defineComponent({
|
|
11105
11105
|
const renderSidebar = () => {
|
11106
11106
|
if (props.theme === "custom") {
|
11107
11107
|
return createVNode("div", {
|
11108
|
-
"class": bem$
|
11109
|
-
}, [props.showDeleteKey && createVNode(stdin_default$
|
11108
|
+
"class": bem$t("sidebar")
|
11109
|
+
}, [props.showDeleteKey && createVNode(stdin_default$D, {
|
11110
11110
|
"large": true,
|
11111
11111
|
"text": props.deleteButtonText,
|
11112
11112
|
"type": "delete",
|
11113
11113
|
"onPress": onPress
|
11114
11114
|
}, {
|
11115
11115
|
delete: slots.delete
|
11116
|
-
}), createVNode(stdin_default$
|
11116
|
+
}), createVNode(stdin_default$D, {
|
11117
11117
|
"large": true,
|
11118
11118
|
"text": props.closeButtonText,
|
11119
11119
|
"type": "close",
|
@@ -11141,16 +11141,16 @@ var stdin_default$B = defineComponent({
|
|
11141
11141
|
default: () => [withDirectives(createVNode("div", mergeProps({
|
11142
11142
|
"ref": root,
|
11143
11143
|
"style": getZIndexStyle(props.zIndex),
|
11144
|
-
"class": bem$
|
11144
|
+
"class": bem$t({
|
11145
11145
|
unfit: !props.safeAreaInsetBottom,
|
11146
11146
|
"with-title": !!Title
|
11147
11147
|
}),
|
11148
11148
|
"onAnimationend": onAnimationEnd,
|
11149
11149
|
"onTouchstartPassive": stopPropagation
|
11150
11150
|
}, attrs), [Title, createVNode("div", {
|
11151
|
-
"class": bem$
|
11151
|
+
"class": bem$t("body")
|
11152
11152
|
}, [createVNode("div", {
|
11153
|
-
"class": bem$
|
11153
|
+
"class": bem$t("keys")
|
11154
11154
|
}, [renderKeys()]), renderSidebar()])]), [[vShow, props.show]])]
|
11155
11155
|
});
|
11156
11156
|
if (props.teleport) {
|
@@ -11164,8 +11164,8 @@ var stdin_default$B = defineComponent({
|
|
11164
11164
|
};
|
11165
11165
|
}
|
11166
11166
|
});
|
11167
|
-
const NumberKeyboard = withInstall(stdin_default$
|
11168
|
-
const [name$
|
11167
|
+
const NumberKeyboard = withInstall(stdin_default$C);
|
11168
|
+
const [name$t, bem$s, t$6] = createNamespace("pagination");
|
11169
11169
|
const makePage = (number, text, active) => ({
|
11170
11170
|
number,
|
11171
11171
|
text,
|
@@ -11184,8 +11184,8 @@ const paginationProps = {
|
|
11184
11184
|
showPrevButton: truthProp,
|
11185
11185
|
showNextButton: truthProp
|
11186
11186
|
};
|
11187
|
-
var stdin_default$
|
11188
|
-
name: name$
|
11187
|
+
var stdin_default$B = defineComponent({
|
11188
|
+
name: name$t,
|
11189
11189
|
props: paginationProps,
|
11190
11190
|
emits: ["change", "update:modelValue"],
|
11191
11191
|
setup(props, {
|
@@ -11247,7 +11247,7 @@ var stdin_default$A = defineComponent({
|
|
11247
11247
|
};
|
11248
11248
|
watchEffect(() => updateModelValue(props.modelValue));
|
11249
11249
|
const renderDesc = () => createVNode("li", {
|
11250
|
-
"class": bem$
|
11250
|
+
"class": bem$s("page-desc")
|
11251
11251
|
}, [slots.pageDesc ? slots.pageDesc() : `${props.modelValue}/${count.value}`]);
|
11252
11252
|
const renderPrevButton = () => {
|
11253
11253
|
const {
|
@@ -11261,7 +11261,7 @@ var stdin_default$A = defineComponent({
|
|
11261
11261
|
const slot = slots["prev-text"];
|
11262
11262
|
const disabled = modelValue === 1;
|
11263
11263
|
return createVNode("li", {
|
11264
|
-
"class": [bem$
|
11264
|
+
"class": [bem$s("item", {
|
11265
11265
|
disabled,
|
11266
11266
|
border: mode === "simple",
|
11267
11267
|
prev: true
|
@@ -11270,7 +11270,7 @@ var stdin_default$A = defineComponent({
|
|
11270
11270
|
"type": "button",
|
11271
11271
|
"disabled": disabled,
|
11272
11272
|
"onClick": () => updateModelValue(modelValue - 1, true)
|
11273
|
-
}, [slot ? slot() : props.prevText || t$
|
11273
|
+
}, [slot ? slot() : props.prevText || t$6("prev")])]);
|
11274
11274
|
};
|
11275
11275
|
const renderNextButton = () => {
|
11276
11276
|
const {
|
@@ -11284,7 +11284,7 @@ var stdin_default$A = defineComponent({
|
|
11284
11284
|
const slot = slots["next-text"];
|
11285
11285
|
const disabled = modelValue === count.value;
|
11286
11286
|
return createVNode("li", {
|
11287
|
-
"class": [bem$
|
11287
|
+
"class": [bem$s("item", {
|
11288
11288
|
disabled,
|
11289
11289
|
border: mode === "simple",
|
11290
11290
|
next: true
|
@@ -11293,10 +11293,10 @@ var stdin_default$A = defineComponent({
|
|
11293
11293
|
"type": "button",
|
11294
11294
|
"disabled": disabled,
|
11295
11295
|
"onClick": () => updateModelValue(modelValue + 1, true)
|
11296
|
-
}, [slot ? slot() : props.nextText || t$
|
11296
|
+
}, [slot ? slot() : props.nextText || t$6("next")])]);
|
11297
11297
|
};
|
11298
11298
|
const renderPages = () => pages.value.map((page) => createVNode("li", {
|
11299
|
-
"class": [bem$
|
11299
|
+
"class": [bem$s("item", {
|
11300
11300
|
active: page.active,
|
11301
11301
|
page: true
|
11302
11302
|
}), BORDER_SURROUND]
|
@@ -11307,14 +11307,14 @@ var stdin_default$A = defineComponent({
|
|
11307
11307
|
}, [slots.page ? slots.page(page) : page.text])]));
|
11308
11308
|
return () => createVNode("nav", {
|
11309
11309
|
"role": "navigation",
|
11310
|
-
"class": bem$
|
11310
|
+
"class": bem$s()
|
11311
11311
|
}, [createVNode("ul", {
|
11312
|
-
"class": bem$
|
11312
|
+
"class": bem$s("items")
|
11313
11313
|
}, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
|
11314
11314
|
}
|
11315
11315
|
});
|
11316
|
-
const Pagination = withInstall(stdin_default$
|
11317
|
-
const [name$
|
11316
|
+
const Pagination = withInstall(stdin_default$B);
|
11317
|
+
const [name$s, bem$r] = createNamespace("password-input");
|
11318
11318
|
const passwordInputProps = {
|
11319
11319
|
info: String,
|
11320
11320
|
mask: truthProp,
|
@@ -11324,8 +11324,8 @@ const passwordInputProps = {
|
|
11324
11324
|
focused: Boolean,
|
11325
11325
|
errorInfo: String
|
11326
11326
|
};
|
11327
|
-
var stdin_default$
|
11328
|
-
name: name$
|
11327
|
+
var stdin_default$A = defineComponent({
|
11328
|
+
name: name$s,
|
11329
11329
|
props: passwordInputProps,
|
11330
11330
|
emits: ["focus"],
|
11331
11331
|
setup(props, {
|
@@ -11357,7 +11357,7 @@ var stdin_default$z = defineComponent({
|
|
11357
11357
|
Points.push(createVNode("li", {
|
11358
11358
|
"class": [{
|
11359
11359
|
[BORDER_LEFT]: showBorder
|
11360
|
-
}, bem$
|
11360
|
+
}, bem$r("item", {
|
11361
11361
|
focus: showCursor
|
11362
11362
|
})],
|
11363
11363
|
"style": style
|
@@ -11366,7 +11366,7 @@ var stdin_default$z = defineComponent({
|
|
11366
11366
|
visibility: char ? "visible" : "hidden"
|
11367
11367
|
}
|
11368
11368
|
}, null) : char, showCursor && createVNode("div", {
|
11369
|
-
"class": bem$
|
11369
|
+
"class": bem$r("cursor")
|
11370
11370
|
}, null)]));
|
11371
11371
|
}
|
11372
11372
|
return Points;
|
@@ -11374,20 +11374,20 @@ var stdin_default$z = defineComponent({
|
|
11374
11374
|
return () => {
|
11375
11375
|
const info = props.errorInfo || props.info;
|
11376
11376
|
return createVNode("div", {
|
11377
|
-
"class": bem$
|
11377
|
+
"class": bem$r()
|
11378
11378
|
}, [createVNode("ul", {
|
11379
|
-
"class": [bem$
|
11379
|
+
"class": [bem$r("security"), {
|
11380
11380
|
[BORDER_SURROUND]: !props.gutter
|
11381
11381
|
}],
|
11382
11382
|
"onTouchstartPassive": onTouchStart
|
11383
11383
|
}, [renderPoints()]), info && createVNode("div", {
|
11384
|
-
"class": bem$
|
11384
|
+
"class": bem$r(props.errorInfo ? "error-info" : "info")
|
11385
11385
|
}, [info])]);
|
11386
11386
|
};
|
11387
11387
|
}
|
11388
11388
|
});
|
11389
|
-
const PasswordInput = withInstall(stdin_default$
|
11390
|
-
const PickerGroup = withInstall(stdin_default$
|
11389
|
+
const PasswordInput = withInstall(stdin_default$A);
|
11390
|
+
const PickerGroup = withInstall(stdin_default$1u);
|
11391
11391
|
const useSyncPropRef = (getProp, setProp) => {
|
11392
11392
|
const propRef = ref(getProp());
|
11393
11393
|
watch(getProp, (value) => {
|
@@ -11402,7 +11402,7 @@ const useSyncPropRef = (getProp, setProp) => {
|
|
11402
11402
|
});
|
11403
11403
|
return propRef;
|
11404
11404
|
};
|
11405
|
-
const [name$
|
11405
|
+
const [name$r, bem$q] = createNamespace("popover");
|
11406
11406
|
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
11407
11407
|
const popoverProps = {
|
11408
11408
|
show: Boolean,
|
@@ -11428,8 +11428,8 @@ const popoverProps = {
|
|
11428
11428
|
default: "body"
|
11429
11429
|
}
|
11430
11430
|
};
|
11431
|
-
var stdin_default$
|
11432
|
-
name: name$
|
11431
|
+
var stdin_default$z = defineComponent({
|
11432
|
+
name: name$r,
|
11433
11433
|
props: popoverProps,
|
11434
11434
|
emits: ["select", "touchstart", "update:show"],
|
11435
11435
|
setup(props, {
|
@@ -11510,9 +11510,9 @@ var stdin_default$y = defineComponent({
|
|
11510
11510
|
return [action.icon && createVNode(Icon, {
|
11511
11511
|
"name": action.icon,
|
11512
11512
|
"classPrefix": props.iconPrefix,
|
11513
|
-
"class": bem$
|
11513
|
+
"class": bem$q("action-icon")
|
11514
11514
|
}, null), createVNode("div", {
|
11515
|
-
"class": [bem$
|
11515
|
+
"class": [bem$q("action-text"), BORDER_BOTTOM]
|
11516
11516
|
}, [action.text])];
|
11517
11517
|
};
|
11518
11518
|
const renderAction = (action, index) => {
|
@@ -11524,7 +11524,7 @@ var stdin_default$y = defineComponent({
|
|
11524
11524
|
} = action;
|
11525
11525
|
return createVNode("div", {
|
11526
11526
|
"role": "menuitem",
|
11527
|
-
"class": [bem$
|
11527
|
+
"class": [bem$q("action", {
|
11528
11528
|
disabled,
|
11529
11529
|
"with-icon": icon
|
11530
11530
|
}), className],
|
@@ -11561,29 +11561,29 @@ var stdin_default$y = defineComponent({
|
|
11561
11561
|
var _a;
|
11562
11562
|
return createVNode(Fragment, null, [createVNode("span", {
|
11563
11563
|
"ref": wrapperRef,
|
11564
|
-
"class": bem$
|
11564
|
+
"class": bem$q("wrapper"),
|
11565
11565
|
"onClick": onClickWrapper
|
11566
11566
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Popup, mergeProps({
|
11567
11567
|
"ref": popoverRef,
|
11568
11568
|
"show": show.value,
|
11569
|
-
"class": bem$
|
11569
|
+
"class": bem$q([props.theme]),
|
11570
11570
|
"position": "",
|
11571
11571
|
"transition": "van-popover-zoom",
|
11572
11572
|
"lockScroll": false,
|
11573
11573
|
"onUpdate:show": updateShow
|
11574
11574
|
}, attrs, pick(props, popupProps)), {
|
11575
11575
|
default: () => [props.showArrow && createVNode("div", {
|
11576
|
-
"class": bem$
|
11576
|
+
"class": bem$q("arrow")
|
11577
11577
|
}, null), createVNode("div", {
|
11578
11578
|
"role": "menu",
|
11579
|
-
"class": bem$
|
11579
|
+
"class": bem$q("content")
|
11580
11580
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
11581
11581
|
})]);
|
11582
11582
|
};
|
11583
11583
|
}
|
11584
11584
|
});
|
11585
|
-
const Popover = withInstall(stdin_default$
|
11586
|
-
const [name$
|
11585
|
+
const Popover = withInstall(stdin_default$z);
|
11586
|
+
const [name$q, bem$p] = createNamespace("progress");
|
11587
11587
|
const progressProps = {
|
11588
11588
|
color: String,
|
11589
11589
|
inactive: Boolean,
|
@@ -11599,8 +11599,8 @@ const progressProps = {
|
|
11599
11599
|
validator: (value) => +value >= 0 && +value <= 100
|
11600
11600
|
}
|
11601
11601
|
};
|
11602
|
-
var stdin_default$
|
11603
|
-
name: name$
|
11602
|
+
var stdin_default$y = defineComponent({
|
11603
|
+
name: name$q,
|
11604
11604
|
props: progressProps,
|
11605
11605
|
setup(props) {
|
11606
11606
|
const background = computed(() => props.inactive ? void 0 : props.color);
|
@@ -11621,7 +11621,7 @@ var stdin_default$x = defineComponent({
|
|
11621
11621
|
};
|
11622
11622
|
return createVNode("span", {
|
11623
11623
|
"style": style,
|
11624
|
-
"class": bem$
|
11624
|
+
"class": bem$p("pivot", {
|
11625
11625
|
inactive: props.inactive
|
11626
11626
|
})
|
11627
11627
|
}, [text]);
|
@@ -11642,10 +11642,10 @@ var stdin_default$x = defineComponent({
|
|
11642
11642
|
background: background.value
|
11643
11643
|
};
|
11644
11644
|
return createVNode("div", {
|
11645
|
-
"class": bem$
|
11645
|
+
"class": bem$p(),
|
11646
11646
|
"style": rootStyle
|
11647
11647
|
}, [createVNode("span", {
|
11648
|
-
"class": bem$
|
11648
|
+
"class": bem$p("portion", {
|
11649
11649
|
inactive: props.inactive
|
11650
11650
|
}),
|
11651
11651
|
"style": portionStyle
|
@@ -11653,8 +11653,8 @@ var stdin_default$x = defineComponent({
|
|
11653
11653
|
};
|
11654
11654
|
}
|
11655
11655
|
});
|
11656
|
-
const Progress = withInstall(stdin_default$
|
11657
|
-
const [name$
|
11656
|
+
const Progress = withInstall(stdin_default$y);
|
11657
|
+
const [name$p, bem$o, t$5] = createNamespace("pull-refresh");
|
11658
11658
|
const DEFAULT_HEAD_HEIGHT = 50;
|
11659
11659
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
11660
11660
|
const pullRefreshProps = {
|
@@ -11669,8 +11669,8 @@ const pullRefreshProps = {
|
|
11669
11669
|
successDuration: makeNumericProp(500),
|
11670
11670
|
animationDuration: makeNumericProp(300)
|
11671
11671
|
};
|
11672
|
-
var stdin_default$
|
11673
|
-
name: name$
|
11672
|
+
var stdin_default$x = defineComponent({
|
11673
|
+
name: name$p,
|
11674
11674
|
props: pullRefreshProps,
|
11675
11675
|
emits: ["change", "refresh", "update:modelValue"],
|
11676
11676
|
setup(props, {
|
@@ -11730,7 +11730,7 @@ var stdin_default$w = defineComponent({
|
|
11730
11730
|
if (status === "normal") {
|
11731
11731
|
return "";
|
11732
11732
|
}
|
11733
|
-
return props[`${status}Text`] || t$
|
11733
|
+
return props[`${status}Text`] || t$5(status);
|
11734
11734
|
};
|
11735
11735
|
const renderStatus = () => {
|
11736
11736
|
const {
|
@@ -11745,12 +11745,12 @@ var stdin_default$w = defineComponent({
|
|
11745
11745
|
const nodes = [];
|
11746
11746
|
if (TEXT_STATUS.includes(status)) {
|
11747
11747
|
nodes.push(createVNode("div", {
|
11748
|
-
"class": bem$
|
11748
|
+
"class": bem$o("text")
|
11749
11749
|
}, [getStatusText()]));
|
11750
11750
|
}
|
11751
11751
|
if (status === "loading") {
|
11752
11752
|
nodes.push(createVNode(Loading, {
|
11753
|
-
"class": bem$
|
11753
|
+
"class": bem$o("loading")
|
11754
11754
|
}, {
|
11755
11755
|
default: getStatusText
|
11756
11756
|
}));
|
@@ -11823,23 +11823,23 @@ var stdin_default$w = defineComponent({
|
|
11823
11823
|
};
|
11824
11824
|
return createVNode("div", {
|
11825
11825
|
"ref": root,
|
11826
|
-
"class": bem$
|
11826
|
+
"class": bem$o()
|
11827
11827
|
}, [createVNode("div", {
|
11828
11828
|
"ref": track,
|
11829
|
-
"class": bem$
|
11829
|
+
"class": bem$o("track"),
|
11830
11830
|
"style": trackStyle,
|
11831
11831
|
"onTouchstartPassive": onTouchStart,
|
11832
11832
|
"onTouchend": onTouchEnd,
|
11833
11833
|
"onTouchcancel": onTouchEnd
|
11834
11834
|
}, [createVNode("div", {
|
11835
|
-
"class": bem$
|
11835
|
+
"class": bem$o("head"),
|
11836
11836
|
"style": getHeadStyle()
|
11837
11837
|
}, [renderStatus()]), (_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
11838
11838
|
};
|
11839
11839
|
}
|
11840
11840
|
});
|
11841
|
-
const PullRefresh = withInstall(stdin_default$
|
11842
|
-
const [name$
|
11841
|
+
const PullRefresh = withInstall(stdin_default$x);
|
11842
|
+
const [name$o, bem$n] = createNamespace("rate");
|
11843
11843
|
function getRateStatus(value, index, allowHalf, readonly) {
|
11844
11844
|
if (value >= index) {
|
11845
11845
|
return {
|
@@ -11881,8 +11881,8 @@ const rateProps = {
|
|
11881
11881
|
modelValue: makeNumberProp(0),
|
11882
11882
|
disabledColor: String
|
11883
11883
|
};
|
11884
|
-
var stdin_default$
|
11885
|
-
name: name$
|
11884
|
+
var stdin_default$w = defineComponent({
|
11885
|
+
name: name$o,
|
11886
11886
|
props: rateProps,
|
11887
11887
|
emits: ["change", "update:modelValue"],
|
11888
11888
|
setup(props, {
|
@@ -12001,7 +12001,7 @@ var stdin_default$v = defineComponent({
|
|
12001
12001
|
"ref": setItemRefs(index),
|
12002
12002
|
"role": "radio",
|
12003
12003
|
"style": style,
|
12004
|
-
"class": bem$
|
12004
|
+
"class": bem$n("item"),
|
12005
12005
|
"tabindex": disabled ? void 0 : 0,
|
12006
12006
|
"aria-setsize": count,
|
12007
12007
|
"aria-posinset": score,
|
@@ -12010,7 +12010,7 @@ var stdin_default$v = defineComponent({
|
|
12010
12010
|
}, [createVNode(Icon, {
|
12011
12011
|
"size": size,
|
12012
12012
|
"name": isFull ? icon : voidIcon,
|
12013
|
-
"class": bem$
|
12013
|
+
"class": bem$n("icon", {
|
12014
12014
|
disabled,
|
12015
12015
|
full: isFull
|
12016
12016
|
}),
|
@@ -12022,7 +12022,7 @@ var stdin_default$v = defineComponent({
|
|
12022
12022
|
width: item.value + "em"
|
12023
12023
|
},
|
12024
12024
|
"name": isVoid ? voidIcon : icon,
|
12025
|
-
"class": bem$
|
12025
|
+
"class": bem$n("icon", ["half", {
|
12026
12026
|
disabled,
|
12027
12027
|
full: !isVoid
|
12028
12028
|
}]),
|
@@ -12037,7 +12037,7 @@ var stdin_default$v = defineComponent({
|
|
12037
12037
|
return () => createVNode("div", {
|
12038
12038
|
"ref": groupRef,
|
12039
12039
|
"role": "radiogroup",
|
12040
|
-
"class": bem$
|
12040
|
+
"class": bem$n({
|
12041
12041
|
readonly: props.readonly,
|
12042
12042
|
disabled: props.disabled
|
12043
12043
|
}),
|
@@ -12048,9 +12048,9 @@ var stdin_default$v = defineComponent({
|
|
12048
12048
|
}, [list.value.map(renderStar)]);
|
12049
12049
|
}
|
12050
12050
|
});
|
12051
|
-
const Rate = withInstall(stdin_default$
|
12052
|
-
const Row = withInstall(stdin_default$
|
12053
|
-
const [name$
|
12051
|
+
const Rate = withInstall(stdin_default$w);
|
12052
|
+
const Row = withInstall(stdin_default$12);
|
12053
|
+
const [name$n, bem$m, t$4] = createNamespace("search");
|
12054
12054
|
const searchProps = extend({}, fieldSharedProps, {
|
12055
12055
|
label: String,
|
12056
12056
|
shape: makeStringProp("square"),
|
@@ -12060,8 +12060,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
12060
12060
|
background: String,
|
12061
12061
|
showAction: Boolean
|
12062
12062
|
});
|
12063
|
-
var stdin_default$
|
12064
|
-
name: name$
|
12063
|
+
var stdin_default$v = defineComponent({
|
12064
|
+
name: name$n,
|
12065
12065
|
props: searchProps,
|
12066
12066
|
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
12067
12067
|
setup(props, {
|
@@ -12088,16 +12088,16 @@ var stdin_default$u = defineComponent({
|
|
12088
12088
|
const renderLabel = () => {
|
12089
12089
|
if (slots.label || props.label) {
|
12090
12090
|
return createVNode("label", {
|
12091
|
-
"class": bem$
|
12091
|
+
"class": bem$m("label"),
|
12092
12092
|
"for": getInputId()
|
12093
12093
|
}, [slots.label ? slots.label() : props.label]);
|
12094
12094
|
}
|
12095
12095
|
};
|
12096
12096
|
const renderAction = () => {
|
12097
12097
|
if (props.showAction) {
|
12098
|
-
const text = props.actionText || t$
|
12098
|
+
const text = props.actionText || t$4("cancel");
|
12099
12099
|
return createVNode("div", {
|
12100
|
-
"class": bem$
|
12100
|
+
"class": bem$m("action"),
|
12101
12101
|
"role": "button",
|
12102
12102
|
"tabindex": 0,
|
12103
12103
|
"onClick": onCancel
|
@@ -12127,7 +12127,7 @@ var stdin_default$u = defineComponent({
|
|
12127
12127
|
return createVNode(Field, mergeProps({
|
12128
12128
|
"ref": fieldRef,
|
12129
12129
|
"type": "search",
|
12130
|
-
"class": bem$
|
12130
|
+
"class": bem$m("field"),
|
12131
12131
|
"border": false,
|
12132
12132
|
"onBlur": onBlur,
|
12133
12133
|
"onFocus": onFocus,
|
@@ -12146,19 +12146,19 @@ var stdin_default$u = defineComponent({
|
|
12146
12146
|
return () => {
|
12147
12147
|
var _a;
|
12148
12148
|
return createVNode("div", {
|
12149
|
-
"class": bem$
|
12149
|
+
"class": bem$m({
|
12150
12150
|
"show-action": props.showAction
|
12151
12151
|
}),
|
12152
12152
|
"style": {
|
12153
12153
|
background: props.background
|
12154
12154
|
}
|
12155
12155
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), createVNode("div", {
|
12156
|
-
"class": bem$
|
12156
|
+
"class": bem$m("content", props.shape)
|
12157
12157
|
}, [renderLabel(), renderField()]), renderAction()]);
|
12158
12158
|
};
|
12159
12159
|
}
|
12160
12160
|
});
|
12161
|
-
const Search = withInstall(stdin_default$
|
12161
|
+
const Search = withInstall(stdin_default$v);
|
12162
12162
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
12163
12163
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
12164
12164
|
const iconMap = {
|
@@ -12171,7 +12171,7 @@ const iconMap = {
|
|
12171
12171
|
"weapp-qrcode": "miniprogram-o",
|
12172
12172
|
"wechat-moments": "wechat-moments"
|
12173
12173
|
};
|
12174
|
-
const [name$
|
12174
|
+
const [name$m, bem$l, t$3] = createNamespace("share-sheet");
|
12175
12175
|
const shareSheetProps = extend({}, popupSharedProps, {
|
12176
12176
|
title: String,
|
12177
12177
|
round: truthProp,
|
@@ -12181,8 +12181,8 @@ const shareSheetProps = extend({}, popupSharedProps, {
|
|
12181
12181
|
closeOnPopstate: truthProp,
|
12182
12182
|
safeAreaInsetBottom: truthProp
|
12183
12183
|
});
|
12184
|
-
var stdin_default$
|
12185
|
-
name: name$
|
12184
|
+
var stdin_default$u = defineComponent({
|
12185
|
+
name: name$m,
|
12186
12186
|
props: shareSheetProps,
|
12187
12187
|
emits: ["cancel", "select", "update:show"],
|
12188
12188
|
setup(props, {
|
@@ -12200,11 +12200,11 @@ var stdin_default$t = defineComponent({
|
|
12200
12200
|
const description = slots.description ? slots.description() : props.description;
|
12201
12201
|
if (title || description) {
|
12202
12202
|
return createVNode("div", {
|
12203
|
-
"class": bem$
|
12203
|
+
"class": bem$l("header")
|
12204
12204
|
}, [title && createVNode("h2", {
|
12205
|
-
"class": bem$
|
12205
|
+
"class": bem$l("title")
|
12206
12206
|
}, [title]), description && createVNode("span", {
|
12207
|
-
"class": bem$
|
12207
|
+
"class": bem$l("description")
|
12208
12208
|
}, [description])]);
|
12209
12209
|
}
|
12210
12210
|
};
|
@@ -12212,11 +12212,11 @@ var stdin_default$t = defineComponent({
|
|
12212
12212
|
if (isImage(icon)) {
|
12213
12213
|
return createVNode("img", {
|
12214
12214
|
"src": icon,
|
12215
|
-
"class": bem$
|
12215
|
+
"class": bem$l("image-icon")
|
12216
12216
|
}, null);
|
12217
12217
|
}
|
12218
12218
|
return createVNode("div", {
|
12219
|
-
"class": bem$
|
12219
|
+
"class": bem$l("icon", [icon])
|
12220
12220
|
}, [createVNode(Icon, {
|
12221
12221
|
"name": iconMap[icon] || icon
|
12222
12222
|
}, null)]);
|
@@ -12231,16 +12231,16 @@ var stdin_default$t = defineComponent({
|
|
12231
12231
|
return createVNode("div", {
|
12232
12232
|
"role": "button",
|
12233
12233
|
"tabindex": 0,
|
12234
|
-
"class": [bem$
|
12234
|
+
"class": [bem$l("option"), className, HAPTICS_FEEDBACK],
|
12235
12235
|
"onClick": () => onSelect(option, index)
|
12236
12236
|
}, [renderIcon(icon), name2 && createVNode("span", {
|
12237
|
-
"class": bem$
|
12237
|
+
"class": bem$l("name")
|
12238
12238
|
}, [name2]), description && createVNode("span", {
|
12239
|
-
"class": bem$
|
12239
|
+
"class": bem$l("option-description")
|
12240
12240
|
}, [description])]);
|
12241
12241
|
};
|
12242
12242
|
const renderOptions = (options, border) => createVNode("div", {
|
12243
|
-
"class": bem$
|
12243
|
+
"class": bem$l("options", {
|
12244
12244
|
border
|
12245
12245
|
})
|
12246
12246
|
}, [options.map(renderOption)]);
|
@@ -12255,17 +12255,17 @@ var stdin_default$t = defineComponent({
|
|
12255
12255
|
};
|
12256
12256
|
const renderCancelButton = () => {
|
12257
12257
|
var _a;
|
12258
|
-
const cancelText = (_a = props.cancelText) != null ? _a : t$
|
12258
|
+
const cancelText = (_a = props.cancelText) != null ? _a : t$3("cancel");
|
12259
12259
|
if (slots.cancel || cancelText) {
|
12260
12260
|
return createVNode("button", {
|
12261
12261
|
"type": "button",
|
12262
|
-
"class": bem$
|
12262
|
+
"class": bem$l("cancel"),
|
12263
12263
|
"onClick": onCancel
|
12264
12264
|
}, [slots.cancel ? slots.cancel() : cancelText]);
|
12265
12265
|
}
|
12266
12266
|
};
|
12267
12267
|
return () => createVNode(Popup, mergeProps({
|
12268
|
-
"class": bem$
|
12268
|
+
"class": bem$l(),
|
12269
12269
|
"position": "bottom",
|
12270
12270
|
"onUpdate:show": updateShow
|
12271
12271
|
}, pick(props, popupInheritKeys)), {
|
@@ -12273,14 +12273,14 @@ var stdin_default$t = defineComponent({
|
|
12273
12273
|
});
|
12274
12274
|
}
|
12275
12275
|
});
|
12276
|
-
const ShareSheet = withInstall(stdin_default$
|
12277
|
-
const [name$
|
12278
|
-
const SIDEBAR_KEY = Symbol(name$
|
12276
|
+
const ShareSheet = withInstall(stdin_default$u);
|
12277
|
+
const [name$l, bem$k] = createNamespace("sidebar");
|
12278
|
+
const SIDEBAR_KEY = Symbol(name$l);
|
12279
12279
|
const sidebarProps = {
|
12280
12280
|
modelValue: makeNumericProp(0)
|
12281
12281
|
};
|
12282
|
-
var stdin_default$
|
12283
|
-
name: name$
|
12282
|
+
var stdin_default$t = defineComponent({
|
12283
|
+
name: name$l,
|
12284
12284
|
props: sidebarProps,
|
12285
12285
|
emits: ["change", "update:modelValue"],
|
12286
12286
|
setup(props, {
|
@@ -12305,13 +12305,13 @@ var stdin_default$s = defineComponent({
|
|
12305
12305
|
var _a;
|
12306
12306
|
return createVNode("div", {
|
12307
12307
|
"role": "tablist",
|
12308
|
-
"class": bem$
|
12308
|
+
"class": bem$k()
|
12309
12309
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
12310
12310
|
};
|
12311
12311
|
}
|
12312
12312
|
});
|
12313
|
-
const Sidebar = withInstall(stdin_default$
|
12314
|
-
const [name$
|
12313
|
+
const Sidebar = withInstall(stdin_default$t);
|
12314
|
+
const [name$k, bem$j] = createNamespace("sidebar-item");
|
12315
12315
|
const sidebarItemProps = extend({}, routeProps, {
|
12316
12316
|
dot: Boolean,
|
12317
12317
|
title: String,
|
@@ -12319,8 +12319,8 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
12319
12319
|
disabled: Boolean,
|
12320
12320
|
badgeProps: Object
|
12321
12321
|
});
|
12322
|
-
var stdin_default$
|
12323
|
-
name: name$
|
12322
|
+
var stdin_default$s = defineComponent({
|
12323
|
+
name: name$k,
|
12324
12324
|
props: sidebarItemProps,
|
12325
12325
|
emits: ["click"],
|
12326
12326
|
setup(props, {
|
@@ -12356,7 +12356,7 @@ var stdin_default$r = defineComponent({
|
|
12356
12356
|
const selected = index.value === parent.getActive();
|
12357
12357
|
return createVNode("div", {
|
12358
12358
|
"role": "tab",
|
12359
|
-
"class": bem$
|
12359
|
+
"class": bem$j({
|
12360
12360
|
select: selected,
|
12361
12361
|
disabled
|
12362
12362
|
}),
|
@@ -12365,7 +12365,7 @@ var stdin_default$r = defineComponent({
|
|
12365
12365
|
"onClick": onClick
|
12366
12366
|
}, [createVNode(Badge, mergeProps({
|
12367
12367
|
"dot": dot,
|
12368
|
-
"class": bem$
|
12368
|
+
"class": bem$j("text"),
|
12369
12369
|
"content": badge
|
12370
12370
|
}, props.badgeProps), {
|
12371
12371
|
default: () => [slots.title ? slots.title() : title]
|
@@ -12373,7 +12373,128 @@ var stdin_default$r = defineComponent({
|
|
12373
12373
|
};
|
12374
12374
|
}
|
12375
12375
|
});
|
12376
|
-
const SidebarItem = withInstall(stdin_default$
|
12376
|
+
const SidebarItem = withInstall(stdin_default$s);
|
12377
|
+
const [name$j, bem$i, t$2] = createNamespace("signature");
|
12378
|
+
const signatureProps = {
|
12379
|
+
tips: String,
|
12380
|
+
type: makeStringProp("png"),
|
12381
|
+
penColor: makeStringProp("#000"),
|
12382
|
+
lineWidth: makeNumberProp(3),
|
12383
|
+
clearButtonText: String,
|
12384
|
+
confirmButtonText: String
|
12385
|
+
};
|
12386
|
+
const hasCanvasSupport = () => {
|
12387
|
+
var _a;
|
12388
|
+
const canvas = document.createElement("canvas");
|
12389
|
+
return !!((_a = canvas.getContext) == null ? void 0 : _a.call(canvas, "2d"));
|
12390
|
+
};
|
12391
|
+
var stdin_default$r = defineComponent({
|
12392
|
+
name: name$j,
|
12393
|
+
props: signatureProps,
|
12394
|
+
emits: ["submit", "clear", "start", "end", "signing"],
|
12395
|
+
setup(props, {
|
12396
|
+
emit
|
12397
|
+
}) {
|
12398
|
+
const canvasRef = ref();
|
12399
|
+
const wrapRef = ref();
|
12400
|
+
const state = reactive({
|
12401
|
+
width: 0,
|
12402
|
+
height: 0,
|
12403
|
+
ctx: null
|
12404
|
+
});
|
12405
|
+
let canvasRect;
|
12406
|
+
const isRenderCanvas = inBrowser ? hasCanvasSupport() : true;
|
12407
|
+
const touchStart = () => {
|
12408
|
+
if (!state.ctx) {
|
12409
|
+
return false;
|
12410
|
+
}
|
12411
|
+
state.ctx.beginPath();
|
12412
|
+
state.ctx.lineWidth = props.lineWidth;
|
12413
|
+
state.ctx.strokeStyle = props.penColor;
|
12414
|
+
canvasRect = useRect(canvasRef);
|
12415
|
+
emit("start");
|
12416
|
+
};
|
12417
|
+
const touchMove = (event) => {
|
12418
|
+
var _a, _b;
|
12419
|
+
if (!state.ctx) {
|
12420
|
+
return false;
|
12421
|
+
}
|
12422
|
+
preventDefault(event);
|
12423
|
+
const touch = event.touches[0];
|
12424
|
+
const mouseX = touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0);
|
12425
|
+
const mouseY = touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0);
|
12426
|
+
state.ctx.lineCap = "round";
|
12427
|
+
state.ctx.lineJoin = "round";
|
12428
|
+
(_a = state.ctx) == null ? void 0 : _a.lineTo(mouseX, mouseY);
|
12429
|
+
(_b = state.ctx) == null ? void 0 : _b.stroke();
|
12430
|
+
emit("signing", event);
|
12431
|
+
};
|
12432
|
+
const touchEnd = (event) => {
|
12433
|
+
preventDefault(event);
|
12434
|
+
emit("end");
|
12435
|
+
};
|
12436
|
+
const isCanvasEmpty = (canvas) => {
|
12437
|
+
const empty = document.createElement("canvas");
|
12438
|
+
empty.width = canvas.width;
|
12439
|
+
empty.height = canvas.height;
|
12440
|
+
return canvas.toDataURL() === empty.toDataURL();
|
12441
|
+
};
|
12442
|
+
const submit = () => {
|
12443
|
+
const canvas = canvasRef.value;
|
12444
|
+
if (!canvas) {
|
12445
|
+
return;
|
12446
|
+
}
|
12447
|
+
const isEmpty = isCanvasEmpty(canvas);
|
12448
|
+
const image = isEmpty ? "" : canvas.toDataURL(`image/${props.type}`, props.type === "jpg" ? 0.9 : null);
|
12449
|
+
emit("submit", {
|
12450
|
+
image,
|
12451
|
+
canvas
|
12452
|
+
});
|
12453
|
+
};
|
12454
|
+
const clear = () => {
|
12455
|
+
if (state.ctx) {
|
12456
|
+
state.ctx.clearRect(0, 0, state.width, state.height);
|
12457
|
+
state.ctx.closePath();
|
12458
|
+
}
|
12459
|
+
emit("clear");
|
12460
|
+
};
|
12461
|
+
onMounted(() => {
|
12462
|
+
var _a, _b, _c;
|
12463
|
+
if (isRenderCanvas) {
|
12464
|
+
state.ctx = (_a = canvasRef.value) == null ? void 0 : _a.getContext("2d");
|
12465
|
+
state.width = ((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0;
|
12466
|
+
state.height = ((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0;
|
12467
|
+
}
|
12468
|
+
});
|
12469
|
+
return () => createVNode("div", {
|
12470
|
+
"class": bem$i()
|
12471
|
+
}, [createVNode("div", {
|
12472
|
+
"class": bem$i("content"),
|
12473
|
+
"ref": wrapRef
|
12474
|
+
}, [isRenderCanvas ? createVNode("canvas", {
|
12475
|
+
"ref": canvasRef,
|
12476
|
+
"width": state.width,
|
12477
|
+
"height": state.height,
|
12478
|
+
"onTouchstartPassive": touchStart,
|
12479
|
+
"onTouchmove": touchMove,
|
12480
|
+
"onTouchend": touchEnd
|
12481
|
+
}, null) : createVNode("p", null, [props.tips])]), createVNode("div", {
|
12482
|
+
"class": bem$i("footer")
|
12483
|
+
}, [createVNode(Button, {
|
12484
|
+
"size": "small",
|
12485
|
+
"onClick": clear
|
12486
|
+
}, {
|
12487
|
+
default: () => [props.clearButtonText || t$2("clear")]
|
12488
|
+
}), createVNode(Button, {
|
12489
|
+
"type": "primary",
|
12490
|
+
"size": "small",
|
12491
|
+
"onClick": submit
|
12492
|
+
}, {
|
12493
|
+
default: () => [props.confirmButtonText || t$2("confirm")]
|
12494
|
+
})])]);
|
12495
|
+
}
|
12496
|
+
});
|
12497
|
+
const Signature = withInstall(stdin_default$r);
|
12377
12498
|
const [name$i, bem$h] = createNamespace("skeleton-title");
|
12378
12499
|
const skeletonTitleProps = {
|
12379
12500
|
round: Boolean,
|
@@ -15402,7 +15523,7 @@ const Lazyload = {
|
|
15402
15523
|
});
|
15403
15524
|
}
|
15404
15525
|
};
|
15405
|
-
const version = "4.
|
15526
|
+
const version = "4.3.1";
|
15406
15527
|
function install(app) {
|
15407
15528
|
const components = [
|
15408
15529
|
ActionBar,
|
@@ -15473,6 +15594,7 @@ function install(app) {
|
|
15473
15594
|
ShareSheet,
|
15474
15595
|
Sidebar,
|
15475
15596
|
SidebarItem,
|
15597
|
+
Signature,
|
15476
15598
|
Skeleton,
|
15477
15599
|
SkeletonAvatar,
|
15478
15600
|
SkeletonImage,
|
@@ -15584,6 +15706,7 @@ export {
|
|
15584
15706
|
ShareSheet,
|
15585
15707
|
Sidebar,
|
15586
15708
|
SidebarItem,
|
15709
|
+
Signature,
|
15587
15710
|
Skeleton,
|
15588
15711
|
SkeletonAvatar,
|
15589
15712
|
SkeletonImage,
|