vant 4.7.3 → 4.8.0
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/calendar/Calendar.mjs +20 -17
- package/es/checkbox/Checker.mjs +7 -1
- package/es/col/Col.mjs +11 -3
- package/es/config-provider/types.d.ts +1 -1
- package/es/highlight/Highlight.d.ts +96 -0
- package/es/highlight/Highlight.mjs +122 -0
- package/es/highlight/index.css +1 -0
- package/es/highlight/index.d.ts +73 -0
- package/es/highlight/index.mjs +10 -0
- package/es/highlight/style/index.d.ts +1 -0
- package/es/highlight/style/index.mjs +2 -0
- package/es/highlight/types.d.ts +3 -0
- package/es/highlight/types.mjs +0 -0
- package/es/image-preview/ImagePreview.mjs +10 -0
- package/es/image-preview/ImagePreviewItem.d.ts +27 -1
- package/es/image-preview/ImagePreviewItem.mjs +17 -12
- package/es/image-preview/types.d.ts +7 -0
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/row/Row.d.ts +8 -4
- package/es/row/Row.mjs +35 -4
- package/es/row/index.d.ts +3 -3
- package/lib/calendar/Calendar.js +20 -17
- package/lib/checkbox/Checker.js +7 -1
- package/lib/col/Col.js +10 -2
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/highlight/Highlight.d.ts +96 -0
- package/lib/highlight/Highlight.js +141 -0
- package/lib/highlight/index.css +1 -0
- package/lib/highlight/index.d.ts +73 -0
- package/lib/highlight/index.js +39 -0
- package/lib/highlight/style/index.d.ts +1 -0
- package/lib/highlight/style/index.js +2 -0
- package/lib/highlight/types.d.ts +3 -0
- package/lib/highlight/types.js +15 -0
- package/lib/image-preview/ImagePreview.js +10 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +27 -1
- package/lib/image-preview/ImagePreviewItem.js +17 -12
- package/lib/image-preview/types.d.ts +7 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/row/Row.d.ts +8 -4
- package/lib/row/Row.js +34 -3
- package/lib/row/index.d.ts +3 -3
- package/lib/vant.cjs.js +775 -594
- package/lib/vant.es.js +775 -594
- package/lib/vant.js +775 -594
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
package/lib/vant.cjs.js
CHANGED
@@ -241,7 +241,7 @@ function deepAssign(to, from) {
|
|
241
241
|
});
|
242
242
|
return to;
|
243
243
|
}
|
244
|
-
var stdin_default$
|
244
|
+
var stdin_default$1W = {
|
245
245
|
name: "姓名",
|
246
246
|
tel: "电话",
|
247
247
|
save: "保存",
|
@@ -305,7 +305,7 @@ var stdin_default$1V = {
|
|
305
305
|
};
|
306
306
|
const lang = vue.ref("zh-CN");
|
307
307
|
const messages = vue.reactive({
|
308
|
-
"zh-CN": stdin_default$
|
308
|
+
"zh-CN": stdin_default$1W
|
309
309
|
});
|
310
310
|
const Locale = {
|
311
311
|
messages() {
|
@@ -320,11 +320,11 @@ const Locale = {
|
|
320
320
|
}
|
321
321
|
};
|
322
322
|
const useCurrentLang = () => lang;
|
323
|
-
var stdin_default$
|
323
|
+
var stdin_default$1V = Locale;
|
324
324
|
function createTranslate(name2) {
|
325
325
|
const prefix = camelize(name2) + ".";
|
326
326
|
return (path, ...args) => {
|
327
|
-
const messages2 = stdin_default$
|
327
|
+
const messages2 = stdin_default$1V.messages();
|
328
328
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
329
329
|
return isFunction(message) ? message(...args) : message;
|
330
330
|
};
|
@@ -454,20 +454,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
454
454
|
}
|
455
455
|
}, [renderContent()]);
|
456
456
|
}
|
457
|
-
const [name$
|
458
|
-
const ACTION_BAR_KEY = Symbol(name$
|
457
|
+
const [name$1K, bem$1F] = createNamespace("action-bar");
|
458
|
+
const ACTION_BAR_KEY = Symbol(name$1K);
|
459
459
|
const actionBarProps = {
|
460
460
|
placeholder: Boolean,
|
461
461
|
safeAreaInsetBottom: truthProp
|
462
462
|
};
|
463
|
-
var stdin_default$
|
464
|
-
name: name$
|
463
|
+
var stdin_default$1U = vue.defineComponent({
|
464
|
+
name: name$1K,
|
465
465
|
props: actionBarProps,
|
466
466
|
setup(props2, {
|
467
467
|
slots
|
468
468
|
}) {
|
469
469
|
const root = vue.ref();
|
470
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
470
|
+
const renderPlaceholder = usePlaceholder(root, bem$1F);
|
471
471
|
const {
|
472
472
|
linkChildren
|
473
473
|
} = use.useChildren(ACTION_BAR_KEY);
|
@@ -476,7 +476,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
476
476
|
var _a;
|
477
477
|
return vue.createVNode("div", {
|
478
478
|
"ref": root,
|
479
|
-
"class": [bem$
|
479
|
+
"class": [bem$1F(), {
|
480
480
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
481
481
|
}]
|
482
482
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -489,7 +489,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
489
489
|
};
|
490
490
|
}
|
491
491
|
});
|
492
|
-
const ActionBar = withInstall(stdin_default$
|
492
|
+
const ActionBar = withInstall(stdin_default$1U);
|
493
493
|
function useExpose(apis) {
|
494
494
|
const instance2 = vue.getCurrentInstance();
|
495
495
|
if (instance2) {
|
@@ -517,7 +517,7 @@ function useRoute() {
|
|
517
517
|
const vm = vue.getCurrentInstance().proxy;
|
518
518
|
return () => route(vm);
|
519
519
|
}
|
520
|
-
const [name$
|
520
|
+
const [name$1J, bem$1E] = createNamespace("badge");
|
521
521
|
const badgeProps = {
|
522
522
|
dot: Boolean,
|
523
523
|
max: numericProp,
|
@@ -528,8 +528,8 @@ const badgeProps = {
|
|
528
528
|
showZero: truthProp,
|
529
529
|
position: makeStringProp("top-right")
|
530
530
|
};
|
531
|
-
var stdin_default$
|
532
|
-
name: name$
|
531
|
+
var stdin_default$1T = vue.defineComponent({
|
532
|
+
name: name$1J,
|
533
533
|
props: badgeProps,
|
534
534
|
setup(props2, {
|
535
535
|
slots
|
@@ -592,7 +592,7 @@ var stdin_default$1S = vue.defineComponent({
|
|
592
592
|
const renderBadge = () => {
|
593
593
|
if (hasContent() || props2.dot) {
|
594
594
|
return vue.createVNode("div", {
|
595
|
-
"class": bem$
|
595
|
+
"class": bem$1E([props2.position, {
|
596
596
|
dot: props2.dot,
|
597
597
|
fixed: !!slots.default
|
598
598
|
}]),
|
@@ -606,7 +606,7 @@ var stdin_default$1S = vue.defineComponent({
|
|
606
606
|
tag
|
607
607
|
} = props2;
|
608
608
|
return vue.createVNode(tag, {
|
609
|
-
"class": bem$
|
609
|
+
"class": bem$1E("wrapper")
|
610
610
|
}, {
|
611
611
|
default: () => [slots.default(), renderBadge()]
|
612
612
|
});
|
@@ -615,14 +615,14 @@ var stdin_default$1S = vue.defineComponent({
|
|
615
615
|
};
|
616
616
|
}
|
617
617
|
});
|
618
|
-
const Badge = withInstall(stdin_default$
|
618
|
+
const Badge = withInstall(stdin_default$1T);
|
619
619
|
let globalZIndex = 2e3;
|
620
620
|
const useGlobalZIndex = () => ++globalZIndex;
|
621
621
|
const setGlobalZIndex = (val) => {
|
622
622
|
globalZIndex = val;
|
623
623
|
};
|
624
|
-
const [name$
|
625
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
624
|
+
const [name$1I, bem$1D] = createNamespace("config-provider");
|
625
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1I);
|
626
626
|
const configProviderProps = {
|
627
627
|
tag: makeStringProp("div"),
|
628
628
|
theme: makeStringProp("light"),
|
@@ -656,8 +656,8 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
|
|
656
656
|
}
|
657
657
|
});
|
658
658
|
}
|
659
|
-
var stdin_default$
|
660
|
-
name: name$
|
659
|
+
var stdin_default$1S = vue.defineComponent({
|
660
|
+
name: name$1I,
|
661
661
|
props: configProviderProps,
|
662
662
|
setup(props2, {
|
663
663
|
slots
|
@@ -705,7 +705,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
705
705
|
}
|
706
706
|
});
|
707
707
|
return () => vue.createVNode(props2.tag, {
|
708
|
-
"class": bem$
|
708
|
+
"class": bem$1D(),
|
709
709
|
"style": props2.themeVarsScope === "local" ? style.value : void 0
|
710
710
|
}, {
|
711
711
|
default: () => {
|
@@ -715,7 +715,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
715
715
|
});
|
716
716
|
}
|
717
717
|
});
|
718
|
-
const [name$
|
718
|
+
const [name$1H, bem$1C] = createNamespace("icon");
|
719
719
|
const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
|
720
720
|
const iconProps = {
|
721
721
|
dot: Boolean,
|
@@ -727,14 +727,14 @@ const iconProps = {
|
|
727
727
|
badgeProps: Object,
|
728
728
|
classPrefix: String
|
729
729
|
};
|
730
|
-
var stdin_default$
|
731
|
-
name: name$
|
730
|
+
var stdin_default$1R = vue.defineComponent({
|
731
|
+
name: name$1H,
|
732
732
|
props: iconProps,
|
733
733
|
setup(props2, {
|
734
734
|
slots
|
735
735
|
}) {
|
736
736
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
737
|
-
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
737
|
+
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1C());
|
738
738
|
return () => {
|
739
739
|
const {
|
740
740
|
tag,
|
@@ -758,7 +758,7 @@ var stdin_default$1Q = vue.defineComponent({
|
|
758
758
|
default: () => {
|
759
759
|
var _a;
|
760
760
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
761
|
-
"class": bem$
|
761
|
+
"class": bem$1C("image"),
|
762
762
|
"src": name2
|
763
763
|
}, null)];
|
764
764
|
}
|
@@ -766,14 +766,14 @@ var stdin_default$1Q = vue.defineComponent({
|
|
766
766
|
};
|
767
767
|
}
|
768
768
|
});
|
769
|
-
const Icon = withInstall(stdin_default$
|
770
|
-
var stdin_default$
|
771
|
-
const [name$
|
769
|
+
const Icon = withInstall(stdin_default$1R);
|
770
|
+
var stdin_default$1Q = Icon;
|
771
|
+
const [name$1G, bem$1B] = createNamespace("loading");
|
772
772
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
773
|
-
"class": bem$
|
773
|
+
"class": bem$1B("line", String(index + 1))
|
774
774
|
}, null));
|
775
775
|
const CircularIcon = vue.createVNode("svg", {
|
776
|
-
"class": bem$
|
776
|
+
"class": bem$1B("circular"),
|
777
777
|
"viewBox": "25 25 50 50"
|
778
778
|
}, [vue.createVNode("circle", {
|
779
779
|
"cx": "50",
|
@@ -789,8 +789,8 @@ const loadingProps = {
|
|
789
789
|
textSize: numericProp,
|
790
790
|
textColor: String
|
791
791
|
};
|
792
|
-
var stdin_default$
|
793
|
-
name: name$
|
792
|
+
var stdin_default$1P = vue.defineComponent({
|
793
|
+
name: name$1G,
|
794
794
|
props: loadingProps,
|
795
795
|
setup(props2, {
|
796
796
|
slots
|
@@ -801,7 +801,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
801
801
|
const renderIcon = () => {
|
802
802
|
const DefaultIcon = props2.type === "spinner" ? SpinIcon : CircularIcon;
|
803
803
|
return vue.createVNode("span", {
|
804
|
-
"class": bem$
|
804
|
+
"class": bem$1B("spinner", props2.type),
|
805
805
|
"style": spinnerStyle.value
|
806
806
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
807
807
|
};
|
@@ -809,7 +809,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
809
809
|
var _a;
|
810
810
|
if (slots.default) {
|
811
811
|
return vue.createVNode("span", {
|
812
|
-
"class": bem$
|
812
|
+
"class": bem$1B("text"),
|
813
813
|
"style": {
|
814
814
|
fontSize: addUnit(props2.textSize),
|
815
815
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
@@ -823,7 +823,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
823
823
|
vertical
|
824
824
|
} = props2;
|
825
825
|
return vue.createVNode("div", {
|
826
|
-
"class": bem$
|
826
|
+
"class": bem$1B([type, {
|
827
827
|
vertical
|
828
828
|
}]),
|
829
829
|
"aria-live": "polite",
|
@@ -832,8 +832,8 @@ var stdin_default$1O = vue.defineComponent({
|
|
832
832
|
};
|
833
833
|
}
|
834
834
|
});
|
835
|
-
const Loading = withInstall(stdin_default$
|
836
|
-
const [name$
|
835
|
+
const Loading = withInstall(stdin_default$1P);
|
836
|
+
const [name$1F, bem$1A] = createNamespace("button");
|
837
837
|
const buttonProps = extend({}, routeProps, {
|
838
838
|
tag: makeStringProp("button"),
|
839
839
|
text: String,
|
@@ -855,8 +855,8 @@ const buttonProps = extend({}, routeProps, {
|
|
855
855
|
loadingType: String,
|
856
856
|
iconPosition: makeStringProp("left")
|
857
857
|
});
|
858
|
-
var stdin_default$
|
859
|
-
name: name$
|
858
|
+
var stdin_default$1O = vue.defineComponent({
|
859
|
+
name: name$1F,
|
860
860
|
props: buttonProps,
|
861
861
|
emits: ["click"],
|
862
862
|
setup(props2, {
|
@@ -871,7 +871,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
871
871
|
return vue.createVNode(Loading, {
|
872
872
|
"size": props2.loadingSize,
|
873
873
|
"type": props2.loadingType,
|
874
|
-
"class": bem$
|
874
|
+
"class": bem$1A("loading")
|
875
875
|
}, null);
|
876
876
|
};
|
877
877
|
const renderIcon = () => {
|
@@ -880,13 +880,13 @@ var stdin_default$1N = vue.defineComponent({
|
|
880
880
|
}
|
881
881
|
if (slots.icon) {
|
882
882
|
return vue.createVNode("div", {
|
883
|
-
"class": bem$
|
883
|
+
"class": bem$1A("icon")
|
884
884
|
}, [slots.icon()]);
|
885
885
|
}
|
886
886
|
if (props2.icon) {
|
887
887
|
return vue.createVNode(Icon, {
|
888
888
|
"name": props2.icon,
|
889
|
-
"class": bem$
|
889
|
+
"class": bem$1A("icon"),
|
890
890
|
"classPrefix": props2.iconPrefix
|
891
891
|
}, null);
|
892
892
|
}
|
@@ -900,7 +900,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
900
900
|
}
|
901
901
|
if (text) {
|
902
902
|
return vue.createVNode("span", {
|
903
|
-
"class": bem$
|
903
|
+
"class": bem$1A("text")
|
904
904
|
}, [text]);
|
905
905
|
}
|
906
906
|
};
|
@@ -947,7 +947,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
947
947
|
nativeType,
|
948
948
|
iconPosition
|
949
949
|
} = props2;
|
950
|
-
const classes = [bem$
|
950
|
+
const classes = [bem$1A([type, size, {
|
951
951
|
plain,
|
952
952
|
block,
|
953
953
|
round,
|
@@ -966,14 +966,14 @@ var stdin_default$1N = vue.defineComponent({
|
|
966
966
|
"onClick": onClick
|
967
967
|
}, {
|
968
968
|
default: () => [vue.createVNode("div", {
|
969
|
-
"class": bem$
|
969
|
+
"class": bem$1A("content")
|
970
970
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
971
971
|
});
|
972
972
|
};
|
973
973
|
}
|
974
974
|
});
|
975
|
-
const Button = withInstall(stdin_default$
|
976
|
-
const [name$
|
975
|
+
const Button = withInstall(stdin_default$1O);
|
976
|
+
const [name$1E, bem$1z] = createNamespace("action-bar-button");
|
977
977
|
const actionBarButtonProps = extend({}, routeProps, {
|
978
978
|
type: String,
|
979
979
|
text: String,
|
@@ -982,8 +982,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
982
982
|
loading: Boolean,
|
983
983
|
disabled: Boolean
|
984
984
|
});
|
985
|
-
var stdin_default$
|
986
|
-
name: name$
|
985
|
+
var stdin_default$1N = vue.defineComponent({
|
986
|
+
name: name$1E,
|
987
987
|
props: actionBarButtonProps,
|
988
988
|
setup(props2, {
|
989
989
|
slots
|
@@ -1018,7 +1018,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
1018
1018
|
disabled
|
1019
1019
|
} = props2;
|
1020
1020
|
return vue.createVNode(Button, {
|
1021
|
-
"class": bem$
|
1021
|
+
"class": bem$1z([type, {
|
1022
1022
|
last: isLast.value,
|
1023
1023
|
first: isFirst.value
|
1024
1024
|
}]),
|
@@ -1035,8 +1035,8 @@ var stdin_default$1M = vue.defineComponent({
|
|
1035
1035
|
};
|
1036
1036
|
}
|
1037
1037
|
});
|
1038
|
-
const ActionBarButton = withInstall(stdin_default$
|
1039
|
-
const [name$
|
1038
|
+
const ActionBarButton = withInstall(stdin_default$1N);
|
1039
|
+
const [name$1D, bem$1y] = createNamespace("action-bar-icon");
|
1040
1040
|
const actionBarIconProps = extend({}, routeProps, {
|
1041
1041
|
dot: Boolean,
|
1042
1042
|
text: String,
|
@@ -1047,8 +1047,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
1047
1047
|
badgeProps: Object,
|
1048
1048
|
iconPrefix: String
|
1049
1049
|
});
|
1050
|
-
var stdin_default$
|
1051
|
-
name: name$
|
1050
|
+
var stdin_default$1M = vue.defineComponent({
|
1051
|
+
name: name$1D,
|
1052
1052
|
props: actionBarIconProps,
|
1053
1053
|
setup(props2, {
|
1054
1054
|
slots
|
@@ -1068,7 +1068,7 @@ var stdin_default$1L = vue.defineComponent({
|
|
1068
1068
|
if (slots.icon) {
|
1069
1069
|
return vue.createVNode(Badge, vue.mergeProps({
|
1070
1070
|
"dot": dot,
|
1071
|
-
"class": bem$
|
1071
|
+
"class": bem$1y("icon"),
|
1072
1072
|
"content": badge
|
1073
1073
|
}, badgeProps2), {
|
1074
1074
|
default: slots.icon
|
@@ -1080,20 +1080,20 @@ var stdin_default$1L = vue.defineComponent({
|
|
1080
1080
|
"name": icon,
|
1081
1081
|
"badge": badge,
|
1082
1082
|
"color": color,
|
1083
|
-
"class": [bem$
|
1083
|
+
"class": [bem$1y("icon"), iconClass],
|
1084
1084
|
"badgeProps": badgeProps2,
|
1085
1085
|
"classPrefix": iconPrefix
|
1086
1086
|
}, null);
|
1087
1087
|
};
|
1088
1088
|
return () => vue.createVNode("div", {
|
1089
1089
|
"role": "button",
|
1090
|
-
"class": bem$
|
1090
|
+
"class": bem$1y(),
|
1091
1091
|
"tabindex": 0,
|
1092
1092
|
"onClick": route2
|
1093
1093
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
1094
1094
|
}
|
1095
1095
|
});
|
1096
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1096
|
+
const ActionBarIcon = withInstall(stdin_default$1M);
|
1097
1097
|
const popupSharedProps = {
|
1098
1098
|
// whether to show popup
|
1099
1099
|
show: Boolean,
|
@@ -1255,7 +1255,7 @@ const useScopeId = () => {
|
|
1255
1255
|
const { scopeId } = ((_a = vue.getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
|
1256
1256
|
return scopeId ? { [scopeId]: "" } : null;
|
1257
1257
|
};
|
1258
|
-
const [name$
|
1258
|
+
const [name$1C, bem$1x] = createNamespace("overlay");
|
1259
1259
|
const overlayProps = {
|
1260
1260
|
show: Boolean,
|
1261
1261
|
zIndex: numericProp,
|
@@ -1265,8 +1265,8 @@ const overlayProps = {
|
|
1265
1265
|
lazyRender: truthProp,
|
1266
1266
|
customStyle: Object
|
1267
1267
|
};
|
1268
|
-
var stdin_default$
|
1269
|
-
name: name$
|
1268
|
+
var stdin_default$1L = vue.defineComponent({
|
1269
|
+
name: name$1C,
|
1270
1270
|
props: overlayProps,
|
1271
1271
|
setup(props2, {
|
1272
1272
|
slots
|
@@ -1287,7 +1287,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
1287
1287
|
return vue.withDirectives(vue.createVNode("div", {
|
1288
1288
|
"ref": root,
|
1289
1289
|
"style": style,
|
1290
|
-
"class": [bem$
|
1290
|
+
"class": [bem$1x(), props2.className]
|
1291
1291
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props2.show]]);
|
1292
1292
|
});
|
1293
1293
|
use.useEventListener("touchmove", onTouchMove, {
|
@@ -1301,7 +1301,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
1301
1301
|
});
|
1302
1302
|
}
|
1303
1303
|
});
|
1304
|
-
const Overlay = withInstall(stdin_default$
|
1304
|
+
const Overlay = withInstall(stdin_default$1L);
|
1305
1305
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1306
1306
|
round: Boolean,
|
1307
1307
|
position: makeStringProp("center"),
|
@@ -1314,9 +1314,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1314
1314
|
safeAreaInsetTop: Boolean,
|
1315
1315
|
safeAreaInsetBottom: Boolean
|
1316
1316
|
});
|
1317
|
-
const [name$
|
1318
|
-
var stdin_default$
|
1319
|
-
name: name$
|
1317
|
+
const [name$1B, bem$1w] = createNamespace("popup");
|
1318
|
+
var stdin_default$1K = vue.defineComponent({
|
1319
|
+
name: name$1B,
|
1320
1320
|
inheritAttrs: false,
|
1321
1321
|
props: popupProps$2,
|
1322
1322
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1391,7 +1391,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
1391
1391
|
"role": "button",
|
1392
1392
|
"tabindex": 0,
|
1393
1393
|
"name": props2.closeIcon,
|
1394
|
-
"class": [bem$
|
1394
|
+
"class": [bem$1w("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
1395
1395
|
"classPrefix": props2.iconPrefix,
|
1396
1396
|
"onClick": onClickCloseIcon
|
1397
1397
|
}, null);
|
@@ -1420,7 +1420,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
1420
1420
|
"style": style.value,
|
1421
1421
|
"role": "dialog",
|
1422
1422
|
"tabindex": 0,
|
1423
|
-
"class": [bem$
|
1423
|
+
"class": [bem$1w({
|
1424
1424
|
round,
|
1425
1425
|
[position]: position
|
1426
1426
|
}), {
|
@@ -1501,8 +1501,8 @@ var stdin_default$1J = vue.defineComponent({
|
|
1501
1501
|
};
|
1502
1502
|
}
|
1503
1503
|
});
|
1504
|
-
const Popup = withInstall(stdin_default$
|
1505
|
-
const [name$
|
1504
|
+
const Popup = withInstall(stdin_default$1K);
|
1505
|
+
const [name$1A, bem$1v] = createNamespace("action-sheet");
|
1506
1506
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1507
1507
|
title: String,
|
1508
1508
|
round: truthProp,
|
@@ -1516,8 +1516,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1516
1516
|
safeAreaInsetBottom: truthProp
|
1517
1517
|
});
|
1518
1518
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1519
|
-
var stdin_default$
|
1520
|
-
name: name$
|
1519
|
+
var stdin_default$1J = vue.defineComponent({
|
1520
|
+
name: name$1A,
|
1521
1521
|
props: actionSheetProps,
|
1522
1522
|
emits: ["select", "cancel", "update:show"],
|
1523
1523
|
setup(props2, {
|
@@ -1532,10 +1532,10 @@ var stdin_default$1I = vue.defineComponent({
|
|
1532
1532
|
const renderHeader = () => {
|
1533
1533
|
if (props2.title) {
|
1534
1534
|
return vue.createVNode("div", {
|
1535
|
-
"class": bem$
|
1535
|
+
"class": bem$1v("header")
|
1536
1536
|
}, [props2.title, props2.closeable && vue.createVNode(Icon, {
|
1537
1537
|
"name": props2.closeIcon,
|
1538
|
-
"class": [bem$
|
1538
|
+
"class": [bem$1v("close"), HAPTICS_FEEDBACK],
|
1539
1539
|
"onClick": onCancel
|
1540
1540
|
}, null)]);
|
1541
1541
|
}
|
@@ -1543,10 +1543,10 @@ var stdin_default$1I = vue.defineComponent({
|
|
1543
1543
|
const renderCancel = () => {
|
1544
1544
|
if (slots.cancel || props2.cancelText) {
|
1545
1545
|
return [vue.createVNode("div", {
|
1546
|
-
"class": bem$
|
1546
|
+
"class": bem$1v("gap")
|
1547
1547
|
}, null), vue.createVNode("button", {
|
1548
1548
|
"type": "button",
|
1549
|
-
"class": bem$
|
1549
|
+
"class": bem$1v("cancel"),
|
1550
1550
|
"onClick": onCancel
|
1551
1551
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1552
1552
|
}
|
@@ -1554,7 +1554,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
1554
1554
|
const renderActionContent = (action, index) => {
|
1555
1555
|
if (action.loading) {
|
1556
1556
|
return vue.createVNode(Loading, {
|
1557
|
-
"class": bem$
|
1557
|
+
"class": bem$1v("loading-icon")
|
1558
1558
|
}, null);
|
1559
1559
|
}
|
1560
1560
|
if (slots.action) {
|
@@ -1564,9 +1564,9 @@ var stdin_default$1I = vue.defineComponent({
|
|
1564
1564
|
});
|
1565
1565
|
}
|
1566
1566
|
return [vue.createVNode("span", {
|
1567
|
-
"class": bem$
|
1567
|
+
"class": bem$1v("name")
|
1568
1568
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
1569
|
-
"class": bem$
|
1569
|
+
"class": bem$1v("subname")
|
1570
1570
|
}, [action.subname])];
|
1571
1571
|
};
|
1572
1572
|
const renderAction = (action, index) => {
|
@@ -1594,7 +1594,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
1594
1594
|
"style": {
|
1595
1595
|
color
|
1596
1596
|
},
|
1597
|
-
"class": [bem$
|
1597
|
+
"class": [bem$1v("item", {
|
1598
1598
|
loading,
|
1599
1599
|
disabled
|
1600
1600
|
}), className],
|
@@ -1605,26 +1605,26 @@ var stdin_default$1I = vue.defineComponent({
|
|
1605
1605
|
if (props2.description || slots.description) {
|
1606
1606
|
const content = slots.description ? slots.description() : props2.description;
|
1607
1607
|
return vue.createVNode("div", {
|
1608
|
-
"class": bem$
|
1608
|
+
"class": bem$1v("description")
|
1609
1609
|
}, [content]);
|
1610
1610
|
}
|
1611
1611
|
};
|
1612
1612
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
1613
|
-
"class": bem$
|
1613
|
+
"class": bem$1v(),
|
1614
1614
|
"position": "bottom",
|
1615
1615
|
"onUpdate:show": updateShow
|
1616
1616
|
}, pick(props2, popupInheritKeys$2)), {
|
1617
1617
|
default: () => {
|
1618
1618
|
var _a;
|
1619
1619
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1620
|
-
"class": bem$
|
1620
|
+
"class": bem$1v("content")
|
1621
1621
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1622
1622
|
}
|
1623
1623
|
});
|
1624
1624
|
}
|
1625
1625
|
});
|
1626
|
-
const ActionSheet = withInstall(stdin_default$
|
1627
|
-
const [name$
|
1626
|
+
const ActionSheet = withInstall(stdin_default$1J);
|
1627
|
+
const [name$1z, bem$1u, t$k] = createNamespace("picker");
|
1628
1628
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1629
1629
|
function getColumnsType(columns, fields) {
|
1630
1630
|
const firstColumn = columns[0];
|
@@ -1693,10 +1693,10 @@ function assignDefaultFields(fields) {
|
|
1693
1693
|
const DEFAULT_DURATION = 200;
|
1694
1694
|
const MOMENTUM_TIME = 300;
|
1695
1695
|
const MOMENTUM_DISTANCE = 15;
|
1696
|
-
const [name$
|
1697
|
-
const PICKER_KEY = Symbol(name$
|
1698
|
-
var stdin_default$
|
1699
|
-
name: name$
|
1696
|
+
const [name$1y, bem$1t] = createNamespace("picker-column");
|
1697
|
+
const PICKER_KEY = Symbol(name$1y);
|
1698
|
+
var stdin_default$1I = vue.defineComponent({
|
1699
|
+
name: name$1y,
|
1700
1700
|
props: {
|
1701
1701
|
value: numericProp,
|
1702
1702
|
fields: makeRequiredProp(Object),
|
@@ -1838,7 +1838,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
1838
1838
|
role: "button",
|
1839
1839
|
style: optionStyle,
|
1840
1840
|
tabindex: disabled ? -1 : 0,
|
1841
|
-
class: [bem$
|
1841
|
+
class: [bem$1t("item", {
|
1842
1842
|
disabled,
|
1843
1843
|
selected: value === props2.value
|
1844
1844
|
}), option.className],
|
@@ -1868,7 +1868,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
1868
1868
|
});
|
1869
1869
|
return () => vue.createVNode("div", {
|
1870
1870
|
"ref": root,
|
1871
|
-
"class": bem$
|
1871
|
+
"class": bem$1t(),
|
1872
1872
|
"onTouchstartPassive": onTouchStart,
|
1873
1873
|
"onTouchend": onTouchEnd,
|
1874
1874
|
"onTouchcancel": onTouchEnd
|
@@ -1879,12 +1879,12 @@ var stdin_default$1H = vue.defineComponent({
|
|
1879
1879
|
transitionDuration: `${currentDuration.value}ms`,
|
1880
1880
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1881
1881
|
},
|
1882
|
-
"class": bem$
|
1882
|
+
"class": bem$1t("wrapper"),
|
1883
1883
|
"onTransitionend": stopMomentum
|
1884
1884
|
}, [renderOptions()])]);
|
1885
1885
|
}
|
1886
1886
|
});
|
1887
|
-
const [name$
|
1887
|
+
const [name$1x] = createNamespace("picker-toolbar");
|
1888
1888
|
const pickerToolbarProps = {
|
1889
1889
|
title: String,
|
1890
1890
|
cancelButtonText: String,
|
@@ -1892,8 +1892,8 @@ const pickerToolbarProps = {
|
|
1892
1892
|
};
|
1893
1893
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1894
1894
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1895
|
-
var stdin_default$
|
1896
|
-
name: name$
|
1895
|
+
var stdin_default$1H = vue.defineComponent({
|
1896
|
+
name: name$1x,
|
1897
1897
|
props: pickerToolbarProps,
|
1898
1898
|
emits: ["confirm", "cancel"],
|
1899
1899
|
setup(props2, {
|
@@ -1906,7 +1906,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
1906
1906
|
}
|
1907
1907
|
if (props2.title) {
|
1908
1908
|
return vue.createVNode("div", {
|
1909
|
-
"class": [bem$
|
1909
|
+
"class": [bem$1u("title"), "van-ellipsis"]
|
1910
1910
|
}, [props2.title]);
|
1911
1911
|
}
|
1912
1912
|
};
|
@@ -1916,7 +1916,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
1916
1916
|
const text = props2.cancelButtonText || t$k("cancel");
|
1917
1917
|
return vue.createVNode("button", {
|
1918
1918
|
"type": "button",
|
1919
|
-
"class": [bem$
|
1919
|
+
"class": [bem$1u("cancel"), HAPTICS_FEEDBACK],
|
1920
1920
|
"onClick": onCancel
|
1921
1921
|
}, [slots.cancel ? slots.cancel() : text]);
|
1922
1922
|
};
|
@@ -1924,12 +1924,12 @@ var stdin_default$1G = vue.defineComponent({
|
|
1924
1924
|
const text = props2.confirmButtonText || t$k("confirm");
|
1925
1925
|
return vue.createVNode("button", {
|
1926
1926
|
"type": "button",
|
1927
|
-
"class": [bem$
|
1927
|
+
"class": [bem$1u("confirm"), HAPTICS_FEEDBACK],
|
1928
1928
|
"onClick": onConfirm
|
1929
1929
|
}, [slots.confirm ? slots.confirm() : text]);
|
1930
1930
|
};
|
1931
1931
|
return () => vue.createVNode("div", {
|
1932
|
-
"class": bem$
|
1932
|
+
"class": bem$1u("toolbar")
|
1933
1933
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1934
1934
|
}
|
1935
1935
|
});
|
@@ -2037,7 +2037,7 @@ function useVisibilityChange(target, onChange) {
|
|
2037
2037
|
vue.onBeforeUnmount(unobserve);
|
2038
2038
|
use.onMountedOrActivated(observe);
|
2039
2039
|
}
|
2040
|
-
const [name$
|
2040
|
+
const [name$1w, bem$1s] = createNamespace("sticky");
|
2041
2041
|
const stickyProps = {
|
2042
2042
|
zIndex: numericProp,
|
2043
2043
|
position: makeStringProp("top"),
|
@@ -2045,8 +2045,8 @@ const stickyProps = {
|
|
2045
2045
|
offsetTop: makeNumericProp(0),
|
2046
2046
|
offsetBottom: makeNumericProp(0)
|
2047
2047
|
};
|
2048
|
-
var stdin_default$
|
2049
|
-
name: name$
|
2048
|
+
var stdin_default$1G = vue.defineComponent({
|
2049
|
+
name: name$1w,
|
2050
2050
|
props: stickyProps,
|
2051
2051
|
emits: ["scroll", "change"],
|
2052
2052
|
setup(props2, {
|
@@ -2159,7 +2159,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
2159
2159
|
"ref": root,
|
2160
2160
|
"style": rootStyle.value
|
2161
2161
|
}, [vue.createVNode("div", {
|
2162
|
-
"class": bem$
|
2162
|
+
"class": bem$1s({
|
2163
2163
|
fixed: state.fixed && !isReset.value
|
2164
2164
|
}),
|
2165
2165
|
"style": stickyStyle.value
|
@@ -2167,8 +2167,8 @@ var stdin_default$1F = vue.defineComponent({
|
|
2167
2167
|
};
|
2168
2168
|
}
|
2169
2169
|
});
|
2170
|
-
const Sticky = withInstall(stdin_default$
|
2171
|
-
const [name$
|
2170
|
+
const Sticky = withInstall(stdin_default$1G);
|
2171
|
+
const [name$1v, bem$1r] = createNamespace("swipe");
|
2172
2172
|
const swipeProps = {
|
2173
2173
|
loop: truthProp,
|
2174
2174
|
width: numericProp,
|
@@ -2183,9 +2183,9 @@ const swipeProps = {
|
|
2183
2183
|
showIndicators: truthProp,
|
2184
2184
|
stopPropagation: truthProp
|
2185
2185
|
};
|
2186
|
-
const SWIPE_KEY = Symbol(name$
|
2187
|
-
var stdin_default$
|
2188
|
-
name: name$
|
2186
|
+
const SWIPE_KEY = Symbol(name$1v);
|
2187
|
+
var stdin_default$1F = vue.defineComponent({
|
2188
|
+
name: name$1v,
|
2189
2189
|
props: swipeProps,
|
2190
2190
|
emits: ["change", "dragStart", "dragEnd"],
|
2191
2191
|
setup(props2, {
|
@@ -2463,7 +2463,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
2463
2463
|
} : void 0;
|
2464
2464
|
return vue.createVNode("i", {
|
2465
2465
|
"style": style,
|
2466
|
-
"class": bem$
|
2466
|
+
"class": bem$1r("indicator", {
|
2467
2467
|
active
|
2468
2468
|
})
|
2469
2469
|
}, null);
|
@@ -2477,7 +2477,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
2477
2477
|
}
|
2478
2478
|
if (props2.showIndicators && count.value > 1) {
|
2479
2479
|
return vue.createVNode("div", {
|
2480
|
-
"class": bem$
|
2480
|
+
"class": bem$1r("indicators", {
|
2481
2481
|
vertical: props2.vertical
|
2482
2482
|
})
|
2483
2483
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2519,11 +2519,11 @@ var stdin_default$1E = vue.defineComponent({
|
|
2519
2519
|
var _a;
|
2520
2520
|
return vue.createVNode("div", {
|
2521
2521
|
"ref": root,
|
2522
|
-
"class": bem$
|
2522
|
+
"class": bem$1r()
|
2523
2523
|
}, [vue.createVNode("div", {
|
2524
2524
|
"ref": track,
|
2525
2525
|
"style": trackStyle.value,
|
2526
|
-
"class": bem$
|
2526
|
+
"class": bem$1r("track", {
|
2527
2527
|
vertical: props2.vertical
|
2528
2528
|
}),
|
2529
2529
|
"onTouchstartPassive": onTouchStart,
|
@@ -2533,10 +2533,10 @@ var stdin_default$1E = vue.defineComponent({
|
|
2533
2533
|
};
|
2534
2534
|
}
|
2535
2535
|
});
|
2536
|
-
const Swipe = withInstall(stdin_default$
|
2537
|
-
const [name$
|
2538
|
-
var stdin_default$
|
2539
|
-
name: name$
|
2536
|
+
const Swipe = withInstall(stdin_default$1F);
|
2537
|
+
const [name$1u, bem$1q] = createNamespace("tabs");
|
2538
|
+
var stdin_default$1E = vue.defineComponent({
|
2539
|
+
name: name$1u,
|
2540
2540
|
props: {
|
2541
2541
|
count: makeRequiredProp(Number),
|
2542
2542
|
inited: Boolean,
|
@@ -2560,7 +2560,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
2560
2560
|
return vue.createVNode(Swipe, {
|
2561
2561
|
"ref": swipeRef,
|
2562
2562
|
"loop": false,
|
2563
|
-
"class": bem$
|
2563
|
+
"class": bem$1q("track"),
|
2564
2564
|
"duration": +props2.duration * 1e3,
|
2565
2565
|
"touchable": props2.swipeable,
|
2566
2566
|
"lazyRender": props2.lazyRender,
|
@@ -2588,13 +2588,13 @@ var stdin_default$1D = vue.defineComponent({
|
|
2588
2588
|
swipeRef
|
2589
2589
|
});
|
2590
2590
|
return () => vue.createVNode("div", {
|
2591
|
-
"class": bem$
|
2591
|
+
"class": bem$1q("content", {
|
2592
2592
|
animated: props2.animated || props2.swipeable
|
2593
2593
|
})
|
2594
2594
|
}, [renderChildren()]);
|
2595
2595
|
}
|
2596
2596
|
});
|
2597
|
-
const [name$
|
2597
|
+
const [name$1t, bem$1p] = createNamespace("tabs");
|
2598
2598
|
const tabsProps = {
|
2599
2599
|
type: makeStringProp("line"),
|
2600
2600
|
color: String,
|
@@ -2618,9 +2618,9 @@ const tabsProps = {
|
|
2618
2618
|
titleActiveColor: String,
|
2619
2619
|
titleInactiveColor: String
|
2620
2620
|
};
|
2621
|
-
const TABS_KEY = Symbol(name$
|
2622
|
-
var stdin_default$
|
2623
|
-
name: name$
|
2621
|
+
const TABS_KEY = Symbol(name$1t);
|
2622
|
+
var stdin_default$1D = vue.defineComponent({
|
2623
|
+
name: name$1t,
|
2624
2624
|
props: tabsProps,
|
2625
2625
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2626
2626
|
setup(props2, {
|
@@ -2818,7 +2818,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
2818
2818
|
const renderLine = () => {
|
2819
2819
|
if (props2.type === "line" && children.length) {
|
2820
2820
|
return vue.createVNode("div", {
|
2821
|
-
"class": bem$
|
2821
|
+
"class": bem$1p("line"),
|
2822
2822
|
"style": state.lineStyle
|
2823
2823
|
}, null);
|
2824
2824
|
}
|
@@ -2832,13 +2832,13 @@ var stdin_default$1C = vue.defineComponent({
|
|
2832
2832
|
} = props2;
|
2833
2833
|
const Header = [vue.createVNode("div", {
|
2834
2834
|
"ref": sticky ? void 0 : wrapRef,
|
2835
|
-
"class": [bem$
|
2835
|
+
"class": [bem$1p("wrap"), {
|
2836
2836
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2837
2837
|
}]
|
2838
2838
|
}, [vue.createVNode("div", {
|
2839
2839
|
"ref": navRef,
|
2840
2840
|
"role": "tablist",
|
2841
|
-
"class": bem$
|
2841
|
+
"class": bem$1p("nav", [type, {
|
2842
2842
|
shrink: props2.shrink,
|
2843
2843
|
complete: scrollable.value
|
2844
2844
|
}]),
|
@@ -2911,14 +2911,14 @@ var stdin_default$1C = vue.defineComponent({
|
|
2911
2911
|
});
|
2912
2912
|
return () => vue.createVNode("div", {
|
2913
2913
|
"ref": root,
|
2914
|
-
"class": bem$
|
2914
|
+
"class": bem$1p([props2.type])
|
2915
2915
|
}, [props2.showHeader ? props2.sticky ? vue.createVNode(Sticky, {
|
2916
2916
|
"container": root.value,
|
2917
2917
|
"offsetTop": offsetTopPx.value,
|
2918
2918
|
"onScroll": onStickyScroll
|
2919
2919
|
}, {
|
2920
2920
|
default: () => [renderHeader()]
|
2921
|
-
}) : renderHeader() : null, vue.createVNode(stdin_default$
|
2921
|
+
}) : renderHeader() : null, vue.createVNode(stdin_default$1E, {
|
2922
2922
|
"ref": contentRef,
|
2923
2923
|
"count": children.length,
|
2924
2924
|
"inited": state.inited,
|
@@ -2938,9 +2938,9 @@ var stdin_default$1C = vue.defineComponent({
|
|
2938
2938
|
});
|
2939
2939
|
const TAB_STATUS_KEY = Symbol();
|
2940
2940
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
2941
|
-
const [name$
|
2941
|
+
const [name$1s, bem$1o] = createNamespace("tab");
|
2942
2942
|
const TabTitle = vue.defineComponent({
|
2943
|
-
name: name$
|
2943
|
+
name: name$1s,
|
2944
2944
|
props: {
|
2945
2945
|
id: String,
|
2946
2946
|
dot: Boolean,
|
@@ -2989,7 +2989,7 @@ const TabTitle = vue.defineComponent({
|
|
2989
2989
|
});
|
2990
2990
|
const renderText = () => {
|
2991
2991
|
const Text = vue.createVNode("span", {
|
2992
|
-
"class": bem$
|
2992
|
+
"class": bem$1o("text", {
|
2993
2993
|
ellipsis: !props2.scrollable
|
2994
2994
|
})
|
2995
2995
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -3007,7 +3007,7 @@ const TabTitle = vue.defineComponent({
|
|
3007
3007
|
return () => vue.createVNode("div", {
|
3008
3008
|
"id": props2.id,
|
3009
3009
|
"role": "tab",
|
3010
|
-
"class": [bem$
|
3010
|
+
"class": [bem$1o([props2.type, {
|
3011
3011
|
grow: props2.scrollable && !props2.shrink,
|
3012
3012
|
shrink: props2.shrink,
|
3013
3013
|
active: props2.isActive,
|
@@ -3021,9 +3021,9 @@ const TabTitle = vue.defineComponent({
|
|
3021
3021
|
}, [renderText()]);
|
3022
3022
|
}
|
3023
3023
|
});
|
3024
|
-
const [name$
|
3025
|
-
var stdin_default$
|
3026
|
-
name: name$
|
3024
|
+
const [name$1r, bem$1n] = createNamespace("swipe-item");
|
3025
|
+
var stdin_default$1C = vue.defineComponent({
|
3026
|
+
name: name$1r,
|
3027
3027
|
setup(props2, {
|
3028
3028
|
slots
|
3029
3029
|
}) {
|
@@ -3088,14 +3088,14 @@ var stdin_default$1B = vue.defineComponent({
|
|
3088
3088
|
return () => {
|
3089
3089
|
var _a;
|
3090
3090
|
return vue.createVNode("div", {
|
3091
|
-
"class": bem$
|
3091
|
+
"class": bem$1n(),
|
3092
3092
|
"style": style.value
|
3093
3093
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
3094
3094
|
};
|
3095
3095
|
}
|
3096
3096
|
});
|
3097
|
-
const SwipeItem = withInstall(stdin_default$
|
3098
|
-
const [name$
|
3097
|
+
const SwipeItem = withInstall(stdin_default$1C);
|
3098
|
+
const [name$1q, bem$1m] = createNamespace("tab");
|
3099
3099
|
const tabProps = extend({}, routeProps, {
|
3100
3100
|
dot: Boolean,
|
3101
3101
|
name: numericProp,
|
@@ -3106,8 +3106,8 @@ const tabProps = extend({}, routeProps, {
|
|
3106
3106
|
titleStyle: [String, Object],
|
3107
3107
|
showZeroBadge: truthProp
|
3108
3108
|
});
|
3109
|
-
var stdin_default$
|
3110
|
-
name: name$
|
3109
|
+
var stdin_default$1B = vue.defineComponent({
|
3110
|
+
name: name$1q,
|
3111
3111
|
props: tabProps,
|
3112
3112
|
setup(props2, {
|
3113
3113
|
slots
|
@@ -3205,7 +3205,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
3205
3205
|
return vue.createVNode(SwipeItem, {
|
3206
3206
|
"id": id,
|
3207
3207
|
"role": "tabpanel",
|
3208
|
-
"class": bem$
|
3208
|
+
"class": bem$1m("panel-wrapper", {
|
3209
3209
|
inactive: hasInactiveClass.value
|
3210
3210
|
}),
|
3211
3211
|
"tabindex": active.value ? 0 : -1,
|
@@ -3215,7 +3215,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
3215
3215
|
default: () => {
|
3216
3216
|
var _a2;
|
3217
3217
|
return [vue.createVNode("div", {
|
3218
|
-
"class": bem$
|
3218
|
+
"class": bem$1m("panel")
|
3219
3219
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3220
3220
|
}
|
3221
3221
|
});
|
@@ -3225,24 +3225,24 @@ var stdin_default$1A = vue.defineComponent({
|
|
3225
3225
|
return vue.withDirectives(vue.createVNode("div", {
|
3226
3226
|
"id": id,
|
3227
3227
|
"role": "tabpanel",
|
3228
|
-
"class": bem$
|
3228
|
+
"class": bem$1m("panel"),
|
3229
3229
|
"tabindex": show ? 0 : -1,
|
3230
3230
|
"aria-labelledby": label
|
3231
3231
|
}, [Content]), [[vue.vShow, show]]);
|
3232
3232
|
};
|
3233
3233
|
}
|
3234
3234
|
});
|
3235
|
-
const Tab = withInstall(stdin_default$
|
3236
|
-
const Tabs = withInstall(stdin_default$
|
3237
|
-
const [name$
|
3238
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3235
|
+
const Tab = withInstall(stdin_default$1B);
|
3236
|
+
const Tabs = withInstall(stdin_default$1D);
|
3237
|
+
const [name$1p, bem$1l] = createNamespace("picker-group");
|
3238
|
+
const PICKER_GROUP_KEY = Symbol(name$1p);
|
3239
3239
|
const pickerGroupProps = extend({
|
3240
3240
|
tabs: makeArrayProp(),
|
3241
3241
|
activeTab: makeNumericProp(0),
|
3242
3242
|
nextStepText: String
|
3243
3243
|
}, pickerToolbarProps);
|
3244
|
-
var stdin_default$
|
3245
|
-
name: name$
|
3244
|
+
var stdin_default$1A = vue.defineComponent({
|
3245
|
+
name: name$1p,
|
3246
3246
|
props: pickerGroupProps,
|
3247
3247
|
emits: ["confirm", "cancel", "update:activeTab"],
|
3248
3248
|
setup(props2, {
|
@@ -3269,8 +3269,8 @@ var stdin_default$1z = vue.defineComponent({
|
|
3269
3269
|
const childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== vue.Comment);
|
3270
3270
|
const confirmButtonText = showNextButton() ? props2.nextStepText : props2.confirmButtonText;
|
3271
3271
|
return vue.createVNode("div", {
|
3272
|
-
"class": bem$
|
3273
|
-
}, [vue.createVNode(stdin_default$
|
3272
|
+
"class": bem$1l()
|
3273
|
+
}, [vue.createVNode(stdin_default$1H, {
|
3274
3274
|
"title": props2.title,
|
3275
3275
|
"cancelButtonText": props2.cancelButtonText,
|
3276
3276
|
"confirmButtonText": confirmButtonText,
|
@@ -3279,14 +3279,14 @@ var stdin_default$1z = vue.defineComponent({
|
|
3279
3279
|
}, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
|
3280
3280
|
"active": activeTab.value,
|
3281
3281
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
3282
|
-
"class": bem$
|
3282
|
+
"class": bem$1l("tabs"),
|
3283
3283
|
"shrink": true,
|
3284
3284
|
"animated": true,
|
3285
3285
|
"lazyRender": false
|
3286
3286
|
}, {
|
3287
3287
|
default: () => [props2.tabs.map((title, index) => vue.createVNode(Tab, {
|
3288
3288
|
"title": title,
|
3289
|
-
"titleClass": bem$
|
3289
|
+
"titleClass": bem$1l("tab-title")
|
3290
3290
|
}, {
|
3291
3291
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3292
3292
|
}))]
|
@@ -3309,8 +3309,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3309
3309
|
toolbarPosition: makeStringProp("top"),
|
3310
3310
|
columnsFieldNames: Object
|
3311
3311
|
});
|
3312
|
-
var stdin_default$
|
3313
|
-
name: name$
|
3312
|
+
var stdin_default$1z = vue.defineComponent({
|
3313
|
+
name: name$1z,
|
3314
3314
|
props: pickerProps,
|
3315
3315
|
emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
|
3316
3316
|
setup(props2, {
|
@@ -3391,7 +3391,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
3391
3391
|
return params;
|
3392
3392
|
};
|
3393
3393
|
const cancel = () => emit("cancel", getEventParams());
|
3394
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
3394
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1I, {
|
3395
3395
|
"value": selectedValues.value[columnIndex],
|
3396
3396
|
"fields": fields.value,
|
3397
3397
|
"options": options,
|
@@ -3420,10 +3420,10 @@ var stdin_default$1y = vue.defineComponent({
|
|
3420
3420
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3421
3421
|
};
|
3422
3422
|
return [vue.createVNode("div", {
|
3423
|
-
"class": bem$
|
3423
|
+
"class": bem$1u("mask"),
|
3424
3424
|
"style": maskStyle
|
3425
3425
|
}, null), vue.createVNode("div", {
|
3426
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3426
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1u("frame")],
|
3427
3427
|
"style": frameStyle
|
3428
3428
|
}, null)];
|
3429
3429
|
}
|
@@ -3435,13 +3435,13 @@ var stdin_default$1y = vue.defineComponent({
|
|
3435
3435
|
};
|
3436
3436
|
return vue.createVNode("div", {
|
3437
3437
|
"ref": columnsRef,
|
3438
|
-
"class": bem$
|
3438
|
+
"class": bem$1u("columns"),
|
3439
3439
|
"style": columnsStyle
|
3440
3440
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3441
3441
|
};
|
3442
3442
|
const renderToolbar = () => {
|
3443
3443
|
if (props2.showToolbar && !parent) {
|
3444
|
-
return vue.createVNode(stdin_default$
|
3444
|
+
return vue.createVNode(stdin_default$1H, vue.mergeProps(pick(props2, pickerToolbarPropKeys), {
|
3445
3445
|
"onConfirm": confirm,
|
3446
3446
|
"onCancel": cancel
|
3447
3447
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3484,9 +3484,9 @@ var stdin_default$1y = vue.defineComponent({
|
|
3484
3484
|
return () => {
|
3485
3485
|
var _a, _b;
|
3486
3486
|
return vue.createVNode("div", {
|
3487
|
-
"class": bem$
|
3487
|
+
"class": bem$1u()
|
3488
3488
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? vue.createVNode(Loading, {
|
3489
|
-
"class": bem$
|
3489
|
+
"class": bem$1u("loading")
|
3490
3490
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props2.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3491
3491
|
};
|
3492
3492
|
}
|
@@ -3577,8 +3577,8 @@ function formatDataForCascade({
|
|
3577
3577
|
}
|
3578
3578
|
return options;
|
3579
3579
|
}
|
3580
|
-
const Picker = withInstall(stdin_default$
|
3581
|
-
const [name$
|
3580
|
+
const Picker = withInstall(stdin_default$1z);
|
3581
|
+
const [name$1o, bem$1k] = createNamespace("area");
|
3582
3582
|
const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
3583
3583
|
modelValue: String,
|
3584
3584
|
columnsNum: makeNumericProp(3),
|
@@ -3588,8 +3588,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
|
3588
3588
|
default: () => ({})
|
3589
3589
|
}
|
3590
3590
|
});
|
3591
|
-
var stdin_default$
|
3592
|
-
name: name$
|
3591
|
+
var stdin_default$1y = vue.defineComponent({
|
3592
|
+
name: name$1o,
|
3593
3593
|
props: areaProps,
|
3594
3594
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3595
3595
|
setup(props2, {
|
@@ -3636,7 +3636,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
3636
3636
|
"ref": picker,
|
3637
3637
|
"modelValue": codes.value,
|
3638
3638
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3639
|
-
"class": bem$
|
3639
|
+
"class": bem$1k(),
|
3640
3640
|
"columns": columns.value,
|
3641
3641
|
"onChange": onChange,
|
3642
3642
|
"onCancel": onCancel,
|
@@ -3644,8 +3644,8 @@ var stdin_default$1x = vue.defineComponent({
|
|
3644
3644
|
}, pick(props2, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3645
3645
|
}
|
3646
3646
|
});
|
3647
|
-
const Area = withInstall(stdin_default$
|
3648
|
-
const [name$
|
3647
|
+
const Area = withInstall(stdin_default$1y);
|
3648
|
+
const [name$1n, bem$1j] = createNamespace("cell");
|
3649
3649
|
const cellSharedProps = {
|
3650
3650
|
tag: makeStringProp("div"),
|
3651
3651
|
icon: String,
|
@@ -3672,8 +3672,8 @@ const cellSharedProps = {
|
|
3672
3672
|
}
|
3673
3673
|
};
|
3674
3674
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3675
|
-
var stdin_default$
|
3676
|
-
name: name$
|
3675
|
+
var stdin_default$1x = vue.defineComponent({
|
3676
|
+
name: name$1n,
|
3677
3677
|
props: cellProps,
|
3678
3678
|
setup(props2, {
|
3679
3679
|
slots
|
@@ -3683,7 +3683,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3683
3683
|
const showLabel = slots.label || isDef(props2.label);
|
3684
3684
|
if (showLabel) {
|
3685
3685
|
return vue.createVNode("div", {
|
3686
|
-
"class": [bem$
|
3686
|
+
"class": [bem$1j("label"), props2.labelClass]
|
3687
3687
|
}, [slots.label ? slots.label() : props2.label]);
|
3688
3688
|
}
|
3689
3689
|
};
|
@@ -3695,7 +3695,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3695
3695
|
return;
|
3696
3696
|
}
|
3697
3697
|
return vue.createVNode("div", {
|
3698
|
-
"class": [bem$
|
3698
|
+
"class": [bem$1j("title"), props2.titleClass],
|
3699
3699
|
"style": props2.titleStyle
|
3700
3700
|
}, [titleSlot || vue.createVNode("span", null, [props2.title]), renderLabel()]);
|
3701
3701
|
}
|
@@ -3705,7 +3705,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3705
3705
|
const hasValue = slot || isDef(props2.value);
|
3706
3706
|
if (hasValue) {
|
3707
3707
|
return vue.createVNode("div", {
|
3708
|
-
"class": [bem$
|
3708
|
+
"class": [bem$1j("value"), props2.valueClass]
|
3709
3709
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
3710
3710
|
}
|
3711
3711
|
};
|
@@ -3716,7 +3716,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3716
3716
|
if (props2.icon) {
|
3717
3717
|
return vue.createVNode(Icon, {
|
3718
3718
|
"name": props2.icon,
|
3719
|
-
"class": bem$
|
3719
|
+
"class": bem$1j("left-icon"),
|
3720
3720
|
"classPrefix": props2.iconPrefix
|
3721
3721
|
}, null);
|
3722
3722
|
}
|
@@ -3729,7 +3729,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3729
3729
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
3730
3730
|
return vue.createVNode(Icon, {
|
3731
3731
|
"name": name2,
|
3732
|
-
"class": bem$
|
3732
|
+
"class": bem$1j("right-icon")
|
3733
3733
|
}, null);
|
3734
3734
|
}
|
3735
3735
|
};
|
@@ -3754,7 +3754,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3754
3754
|
classes[size] = !!size;
|
3755
3755
|
}
|
3756
3756
|
return vue.createVNode(tag, {
|
3757
|
-
"class": bem$
|
3757
|
+
"class": bem$1j(classes),
|
3758
3758
|
"role": clickable ? "button" : void 0,
|
3759
3759
|
"tabindex": clickable ? 0 : void 0,
|
3760
3760
|
"onClick": route2
|
@@ -3767,8 +3767,8 @@ var stdin_default$1w = vue.defineComponent({
|
|
3767
3767
|
};
|
3768
3768
|
}
|
3769
3769
|
});
|
3770
|
-
const Cell = withInstall(stdin_default$
|
3771
|
-
const [name$
|
3770
|
+
const Cell = withInstall(stdin_default$1x);
|
3771
|
+
const [name$1m, bem$1i] = createNamespace("form");
|
3772
3772
|
const formProps = {
|
3773
3773
|
colon: Boolean,
|
3774
3774
|
disabled: Boolean,
|
@@ -3788,8 +3788,8 @@ const formProps = {
|
|
3788
3788
|
default: "onBlur"
|
3789
3789
|
}
|
3790
3790
|
};
|
3791
|
-
var stdin_default$
|
3792
|
-
name: name$
|
3791
|
+
var stdin_default$1w = vue.defineComponent({
|
3792
|
+
name: name$1m,
|
3793
3793
|
props: formProps,
|
3794
3794
|
emits: ["submit", "failed"],
|
3795
3795
|
setup(props2, {
|
@@ -3915,13 +3915,13 @@ var stdin_default$1v = vue.defineComponent({
|
|
3915
3915
|
return () => {
|
3916
3916
|
var _a;
|
3917
3917
|
return vue.createVNode("form", {
|
3918
|
-
"class": bem$
|
3918
|
+
"class": bem$1i(),
|
3919
3919
|
"onSubmit": onSubmit
|
3920
3920
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3921
3921
|
};
|
3922
3922
|
}
|
3923
3923
|
});
|
3924
|
-
const Form = withInstall(stdin_default$
|
3924
|
+
const Form = withInstall(stdin_default$1w);
|
3925
3925
|
function isEmptyValue(value) {
|
3926
3926
|
if (Array.isArray(value)) {
|
3927
3927
|
return !value.length;
|
@@ -4010,7 +4010,7 @@ function getStringLength(str) {
|
|
4010
4010
|
function cutString(str, maxlength) {
|
4011
4011
|
return [...str].slice(0, maxlength).join("");
|
4012
4012
|
}
|
4013
|
-
const [name$
|
4013
|
+
const [name$1l, bem$1h] = createNamespace("field");
|
4014
4014
|
const fieldSharedProps = {
|
4015
4015
|
id: String,
|
4016
4016
|
name: String,
|
@@ -4063,8 +4063,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
4063
4063
|
default: null
|
4064
4064
|
}
|
4065
4065
|
});
|
4066
|
-
var stdin_default$
|
4067
|
-
name: name$
|
4066
|
+
var stdin_default$1v = vue.defineComponent({
|
4067
|
+
name: name$1l,
|
4068
4068
|
props: fieldProps,
|
4069
4069
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
4070
4070
|
setup(props2, {
|
@@ -4346,7 +4346,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4346
4346
|
const getInputId = () => props2.id || `${id}-input`;
|
4347
4347
|
const getValidationStatus = () => state.status;
|
4348
4348
|
const renderInput = () => {
|
4349
|
-
const controlClass = bem$
|
4349
|
+
const controlClass = bem$1h("control", [getProp("inputAlign"), {
|
4350
4350
|
error: showError.value,
|
4351
4351
|
custom: !!slots.input,
|
4352
4352
|
"min-height": props2.type === "textarea" && !props2.autosize
|
@@ -4391,7 +4391,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4391
4391
|
const leftIconSlot = slots["left-icon"];
|
4392
4392
|
if (props2.leftIcon || leftIconSlot) {
|
4393
4393
|
return vue.createVNode("div", {
|
4394
|
-
"class": bem$
|
4394
|
+
"class": bem$1h("left-icon"),
|
4395
4395
|
"onClick": onClickLeftIcon
|
4396
4396
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
4397
4397
|
"name": props2.leftIcon,
|
@@ -4403,7 +4403,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4403
4403
|
const rightIconSlot = slots["right-icon"];
|
4404
4404
|
if (props2.rightIcon || rightIconSlot) {
|
4405
4405
|
return vue.createVNode("div", {
|
4406
|
-
"class": bem$
|
4406
|
+
"class": bem$1h("right-icon"),
|
4407
4407
|
"onClick": onClickRightIcon
|
4408
4408
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
4409
4409
|
"name": props2.rightIcon,
|
@@ -4415,9 +4415,9 @@ var stdin_default$1u = vue.defineComponent({
|
|
4415
4415
|
if (props2.showWordLimit && props2.maxlength) {
|
4416
4416
|
const count = getStringLength(getModelValue());
|
4417
4417
|
return vue.createVNode("div", {
|
4418
|
-
"class": bem$
|
4418
|
+
"class": bem$1h("word-limit")
|
4419
4419
|
}, [vue.createVNode("span", {
|
4420
|
-
"class": bem$
|
4420
|
+
"class": bem$1h("word-num")
|
4421
4421
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
4422
4422
|
}
|
4423
4423
|
};
|
@@ -4430,7 +4430,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4430
4430
|
const slot = slots["error-message"];
|
4431
4431
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4432
4432
|
return vue.createVNode("div", {
|
4433
|
-
"class": bem$
|
4433
|
+
"class": bem$1h("error-message", errorMessageAlign)
|
4434
4434
|
}, [slot ? slot({
|
4435
4435
|
message
|
4436
4436
|
}) : message]);
|
@@ -4458,13 +4458,13 @@ var stdin_default$1u = vue.defineComponent({
|
|
4458
4458
|
}
|
4459
4459
|
};
|
4460
4460
|
const renderFieldBody = () => [vue.createVNode("div", {
|
4461
|
-
"class": bem$
|
4461
|
+
"class": bem$1h("body")
|
4462
4462
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
4463
4463
|
"ref": clearIconRef,
|
4464
4464
|
"name": props2.clearIcon,
|
4465
|
-
"class": bem$
|
4465
|
+
"class": bem$1h("clear")
|
4466
4466
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
4467
|
-
"class": bem$
|
4467
|
+
"class": bem$1h("button")
|
4468
4468
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4469
4469
|
useExpose({
|
4470
4470
|
blur,
|
@@ -4508,7 +4508,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4508
4508
|
};
|
4509
4509
|
return vue.createVNode(Cell, {
|
4510
4510
|
"size": props2.size,
|
4511
|
-
"class": bem$
|
4511
|
+
"class": bem$1h({
|
4512
4512
|
error: showError.value,
|
4513
4513
|
disabled,
|
4514
4514
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4518,8 +4518,8 @@ var stdin_default$1u = vue.defineComponent({
|
|
4518
4518
|
"isLink": props2.isLink,
|
4519
4519
|
"clickable": props2.clickable,
|
4520
4520
|
"titleStyle": labelStyle.value,
|
4521
|
-
"valueClass": bem$
|
4522
|
-
"titleClass": [bem$
|
4521
|
+
"valueClass": bem$1h("value"),
|
4522
|
+
"titleClass": [bem$1h("label", [labelAlign, {
|
4523
4523
|
required: showRequiredMark.value
|
4524
4524
|
}]), props2.labelClass],
|
4525
4525
|
"arrowDirection": props2.arrowDirection
|
@@ -4532,7 +4532,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4532
4532
|
};
|
4533
4533
|
}
|
4534
4534
|
});
|
4535
|
-
const Field = withInstall(stdin_default$
|
4535
|
+
const Field = withInstall(stdin_default$1v);
|
4536
4536
|
let lockCount = 0;
|
4537
4537
|
function lockClick(lock) {
|
4538
4538
|
if (lock) {
|
@@ -4547,7 +4547,7 @@ function lockClick(lock) {
|
|
4547
4547
|
}
|
4548
4548
|
}
|
4549
4549
|
}
|
4550
|
-
const [name$
|
4550
|
+
const [name$1k, bem$1g] = createNamespace("toast");
|
4551
4551
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4552
4552
|
const toastProps = {
|
4553
4553
|
icon: String,
|
@@ -4570,8 +4570,8 @@ const toastProps = {
|
|
4570
4570
|
closeOnClick: Boolean,
|
4571
4571
|
closeOnClickOverlay: Boolean
|
4572
4572
|
};
|
4573
|
-
var stdin_default$
|
4574
|
-
name: name$
|
4573
|
+
var stdin_default$1u = vue.defineComponent({
|
4574
|
+
name: name$1k,
|
4575
4575
|
props: toastProps,
|
4576
4576
|
emits: ["update:show"],
|
4577
4577
|
setup(props2, {
|
@@ -4607,13 +4607,13 @@ var stdin_default$1t = vue.defineComponent({
|
|
4607
4607
|
return vue.createVNode(Icon, {
|
4608
4608
|
"name": icon || type,
|
4609
4609
|
"size": iconSize,
|
4610
|
-
"class": bem$
|
4610
|
+
"class": bem$1g("icon"),
|
4611
4611
|
"classPrefix": iconPrefix
|
4612
4612
|
}, null);
|
4613
4613
|
}
|
4614
4614
|
if (type === "loading") {
|
4615
4615
|
return vue.createVNode(Loading, {
|
4616
|
-
"class": bem$
|
4616
|
+
"class": bem$1g("loading"),
|
4617
4617
|
"size": iconSize,
|
4618
4618
|
"type": loadingType
|
4619
4619
|
}, null);
|
@@ -4626,16 +4626,16 @@ var stdin_default$1t = vue.defineComponent({
|
|
4626
4626
|
} = props2;
|
4627
4627
|
if (slots.message) {
|
4628
4628
|
return vue.createVNode("div", {
|
4629
|
-
"class": bem$
|
4629
|
+
"class": bem$1g("text")
|
4630
4630
|
}, [slots.message()]);
|
4631
4631
|
}
|
4632
4632
|
if (isDef(message) && message !== "") {
|
4633
4633
|
return type === "html" ? vue.createVNode("div", {
|
4634
4634
|
"key": 0,
|
4635
|
-
"class": bem$
|
4635
|
+
"class": bem$1g("text"),
|
4636
4636
|
"innerHTML": String(message)
|
4637
4637
|
}, null) : vue.createVNode("div", {
|
4638
|
-
"class": bem$
|
4638
|
+
"class": bem$1g("text")
|
4639
4639
|
}, [message]);
|
4640
4640
|
}
|
4641
4641
|
};
|
@@ -4651,7 +4651,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
4651
4651
|
vue.onMounted(toggleClickable);
|
4652
4652
|
vue.onUnmounted(toggleClickable);
|
4653
4653
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
4654
|
-
"class": [bem$
|
4654
|
+
"class": [bem$1g([props2.position, props2.wordBreak === "normal" ? "break-normal" : props2.wordBreak, {
|
4655
4655
|
[props2.type]: !props2.icon
|
4656
4656
|
}]), props2.className],
|
4657
4657
|
"lockScroll": false,
|
@@ -4752,7 +4752,7 @@ function createInstance() {
|
|
4752
4752
|
onClosed,
|
4753
4753
|
"onUpdate:show": toggle
|
4754
4754
|
};
|
4755
|
-
return vue.createVNode(stdin_default$
|
4755
|
+
return vue.createVNode(stdin_default$1u, vue.mergeProps(state, attrs), null);
|
4756
4756
|
};
|
4757
4757
|
vue.watch(message, (val) => {
|
4758
4758
|
state.message = val;
|
@@ -4822,8 +4822,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4822
4822
|
const allowMultipleToast = (value = true) => {
|
4823
4823
|
allowMultiple = value;
|
4824
4824
|
};
|
4825
|
-
const Toast = withInstall(stdin_default$
|
4826
|
-
const [name$
|
4825
|
+
const Toast = withInstall(stdin_default$1u);
|
4826
|
+
const [name$1j, bem$1f] = createNamespace("switch");
|
4827
4827
|
const switchProps = {
|
4828
4828
|
size: numericProp,
|
4829
4829
|
loading: Boolean,
|
@@ -4840,8 +4840,8 @@ const switchProps = {
|
|
4840
4840
|
default: false
|
4841
4841
|
}
|
4842
4842
|
};
|
4843
|
-
var stdin_default$
|
4844
|
-
name: name$
|
4843
|
+
var stdin_default$1t = vue.defineComponent({
|
4844
|
+
name: name$1j,
|
4845
4845
|
props: switchProps,
|
4846
4846
|
emits: ["change", "update:modelValue"],
|
4847
4847
|
setup(props2, {
|
@@ -4860,7 +4860,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
4860
4860
|
if (props2.loading) {
|
4861
4861
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
4862
4862
|
return vue.createVNode(Loading, {
|
4863
|
-
"class": bem$
|
4863
|
+
"class": bem$1f("loading"),
|
4864
4864
|
"color": color
|
4865
4865
|
}, null);
|
4866
4866
|
}
|
@@ -4885,7 +4885,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
4885
4885
|
};
|
4886
4886
|
return vue.createVNode("div", {
|
4887
4887
|
"role": "switch",
|
4888
|
-
"class": bem$
|
4888
|
+
"class": bem$1f({
|
4889
4889
|
on: checked,
|
4890
4890
|
loading,
|
4891
4891
|
disabled
|
@@ -4895,16 +4895,16 @@ var stdin_default$1s = vue.defineComponent({
|
|
4895
4895
|
"aria-checked": checked,
|
4896
4896
|
"onClick": onClick
|
4897
4897
|
}, [vue.createVNode("div", {
|
4898
|
-
"class": bem$
|
4898
|
+
"class": bem$1f("node")
|
4899
4899
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4900
4900
|
};
|
4901
4901
|
}
|
4902
4902
|
});
|
4903
|
-
const Switch = withInstall(stdin_default$
|
4904
|
-
const [name$
|
4903
|
+
const Switch = withInstall(stdin_default$1t);
|
4904
|
+
const [name$1i, bem$1e] = createNamespace("address-edit-detail");
|
4905
4905
|
const t$j = createNamespace("address-edit")[2];
|
4906
|
-
var stdin_default$
|
4907
|
-
name: name$
|
4906
|
+
var stdin_default$1s = vue.defineComponent({
|
4907
|
+
name: name$1i,
|
4908
4908
|
props: {
|
4909
4909
|
show: Boolean,
|
4910
4910
|
rows: numericProp,
|
@@ -4938,7 +4938,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4938
4938
|
"icon": "location-o",
|
4939
4939
|
"title": express.name,
|
4940
4940
|
"label": express.address,
|
4941
|
-
"class": bem$
|
4941
|
+
"class": bem$1e("search-item"),
|
4942
4942
|
"border": false,
|
4943
4943
|
"onClick": () => onSelect(express)
|
4944
4944
|
}, null));
|
@@ -4952,7 +4952,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4952
4952
|
"autosize": true,
|
4953
4953
|
"clearable": true,
|
4954
4954
|
"ref": field,
|
4955
|
-
"class": bem$
|
4955
|
+
"class": bem$1e(),
|
4956
4956
|
"rows": props2.rows,
|
4957
4957
|
"type": "textarea",
|
4958
4958
|
"rules": props2.rules,
|
@@ -4969,7 +4969,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4969
4969
|
};
|
4970
4970
|
}
|
4971
4971
|
});
|
4972
|
-
const [name$
|
4972
|
+
const [name$1h, bem$1d, t$i] = createNamespace("address-edit");
|
4973
4973
|
const DEFAULT_DATA = {
|
4974
4974
|
name: "",
|
4975
4975
|
tel: "",
|
@@ -5009,8 +5009,8 @@ const addressEditProps = {
|
|
5009
5009
|
default: isMobile
|
5010
5010
|
}
|
5011
5011
|
};
|
5012
|
-
var stdin_default$
|
5013
|
-
name: name$
|
5012
|
+
var stdin_default$1r = vue.defineComponent({
|
5013
|
+
name: name$1h,
|
5014
5014
|
props: addressEditProps,
|
5015
5015
|
emits: ["save", "focus", "change", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
5016
5016
|
setup(props2, {
|
@@ -5128,7 +5128,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
5128
5128
|
"center": true,
|
5129
5129
|
"border": false,
|
5130
5130
|
"title": t$i("defaultAddress"),
|
5131
|
-
"class": bem$
|
5131
|
+
"class": bem$1d("default")
|
5132
5132
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
5133
5133
|
}
|
5134
5134
|
};
|
@@ -5154,13 +5154,13 @@ var stdin_default$1q = vue.defineComponent({
|
|
5154
5154
|
disableArea
|
5155
5155
|
} = props2;
|
5156
5156
|
return vue.createVNode(Form, {
|
5157
|
-
"class": bem$
|
5157
|
+
"class": bem$1d(),
|
5158
5158
|
"onSubmit": onSave
|
5159
5159
|
}, {
|
5160
5160
|
default: () => {
|
5161
5161
|
var _a;
|
5162
5162
|
return [vue.createVNode("div", {
|
5163
|
-
"class": bem$
|
5163
|
+
"class": bem$1d("fields")
|
5164
5164
|
}, [vue.createVNode(Field, {
|
5165
5165
|
"modelValue": data.name,
|
5166
5166
|
"onUpdate:modelValue": [($event) => data.name = $event, (val) => onChange("name", val)],
|
@@ -5191,7 +5191,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
5191
5191
|
emit("clickArea");
|
5192
5192
|
showAreaPopup.value = !disableArea;
|
5193
5193
|
}
|
5194
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
5194
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1s, {
|
5195
5195
|
"show": props2.showDetail,
|
5196
5196
|
"rows": props2.detailRows,
|
5197
5197
|
"rules": rules.value.addressDetail,
|
@@ -5205,19 +5205,19 @@ var stdin_default$1q = vue.defineComponent({
|
|
5205
5205
|
"onInput": onChangeDetail,
|
5206
5206
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5207
5207
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
5208
|
-
"class": bem$
|
5208
|
+
"class": bem$1d("buttons")
|
5209
5209
|
}, [vue.createVNode(Button, {
|
5210
5210
|
"block": true,
|
5211
5211
|
"round": true,
|
5212
5212
|
"type": "primary",
|
5213
5213
|
"text": props2.saveButtonText || t$i("save"),
|
5214
|
-
"class": bem$
|
5214
|
+
"class": bem$1d("button"),
|
5215
5215
|
"loading": props2.isSaving,
|
5216
5216
|
"nativeType": "submit"
|
5217
5217
|
}, null), props2.showDelete && vue.createVNode(Button, {
|
5218
5218
|
"block": true,
|
5219
5219
|
"round": true,
|
5220
|
-
"class": bem$
|
5220
|
+
"class": bem$1d("button"),
|
5221
5221
|
"loading": props2.isDeleting,
|
5222
5222
|
"text": props2.deleteButtonText || t$i("delete"),
|
5223
5223
|
"onClick": onDelete
|
@@ -5247,8 +5247,8 @@ var stdin_default$1q = vue.defineComponent({
|
|
5247
5247
|
};
|
5248
5248
|
}
|
5249
5249
|
});
|
5250
|
-
const AddressEdit = withInstall(stdin_default$
|
5251
|
-
const [name$
|
5250
|
+
const AddressEdit = withInstall(stdin_default$1r);
|
5251
|
+
const [name$1g, bem$1c] = createNamespace("radio-group");
|
5252
5252
|
const radioGroupProps = {
|
5253
5253
|
shape: String,
|
5254
5254
|
disabled: Boolean,
|
@@ -5257,9 +5257,9 @@ const radioGroupProps = {
|
|
5257
5257
|
modelValue: unknownProp,
|
5258
5258
|
checkedColor: String
|
5259
5259
|
};
|
5260
|
-
const RADIO_KEY = Symbol(name$
|
5261
|
-
var stdin_default$
|
5262
|
-
name: name$
|
5260
|
+
const RADIO_KEY = Symbol(name$1g);
|
5261
|
+
var stdin_default$1q = vue.defineComponent({
|
5262
|
+
name: name$1g,
|
5263
5263
|
props: radioGroupProps,
|
5264
5264
|
emits: ["change", "update:modelValue"],
|
5265
5265
|
setup(props2, {
|
@@ -5279,14 +5279,14 @@ var stdin_default$1p = vue.defineComponent({
|
|
5279
5279
|
return () => {
|
5280
5280
|
var _a;
|
5281
5281
|
return vue.createVNode("div", {
|
5282
|
-
"class": bem$
|
5282
|
+
"class": bem$1c([props2.direction]),
|
5283
5283
|
"role": "radiogroup"
|
5284
5284
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5285
5285
|
};
|
5286
5286
|
}
|
5287
5287
|
});
|
5288
|
-
const RadioGroup = withInstall(stdin_default$
|
5289
|
-
const [name$
|
5288
|
+
const RadioGroup = withInstall(stdin_default$1q);
|
5289
|
+
const [name$1f, bem$1b] = createNamespace("tag");
|
5290
5290
|
const tagProps = {
|
5291
5291
|
size: String,
|
5292
5292
|
mark: Boolean,
|
@@ -5298,8 +5298,8 @@ const tagProps = {
|
|
5298
5298
|
textColor: String,
|
5299
5299
|
closeable: Boolean
|
5300
5300
|
};
|
5301
|
-
var stdin_default$
|
5302
|
-
name: name$
|
5301
|
+
var stdin_default$1p = vue.defineComponent({
|
5302
|
+
name: name$1f,
|
5303
5303
|
props: tagProps,
|
5304
5304
|
emits: ["close"],
|
5305
5305
|
setup(props2, {
|
@@ -5342,12 +5342,12 @@ var stdin_default$1o = vue.defineComponent({
|
|
5342
5342
|
}
|
5343
5343
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5344
5344
|
"name": "cross",
|
5345
|
-
"class": [bem$
|
5345
|
+
"class": [bem$1b("close"), HAPTICS_FEEDBACK],
|
5346
5346
|
"onClick": onClose
|
5347
5347
|
}, null);
|
5348
5348
|
return vue.createVNode("span", {
|
5349
5349
|
"style": getStyle(),
|
5350
|
-
"class": bem$
|
5350
|
+
"class": bem$1b([classes, type])
|
5351
5351
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5352
5352
|
};
|
5353
5353
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5357,7 +5357,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
5357
5357
|
});
|
5358
5358
|
}
|
5359
5359
|
});
|
5360
|
-
const Tag = withInstall(stdin_default$
|
5360
|
+
const Tag = withInstall(stdin_default$1p);
|
5361
5361
|
const checkerProps = {
|
5362
5362
|
name: unknownProp,
|
5363
5363
|
disabled: Boolean,
|
@@ -5367,7 +5367,7 @@ const checkerProps = {
|
|
5367
5367
|
labelPosition: String,
|
5368
5368
|
labelDisabled: Boolean
|
5369
5369
|
};
|
5370
|
-
var stdin_default$
|
5370
|
+
var stdin_default$1o = vue.defineComponent({
|
5371
5371
|
props: extend({}, checkerProps, {
|
5372
5372
|
bem: makeRequiredProp(Function),
|
5373
5373
|
role: String,
|
@@ -5464,12 +5464,18 @@ var stdin_default$1n = vue.defineComponent({
|
|
5464
5464
|
}, null)]);
|
5465
5465
|
};
|
5466
5466
|
const renderLabel = () => {
|
5467
|
+
const {
|
5468
|
+
checked
|
5469
|
+
} = props2;
|
5467
5470
|
if (slots.default) {
|
5468
5471
|
return vue.createVNode("span", {
|
5469
5472
|
"class": props2.bem("label", [props2.labelPosition, {
|
5470
5473
|
disabled: disabled.value
|
5471
5474
|
}])
|
5472
|
-
}, [slots.default(
|
5475
|
+
}, [slots.default({
|
5476
|
+
checked,
|
5477
|
+
disabled: disabled.value
|
5478
|
+
})]);
|
5473
5479
|
}
|
5474
5480
|
};
|
5475
5481
|
return () => {
|
@@ -5490,9 +5496,9 @@ var stdin_default$1n = vue.defineComponent({
|
|
5490
5496
|
const radioProps = extend({}, checkerProps, {
|
5491
5497
|
shape: String
|
5492
5498
|
});
|
5493
|
-
const [name$
|
5494
|
-
var stdin_default$
|
5495
|
-
name: name$
|
5499
|
+
const [name$1e, bem$1a] = createNamespace("radio");
|
5500
|
+
var stdin_default$1n = vue.defineComponent({
|
5501
|
+
name: name$1e,
|
5496
5502
|
props: radioProps,
|
5497
5503
|
emits: ["update:modelValue"],
|
5498
5504
|
setup(props2, {
|
@@ -5513,8 +5519,8 @@ var stdin_default$1m = vue.defineComponent({
|
|
5513
5519
|
emit("update:modelValue", props2.name);
|
5514
5520
|
}
|
5515
5521
|
};
|
5516
|
-
return () => vue.createVNode(stdin_default$
|
5517
|
-
"bem": bem$
|
5522
|
+
return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
|
5523
|
+
"bem": bem$1a,
|
5518
5524
|
"role": "radio",
|
5519
5525
|
"parent": parent,
|
5520
5526
|
"checked": checked(),
|
@@ -5522,10 +5528,10 @@ var stdin_default$1m = vue.defineComponent({
|
|
5522
5528
|
}, props2), pick(slots, ["default", "icon"]));
|
5523
5529
|
}
|
5524
5530
|
});
|
5525
|
-
const Radio = withInstall(stdin_default$
|
5526
|
-
const [name$
|
5527
|
-
var stdin_default$
|
5528
|
-
name: name$
|
5531
|
+
const Radio = withInstall(stdin_default$1n);
|
5532
|
+
const [name$1d, bem$19] = createNamespace("address-item");
|
5533
|
+
var stdin_default$1m = vue.defineComponent({
|
5534
|
+
name: name$1d,
|
5529
5535
|
props: {
|
5530
5536
|
address: makeRequiredProp(Object),
|
5531
5537
|
disabled: Boolean,
|
@@ -5546,7 +5552,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5546
5552
|
};
|
5547
5553
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5548
5554
|
"name": props2.rightIcon,
|
5549
|
-
"class": bem$
|
5555
|
+
"class": bem$19("edit"),
|
5550
5556
|
"onClick": (event) => {
|
5551
5557
|
event.stopPropagation();
|
5552
5558
|
emit("edit");
|
@@ -5561,7 +5567,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5561
5567
|
return vue.createVNode(Tag, {
|
5562
5568
|
"type": "primary",
|
5563
5569
|
"round": true,
|
5564
|
-
"class": bem$
|
5570
|
+
"class": bem$19("tag")
|
5565
5571
|
}, {
|
5566
5572
|
default: () => [props2.defaultTagText]
|
5567
5573
|
});
|
@@ -5574,9 +5580,9 @@ var stdin_default$1l = vue.defineComponent({
|
|
5574
5580
|
switchable
|
5575
5581
|
} = props2;
|
5576
5582
|
const Info = [vue.createVNode("div", {
|
5577
|
-
"class": bem$
|
5583
|
+
"class": bem$19("name")
|
5578
5584
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
5579
|
-
"class": bem$
|
5585
|
+
"class": bem$19("address")
|
5580
5586
|
}, [address.address])];
|
5581
5587
|
if (switchable && !disabled) {
|
5582
5588
|
return vue.createVNode(Radio, {
|
@@ -5594,13 +5600,13 @@ var stdin_default$1l = vue.defineComponent({
|
|
5594
5600
|
disabled
|
5595
5601
|
} = props2;
|
5596
5602
|
return vue.createVNode("div", {
|
5597
|
-
"class": bem$
|
5603
|
+
"class": bem$19({
|
5598
5604
|
disabled
|
5599
5605
|
}),
|
5600
5606
|
"onClick": onClick
|
5601
5607
|
}, [vue.createVNode(Cell, {
|
5602
5608
|
"border": false,
|
5603
|
-
"titleClass": bem$
|
5609
|
+
"titleClass": bem$19("title")
|
5604
5610
|
}, {
|
5605
5611
|
title: renderContent,
|
5606
5612
|
"right-icon": renderRightIcon
|
@@ -5610,7 +5616,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5610
5616
|
};
|
5611
5617
|
}
|
5612
5618
|
});
|
5613
|
-
const [name$
|
5619
|
+
const [name$1c, bem$18, t$h] = createNamespace("address-list");
|
5614
5620
|
const addressListProps = {
|
5615
5621
|
list: makeArrayProp(),
|
5616
5622
|
modelValue: numericProp,
|
@@ -5622,8 +5628,8 @@ const addressListProps = {
|
|
5622
5628
|
defaultTagText: String,
|
5623
5629
|
rightIcon: makeStringProp("edit")
|
5624
5630
|
};
|
5625
|
-
var stdin_default$
|
5626
|
-
name: name$
|
5631
|
+
var stdin_default$1l = vue.defineComponent({
|
5632
|
+
name: name$1c,
|
5627
5633
|
props: addressListProps,
|
5628
5634
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5629
5635
|
setup(props2, {
|
@@ -5639,7 +5645,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
5639
5645
|
emit("update:modelValue", item.id);
|
5640
5646
|
}
|
5641
5647
|
};
|
5642
|
-
return vue.createVNode(stdin_default$
|
5648
|
+
return vue.createVNode(stdin_default$1m, {
|
5643
5649
|
"key": item.id,
|
5644
5650
|
"address": item,
|
5645
5651
|
"disabled": disabled,
|
@@ -5660,13 +5666,13 @@ var stdin_default$1k = vue.defineComponent({
|
|
5660
5666
|
}
|
5661
5667
|
};
|
5662
5668
|
const renderBottom = () => props2.showAddButton ? vue.createVNode("div", {
|
5663
|
-
"class": [bem$
|
5669
|
+
"class": [bem$18("bottom"), "van-safe-area-bottom"]
|
5664
5670
|
}, [vue.createVNode(Button, {
|
5665
5671
|
"round": true,
|
5666
5672
|
"block": true,
|
5667
5673
|
"type": "primary",
|
5668
5674
|
"text": props2.addButtonText || t$h("add"),
|
5669
|
-
"class": bem$
|
5675
|
+
"class": bem$18("add"),
|
5670
5676
|
"onClick": () => emit("add")
|
5671
5677
|
}, null)]) : void 0;
|
5672
5678
|
return () => {
|
@@ -5674,10 +5680,10 @@ var stdin_default$1k = vue.defineComponent({
|
|
5674
5680
|
const List2 = renderList(props2.list);
|
5675
5681
|
const DisabledList = renderList(props2.disabledList, true);
|
5676
5682
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
5677
|
-
"class": bem$
|
5683
|
+
"class": bem$18("disabled-text")
|
5678
5684
|
}, [props2.disabledText]);
|
5679
5685
|
return vue.createVNode("div", {
|
5680
|
-
"class": bem$
|
5686
|
+
"class": bem$18()
|
5681
5687
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
5682
5688
|
"modelValue": props2.modelValue
|
5683
5689
|
}, {
|
@@ -5686,7 +5692,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
5686
5692
|
};
|
5687
5693
|
}
|
5688
5694
|
});
|
5689
|
-
const AddressList = withInstall(stdin_default$
|
5695
|
+
const AddressList = withInstall(stdin_default$1l);
|
5690
5696
|
const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5691
5697
|
const modeType = {
|
5692
5698
|
event: "event",
|
@@ -5839,7 +5845,7 @@ class ImageCache {
|
|
5839
5845
|
this.caches.shift();
|
5840
5846
|
}
|
5841
5847
|
}
|
5842
|
-
const [name$
|
5848
|
+
const [name$1b, bem$17] = createNamespace("back-top");
|
5843
5849
|
const backTopProps = {
|
5844
5850
|
right: numericProp,
|
5845
5851
|
bottom: numericProp,
|
@@ -5852,8 +5858,8 @@ const backTopProps = {
|
|
5852
5858
|
default: "body"
|
5853
5859
|
}
|
5854
5860
|
};
|
5855
|
-
var stdin_default$
|
5856
|
-
name: name$
|
5861
|
+
var stdin_default$1k = vue.defineComponent({
|
5862
|
+
name: name$1b,
|
5857
5863
|
inheritAttrs: false,
|
5858
5864
|
props: backTopProps,
|
5859
5865
|
emits: ["click"],
|
@@ -5925,19 +5931,19 @@ var stdin_default$1j = vue.defineComponent({
|
|
5925
5931
|
return () => {
|
5926
5932
|
const Content = vue.createVNode("div", vue.mergeProps({
|
5927
5933
|
"ref": !props2.teleport ? root : void 0,
|
5928
|
-
"class": bem$
|
5934
|
+
"class": bem$17({
|
5929
5935
|
active: show.value
|
5930
5936
|
}),
|
5931
5937
|
"style": style.value,
|
5932
5938
|
"onClick": onClick
|
5933
5939
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
5934
5940
|
"name": "back-top",
|
5935
|
-
"class": bem$
|
5941
|
+
"class": bem$17("icon")
|
5936
5942
|
}, null)]);
|
5937
5943
|
if (props2.teleport) {
|
5938
5944
|
return [vue.createVNode("div", {
|
5939
5945
|
"ref": root,
|
5940
|
-
"class": bem$
|
5946
|
+
"class": bem$17("placeholder")
|
5941
5947
|
}, null), vue.createVNode(vue.Teleport, {
|
5942
5948
|
"to": props2.teleport
|
5943
5949
|
}, {
|
@@ -5948,7 +5954,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
5948
5954
|
};
|
5949
5955
|
}
|
5950
5956
|
});
|
5951
|
-
const BackTop = withInstall(stdin_default$
|
5957
|
+
const BackTop = withInstall(stdin_default$1k);
|
5952
5958
|
var __async = (__this, __arguments, generator) => {
|
5953
5959
|
return new Promise((resolve, reject) => {
|
5954
5960
|
var fulfilled = (value) => {
|
@@ -5977,9 +5983,9 @@ const barrageProps = {
|
|
5977
5983
|
delay: makeNumberProp(300),
|
5978
5984
|
modelValue: makeArrayProp()
|
5979
5985
|
};
|
5980
|
-
const [name$
|
5981
|
-
var stdin_default$
|
5982
|
-
name: name$
|
5986
|
+
const [name$1a, bem$16] = createNamespace("barrage");
|
5987
|
+
var stdin_default$1j = vue.defineComponent({
|
5988
|
+
name: name$1a,
|
5983
5989
|
props: barrageProps,
|
5984
5990
|
emits: ["update:modelValue"],
|
5985
5991
|
setup(props2, {
|
@@ -5987,7 +5993,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
5987
5993
|
slots
|
5988
5994
|
}) {
|
5989
5995
|
const barrageWrapper = vue.ref();
|
5990
|
-
const className = bem$
|
5996
|
+
const className = bem$16("item");
|
5991
5997
|
const total = vue.ref(0);
|
5992
5998
|
const barrageItems = [];
|
5993
5999
|
const createBarrageItem = (text, delay = props2.delay) => {
|
@@ -6068,15 +6074,15 @@ var stdin_default$1i = vue.defineComponent({
|
|
6068
6074
|
return () => {
|
6069
6075
|
var _a;
|
6070
6076
|
return vue.createVNode("div", {
|
6071
|
-
"class": bem$
|
6077
|
+
"class": bem$16(),
|
6072
6078
|
"ref": barrageWrapper,
|
6073
6079
|
"style": rootStyle.value
|
6074
6080
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6075
6081
|
};
|
6076
6082
|
}
|
6077
6083
|
});
|
6078
|
-
const Barrage = withInstall(stdin_default$
|
6079
|
-
const [name$
|
6084
|
+
const Barrage = withInstall(stdin_default$1j);
|
6085
|
+
const [name$19, bem$15, t$g] = createNamespace("calendar");
|
6080
6086
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6081
6087
|
function compareMonth(date1, date2) {
|
6082
6088
|
const year1 = date1.getFullYear();
|
@@ -6156,9 +6162,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
6156
6162
|
}
|
6157
6163
|
return value;
|
6158
6164
|
});
|
6159
|
-
const [name$
|
6160
|
-
var stdin_default$
|
6161
|
-
name: name$
|
6165
|
+
const [name$18] = createNamespace("calendar-day");
|
6166
|
+
var stdin_default$1i = vue.defineComponent({
|
6167
|
+
name: name$18,
|
6162
6168
|
props: {
|
6163
6169
|
item: makeRequiredProp(Object),
|
6164
6170
|
color: String,
|
@@ -6222,7 +6228,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6222
6228
|
} = props2.item;
|
6223
6229
|
if (topInfo || slots["top-info"]) {
|
6224
6230
|
return vue.createVNode("div", {
|
6225
|
-
"class": bem$
|
6231
|
+
"class": bem$15("top-info")
|
6226
6232
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
6227
6233
|
}
|
6228
6234
|
};
|
@@ -6232,7 +6238,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6232
6238
|
} = props2.item;
|
6233
6239
|
if (bottomInfo || slots["bottom-info"]) {
|
6234
6240
|
return vue.createVNode("div", {
|
6235
|
-
"class": bem$
|
6241
|
+
"class": bem$15("bottom-info")
|
6236
6242
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6237
6243
|
}
|
6238
6244
|
};
|
@@ -6249,7 +6255,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6249
6255
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
6250
6256
|
if (type === "selected") {
|
6251
6257
|
return vue.createVNode("div", {
|
6252
|
-
"class": bem$
|
6258
|
+
"class": bem$15("selected-day"),
|
6253
6259
|
"style": {
|
6254
6260
|
width: rowHeight,
|
6255
6261
|
height: rowHeight,
|
@@ -6266,21 +6272,21 @@ var stdin_default$1h = vue.defineComponent({
|
|
6266
6272
|
} = props2.item;
|
6267
6273
|
if (type === "placeholder") {
|
6268
6274
|
return vue.createVNode("div", {
|
6269
|
-
"class": bem$
|
6275
|
+
"class": bem$15("day"),
|
6270
6276
|
"style": style.value
|
6271
6277
|
}, null);
|
6272
6278
|
}
|
6273
6279
|
return vue.createVNode("div", {
|
6274
6280
|
"role": "gridcell",
|
6275
6281
|
"style": style.value,
|
6276
|
-
"class": [bem$
|
6282
|
+
"class": [bem$15("day", type), className],
|
6277
6283
|
"tabindex": type === "disabled" ? void 0 : -1,
|
6278
6284
|
"onClick": onClick
|
6279
6285
|
}, [renderContent()]);
|
6280
6286
|
};
|
6281
6287
|
}
|
6282
6288
|
});
|
6283
|
-
const [name$
|
6289
|
+
const [name$17] = createNamespace("calendar-month");
|
6284
6290
|
const calendarMonthProps = {
|
6285
6291
|
date: makeRequiredProp(Date),
|
6286
6292
|
type: String,
|
@@ -6297,8 +6303,8 @@ const calendarMonthProps = {
|
|
6297
6303
|
showMonthTitle: Boolean,
|
6298
6304
|
firstDayOfWeek: Number
|
6299
6305
|
};
|
6300
|
-
var stdin_default$
|
6301
|
-
name: name$
|
6306
|
+
var stdin_default$1h = vue.defineComponent({
|
6307
|
+
name: name$17,
|
6302
6308
|
props: calendarMonthProps,
|
6303
6309
|
emits: ["click", "clickDisabledDate"],
|
6304
6310
|
setup(props2, {
|
@@ -6403,7 +6409,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6403
6409
|
const renderTitle = () => {
|
6404
6410
|
if (props2.showMonthTitle) {
|
6405
6411
|
return vue.createVNode("div", {
|
6406
|
-
"class": bem$
|
6412
|
+
"class": bem$15("month-title")
|
6407
6413
|
}, [slots["month-title"] ? slots["month-title"]({
|
6408
6414
|
date: props2.date,
|
6409
6415
|
text: title.value
|
@@ -6413,7 +6419,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6413
6419
|
const renderMark = () => {
|
6414
6420
|
if (props2.showMark && shouldRender.value) {
|
6415
6421
|
return vue.createVNode("div", {
|
6416
|
-
"class": bem$
|
6422
|
+
"class": bem$15("month-mark")
|
6417
6423
|
}, [props2.date.getMonth() + 1]);
|
6418
6424
|
}
|
6419
6425
|
};
|
@@ -6453,7 +6459,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6453
6459
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
6454
6460
|
}
|
6455
6461
|
};
|
6456
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
6462
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1i, {
|
6457
6463
|
"item": item,
|
6458
6464
|
"index": index,
|
6459
6465
|
"color": props2.color,
|
@@ -6465,7 +6471,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6465
6471
|
const renderDays = () => vue.createVNode("div", {
|
6466
6472
|
"ref": daysRef,
|
6467
6473
|
"role": "grid",
|
6468
|
-
"class": bem$
|
6474
|
+
"class": bem$15("days")
|
6469
6475
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6470
6476
|
useExpose({
|
6471
6477
|
getTitle,
|
@@ -6475,14 +6481,14 @@ var stdin_default$1g = vue.defineComponent({
|
|
6475
6481
|
disabledDays
|
6476
6482
|
});
|
6477
6483
|
return () => vue.createVNode("div", {
|
6478
|
-
"class": bem$
|
6484
|
+
"class": bem$15("month"),
|
6479
6485
|
"ref": monthRef
|
6480
6486
|
}, [renderTitle(), renderDays()]);
|
6481
6487
|
}
|
6482
6488
|
});
|
6483
|
-
const [name$
|
6484
|
-
var stdin_default$
|
6485
|
-
name: name$
|
6489
|
+
const [name$16] = createNamespace("calendar-header");
|
6490
|
+
var stdin_default$1g = vue.defineComponent({
|
6491
|
+
name: name$16,
|
6486
6492
|
props: {
|
6487
6493
|
date: Date,
|
6488
6494
|
title: String,
|
@@ -6501,7 +6507,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
6501
6507
|
const text = props2.title || t$g("title");
|
6502
6508
|
const title = slots.title ? slots.title() : text;
|
6503
6509
|
return vue.createVNode("div", {
|
6504
|
-
"class": bem$
|
6510
|
+
"class": bem$15("header-title")
|
6505
6511
|
}, [title]);
|
6506
6512
|
}
|
6507
6513
|
};
|
@@ -6513,7 +6519,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
6513
6519
|
text: props2.subtitle
|
6514
6520
|
}) : props2.subtitle;
|
6515
6521
|
return vue.createVNode("div", {
|
6516
|
-
"class": bem$
|
6522
|
+
"class": bem$15("header-subtitle"),
|
6517
6523
|
"onClick": onClickSubtitle
|
6518
6524
|
}, [title]);
|
6519
6525
|
}
|
@@ -6525,13 +6531,13 @@ var stdin_default$1f = vue.defineComponent({
|
|
6525
6531
|
const weekdays = t$g("weekdays");
|
6526
6532
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
6527
6533
|
return vue.createVNode("div", {
|
6528
|
-
"class": bem$
|
6534
|
+
"class": bem$15("weekdays")
|
6529
6535
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
6530
|
-
"class": bem$
|
6536
|
+
"class": bem$15("weekday")
|
6531
6537
|
}, [text]))]);
|
6532
6538
|
};
|
6533
6539
|
return () => vue.createVNode("div", {
|
6534
|
-
"class": bem$
|
6540
|
+
"class": bem$15("header")
|
6535
6541
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
6536
6542
|
}
|
6537
6543
|
});
|
@@ -6582,8 +6588,8 @@ const calendarProps = {
|
|
6582
6588
|
validator: (val) => val >= 0 && val <= 6
|
6583
6589
|
}
|
6584
6590
|
};
|
6585
|
-
var stdin_default$
|
6586
|
-
name: name$
|
6591
|
+
var stdin_default$1f = vue.defineComponent({
|
6592
|
+
name: name$19,
|
6587
6593
|
props: calendarProps,
|
6588
6594
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate"],
|
6589
6595
|
setup(props2, {
|
@@ -6632,7 +6638,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6632
6638
|
let bodyHeight;
|
6633
6639
|
const bodyRef = vue.ref();
|
6634
6640
|
const subtitle = vue.ref({
|
6635
|
-
|
6641
|
+
textFn: () => "",
|
6636
6642
|
date: void 0
|
6637
6643
|
});
|
6638
6644
|
const currentDate = vue.ref(getInitialDate());
|
@@ -6696,7 +6702,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6696
6702
|
});
|
6697
6703
|
if (currentMonth) {
|
6698
6704
|
subtitle.value = {
|
6699
|
-
|
6705
|
+
textFn: currentMonth.getTitle,
|
6700
6706
|
date: currentMonth.date
|
6701
6707
|
};
|
6702
6708
|
}
|
@@ -6846,7 +6852,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6846
6852
|
const updateShow = (value) => emit("update:show", value);
|
6847
6853
|
const renderMonth = (date, index) => {
|
6848
6854
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
6849
|
-
return vue.createVNode(stdin_default$
|
6855
|
+
return vue.createVNode(stdin_default$1h, vue.mergeProps({
|
6850
6856
|
"ref": setMonthRefs(index),
|
6851
6857
|
"date": date,
|
6852
6858
|
"currentDate": currentDate.value,
|
@@ -6870,7 +6876,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6870
6876
|
"block": true,
|
6871
6877
|
"type": "primary",
|
6872
6878
|
"color": props2.color,
|
6873
|
-
"class": bem$
|
6879
|
+
"class": bem$15("confirm"),
|
6874
6880
|
"disabled": disabled,
|
6875
6881
|
"nativeType": "button",
|
6876
6882
|
"onClick": onConfirm
|
@@ -6882,25 +6888,28 @@ var stdin_default$1e = vue.defineComponent({
|
|
6882
6888
|
}
|
6883
6889
|
};
|
6884
6890
|
const renderFooter = () => vue.createVNode("div", {
|
6885
|
-
"class": [bem$
|
6891
|
+
"class": [bem$15("footer"), {
|
6886
6892
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
6887
6893
|
}]
|
6888
6894
|
}, [renderFooterButton()]);
|
6889
|
-
const renderCalendar = () =>
|
6890
|
-
|
6891
|
-
|
6892
|
-
|
6893
|
-
|
6894
|
-
|
6895
|
-
|
6896
|
-
|
6897
|
-
|
6898
|
-
|
6899
|
-
|
6900
|
-
|
6901
|
-
"
|
6902
|
-
|
6903
|
-
|
6895
|
+
const renderCalendar = () => {
|
6896
|
+
const subTitle = subtitle.value.textFn();
|
6897
|
+
return vue.createVNode("div", {
|
6898
|
+
"class": bem$15()
|
6899
|
+
}, [vue.createVNode(stdin_default$1g, {
|
6900
|
+
"date": subtitle.value.date,
|
6901
|
+
"title": props2.title,
|
6902
|
+
"subtitle": subTitle,
|
6903
|
+
"showTitle": props2.showTitle,
|
6904
|
+
"showSubtitle": props2.showSubtitle,
|
6905
|
+
"firstDayOfWeek": dayOffset.value,
|
6906
|
+
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6907
|
+
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
6908
|
+
"ref": bodyRef,
|
6909
|
+
"class": bem$15("body"),
|
6910
|
+
"onScroll": onScroll
|
6911
|
+
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6912
|
+
};
|
6904
6913
|
vue.watch(() => props2.show, init);
|
6905
6914
|
vue.watch(() => [props2.type, props2.minDate, props2.maxDate], () => reset(getInitialDate(currentDate.value)));
|
6906
6915
|
vue.watch(() => props2.defaultDate, (value = null) => {
|
@@ -6917,7 +6926,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6917
6926
|
if (props2.poppable) {
|
6918
6927
|
return vue.createVNode(Popup, {
|
6919
6928
|
"show": props2.show,
|
6920
|
-
"class": bem$
|
6929
|
+
"class": bem$15("popup"),
|
6921
6930
|
"round": props2.round,
|
6922
6931
|
"position": props2.position,
|
6923
6932
|
"closeable": props2.showTitle || props2.showSubtitle,
|
@@ -6934,8 +6943,8 @@ var stdin_default$1e = vue.defineComponent({
|
|
6934
6943
|
};
|
6935
6944
|
}
|
6936
6945
|
});
|
6937
|
-
const Calendar = withInstall(stdin_default$
|
6938
|
-
const [name$
|
6946
|
+
const Calendar = withInstall(stdin_default$1f);
|
6947
|
+
const [name$15, bem$14] = createNamespace("image");
|
6939
6948
|
const imageProps = {
|
6940
6949
|
src: String,
|
6941
6950
|
alt: String,
|
@@ -6954,8 +6963,8 @@ const imageProps = {
|
|
6954
6963
|
showLoading: truthProp,
|
6955
6964
|
loadingIcon: makeStringProp("photo")
|
6956
6965
|
};
|
6957
|
-
var stdin_default$
|
6958
|
-
name: name$
|
6966
|
+
var stdin_default$1e = vue.defineComponent({
|
6967
|
+
name: name$15,
|
6959
6968
|
props: imageProps,
|
6960
6969
|
emits: ["load", "error"],
|
6961
6970
|
setup(props2, {
|
@@ -7016,13 +7025,13 @@ var stdin_default$1d = vue.defineComponent({
|
|
7016
7025
|
const renderPlaceholder = () => {
|
7017
7026
|
if (loading.value && props2.showLoading) {
|
7018
7027
|
return vue.createVNode("div", {
|
7019
|
-
"class": bem$
|
7020
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
7028
|
+
"class": bem$14("loading")
|
7029
|
+
}, [renderIcon(props2.loadingIcon, bem$14("loading-icon"), slots.loading)]);
|
7021
7030
|
}
|
7022
7031
|
if (error.value && props2.showError) {
|
7023
7032
|
return vue.createVNode("div", {
|
7024
|
-
"class": bem$
|
7025
|
-
}, [renderIcon(props2.errorIcon, bem$
|
7033
|
+
"class": bem$14("error")
|
7034
|
+
}, [renderIcon(props2.errorIcon, bem$14("error-icon"), slots.error)]);
|
7026
7035
|
}
|
7027
7036
|
};
|
7028
7037
|
const renderImage = () => {
|
@@ -7031,7 +7040,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
7031
7040
|
}
|
7032
7041
|
const attrs = {
|
7033
7042
|
alt: props2.alt,
|
7034
|
-
class: bem$
|
7043
|
+
class: bem$14("img"),
|
7035
7044
|
style: {
|
7036
7045
|
objectFit: props2.fit,
|
7037
7046
|
objectPosition: props2.position
|
@@ -7089,7 +7098,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
7089
7098
|
return () => {
|
7090
7099
|
var _a;
|
7091
7100
|
return vue.createVNode("div", {
|
7092
|
-
"class": bem$
|
7101
|
+
"class": bem$14({
|
7093
7102
|
round: props2.round,
|
7094
7103
|
block: props2.block
|
7095
7104
|
}),
|
@@ -7098,8 +7107,8 @@ var stdin_default$1d = vue.defineComponent({
|
|
7098
7107
|
};
|
7099
7108
|
}
|
7100
7109
|
});
|
7101
|
-
const Image$1 = withInstall(stdin_default$
|
7102
|
-
const [name$
|
7110
|
+
const Image$1 = withInstall(stdin_default$1e);
|
7111
|
+
const [name$14, bem$13] = createNamespace("card");
|
7103
7112
|
const cardProps = {
|
7104
7113
|
tag: String,
|
7105
7114
|
num: numericProp,
|
@@ -7113,8 +7122,8 @@ const cardProps = {
|
|
7113
7122
|
thumbLink: String,
|
7114
7123
|
originPrice: numericProp
|
7115
7124
|
};
|
7116
|
-
var stdin_default$
|
7117
|
-
name: name$
|
7125
|
+
var stdin_default$1d = vue.defineComponent({
|
7126
|
+
name: name$14,
|
7118
7127
|
props: cardProps,
|
7119
7128
|
emits: ["clickThumb"],
|
7120
7129
|
setup(props2, {
|
@@ -7127,14 +7136,14 @@ var stdin_default$1c = vue.defineComponent({
|
|
7127
7136
|
}
|
7128
7137
|
if (props2.title) {
|
7129
7138
|
return vue.createVNode("div", {
|
7130
|
-
"class": [bem$
|
7139
|
+
"class": [bem$13("title"), "van-multi-ellipsis--l2"]
|
7131
7140
|
}, [props2.title]);
|
7132
7141
|
}
|
7133
7142
|
};
|
7134
7143
|
const renderThumbTag = () => {
|
7135
7144
|
if (slots.tag || props2.tag) {
|
7136
7145
|
return vue.createVNode("div", {
|
7137
|
-
"class": bem$
|
7146
|
+
"class": bem$13("tag")
|
7138
7147
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
7139
7148
|
"mark": true,
|
7140
7149
|
"type": "primary"
|
@@ -7159,7 +7168,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
7159
7168
|
if (slots.thumb || props2.thumb) {
|
7160
7169
|
return vue.createVNode("a", {
|
7161
7170
|
"href": props2.thumbLink,
|
7162
|
-
"class": bem$
|
7171
|
+
"class": bem$13("thumb"),
|
7163
7172
|
"onClick": (event) => emit("clickThumb", event)
|
7164
7173
|
}, [renderThumbImage(), renderThumbTag()]);
|
7165
7174
|
}
|
@@ -7170,18 +7179,18 @@ var stdin_default$1c = vue.defineComponent({
|
|
7170
7179
|
}
|
7171
7180
|
if (props2.desc) {
|
7172
7181
|
return vue.createVNode("div", {
|
7173
|
-
"class": [bem$
|
7182
|
+
"class": [bem$13("desc"), "van-ellipsis"]
|
7174
7183
|
}, [props2.desc]);
|
7175
7184
|
}
|
7176
7185
|
};
|
7177
7186
|
const renderPriceText = () => {
|
7178
7187
|
const priceArr = props2.price.toString().split(".");
|
7179
7188
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
7180
|
-
"class": bem$
|
7189
|
+
"class": bem$13("price-currency")
|
7181
7190
|
}, [props2.currency]), vue.createVNode("span", {
|
7182
|
-
"class": bem$
|
7191
|
+
"class": bem$13("price-integer")
|
7183
7192
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7184
|
-
"class": bem$
|
7193
|
+
"class": bem$13("price-decimal")
|
7185
7194
|
}, [priceArr[1]])]);
|
7186
7195
|
};
|
7187
7196
|
return () => {
|
@@ -7191,34 +7200,34 @@ var stdin_default$1c = vue.defineComponent({
|
|
7191
7200
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
7192
7201
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
7193
7202
|
const Price = showPrice && vue.createVNode("div", {
|
7194
|
-
"class": bem$
|
7203
|
+
"class": bem$13("price")
|
7195
7204
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
7196
7205
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
7197
|
-
"class": bem$
|
7206
|
+
"class": bem$13("origin-price")
|
7198
7207
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
7199
7208
|
const Num = showNum && vue.createVNode("div", {
|
7200
|
-
"class": bem$
|
7209
|
+
"class": bem$13("num")
|
7201
7210
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
7202
7211
|
const Footer = slots.footer && vue.createVNode("div", {
|
7203
|
-
"class": bem$
|
7212
|
+
"class": bem$13("footer")
|
7204
7213
|
}, [slots.footer()]);
|
7205
7214
|
const Bottom = showBottom && vue.createVNode("div", {
|
7206
|
-
"class": bem$
|
7215
|
+
"class": bem$13("bottom")
|
7207
7216
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
7208
7217
|
return vue.createVNode("div", {
|
7209
|
-
"class": bem$
|
7218
|
+
"class": bem$13()
|
7210
7219
|
}, [vue.createVNode("div", {
|
7211
|
-
"class": bem$
|
7220
|
+
"class": bem$13("header")
|
7212
7221
|
}, [renderThumb(), vue.createVNode("div", {
|
7213
|
-
"class": bem$
|
7222
|
+
"class": bem$13("content", {
|
7214
7223
|
centered: props2.centered
|
7215
7224
|
})
|
7216
7225
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
7217
7226
|
};
|
7218
7227
|
}
|
7219
7228
|
});
|
7220
|
-
const Card = withInstall(stdin_default$
|
7221
|
-
const [name$
|
7229
|
+
const Card = withInstall(stdin_default$1d);
|
7230
|
+
const [name$13, bem$12, t$f] = createNamespace("cascader");
|
7222
7231
|
const cascaderProps = {
|
7223
7232
|
title: String,
|
7224
7233
|
options: makeArrayProp(),
|
@@ -7231,8 +7240,8 @@ const cascaderProps = {
|
|
7231
7240
|
placeholder: String,
|
7232
7241
|
activeColor: String
|
7233
7242
|
};
|
7234
|
-
var stdin_default$
|
7235
|
-
name: name$
|
7243
|
+
var stdin_default$1c = vue.defineComponent({
|
7244
|
+
name: name$13,
|
7236
7245
|
props: cascaderProps,
|
7237
7246
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
7238
7247
|
setup(props2, {
|
@@ -7341,12 +7350,12 @@ var stdin_default$1b = vue.defineComponent({
|
|
7341
7350
|
title
|
7342
7351
|
}) => emit("clickTab", name2, title);
|
7343
7352
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
7344
|
-
"class": bem$
|
7353
|
+
"class": bem$12("header")
|
7345
7354
|
}, [vue.createVNode("h2", {
|
7346
|
-
"class": bem$
|
7355
|
+
"class": bem$12("title")
|
7347
7356
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
7348
7357
|
"name": props2.closeIcon,
|
7349
|
-
"class": [bem$
|
7358
|
+
"class": [bem$12("close-icon"), HAPTICS_FEEDBACK],
|
7350
7359
|
"onClick": onClose
|
7351
7360
|
}, null) : null]) : null;
|
7352
7361
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7362,7 +7371,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7362
7371
|
return vue.createVNode("li", {
|
7363
7372
|
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7364
7373
|
"role": "menuitemradio",
|
7365
|
-
"class": [bem$
|
7374
|
+
"class": [bem$12("option", {
|
7366
7375
|
selected,
|
7367
7376
|
disabled
|
7368
7377
|
}), option.className],
|
@@ -7375,12 +7384,12 @@ var stdin_default$1b = vue.defineComponent({
|
|
7375
7384
|
"onClick": () => onSelect(option, tabIndex)
|
7376
7385
|
}, [Text, selected ? vue.createVNode(Icon, {
|
7377
7386
|
"name": "success",
|
7378
|
-
"class": bem$
|
7387
|
+
"class": bem$12("selected-icon")
|
7379
7388
|
}, null) : null]);
|
7380
7389
|
};
|
7381
7390
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
7382
7391
|
"role": "menu",
|
7383
|
-
"class": bem$
|
7392
|
+
"class": bem$12("options")
|
7384
7393
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
7385
7394
|
const renderTab = (tab, tabIndex) => {
|
7386
7395
|
const {
|
@@ -7391,7 +7400,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7391
7400
|
const title = selected ? selected[textKey] : placeholder;
|
7392
7401
|
return vue.createVNode(Tab, {
|
7393
7402
|
"title": title,
|
7394
|
-
"titleClass": bem$
|
7403
|
+
"titleClass": bem$12("tab", {
|
7395
7404
|
unselected: !selected
|
7396
7405
|
})
|
7397
7406
|
}, {
|
@@ -7410,7 +7419,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7410
7419
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7411
7420
|
"shrink": true,
|
7412
7421
|
"animated": true,
|
7413
|
-
"class": bem$
|
7422
|
+
"class": bem$12("tabs"),
|
7414
7423
|
"color": props2.activeColor,
|
7415
7424
|
"swipeable": props2.swipeable,
|
7416
7425
|
"onClickTab": onClickTab
|
@@ -7445,19 +7454,19 @@ var stdin_default$1b = vue.defineComponent({
|
|
7445
7454
|
updateTabs();
|
7446
7455
|
});
|
7447
7456
|
return () => vue.createVNode("div", {
|
7448
|
-
"class": bem$
|
7457
|
+
"class": bem$12()
|
7449
7458
|
}, [renderHeader(), renderTabs()]);
|
7450
7459
|
}
|
7451
7460
|
});
|
7452
|
-
const Cascader = withInstall(stdin_default$
|
7453
|
-
const [name$
|
7461
|
+
const Cascader = withInstall(stdin_default$1c);
|
7462
|
+
const [name$12, bem$11] = createNamespace("cell-group");
|
7454
7463
|
const cellGroupProps = {
|
7455
7464
|
title: String,
|
7456
7465
|
inset: Boolean,
|
7457
7466
|
border: truthProp
|
7458
7467
|
};
|
7459
|
-
var stdin_default$
|
7460
|
-
name: name$
|
7468
|
+
var stdin_default$1b = vue.defineComponent({
|
7469
|
+
name: name$12,
|
7461
7470
|
inheritAttrs: false,
|
7462
7471
|
props: cellGroupProps,
|
7463
7472
|
setup(props2, {
|
@@ -7467,7 +7476,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
7467
7476
|
const renderGroup = () => {
|
7468
7477
|
var _a;
|
7469
7478
|
return vue.createVNode("div", vue.mergeProps({
|
7470
|
-
"class": [bem$
|
7479
|
+
"class": [bem$11({
|
7471
7480
|
inset: props2.inset
|
7472
7481
|
}), {
|
7473
7482
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
@@ -7475,7 +7484,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
7475
7484
|
}, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7476
7485
|
};
|
7477
7486
|
const renderTitle = () => vue.createVNode("div", {
|
7478
|
-
"class": bem$
|
7487
|
+
"class": bem$11("title", {
|
7479
7488
|
inset: props2.inset
|
7480
7489
|
})
|
7481
7490
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -7487,8 +7496,8 @@ var stdin_default$1a = vue.defineComponent({
|
|
7487
7496
|
};
|
7488
7497
|
}
|
7489
7498
|
});
|
7490
|
-
const CellGroup = withInstall(stdin_default$
|
7491
|
-
const [name$
|
7499
|
+
const CellGroup = withInstall(stdin_default$1b);
|
7500
|
+
const [name$11, bem$10] = createNamespace("checkbox-group");
|
7492
7501
|
const checkboxGroupProps = {
|
7493
7502
|
max: numericProp,
|
7494
7503
|
shape: makeStringProp("round"),
|
@@ -7498,9 +7507,9 @@ const checkboxGroupProps = {
|
|
7498
7507
|
modelValue: makeArrayProp(),
|
7499
7508
|
checkedColor: String
|
7500
7509
|
};
|
7501
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
7502
|
-
var stdin_default$
|
7503
|
-
name: name$
|
7510
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$11);
|
7511
|
+
var stdin_default$1a = vue.defineComponent({
|
7512
|
+
name: name$11,
|
7504
7513
|
props: checkboxGroupProps,
|
7505
7514
|
emits: ["change", "update:modelValue"],
|
7506
7515
|
setup(props2, {
|
@@ -7546,12 +7555,12 @@ var stdin_default$19 = vue.defineComponent({
|
|
7546
7555
|
return () => {
|
7547
7556
|
var _a;
|
7548
7557
|
return vue.createVNode("div", {
|
7549
|
-
"class": bem
|
7558
|
+
"class": bem$10([props2.direction])
|
7550
7559
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7551
7560
|
};
|
7552
7561
|
}
|
7553
7562
|
});
|
7554
|
-
const [name
|
7563
|
+
const [name$10, bem$$] = createNamespace("checkbox");
|
7555
7564
|
const checkboxProps = extend({}, checkerProps, {
|
7556
7565
|
shape: String,
|
7557
7566
|
bindGroup: truthProp,
|
@@ -7560,8 +7569,8 @@ const checkboxProps = extend({}, checkerProps, {
|
|
7560
7569
|
default: null
|
7561
7570
|
}
|
7562
7571
|
});
|
7563
|
-
var stdin_default$
|
7564
|
-
name: name
|
7572
|
+
var stdin_default$19 = vue.defineComponent({
|
7573
|
+
name: name$10,
|
7565
7574
|
props: checkboxProps,
|
7566
7575
|
emits: ["change", "update:modelValue"],
|
7567
7576
|
setup(props2, {
|
@@ -7623,8 +7632,8 @@ var stdin_default$18 = vue.defineComponent({
|
|
7623
7632
|
checked
|
7624
7633
|
});
|
7625
7634
|
use.useCustomFieldValue(() => props2.modelValue);
|
7626
|
-
return () => vue.createVNode(stdin_default$
|
7627
|
-
"bem": bem
|
7635
|
+
return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
|
7636
|
+
"bem": bem$$,
|
7628
7637
|
"role": "checkbox",
|
7629
7638
|
"parent": parent,
|
7630
7639
|
"checked": checked.value,
|
@@ -7632,9 +7641,9 @@ var stdin_default$18 = vue.defineComponent({
|
|
7632
7641
|
}, props2), pick(slots, ["default", "icon"]));
|
7633
7642
|
}
|
7634
7643
|
});
|
7635
|
-
const Checkbox = withInstall(stdin_default$
|
7636
|
-
const CheckboxGroup = withInstall(stdin_default$
|
7637
|
-
const [name
|
7644
|
+
const Checkbox = withInstall(stdin_default$19);
|
7645
|
+
const CheckboxGroup = withInstall(stdin_default$1a);
|
7646
|
+
const [name$$, bem$_] = createNamespace("circle");
|
7638
7647
|
let uid = 0;
|
7639
7648
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7640
7649
|
function getPath(clockwise, viewBoxSize) {
|
@@ -7655,8 +7664,8 @@ const circleProps = {
|
|
7655
7664
|
strokeLinecap: String,
|
7656
7665
|
startPosition: makeStringProp("top")
|
7657
7666
|
};
|
7658
|
-
var stdin_default$
|
7659
|
-
name: name
|
7667
|
+
var stdin_default$18 = vue.defineComponent({
|
7668
|
+
name: name$$,
|
7660
7669
|
props: circleProps,
|
7661
7670
|
emits: ["update:currentRate"],
|
7662
7671
|
setup(props2, {
|
@@ -7724,7 +7733,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
7724
7733
|
return vue.createVNode("path", {
|
7725
7734
|
"d": path.value,
|
7726
7735
|
"style": style,
|
7727
|
-
"class": bem$
|
7736
|
+
"class": bem$_("hover"),
|
7728
7737
|
"stroke": color
|
7729
7738
|
}, null);
|
7730
7739
|
};
|
@@ -7735,7 +7744,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
7735
7744
|
strokeWidth: `${props2.strokeWidth}px`
|
7736
7745
|
};
|
7737
7746
|
return vue.createVNode("path", {
|
7738
|
-
"class": bem$
|
7747
|
+
"class": bem$_("layer"),
|
7739
7748
|
"style": style,
|
7740
7749
|
"d": path.value
|
7741
7750
|
}, null);
|
@@ -7766,12 +7775,12 @@ var stdin_default$17 = vue.defineComponent({
|
|
7766
7775
|
}
|
7767
7776
|
if (props2.text) {
|
7768
7777
|
return vue.createVNode("div", {
|
7769
|
-
"class": bem$
|
7778
|
+
"class": bem$_("text")
|
7770
7779
|
}, [props2.text]);
|
7771
7780
|
}
|
7772
7781
|
};
|
7773
7782
|
return () => vue.createVNode("div", {
|
7774
|
-
"class": bem$
|
7783
|
+
"class": bem$_(),
|
7775
7784
|
"style": getSizeStyle(props2.size)
|
7776
7785
|
}, [vue.createVNode("svg", {
|
7777
7786
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -7779,18 +7788,21 @@ var stdin_default$17 = vue.defineComponent({
|
|
7779
7788
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7780
7789
|
}
|
7781
7790
|
});
|
7782
|
-
const Circle = withInstall(stdin_default$
|
7783
|
-
const [name$
|
7784
|
-
const ROW_KEY = Symbol(name$
|
7791
|
+
const Circle = withInstall(stdin_default$18);
|
7792
|
+
const [name$_, bem$Z] = createNamespace("row");
|
7793
|
+
const ROW_KEY = Symbol(name$_);
|
7785
7794
|
const rowProps = {
|
7786
7795
|
tag: makeStringProp("div"),
|
7787
7796
|
wrap: truthProp,
|
7788
7797
|
align: String,
|
7789
|
-
gutter:
|
7798
|
+
gutter: {
|
7799
|
+
type: [String, Number, Array],
|
7800
|
+
default: 0
|
7801
|
+
},
|
7790
7802
|
justify: String
|
7791
7803
|
};
|
7792
|
-
var stdin_default$
|
7793
|
-
name: name$
|
7804
|
+
var stdin_default$17 = vue.defineComponent({
|
7805
|
+
name: name$_,
|
7794
7806
|
props: rowProps,
|
7795
7807
|
setup(props2, {
|
7796
7808
|
slots
|
@@ -7814,7 +7826,12 @@ var stdin_default$16 = vue.defineComponent({
|
|
7814
7826
|
return groups2;
|
7815
7827
|
});
|
7816
7828
|
const spaces = vue.computed(() => {
|
7817
|
-
|
7829
|
+
let gutter = 0;
|
7830
|
+
if (Array.isArray(props2.gutter)) {
|
7831
|
+
gutter = Number(props2.gutter[0]) || 0;
|
7832
|
+
} else {
|
7833
|
+
gutter = Number(props2.gutter);
|
7834
|
+
}
|
7818
7835
|
const spaces2 = [];
|
7819
7836
|
if (!gutter) {
|
7820
7837
|
return spaces2;
|
@@ -7838,8 +7855,31 @@ var stdin_default$16 = vue.defineComponent({
|
|
7838
7855
|
});
|
7839
7856
|
return spaces2;
|
7840
7857
|
});
|
7858
|
+
const verticalSpaces = vue.computed(() => {
|
7859
|
+
const {
|
7860
|
+
gutter
|
7861
|
+
} = props2;
|
7862
|
+
const spaces2 = [];
|
7863
|
+
if (Array.isArray(gutter) && gutter.length > 1) {
|
7864
|
+
const bottom = Number(gutter[1]) || 0;
|
7865
|
+
if (bottom <= 0) {
|
7866
|
+
return spaces2;
|
7867
|
+
}
|
7868
|
+
groups.value.forEach((group, index) => {
|
7869
|
+
if (index === groups.value.length - 1)
|
7870
|
+
return;
|
7871
|
+
group.forEach(() => {
|
7872
|
+
spaces2.push({
|
7873
|
+
bottom
|
7874
|
+
});
|
7875
|
+
});
|
7876
|
+
});
|
7877
|
+
}
|
7878
|
+
return spaces2;
|
7879
|
+
});
|
7841
7880
|
linkChildren({
|
7842
|
-
spaces
|
7881
|
+
spaces,
|
7882
|
+
verticalSpaces
|
7843
7883
|
});
|
7844
7884
|
return () => {
|
7845
7885
|
const {
|
@@ -7849,7 +7889,7 @@ var stdin_default$16 = vue.defineComponent({
|
|
7849
7889
|
justify
|
7850
7890
|
} = props2;
|
7851
7891
|
return vue.createVNode(tag, {
|
7852
|
-
"class": bem$
|
7892
|
+
"class": bem$Z({
|
7853
7893
|
[`align-${align}`]: align,
|
7854
7894
|
[`justify-${justify}`]: justify,
|
7855
7895
|
nowrap: !wrap
|
@@ -7863,14 +7903,14 @@ var stdin_default$16 = vue.defineComponent({
|
|
7863
7903
|
};
|
7864
7904
|
}
|
7865
7905
|
});
|
7866
|
-
const [name$
|
7906
|
+
const [name$Z, bem$Y] = createNamespace("col");
|
7867
7907
|
const colProps = {
|
7868
7908
|
tag: makeStringProp("div"),
|
7869
7909
|
span: makeNumericProp(0),
|
7870
7910
|
offset: numericProp
|
7871
7911
|
};
|
7872
|
-
var stdin_default$
|
7873
|
-
name: name$
|
7912
|
+
var stdin_default$16 = vue.defineComponent({
|
7913
|
+
name: name$Z,
|
7874
7914
|
props: colProps,
|
7875
7915
|
setup(props2, {
|
7876
7916
|
slots
|
@@ -7884,18 +7924,26 @@ var stdin_default$15 = vue.defineComponent({
|
|
7884
7924
|
return;
|
7885
7925
|
}
|
7886
7926
|
const {
|
7887
|
-
spaces
|
7927
|
+
spaces,
|
7928
|
+
verticalSpaces
|
7888
7929
|
} = parent;
|
7930
|
+
let styles = {};
|
7889
7931
|
if (spaces && spaces.value && spaces.value[index.value]) {
|
7890
7932
|
const {
|
7891
7933
|
left,
|
7892
7934
|
right
|
7893
7935
|
} = spaces.value[index.value];
|
7894
|
-
|
7936
|
+
styles = {
|
7895
7937
|
paddingLeft: left ? `${left}px` : null,
|
7896
7938
|
paddingRight: right ? `${right}px` : null
|
7897
7939
|
};
|
7898
7940
|
}
|
7941
|
+
const {
|
7942
|
+
bottom
|
7943
|
+
} = verticalSpaces.value[index.value] || {};
|
7944
|
+
return extend(styles, {
|
7945
|
+
marginBottom: bottom ? `${bottom}px` : null
|
7946
|
+
});
|
7899
7947
|
});
|
7900
7948
|
return () => {
|
7901
7949
|
const {
|
@@ -7905,7 +7953,7 @@ var stdin_default$15 = vue.defineComponent({
|
|
7905
7953
|
} = props2;
|
7906
7954
|
return vue.createVNode(tag, {
|
7907
7955
|
"style": style.value,
|
7908
|
-
"class": bem$
|
7956
|
+
"class": bem$Y({
|
7909
7957
|
[span]: span,
|
7910
7958
|
[`offset-${offset}`]: offset
|
7911
7959
|
})
|
@@ -7918,9 +7966,9 @@ var stdin_default$15 = vue.defineComponent({
|
|
7918
7966
|
};
|
7919
7967
|
}
|
7920
7968
|
});
|
7921
|
-
const Col = withInstall(stdin_default$
|
7922
|
-
const [name$
|
7923
|
-
const COLLAPSE_KEY = Symbol(name$
|
7969
|
+
const Col = withInstall(stdin_default$16);
|
7970
|
+
const [name$Y, bem$X] = createNamespace("collapse");
|
7971
|
+
const COLLAPSE_KEY = Symbol(name$Y);
|
7924
7972
|
const collapseProps = {
|
7925
7973
|
border: truthProp,
|
7926
7974
|
accordion: Boolean,
|
@@ -7940,8 +7988,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7940
7988
|
}
|
7941
7989
|
return true;
|
7942
7990
|
}
|
7943
|
-
var stdin_default$
|
7944
|
-
name: name$
|
7991
|
+
var stdin_default$15 = vue.defineComponent({
|
7992
|
+
name: name$Y,
|
7945
7993
|
props: collapseProps,
|
7946
7994
|
emits: ["change", "update:modelValue"],
|
7947
7995
|
setup(props2, {
|
@@ -8011,15 +8059,15 @@ var stdin_default$14 = vue.defineComponent({
|
|
8011
8059
|
return () => {
|
8012
8060
|
var _a;
|
8013
8061
|
return vue.createVNode("div", {
|
8014
|
-
"class": [bem$
|
8062
|
+
"class": [bem$X(), {
|
8015
8063
|
[BORDER_TOP_BOTTOM]: props2.border
|
8016
8064
|
}]
|
8017
8065
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8018
8066
|
};
|
8019
8067
|
}
|
8020
8068
|
});
|
8021
|
-
const Collapse = withInstall(stdin_default$
|
8022
|
-
const [name$
|
8069
|
+
const Collapse = withInstall(stdin_default$15);
|
8070
|
+
const [name$X, bem$W] = createNamespace("collapse-item");
|
8023
8071
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
8024
8072
|
const collapseItemProps = extend({}, cellSharedProps, {
|
8025
8073
|
name: numericProp,
|
@@ -8028,8 +8076,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
8028
8076
|
readonly: Boolean,
|
8029
8077
|
lazyRender: truthProp
|
8030
8078
|
});
|
8031
|
-
var stdin_default$
|
8032
|
-
name: name$
|
8079
|
+
var stdin_default$14 = vue.defineComponent({
|
8080
|
+
name: name$X,
|
8033
8081
|
props: collapseItemProps,
|
8034
8082
|
setup(props2, {
|
8035
8083
|
slots
|
@@ -8111,7 +8159,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
8111
8159
|
}
|
8112
8160
|
return vue.createVNode(Cell, vue.mergeProps({
|
8113
8161
|
"role": "button",
|
8114
|
-
"class": bem$
|
8162
|
+
"class": bem$W("title", {
|
8115
8163
|
disabled,
|
8116
8164
|
expanded: expanded.value,
|
8117
8165
|
borderless: !border
|
@@ -8124,11 +8172,11 @@ var stdin_default$13 = vue.defineComponent({
|
|
8124
8172
|
var _a;
|
8125
8173
|
return vue.withDirectives(vue.createVNode("div", {
|
8126
8174
|
"ref": wrapperRef,
|
8127
|
-
"class": bem$
|
8175
|
+
"class": bem$W("wrapper"),
|
8128
8176
|
"onTransitionend": onTransitionEnd
|
8129
8177
|
}, [vue.createVNode("div", {
|
8130
8178
|
"ref": contentRef,
|
8131
|
-
"class": bem$
|
8179
|
+
"class": bem$W("content")
|
8132
8180
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
8133
8181
|
});
|
8134
8182
|
useExpose({
|
@@ -8137,15 +8185,15 @@ var stdin_default$13 = vue.defineComponent({
|
|
8137
8185
|
itemName: name2
|
8138
8186
|
});
|
8139
8187
|
return () => vue.createVNode("div", {
|
8140
|
-
"class": [bem$
|
8188
|
+
"class": [bem$W({
|
8141
8189
|
border: index.value && props2.border
|
8142
8190
|
})]
|
8143
8191
|
}, [renderTitle(), renderContent()]);
|
8144
8192
|
}
|
8145
8193
|
});
|
8146
|
-
const CollapseItem = withInstall(stdin_default$
|
8147
|
-
const ConfigProvider = withInstall(stdin_default$
|
8148
|
-
const [name$
|
8194
|
+
const CollapseItem = withInstall(stdin_default$14);
|
8195
|
+
const ConfigProvider = withInstall(stdin_default$1S);
|
8196
|
+
const [name$W, bem$V, t$e] = createNamespace("contact-card");
|
8149
8197
|
const contactCardProps = {
|
8150
8198
|
tel: String,
|
8151
8199
|
name: String,
|
@@ -8153,8 +8201,8 @@ const contactCardProps = {
|
|
8153
8201
|
addText: String,
|
8154
8202
|
editable: truthProp
|
8155
8203
|
};
|
8156
|
-
var stdin_default$
|
8157
|
-
name: name$
|
8204
|
+
var stdin_default$13 = vue.defineComponent({
|
8205
|
+
name: name$W,
|
8158
8206
|
props: contactCardProps,
|
8159
8207
|
emits: ["click"],
|
8160
8208
|
setup(props2, {
|
@@ -8174,18 +8222,18 @@ var stdin_default$12 = vue.defineComponent({
|
|
8174
8222
|
return () => vue.createVNode(Cell, {
|
8175
8223
|
"center": true,
|
8176
8224
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
8177
|
-
"class": bem$
|
8225
|
+
"class": bem$V([props2.type]),
|
8178
8226
|
"border": false,
|
8179
8227
|
"isLink": props2.editable,
|
8180
|
-
"titleClass": bem$
|
8228
|
+
"titleClass": bem$V("title"),
|
8181
8229
|
"onClick": onClick
|
8182
8230
|
}, {
|
8183
8231
|
title: renderContent
|
8184
8232
|
});
|
8185
8233
|
}
|
8186
8234
|
});
|
8187
|
-
const ContactCard = withInstall(stdin_default$
|
8188
|
-
const [name$
|
8235
|
+
const ContactCard = withInstall(stdin_default$13);
|
8236
|
+
const [name$V, bem$U, t$d] = createNamespace("contact-edit");
|
8189
8237
|
const DEFAULT_CONTACT = {
|
8190
8238
|
tel: "",
|
8191
8239
|
name: ""
|
@@ -8205,8 +8253,8 @@ const contactEditProps = {
|
|
8205
8253
|
default: isMobile
|
8206
8254
|
}
|
8207
8255
|
};
|
8208
|
-
var stdin_default$
|
8209
|
-
name: name$
|
8256
|
+
var stdin_default$12 = vue.defineComponent({
|
8257
|
+
name: name$V,
|
8210
8258
|
props: contactEditProps,
|
8211
8259
|
emits: ["save", "delete", "changeDefault"],
|
8212
8260
|
setup(props2, {
|
@@ -8220,20 +8268,20 @@ var stdin_default$11 = vue.defineComponent({
|
|
8220
8268
|
};
|
8221
8269
|
const onDelete = () => emit("delete", contact);
|
8222
8270
|
const renderButtons = () => vue.createVNode("div", {
|
8223
|
-
"class": bem$
|
8271
|
+
"class": bem$U("buttons")
|
8224
8272
|
}, [vue.createVNode(Button, {
|
8225
8273
|
"block": true,
|
8226
8274
|
"round": true,
|
8227
8275
|
"type": "primary",
|
8228
8276
|
"text": t$d("save"),
|
8229
|
-
"class": bem$
|
8277
|
+
"class": bem$U("button"),
|
8230
8278
|
"loading": props2.isSaving,
|
8231
8279
|
"nativeType": "submit"
|
8232
8280
|
}, null), props2.isEdit && vue.createVNode(Button, {
|
8233
8281
|
"block": true,
|
8234
8282
|
"round": true,
|
8235
8283
|
"text": t$d("delete"),
|
8236
|
-
"class": bem$
|
8284
|
+
"class": bem$U("button"),
|
8237
8285
|
"loading": props2.isDeleting,
|
8238
8286
|
"onClick": onDelete
|
8239
8287
|
}, null)]);
|
@@ -8246,7 +8294,7 @@ var stdin_default$11 = vue.defineComponent({
|
|
8246
8294
|
if (props2.showSetDefault) {
|
8247
8295
|
return vue.createVNode(Cell, {
|
8248
8296
|
"title": props2.setDefaultLabel,
|
8249
|
-
"class": bem$
|
8297
|
+
"class": bem$U("switch-cell"),
|
8250
8298
|
"border": false
|
8251
8299
|
}, {
|
8252
8300
|
"right-icon": renderSwitch
|
@@ -8255,11 +8303,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
8255
8303
|
};
|
8256
8304
|
vue.watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
8257
8305
|
return () => vue.createVNode(Form, {
|
8258
|
-
"class": bem$
|
8306
|
+
"class": bem$U(),
|
8259
8307
|
"onSubmit": onSave
|
8260
8308
|
}, {
|
8261
8309
|
default: () => [vue.createVNode("div", {
|
8262
|
-
"class": bem$
|
8310
|
+
"class": bem$U("fields")
|
8263
8311
|
}, [vue.createVNode(Field, {
|
8264
8312
|
"modelValue": contact.name,
|
8265
8313
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -8286,16 +8334,16 @@ var stdin_default$11 = vue.defineComponent({
|
|
8286
8334
|
});
|
8287
8335
|
}
|
8288
8336
|
});
|
8289
|
-
const ContactEdit = withInstall(stdin_default$
|
8290
|
-
const [name$
|
8337
|
+
const ContactEdit = withInstall(stdin_default$12);
|
8338
|
+
const [name$U, bem$T, t$c] = createNamespace("contact-list");
|
8291
8339
|
const contactListProps = {
|
8292
8340
|
list: Array,
|
8293
8341
|
addText: String,
|
8294
8342
|
modelValue: unknownProp,
|
8295
8343
|
defaultTagText: String
|
8296
8344
|
};
|
8297
|
-
var stdin_default$
|
8298
|
-
name: name$
|
8345
|
+
var stdin_default$11 = vue.defineComponent({
|
8346
|
+
name: name$U,
|
8299
8347
|
props: contactListProps,
|
8300
8348
|
emits: ["add", "edit", "select", "update:modelValue"],
|
8301
8349
|
setup(props2, {
|
@@ -8307,13 +8355,13 @@ var stdin_default$10 = vue.defineComponent({
|
|
8307
8355
|
emit("select", item, index);
|
8308
8356
|
};
|
8309
8357
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
8310
|
-
"class": bem$
|
8358
|
+
"class": bem$T("radio"),
|
8311
8359
|
"name": item.id,
|
8312
8360
|
"iconSize": 18
|
8313
8361
|
}, null);
|
8314
8362
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
8315
8363
|
"name": "edit",
|
8316
|
-
"class": bem$
|
8364
|
+
"class": bem$T("edit"),
|
8317
8365
|
"onClick": (event) => {
|
8318
8366
|
event.stopPropagation();
|
8319
8367
|
emit("edit", item, index);
|
@@ -8325,7 +8373,7 @@ var stdin_default$10 = vue.defineComponent({
|
|
8325
8373
|
nodes.push(vue.createVNode(Tag, {
|
8326
8374
|
"type": "primary",
|
8327
8375
|
"round": true,
|
8328
|
-
"class": bem$
|
8376
|
+
"class": bem$T("item-tag")
|
8329
8377
|
}, {
|
8330
8378
|
default: () => [props2.defaultTagText]
|
8331
8379
|
}));
|
@@ -8336,8 +8384,8 @@ var stdin_default$10 = vue.defineComponent({
|
|
8336
8384
|
"key": item.id,
|
8337
8385
|
"isLink": true,
|
8338
8386
|
"center": true,
|
8339
|
-
"class": bem$
|
8340
|
-
"titleClass": bem$
|
8387
|
+
"class": bem$T("item"),
|
8388
|
+
"titleClass": bem$T("item-title"),
|
8341
8389
|
"onClick": onClick
|
8342
8390
|
}, {
|
8343
8391
|
icon: renderEditIcon,
|
@@ -8346,25 +8394,25 @@ var stdin_default$10 = vue.defineComponent({
|
|
8346
8394
|
});
|
8347
8395
|
};
|
8348
8396
|
return () => vue.createVNode("div", {
|
8349
|
-
"class": bem$
|
8397
|
+
"class": bem$T()
|
8350
8398
|
}, [vue.createVNode(RadioGroup, {
|
8351
8399
|
"modelValue": props2.modelValue,
|
8352
|
-
"class": bem$
|
8400
|
+
"class": bem$T("group")
|
8353
8401
|
}, {
|
8354
8402
|
default: () => [props2.list && props2.list.map(renderItem)]
|
8355
8403
|
}), vue.createVNode("div", {
|
8356
|
-
"class": [bem$
|
8404
|
+
"class": [bem$T("bottom"), "van-safe-area-bottom"]
|
8357
8405
|
}, [vue.createVNode(Button, {
|
8358
8406
|
"round": true,
|
8359
8407
|
"block": true,
|
8360
8408
|
"type": "primary",
|
8361
|
-
"class": bem$
|
8409
|
+
"class": bem$T("add"),
|
8362
8410
|
"text": props2.addText || t$c("addContact"),
|
8363
8411
|
"onClick": () => emit("add")
|
8364
8412
|
}, null)])]);
|
8365
8413
|
}
|
8366
8414
|
});
|
8367
|
-
const ContactList = withInstall(stdin_default$
|
8415
|
+
const ContactList = withInstall(stdin_default$11);
|
8368
8416
|
function parseFormat(format2, currentTime) {
|
8369
8417
|
const { days } = currentTime;
|
8370
8418
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -8400,15 +8448,15 @@ function parseFormat(format2, currentTime) {
|
|
8400
8448
|
}
|
8401
8449
|
return format2;
|
8402
8450
|
}
|
8403
|
-
const [name$
|
8451
|
+
const [name$T, bem$S] = createNamespace("count-down");
|
8404
8452
|
const countDownProps = {
|
8405
8453
|
time: makeNumericProp(0),
|
8406
8454
|
format: makeStringProp("HH:mm:ss"),
|
8407
8455
|
autoStart: truthProp,
|
8408
8456
|
millisecond: Boolean
|
8409
8457
|
};
|
8410
|
-
var stdin_default
|
8411
|
-
name: name$
|
8458
|
+
var stdin_default$10 = vue.defineComponent({
|
8459
|
+
name: name$T,
|
8412
8460
|
props: countDownProps,
|
8413
8461
|
emits: ["change", "finish"],
|
8414
8462
|
setup(props2, {
|
@@ -8443,11 +8491,11 @@ var stdin_default$$ = vue.defineComponent({
|
|
8443
8491
|
});
|
8444
8492
|
return () => vue.createVNode("div", {
|
8445
8493
|
"role": "timer",
|
8446
|
-
"class": bem$
|
8494
|
+
"class": bem$S()
|
8447
8495
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8448
8496
|
}
|
8449
8497
|
});
|
8450
|
-
const CountDown = withInstall(stdin_default
|
8498
|
+
const CountDown = withInstall(stdin_default$10);
|
8451
8499
|
function getDate(timeStamp) {
|
8452
8500
|
const date = new Date(timeStamp * 1e3);
|
8453
8501
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8456,9 +8504,9 @@ function getDate(timeStamp) {
|
|
8456
8504
|
}
|
8457
8505
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8458
8506
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8459
|
-
const [name$
|
8460
|
-
var stdin_default
|
8461
|
-
name: name$
|
8507
|
+
const [name$S, bem$R, t$b] = createNamespace("coupon");
|
8508
|
+
var stdin_default$$ = vue.defineComponent({
|
8509
|
+
name: name$S,
|
8462
8510
|
props: {
|
8463
8511
|
chosen: Boolean,
|
8464
8512
|
coupon: makeRequiredProp(Object),
|
@@ -8502,34 +8550,34 @@ var stdin_default$_ = vue.defineComponent({
|
|
8502
8550
|
} = props2;
|
8503
8551
|
const description = disabled && coupon.reason || coupon.description;
|
8504
8552
|
return vue.createVNode("div", {
|
8505
|
-
"class": bem$
|
8553
|
+
"class": bem$R({
|
8506
8554
|
disabled
|
8507
8555
|
})
|
8508
8556
|
}, [vue.createVNode("div", {
|
8509
|
-
"class": bem$
|
8557
|
+
"class": bem$R("content")
|
8510
8558
|
}, [vue.createVNode("div", {
|
8511
|
-
"class": bem$
|
8559
|
+
"class": bem$R("head")
|
8512
8560
|
}, [vue.createVNode("h2", {
|
8513
|
-
"class": bem$
|
8561
|
+
"class": bem$R("amount")
|
8514
8562
|
}, [faceAmount.value]), vue.createVNode("p", {
|
8515
|
-
"class": bem$
|
8563
|
+
"class": bem$R("condition")
|
8516
8564
|
}, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
|
8517
|
-
"class": bem$
|
8565
|
+
"class": bem$R("body")
|
8518
8566
|
}, [vue.createVNode("p", {
|
8519
|
-
"class": bem$
|
8567
|
+
"class": bem$R("name")
|
8520
8568
|
}, [coupon.name]), vue.createVNode("p", {
|
8521
|
-
"class": bem$
|
8569
|
+
"class": bem$R("valid")
|
8522
8570
|
}, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
|
8523
|
-
"class": bem$
|
8571
|
+
"class": bem$R("corner"),
|
8524
8572
|
"modelValue": chosen
|
8525
8573
|
}, null)])]), description && vue.createVNode("p", {
|
8526
|
-
"class": bem$
|
8574
|
+
"class": bem$R("description")
|
8527
8575
|
}, [description])]);
|
8528
8576
|
};
|
8529
8577
|
}
|
8530
8578
|
});
|
8531
|
-
const Coupon = withInstall(stdin_default
|
8532
|
-
const [name$
|
8579
|
+
const Coupon = withInstall(stdin_default$$);
|
8580
|
+
const [name$R, bem$Q, t$a] = createNamespace("coupon-cell");
|
8533
8581
|
const couponCellProps = {
|
8534
8582
|
title: String,
|
8535
8583
|
border: truthProp,
|
@@ -8557,34 +8605,34 @@ function formatValue({
|
|
8557
8605
|
}
|
8558
8606
|
return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
|
8559
8607
|
}
|
8560
|
-
var stdin_default$
|
8561
|
-
name: name$
|
8608
|
+
var stdin_default$_ = vue.defineComponent({
|
8609
|
+
name: name$R,
|
8562
8610
|
props: couponCellProps,
|
8563
8611
|
setup(props2) {
|
8564
8612
|
return () => {
|
8565
8613
|
const selected = props2.coupons[+props2.chosenCoupon];
|
8566
8614
|
return vue.createVNode(Cell, {
|
8567
|
-
"class": bem$
|
8615
|
+
"class": bem$Q(),
|
8568
8616
|
"value": formatValue(props2),
|
8569
8617
|
"title": props2.title || t$a("title"),
|
8570
8618
|
"border": props2.border,
|
8571
8619
|
"isLink": props2.editable,
|
8572
|
-
"valueClass": bem$
|
8620
|
+
"valueClass": bem$Q("value", {
|
8573
8621
|
selected
|
8574
8622
|
})
|
8575
8623
|
}, null);
|
8576
8624
|
};
|
8577
8625
|
}
|
8578
8626
|
});
|
8579
|
-
const CouponCell = withInstall(stdin_default$
|
8580
|
-
const [name$
|
8627
|
+
const CouponCell = withInstall(stdin_default$_);
|
8628
|
+
const [name$Q, bem$P] = createNamespace("empty");
|
8581
8629
|
const emptyProps = {
|
8582
8630
|
image: makeStringProp("default"),
|
8583
8631
|
imageSize: [Number, String, Array],
|
8584
8632
|
description: String
|
8585
8633
|
};
|
8586
|
-
var stdin_default$
|
8587
|
-
name: name$
|
8634
|
+
var stdin_default$Z = vue.defineComponent({
|
8635
|
+
name: name$Q,
|
8588
8636
|
props: emptyProps,
|
8589
8637
|
setup(props2, {
|
8590
8638
|
slots
|
@@ -8593,14 +8641,14 @@ var stdin_default$Y = vue.defineComponent({
|
|
8593
8641
|
const description = slots.description ? slots.description() : props2.description;
|
8594
8642
|
if (description) {
|
8595
8643
|
return vue.createVNode("p", {
|
8596
|
-
"class": bem$
|
8644
|
+
"class": bem$P("description")
|
8597
8645
|
}, [description]);
|
8598
8646
|
}
|
8599
8647
|
};
|
8600
8648
|
const renderBottom = () => {
|
8601
8649
|
if (slots.default) {
|
8602
8650
|
return vue.createVNode("div", {
|
8603
|
-
"class": bem$
|
8651
|
+
"class": bem$P("bottom")
|
8604
8652
|
}, [slots.default()]);
|
8605
8653
|
}
|
8606
8654
|
};
|
@@ -8885,15 +8933,15 @@ var stdin_default$Y = vue.defineComponent({
|
|
8885
8933
|
}, null);
|
8886
8934
|
};
|
8887
8935
|
return () => vue.createVNode("div", {
|
8888
|
-
"class": bem$
|
8936
|
+
"class": bem$P()
|
8889
8937
|
}, [vue.createVNode("div", {
|
8890
|
-
"class": bem$
|
8938
|
+
"class": bem$P("image"),
|
8891
8939
|
"style": getSizeStyle(props2.imageSize)
|
8892
8940
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8893
8941
|
}
|
8894
8942
|
});
|
8895
|
-
const Empty = withInstall(stdin_default$
|
8896
|
-
const [name$
|
8943
|
+
const Empty = withInstall(stdin_default$Z);
|
8944
|
+
const [name$P, bem$O, t$9] = createNamespace("coupon-list");
|
8897
8945
|
const couponListProps = {
|
8898
8946
|
code: makeStringProp(""),
|
8899
8947
|
coupons: makeArrayProp(),
|
@@ -8914,8 +8962,8 @@ const couponListProps = {
|
|
8914
8962
|
exchangeButtonLoading: Boolean,
|
8915
8963
|
exchangeButtonDisabled: Boolean
|
8916
8964
|
};
|
8917
|
-
var stdin_default$
|
8918
|
-
name: name$
|
8965
|
+
var stdin_default$Y = vue.defineComponent({
|
8966
|
+
name: name$P,
|
8919
8967
|
props: couponListProps,
|
8920
8968
|
emits: ["change", "exchange", "update:code"],
|
8921
8969
|
setup(props2, {
|
@@ -8951,26 +8999,26 @@ var stdin_default$X = vue.defineComponent({
|
|
8951
8999
|
"image": props2.emptyImage
|
8952
9000
|
}, {
|
8953
9001
|
default: () => [vue.createVNode("p", {
|
8954
|
-
"class": bem$
|
9002
|
+
"class": bem$O("empty-tip")
|
8955
9003
|
}, [t$9("noCoupon")])]
|
8956
9004
|
});
|
8957
9005
|
const renderExchangeBar = () => {
|
8958
9006
|
if (props2.showExchangeBar) {
|
8959
9007
|
return vue.createVNode("div", {
|
8960
9008
|
"ref": barRef,
|
8961
|
-
"class": bem$
|
9009
|
+
"class": bem$O("exchange-bar")
|
8962
9010
|
}, [vue.createVNode(Field, {
|
8963
9011
|
"modelValue": currentCode.value,
|
8964
9012
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8965
9013
|
"clearable": true,
|
8966
9014
|
"border": false,
|
8967
|
-
"class": bem$
|
9015
|
+
"class": bem$O("field"),
|
8968
9016
|
"placeholder": props2.inputPlaceholder || t$9("placeholder"),
|
8969
9017
|
"maxlength": "20"
|
8970
9018
|
}, null), vue.createVNode(Button, {
|
8971
9019
|
"plain": true,
|
8972
9020
|
"type": "primary",
|
8973
|
-
"class": bem$
|
9021
|
+
"class": bem$O("exchange"),
|
8974
9022
|
"text": props2.exchangeButtonText || t$9("exchange"),
|
8975
9023
|
"loading": props2.exchangeButtonLoading,
|
8976
9024
|
"disabled": buttonDisabled.value,
|
@@ -8990,7 +9038,7 @@ var stdin_default$X = vue.defineComponent({
|
|
8990
9038
|
default: () => {
|
8991
9039
|
var _a;
|
8992
9040
|
return [vue.createVNode("div", {
|
8993
|
-
"class": bem$
|
9041
|
+
"class": bem$O("list", {
|
8994
9042
|
"with-bottom": props2.showCloseButton
|
8995
9043
|
}),
|
8996
9044
|
"style": {
|
@@ -9019,7 +9067,7 @@ var stdin_default$X = vue.defineComponent({
|
|
9019
9067
|
default: () => {
|
9020
9068
|
var _a;
|
9021
9069
|
return [vue.createVNode("div", {
|
9022
|
-
"class": bem$
|
9070
|
+
"class": bem$O("list", {
|
9023
9071
|
"with-bottom": props2.showCloseButton
|
9024
9072
|
}),
|
9025
9073
|
"style": {
|
@@ -9046,28 +9094,28 @@ var stdin_default$X = vue.defineComponent({
|
|
9046
9094
|
});
|
9047
9095
|
return () => vue.createVNode("div", {
|
9048
9096
|
"ref": root,
|
9049
|
-
"class": bem$
|
9097
|
+
"class": bem$O()
|
9050
9098
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
9051
9099
|
"active": activeTab.value,
|
9052
9100
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
9053
|
-
"class": bem$
|
9101
|
+
"class": bem$O("tab")
|
9054
9102
|
}, {
|
9055
9103
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
9056
9104
|
}), vue.createVNode("div", {
|
9057
|
-
"class": bem$
|
9105
|
+
"class": bem$O("bottom")
|
9058
9106
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
9059
9107
|
"round": true,
|
9060
9108
|
"block": true,
|
9061
9109
|
"type": "primary",
|
9062
|
-
"class": bem$
|
9110
|
+
"class": bem$O("close"),
|
9063
9111
|
"text": props2.closeButtonText || t$9("close"),
|
9064
9112
|
"onClick": () => emit("change", -1)
|
9065
9113
|
}, null), [[vue.vShow, props2.showCloseButton]])])]);
|
9066
9114
|
}
|
9067
9115
|
});
|
9068
|
-
const CouponList = withInstall(stdin_default$
|
9116
|
+
const CouponList = withInstall(stdin_default$Y);
|
9069
9117
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
9070
|
-
const [name$
|
9118
|
+
const [name$O] = createNamespace("date-picker");
|
9071
9119
|
const datePickerProps = extend({}, sharedProps, {
|
9072
9120
|
columnsType: {
|
9073
9121
|
type: Array,
|
@@ -9084,8 +9132,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
9084
9132
|
validator: isDate
|
9085
9133
|
}
|
9086
9134
|
});
|
9087
|
-
var stdin_default$
|
9088
|
-
name: name$
|
9135
|
+
var stdin_default$X = vue.defineComponent({
|
9136
|
+
name: name$O,
|
9089
9137
|
props: datePickerProps,
|
9090
9138
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
9091
9139
|
setup(props2, {
|
@@ -9178,8 +9226,8 @@ var stdin_default$W = vue.defineComponent({
|
|
9178
9226
|
}, pick(props2, pickerInheritKeys)), slots);
|
9179
9227
|
}
|
9180
9228
|
});
|
9181
|
-
const DatePicker = withInstall(stdin_default$
|
9182
|
-
const [name$
|
9229
|
+
const DatePicker = withInstall(stdin_default$X);
|
9230
|
+
const [name$N, bem$N, t$8] = createNamespace("dialog");
|
9183
9231
|
const dialogProps = extend({}, popupSharedProps, {
|
9184
9232
|
title: String,
|
9185
9233
|
theme: String,
|
@@ -9202,8 +9250,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
9202
9250
|
closeOnClickOverlay: Boolean
|
9203
9251
|
});
|
9204
9252
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9205
|
-
var stdin_default$
|
9206
|
-
name: name$
|
9253
|
+
var stdin_default$W = vue.defineComponent({
|
9254
|
+
name: name$N,
|
9207
9255
|
props: dialogProps,
|
9208
9256
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
9209
9257
|
setup(props2, {
|
@@ -9260,7 +9308,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9260
9308
|
const title = slots.title ? slots.title() : props2.title;
|
9261
9309
|
if (title) {
|
9262
9310
|
return vue.createVNode("div", {
|
9263
|
-
"class": bem$
|
9311
|
+
"class": bem$N("header", {
|
9264
9312
|
isolated: !props2.message && !slots.default
|
9265
9313
|
})
|
9266
9314
|
}, [title]);
|
@@ -9272,7 +9320,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9272
9320
|
allowHtml,
|
9273
9321
|
messageAlign
|
9274
9322
|
} = props2;
|
9275
|
-
const classNames = bem$
|
9323
|
+
const classNames = bem$N("message", {
|
9276
9324
|
"has-title": hasTitle,
|
9277
9325
|
[messageAlign]: messageAlign
|
9278
9326
|
});
|
@@ -9290,7 +9338,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9290
9338
|
const renderContent = () => {
|
9291
9339
|
if (slots.default) {
|
9292
9340
|
return vue.createVNode("div", {
|
9293
|
-
"class": bem$
|
9341
|
+
"class": bem$N("content")
|
9294
9342
|
}, [slots.default()]);
|
9295
9343
|
}
|
9296
9344
|
const {
|
@@ -9302,18 +9350,18 @@ var stdin_default$V = vue.defineComponent({
|
|
9302
9350
|
const hasTitle = !!(title || slots.title);
|
9303
9351
|
return vue.createVNode("div", {
|
9304
9352
|
"key": allowHtml ? 1 : 0,
|
9305
|
-
"class": bem$
|
9353
|
+
"class": bem$N("content", {
|
9306
9354
|
isolated: !hasTitle
|
9307
9355
|
})
|
9308
9356
|
}, [renderMessage(hasTitle)]);
|
9309
9357
|
}
|
9310
9358
|
};
|
9311
9359
|
const renderButtons = () => vue.createVNode("div", {
|
9312
|
-
"class": [BORDER_TOP, bem$
|
9360
|
+
"class": [BORDER_TOP, bem$N("footer")]
|
9313
9361
|
}, [props2.showCancelButton && vue.createVNode(Button, {
|
9314
9362
|
"size": "large",
|
9315
9363
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9316
|
-
"class": bem$
|
9364
|
+
"class": bem$N("cancel"),
|
9317
9365
|
"style": {
|
9318
9366
|
color: props2.cancelButtonColor
|
9319
9367
|
},
|
@@ -9323,7 +9371,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9323
9371
|
}, null), props2.showConfirmButton && vue.createVNode(Button, {
|
9324
9372
|
"size": "large",
|
9325
9373
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9326
|
-
"class": [bem$
|
9374
|
+
"class": [bem$N("confirm"), {
|
9327
9375
|
[BORDER_LEFT]: props2.showCancelButton
|
9328
9376
|
}],
|
9329
9377
|
"style": {
|
@@ -9334,12 +9382,12 @@ var stdin_default$V = vue.defineComponent({
|
|
9334
9382
|
"onClick": onConfirm
|
9335
9383
|
}, null)]);
|
9336
9384
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
9337
|
-
"class": bem$
|
9385
|
+
"class": bem$N("footer")
|
9338
9386
|
}, {
|
9339
9387
|
default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
|
9340
9388
|
"type": "warning",
|
9341
9389
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9342
|
-
"class": bem$
|
9390
|
+
"class": bem$N("cancel"),
|
9343
9391
|
"color": props2.cancelButtonColor,
|
9344
9392
|
"loading": loading.cancel,
|
9345
9393
|
"disabled": props2.cancelButtonDisabled,
|
@@ -9347,7 +9395,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9347
9395
|
}, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
|
9348
9396
|
"type": "danger",
|
9349
9397
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9350
|
-
"class": bem$
|
9398
|
+
"class": bem$N("confirm"),
|
9351
9399
|
"color": props2.confirmButtonColor,
|
9352
9400
|
"loading": loading.confirm,
|
9353
9401
|
"disabled": props2.confirmButtonDisabled,
|
@@ -9371,7 +9419,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9371
9419
|
return vue.createVNode(Popup, vue.mergeProps({
|
9372
9420
|
"ref": root,
|
9373
9421
|
"role": "dialog",
|
9374
|
-
"class": [bem$
|
9422
|
+
"class": [bem$N([theme]), className],
|
9375
9423
|
"style": {
|
9376
9424
|
width: addUnit(width)
|
9377
9425
|
},
|
@@ -9421,7 +9469,7 @@ function initInstance$2() {
|
|
9421
9469
|
state,
|
9422
9470
|
toggle
|
9423
9471
|
} = usePopupState();
|
9424
|
-
return () => vue.createVNode(stdin_default$
|
9472
|
+
return () => vue.createVNode(stdin_default$W, vue.mergeProps(state, {
|
9425
9473
|
"onUpdate:show": toggle
|
9426
9474
|
}), null);
|
9427
9475
|
}
|
@@ -9459,16 +9507,16 @@ const closeDialog = () => {
|
|
9459
9507
|
instance$2.toggle(false);
|
9460
9508
|
}
|
9461
9509
|
};
|
9462
|
-
const Dialog = withInstall(stdin_default$
|
9463
|
-
const [name$
|
9510
|
+
const Dialog = withInstall(stdin_default$W);
|
9511
|
+
const [name$M, bem$M] = createNamespace("divider");
|
9464
9512
|
const dividerProps = {
|
9465
9513
|
dashed: Boolean,
|
9466
9514
|
hairline: truthProp,
|
9467
9515
|
vertical: Boolean,
|
9468
9516
|
contentPosition: makeStringProp("center")
|
9469
9517
|
};
|
9470
|
-
var stdin_default$
|
9471
|
-
name: name$
|
9518
|
+
var stdin_default$V = vue.defineComponent({
|
9519
|
+
name: name$M,
|
9472
9520
|
props: dividerProps,
|
9473
9521
|
setup(props2, {
|
9474
9522
|
slots
|
@@ -9477,7 +9525,7 @@ var stdin_default$U = vue.defineComponent({
|
|
9477
9525
|
var _a;
|
9478
9526
|
return vue.createVNode("div", {
|
9479
9527
|
"role": "separator",
|
9480
|
-
"class": bem$
|
9528
|
+
"class": bem$M({
|
9481
9529
|
dashed: props2.dashed,
|
9482
9530
|
hairline: props2.hairline,
|
9483
9531
|
vertical: props2.vertical,
|
@@ -9487,8 +9535,8 @@ var stdin_default$U = vue.defineComponent({
|
|
9487
9535
|
};
|
9488
9536
|
}
|
9489
9537
|
});
|
9490
|
-
const Divider = withInstall(stdin_default$
|
9491
|
-
const [name$
|
9538
|
+
const Divider = withInstall(stdin_default$V);
|
9539
|
+
const [name$L, bem$L] = createNamespace("dropdown-menu");
|
9492
9540
|
const dropdownMenuProps = {
|
9493
9541
|
overlay: truthProp,
|
9494
9542
|
zIndex: numericProp,
|
@@ -9499,9 +9547,9 @@ const dropdownMenuProps = {
|
|
9499
9547
|
closeOnClickOverlay: truthProp,
|
9500
9548
|
swipeThreshold: numericProp
|
9501
9549
|
};
|
9502
|
-
const DROPDOWN_KEY = Symbol(name$
|
9503
|
-
var stdin_default$
|
9504
|
-
name: name$
|
9550
|
+
const DROPDOWN_KEY = Symbol(name$L);
|
9551
|
+
var stdin_default$U = vue.defineComponent({
|
9552
|
+
name: name$L,
|
9505
9553
|
props: dropdownMenuProps,
|
9506
9554
|
setup(props2, {
|
9507
9555
|
slots
|
@@ -9572,7 +9620,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9572
9620
|
"id": `${id}-${index}`,
|
9573
9621
|
"role": "button",
|
9574
9622
|
"tabindex": disabled ? void 0 : 0,
|
9575
|
-
"class": [bem$
|
9623
|
+
"class": [bem$L("item", {
|
9576
9624
|
disabled,
|
9577
9625
|
grow: scrollable.value
|
9578
9626
|
}), {
|
@@ -9584,7 +9632,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9584
9632
|
}
|
9585
9633
|
}
|
9586
9634
|
}, [vue.createVNode("span", {
|
9587
|
-
"class": [bem$
|
9635
|
+
"class": [bem$L("title", {
|
9588
9636
|
down: showPopup === (props2.direction === "down"),
|
9589
9637
|
active: showPopup
|
9590
9638
|
}), titleClass],
|
@@ -9613,11 +9661,11 @@ var stdin_default$T = vue.defineComponent({
|
|
9613
9661
|
var _a;
|
9614
9662
|
return vue.createVNode("div", {
|
9615
9663
|
"ref": root,
|
9616
|
-
"class": bem$
|
9664
|
+
"class": bem$L()
|
9617
9665
|
}, [vue.createVNode("div", {
|
9618
9666
|
"ref": barRef,
|
9619
9667
|
"style": barStyle.value,
|
9620
|
-
"class": bem$
|
9668
|
+
"class": bem$L("bar", {
|
9621
9669
|
opened: opened.value,
|
9622
9670
|
scrollable: scrollable.value
|
9623
9671
|
})
|
@@ -9625,7 +9673,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9625
9673
|
};
|
9626
9674
|
}
|
9627
9675
|
});
|
9628
|
-
const [name$
|
9676
|
+
const [name$K, bem$K] = createNamespace("dropdown-item");
|
9629
9677
|
const dropdownItemProps = {
|
9630
9678
|
title: String,
|
9631
9679
|
options: makeArrayProp(),
|
@@ -9635,8 +9683,8 @@ const dropdownItemProps = {
|
|
9635
9683
|
modelValue: unknownProp,
|
9636
9684
|
titleClass: unknownProp
|
9637
9685
|
};
|
9638
|
-
var stdin_default$
|
9639
|
-
name: name$
|
9686
|
+
var stdin_default$T = vue.defineComponent({
|
9687
|
+
name: name$K,
|
9640
9688
|
inheritAttrs: false,
|
9641
9689
|
props: dropdownItemProps,
|
9642
9690
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
@@ -9709,7 +9757,7 @@ var stdin_default$S = vue.defineComponent({
|
|
9709
9757
|
const renderIcon = () => {
|
9710
9758
|
if (active) {
|
9711
9759
|
return vue.createVNode(Icon, {
|
9712
|
-
"class": bem$
|
9760
|
+
"class": bem$K("icon"),
|
9713
9761
|
"color": activeColor,
|
9714
9762
|
"name": "success"
|
9715
9763
|
}, null);
|
@@ -9720,7 +9768,7 @@ var stdin_default$S = vue.defineComponent({
|
|
9720
9768
|
"key": String(option.value),
|
9721
9769
|
"icon": option.icon,
|
9722
9770
|
"title": option.text,
|
9723
|
-
"class": bem$
|
9771
|
+
"class": bem$K("option", {
|
9724
9772
|
active
|
9725
9773
|
}),
|
9726
9774
|
"style": {
|
@@ -9752,13 +9800,13 @@ var stdin_default$S = vue.defineComponent({
|
|
9752
9800
|
}
|
9753
9801
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
9754
9802
|
"style": style,
|
9755
|
-
"class": bem$
|
9803
|
+
"class": bem$K([direction]),
|
9756
9804
|
"onClick": onClickWrapper
|
9757
9805
|
}, attrs), [vue.createVNode(Popup, {
|
9758
9806
|
"show": state.showPopup,
|
9759
9807
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
9760
9808
|
"role": "menu",
|
9761
|
-
"class": bem$
|
9809
|
+
"class": bem$K("content"),
|
9762
9810
|
"overlay": overlay,
|
9763
9811
|
"position": direction === "down" ? "top" : "bottom",
|
9764
9812
|
"duration": state.transition ? duration : 0,
|
@@ -9796,8 +9844,8 @@ var stdin_default$S = vue.defineComponent({
|
|
9796
9844
|
};
|
9797
9845
|
}
|
9798
9846
|
});
|
9799
|
-
const DropdownItem = withInstall(stdin_default$
|
9800
|
-
const DropdownMenu = withInstall(stdin_default$
|
9847
|
+
const DropdownItem = withInstall(stdin_default$T);
|
9848
|
+
const DropdownMenu = withInstall(stdin_default$U);
|
9801
9849
|
const floatingBubbleProps = {
|
9802
9850
|
gap: makeNumberProp(24),
|
9803
9851
|
icon: String,
|
@@ -9815,9 +9863,9 @@ const floatingBubbleProps = {
|
|
9815
9863
|
default: "body"
|
9816
9864
|
}
|
9817
9865
|
};
|
9818
|
-
const [name$
|
9819
|
-
var stdin_default$
|
9820
|
-
name: name$
|
9866
|
+
const [name$J, bem$J] = createNamespace("floating-bubble");
|
9867
|
+
var stdin_default$S = vue.defineComponent({
|
9868
|
+
name: name$J,
|
9821
9869
|
inheritAttrs: false,
|
9822
9870
|
props: floatingBubbleProps,
|
9823
9871
|
emits: ["click", "update:offset", "offsetChange"],
|
@@ -9950,16 +9998,16 @@ var stdin_default$R = vue.defineComponent({
|
|
9950
9998
|
});
|
9951
9999
|
return () => {
|
9952
10000
|
const Content = vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
9953
|
-
"class": bem$
|
10001
|
+
"class": bem$J(),
|
9954
10002
|
"ref": rootRef,
|
9955
10003
|
"onTouchstartPassive": onTouchStart,
|
9956
10004
|
"onTouchend": onTouchEnd,
|
9957
10005
|
"onTouchcancel": onTouchEnd,
|
9958
10006
|
"onClickCapture": onClick,
|
9959
10007
|
"style": rootStyle.value
|
9960
|
-
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$
|
10008
|
+
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1Q, {
|
9961
10009
|
"name": props2.icon,
|
9962
|
-
"class": bem$
|
10010
|
+
"class": bem$J("icon")
|
9963
10011
|
}, null)]), [[vue.vShow, show.value]]);
|
9964
10012
|
return props2.teleport ? vue.createVNode(vue.Teleport, {
|
9965
10013
|
"to": props2.teleport
|
@@ -9969,7 +10017,7 @@ var stdin_default$R = vue.defineComponent({
|
|
9969
10017
|
};
|
9970
10018
|
}
|
9971
10019
|
});
|
9972
|
-
const FloatingBubble = withInstall(stdin_default$
|
10020
|
+
const FloatingBubble = withInstall(stdin_default$S);
|
9973
10021
|
const floatingPanelProps = {
|
9974
10022
|
height: makeNumericProp(0),
|
9975
10023
|
anchors: makeArrayProp(),
|
@@ -9978,9 +10026,9 @@ const floatingPanelProps = {
|
|
9978
10026
|
lockScroll: Boolean,
|
9979
10027
|
safeAreaInsetBottom: truthProp
|
9980
10028
|
};
|
9981
|
-
const [name$
|
9982
|
-
var stdin_default$
|
9983
|
-
name: name$
|
10029
|
+
const [name$I, bem$I] = createNamespace("floating-panel");
|
10030
|
+
var stdin_default$R = vue.defineComponent({
|
10031
|
+
name: name$I,
|
9984
10032
|
props: floatingPanelProps,
|
9985
10033
|
emits: ["heightChange", "update:height"],
|
9986
10034
|
setup(props2, {
|
@@ -10070,7 +10118,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
10070
10118
|
return () => {
|
10071
10119
|
var _a;
|
10072
10120
|
return vue.createVNode("div", {
|
10073
|
-
"class": [bem$
|
10121
|
+
"class": [bem$I(), {
|
10074
10122
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
10075
10123
|
}],
|
10076
10124
|
"ref": rootRef,
|
@@ -10079,18 +10127,18 @@ var stdin_default$Q = vue.defineComponent({
|
|
10079
10127
|
"onTouchend": onTouchend,
|
10080
10128
|
"onTouchcancel": onTouchend
|
10081
10129
|
}, [vue.createVNode("div", {
|
10082
|
-
"class": bem$
|
10130
|
+
"class": bem$I("header")
|
10083
10131
|
}, [vue.createVNode("div", {
|
10084
|
-
"class": bem$
|
10132
|
+
"class": bem$I("header-bar")
|
10085
10133
|
}, null)]), vue.createVNode("div", {
|
10086
|
-
"class": bem$
|
10134
|
+
"class": bem$I("content"),
|
10087
10135
|
"ref": contentRef
|
10088
10136
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
10089
10137
|
};
|
10090
10138
|
}
|
10091
10139
|
});
|
10092
|
-
const FloatingPanel = withInstall(stdin_default$
|
10093
|
-
const [name$
|
10140
|
+
const FloatingPanel = withInstall(stdin_default$R);
|
10141
|
+
const [name$H, bem$H] = createNamespace("grid");
|
10094
10142
|
const gridProps = {
|
10095
10143
|
square: Boolean,
|
10096
10144
|
center: truthProp,
|
@@ -10102,9 +10150,9 @@ const gridProps = {
|
|
10102
10150
|
clickable: Boolean,
|
10103
10151
|
columnNum: makeNumericProp(4)
|
10104
10152
|
};
|
10105
|
-
const GRID_KEY = Symbol(name$
|
10106
|
-
var stdin_default$
|
10107
|
-
name: name$
|
10153
|
+
const GRID_KEY = Symbol(name$H);
|
10154
|
+
var stdin_default$Q = vue.defineComponent({
|
10155
|
+
name: name$H,
|
10108
10156
|
props: gridProps,
|
10109
10157
|
setup(props2, {
|
10110
10158
|
slots
|
@@ -10121,15 +10169,15 @@ var stdin_default$P = vue.defineComponent({
|
|
10121
10169
|
"style": {
|
10122
10170
|
paddingLeft: addUnit(props2.gutter)
|
10123
10171
|
},
|
10124
|
-
"class": [bem$
|
10172
|
+
"class": [bem$H(), {
|
10125
10173
|
[BORDER_TOP]: props2.border && !props2.gutter
|
10126
10174
|
}]
|
10127
10175
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
10128
10176
|
};
|
10129
10177
|
}
|
10130
10178
|
});
|
10131
|
-
const Grid = withInstall(stdin_default$
|
10132
|
-
const [name$
|
10179
|
+
const Grid = withInstall(stdin_default$Q);
|
10180
|
+
const [name$G, bem$G] = createNamespace("grid-item");
|
10133
10181
|
const gridItemProps = extend({}, routeProps, {
|
10134
10182
|
dot: Boolean,
|
10135
10183
|
text: String,
|
@@ -10139,8 +10187,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
10139
10187
|
iconPrefix: String,
|
10140
10188
|
badgeProps: Object
|
10141
10189
|
});
|
10142
|
-
var stdin_default$
|
10143
|
-
name: name$
|
10190
|
+
var stdin_default$P = vue.defineComponent({
|
10191
|
+
name: name$G,
|
10144
10192
|
props: gridItemProps,
|
10145
10193
|
setup(props2, {
|
10146
10194
|
slots
|
@@ -10206,7 +10254,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10206
10254
|
"name": props2.icon,
|
10207
10255
|
"size": parent.props.iconSize,
|
10208
10256
|
"badge": props2.badge,
|
10209
|
-
"class": bem$
|
10257
|
+
"class": bem$G("icon"),
|
10210
10258
|
"color": props2.iconColor,
|
10211
10259
|
"badgeProps": props2.badgeProps,
|
10212
10260
|
"classPrefix": props2.iconPrefix
|
@@ -10219,7 +10267,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10219
10267
|
}
|
10220
10268
|
if (props2.text) {
|
10221
10269
|
return vue.createVNode("span", {
|
10222
|
-
"class": bem$
|
10270
|
+
"class": bem$G("text")
|
10223
10271
|
}, [props2.text]);
|
10224
10272
|
}
|
10225
10273
|
};
|
@@ -10239,7 +10287,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10239
10287
|
direction,
|
10240
10288
|
clickable
|
10241
10289
|
} = parent.props;
|
10242
|
-
const classes = [bem$
|
10290
|
+
const classes = [bem$G("content", [direction, {
|
10243
10291
|
center,
|
10244
10292
|
square,
|
10245
10293
|
reverse,
|
@@ -10249,7 +10297,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10249
10297
|
[BORDER]: border
|
10250
10298
|
}];
|
10251
10299
|
return vue.createVNode("div", {
|
10252
|
-
"class": [bem$
|
10300
|
+
"class": [bem$G({
|
10253
10301
|
square
|
10254
10302
|
})],
|
10255
10303
|
"style": rootStyle.value
|
@@ -10263,7 +10311,123 @@ var stdin_default$O = vue.defineComponent({
|
|
10263
10311
|
};
|
10264
10312
|
}
|
10265
10313
|
});
|
10266
|
-
const GridItem = withInstall(stdin_default$
|
10314
|
+
const GridItem = withInstall(stdin_default$P);
|
10315
|
+
const [name$F, bem$F] = createNamespace("highlight");
|
10316
|
+
const highlightProps = {
|
10317
|
+
autoEscape: truthProp,
|
10318
|
+
caseSensitive: Boolean,
|
10319
|
+
highlightClass: String,
|
10320
|
+
highlightTag: makeStringProp("span"),
|
10321
|
+
keywords: makeRequiredProp([String, Array]),
|
10322
|
+
sourceString: makeStringProp(""),
|
10323
|
+
tag: makeStringProp("div"),
|
10324
|
+
unhighlightClass: String,
|
10325
|
+
unhighlightTag: makeStringProp("span")
|
10326
|
+
};
|
10327
|
+
var stdin_default$O = vue.defineComponent({
|
10328
|
+
name: name$F,
|
10329
|
+
props: highlightProps,
|
10330
|
+
setup(props2) {
|
10331
|
+
const highlightChunks = vue.computed(() => {
|
10332
|
+
const {
|
10333
|
+
autoEscape,
|
10334
|
+
caseSensitive,
|
10335
|
+
keywords,
|
10336
|
+
sourceString
|
10337
|
+
} = props2;
|
10338
|
+
const flags = caseSensitive ? "g" : "gi";
|
10339
|
+
const _keywords = Array.isArray(keywords) ? keywords : [keywords];
|
10340
|
+
let chunks = _keywords.filter((keyword) => keyword).reduce((chunks2, keyword) => {
|
10341
|
+
if (autoEscape) {
|
10342
|
+
keyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
10343
|
+
}
|
10344
|
+
const regex = new RegExp(keyword, flags);
|
10345
|
+
let match;
|
10346
|
+
while (match = regex.exec(sourceString)) {
|
10347
|
+
const start = match.index;
|
10348
|
+
const end = regex.lastIndex;
|
10349
|
+
if (start >= end) {
|
10350
|
+
regex.lastIndex++;
|
10351
|
+
continue;
|
10352
|
+
}
|
10353
|
+
chunks2.push({
|
10354
|
+
start,
|
10355
|
+
end,
|
10356
|
+
highlight: true
|
10357
|
+
});
|
10358
|
+
}
|
10359
|
+
return chunks2;
|
10360
|
+
}, []);
|
10361
|
+
chunks = chunks.sort((a, b) => a.start - b.start).reduce((chunks2, currentChunk) => {
|
10362
|
+
const prevChunk = chunks2[chunks2.length - 1];
|
10363
|
+
if (!prevChunk || currentChunk.start > prevChunk.end) {
|
10364
|
+
const unhighlightStart = prevChunk ? prevChunk.end : 0;
|
10365
|
+
const unhighlightEnd = currentChunk.start;
|
10366
|
+
if (unhighlightStart !== unhighlightEnd) {
|
10367
|
+
chunks2.push({
|
10368
|
+
start: unhighlightStart,
|
10369
|
+
end: unhighlightEnd,
|
10370
|
+
highlight: false
|
10371
|
+
});
|
10372
|
+
}
|
10373
|
+
chunks2.push(currentChunk);
|
10374
|
+
} else {
|
10375
|
+
prevChunk.end = Math.max(prevChunk.end, currentChunk.end);
|
10376
|
+
}
|
10377
|
+
return chunks2;
|
10378
|
+
}, []);
|
10379
|
+
const lastChunk = chunks[chunks.length - 1];
|
10380
|
+
if (lastChunk && lastChunk.end < sourceString.length) {
|
10381
|
+
chunks.push({
|
10382
|
+
start: lastChunk.end,
|
10383
|
+
end: sourceString.length,
|
10384
|
+
highlight: false
|
10385
|
+
});
|
10386
|
+
}
|
10387
|
+
return chunks;
|
10388
|
+
});
|
10389
|
+
const renderContent = () => {
|
10390
|
+
const {
|
10391
|
+
sourceString,
|
10392
|
+
highlightClass,
|
10393
|
+
unhighlightClass,
|
10394
|
+
highlightTag,
|
10395
|
+
unhighlightTag
|
10396
|
+
} = props2;
|
10397
|
+
return highlightChunks.value.map((chunk) => {
|
10398
|
+
const {
|
10399
|
+
start,
|
10400
|
+
end,
|
10401
|
+
highlight
|
10402
|
+
} = chunk;
|
10403
|
+
const text = sourceString.slice(start, end);
|
10404
|
+
if (highlight) {
|
10405
|
+
return vue.createVNode(highlightTag, {
|
10406
|
+
"class": [bem$F("tag"), highlightClass]
|
10407
|
+
}, {
|
10408
|
+
default: () => [text]
|
10409
|
+
});
|
10410
|
+
}
|
10411
|
+
return vue.createVNode(unhighlightTag, {
|
10412
|
+
"class": unhighlightClass
|
10413
|
+
}, {
|
10414
|
+
default: () => [text]
|
10415
|
+
});
|
10416
|
+
});
|
10417
|
+
};
|
10418
|
+
return () => {
|
10419
|
+
const {
|
10420
|
+
tag
|
10421
|
+
} = props2;
|
10422
|
+
return vue.createVNode(tag, {
|
10423
|
+
"class": bem$F()
|
10424
|
+
}, {
|
10425
|
+
default: () => [renderContent()]
|
10426
|
+
});
|
10427
|
+
};
|
10428
|
+
}
|
10429
|
+
});
|
10430
|
+
const Highlight = withInstall(stdin_default$O);
|
10267
10431
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
10268
10432
|
const getCenter = (touches) => ({
|
10269
10433
|
x: (touches[0].clientX + touches[1].clientX) / 2,
|
@@ -10271,19 +10435,20 @@ const getCenter = (touches) => ({
|
|
10271
10435
|
});
|
10272
10436
|
const bem$E = createNamespace("image-preview")[1];
|
10273
10437
|
const longImageRatio = 2.6;
|
10438
|
+
const imagePreviewItemProps = {
|
10439
|
+
src: String,
|
10440
|
+
show: Boolean,
|
10441
|
+
active: Number,
|
10442
|
+
minZoom: makeRequiredProp(numericProp),
|
10443
|
+
maxZoom: makeRequiredProp(numericProp),
|
10444
|
+
rootWidth: makeRequiredProp(Number),
|
10445
|
+
rootHeight: makeRequiredProp(Number),
|
10446
|
+
disableZoom: Boolean,
|
10447
|
+
doubleScale: Boolean,
|
10448
|
+
closeOnClickOverlay: Boolean
|
10449
|
+
};
|
10274
10450
|
var stdin_default$N = vue.defineComponent({
|
10275
|
-
props:
|
10276
|
-
src: String,
|
10277
|
-
show: Boolean,
|
10278
|
-
active: Number,
|
10279
|
-
minZoom: makeRequiredProp(numericProp),
|
10280
|
-
maxZoom: makeRequiredProp(numericProp),
|
10281
|
-
rootWidth: makeRequiredProp(Number),
|
10282
|
-
rootHeight: makeRequiredProp(Number),
|
10283
|
-
disableZoom: Boolean,
|
10284
|
-
doubleScale: Boolean,
|
10285
|
-
closeOnClickOverlay: Boolean
|
10286
|
-
},
|
10451
|
+
props: imagePreviewItemProps,
|
10287
10452
|
emits: ["scale", "close", "longPress"],
|
10288
10453
|
setup(props2, {
|
10289
10454
|
emit,
|
@@ -10549,6 +10714,9 @@ var stdin_default$N = vue.defineComponent({
|
|
10549
10714
|
return (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10550
10715
|
})
|
10551
10716
|
});
|
10717
|
+
useExpose({
|
10718
|
+
resetScale
|
10719
|
+
});
|
10552
10720
|
return () => {
|
10553
10721
|
const imageSlots = {
|
10554
10722
|
loading: () => vue.createVNode(Loading, {
|
@@ -10615,6 +10783,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10615
10783
|
slots
|
10616
10784
|
}) {
|
10617
10785
|
const swipeRef = vue.ref();
|
10786
|
+
const activedPreviewItemRef = vue.ref();
|
10618
10787
|
const state = vue.reactive({
|
10619
10788
|
active: 0,
|
10620
10789
|
rootWidth: 0,
|
@@ -10679,6 +10848,11 @@ var stdin_default$M = vue.defineComponent({
|
|
10679
10848
|
"onDragStart": onDragStart
|
10680
10849
|
}, {
|
10681
10850
|
default: () => [props2.images.map((image, index) => vue.createVNode(stdin_default$N, {
|
10851
|
+
"ref": (item) => {
|
10852
|
+
if (index === state.active) {
|
10853
|
+
activedPreviewItemRef.value = item;
|
10854
|
+
}
|
10855
|
+
},
|
10682
10856
|
"src": image,
|
10683
10857
|
"show": props2.show,
|
10684
10858
|
"active": state.active,
|
@@ -10714,6 +10888,10 @@ var stdin_default$M = vue.defineComponent({
|
|
10714
10888
|
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
10715
10889
|
};
|
10716
10890
|
useExpose({
|
10891
|
+
resetScale: () => {
|
10892
|
+
var _a;
|
10893
|
+
(_a = activedPreviewItemRef.value) == null ? void 0 : _a.resetScale();
|
10894
|
+
},
|
10717
10895
|
swipeTo
|
10718
10896
|
});
|
10719
10897
|
vue.onMounted(resize);
|
@@ -12119,7 +12297,7 @@ var stdin_default$C = vue.defineComponent({
|
|
12119
12297
|
}
|
12120
12298
|
});
|
12121
12299
|
const PasswordInput = withInstall(stdin_default$C);
|
12122
|
-
const PickerGroup = withInstall(stdin_default$
|
12300
|
+
const PickerGroup = withInstall(stdin_default$1A);
|
12123
12301
|
const [name$t, bem$s] = createNamespace("popover");
|
12124
12302
|
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
12125
12303
|
const popoverProps = {
|
@@ -12907,7 +13085,7 @@ var stdin_default$w = vue.defineComponent({
|
|
12907
13085
|
}
|
12908
13086
|
});
|
12909
13087
|
const RollingText = withInstall(stdin_default$w);
|
12910
|
-
const Row = withInstall(stdin_default$
|
13088
|
+
const Row = withInstall(stdin_default$17);
|
12911
13089
|
const [name$n, bem$m, t$4] = createNamespace("search");
|
12912
13090
|
const searchProps = extend({}, fieldSharedProps, {
|
12913
13091
|
label: String,
|
@@ -16547,7 +16725,7 @@ const Lazyload = {
|
|
16547
16725
|
});
|
16548
16726
|
}
|
16549
16727
|
};
|
16550
|
-
const version = "4.
|
16728
|
+
const version = "4.8.0";
|
16551
16729
|
function install(app) {
|
16552
16730
|
const components = [
|
16553
16731
|
ActionBar,
|
@@ -16592,6 +16770,7 @@ function install(app) {
|
|
16592
16770
|
Form,
|
16593
16771
|
Grid,
|
16594
16772
|
GridItem,
|
16773
|
+
Highlight,
|
16595
16774
|
Icon,
|
16596
16775
|
Image$1,
|
16597
16776
|
ImagePreview,
|
@@ -16706,6 +16885,7 @@ exports.FloatingPanel = FloatingPanel;
|
|
16706
16885
|
exports.Form = Form;
|
16707
16886
|
exports.Grid = Grid;
|
16708
16887
|
exports.GridItem = GridItem;
|
16888
|
+
exports.Highlight = Highlight;
|
16709
16889
|
exports.Icon = Icon;
|
16710
16890
|
exports.Image = Image$1;
|
16711
16891
|
exports.ImagePreview = ImagePreview;
|
@@ -16811,6 +16991,7 @@ exports.floatingPanelProps = floatingPanelProps;
|
|
16811
16991
|
exports.formProps = formProps;
|
16812
16992
|
exports.gridItemProps = gridItemProps;
|
16813
16993
|
exports.gridProps = gridProps;
|
16994
|
+
exports.highlightProps = highlightProps;
|
16814
16995
|
exports.iconProps = iconProps;
|
16815
16996
|
exports.imagePreviewProps = imagePreviewProps;
|
16816
16997
|
exports.imageProps = imageProps;
|