vant 4.7.3 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- 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/es/text-ellipsis/TextEllipsis.mjs +10 -5
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/text-ellipsis/types.d.ts +6 -0
- 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/text-ellipsis/TextEllipsis.js +9 -4
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/text-ellipsis/types.d.ts +6 -0
- package/lib/vant.cjs.js +783 -597
- package/lib/vant.es.js +783 -597
- package/lib/vant.js +783 -597
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +3 -3
package/lib/vant.es.js
CHANGED
@@ -239,7 +239,7 @@ function deepAssign(to, from) {
|
|
239
239
|
});
|
240
240
|
return to;
|
241
241
|
}
|
242
|
-
var stdin_default$
|
242
|
+
var stdin_default$1W = {
|
243
243
|
name: "姓名",
|
244
244
|
tel: "电话",
|
245
245
|
save: "保存",
|
@@ -303,7 +303,7 @@ var stdin_default$1V = {
|
|
303
303
|
};
|
304
304
|
const lang = ref("zh-CN");
|
305
305
|
const messages = reactive({
|
306
|
-
"zh-CN": stdin_default$
|
306
|
+
"zh-CN": stdin_default$1W
|
307
307
|
});
|
308
308
|
const Locale = {
|
309
309
|
messages() {
|
@@ -318,11 +318,11 @@ const Locale = {
|
|
318
318
|
}
|
319
319
|
};
|
320
320
|
const useCurrentLang = () => lang;
|
321
|
-
var stdin_default$
|
321
|
+
var stdin_default$1V = Locale;
|
322
322
|
function createTranslate(name2) {
|
323
323
|
const prefix = camelize(name2) + ".";
|
324
324
|
return (path, ...args) => {
|
325
|
-
const messages2 = stdin_default$
|
325
|
+
const messages2 = stdin_default$1V.messages();
|
326
326
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
327
327
|
return isFunction(message) ? message(...args) : message;
|
328
328
|
};
|
@@ -452,20 +452,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
452
452
|
}
|
453
453
|
}, [renderContent()]);
|
454
454
|
}
|
455
|
-
const [name$
|
456
|
-
const ACTION_BAR_KEY = Symbol(name$
|
455
|
+
const [name$1K, bem$1F] = createNamespace("action-bar");
|
456
|
+
const ACTION_BAR_KEY = Symbol(name$1K);
|
457
457
|
const actionBarProps = {
|
458
458
|
placeholder: Boolean,
|
459
459
|
safeAreaInsetBottom: truthProp
|
460
460
|
};
|
461
|
-
var stdin_default$
|
462
|
-
name: name$
|
461
|
+
var stdin_default$1U = defineComponent({
|
462
|
+
name: name$1K,
|
463
463
|
props: actionBarProps,
|
464
464
|
setup(props2, {
|
465
465
|
slots
|
466
466
|
}) {
|
467
467
|
const root = ref();
|
468
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
468
|
+
const renderPlaceholder = usePlaceholder(root, bem$1F);
|
469
469
|
const {
|
470
470
|
linkChildren
|
471
471
|
} = useChildren(ACTION_BAR_KEY);
|
@@ -474,7 +474,7 @@ var stdin_default$1T = defineComponent({
|
|
474
474
|
var _a;
|
475
475
|
return createVNode("div", {
|
476
476
|
"ref": root,
|
477
|
-
"class": [bem$
|
477
|
+
"class": [bem$1F(), {
|
478
478
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
479
479
|
}]
|
480
480
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -487,7 +487,7 @@ var stdin_default$1T = defineComponent({
|
|
487
487
|
};
|
488
488
|
}
|
489
489
|
});
|
490
|
-
const ActionBar = withInstall(stdin_default$
|
490
|
+
const ActionBar = withInstall(stdin_default$1U);
|
491
491
|
function useExpose(apis) {
|
492
492
|
const instance2 = getCurrentInstance();
|
493
493
|
if (instance2) {
|
@@ -515,7 +515,7 @@ function useRoute() {
|
|
515
515
|
const vm = getCurrentInstance().proxy;
|
516
516
|
return () => route(vm);
|
517
517
|
}
|
518
|
-
const [name$
|
518
|
+
const [name$1J, bem$1E] = createNamespace("badge");
|
519
519
|
const badgeProps = {
|
520
520
|
dot: Boolean,
|
521
521
|
max: numericProp,
|
@@ -526,8 +526,8 @@ const badgeProps = {
|
|
526
526
|
showZero: truthProp,
|
527
527
|
position: makeStringProp("top-right")
|
528
528
|
};
|
529
|
-
var stdin_default$
|
530
|
-
name: name$
|
529
|
+
var stdin_default$1T = defineComponent({
|
530
|
+
name: name$1J,
|
531
531
|
props: badgeProps,
|
532
532
|
setup(props2, {
|
533
533
|
slots
|
@@ -590,7 +590,7 @@ var stdin_default$1S = defineComponent({
|
|
590
590
|
const renderBadge = () => {
|
591
591
|
if (hasContent() || props2.dot) {
|
592
592
|
return createVNode("div", {
|
593
|
-
"class": bem$
|
593
|
+
"class": bem$1E([props2.position, {
|
594
594
|
dot: props2.dot,
|
595
595
|
fixed: !!slots.default
|
596
596
|
}]),
|
@@ -604,7 +604,7 @@ var stdin_default$1S = defineComponent({
|
|
604
604
|
tag
|
605
605
|
} = props2;
|
606
606
|
return createVNode(tag, {
|
607
|
-
"class": bem$
|
607
|
+
"class": bem$1E("wrapper")
|
608
608
|
}, {
|
609
609
|
default: () => [slots.default(), renderBadge()]
|
610
610
|
});
|
@@ -613,14 +613,14 @@ var stdin_default$1S = defineComponent({
|
|
613
613
|
};
|
614
614
|
}
|
615
615
|
});
|
616
|
-
const Badge = withInstall(stdin_default$
|
616
|
+
const Badge = withInstall(stdin_default$1T);
|
617
617
|
let globalZIndex = 2e3;
|
618
618
|
const useGlobalZIndex = () => ++globalZIndex;
|
619
619
|
const setGlobalZIndex = (val) => {
|
620
620
|
globalZIndex = val;
|
621
621
|
};
|
622
|
-
const [name$
|
623
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
622
|
+
const [name$1I, bem$1D] = createNamespace("config-provider");
|
623
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1I);
|
624
624
|
const configProviderProps = {
|
625
625
|
tag: makeStringProp("div"),
|
626
626
|
theme: makeStringProp("light"),
|
@@ -654,8 +654,8 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
|
|
654
654
|
}
|
655
655
|
});
|
656
656
|
}
|
657
|
-
var stdin_default$
|
658
|
-
name: name$
|
657
|
+
var stdin_default$1S = defineComponent({
|
658
|
+
name: name$1I,
|
659
659
|
props: configProviderProps,
|
660
660
|
setup(props2, {
|
661
661
|
slots
|
@@ -703,7 +703,7 @@ var stdin_default$1R = defineComponent({
|
|
703
703
|
}
|
704
704
|
});
|
705
705
|
return () => createVNode(props2.tag, {
|
706
|
-
"class": bem$
|
706
|
+
"class": bem$1D(),
|
707
707
|
"style": props2.themeVarsScope === "local" ? style.value : void 0
|
708
708
|
}, {
|
709
709
|
default: () => {
|
@@ -713,7 +713,7 @@ var stdin_default$1R = defineComponent({
|
|
713
713
|
});
|
714
714
|
}
|
715
715
|
});
|
716
|
-
const [name$
|
716
|
+
const [name$1H, bem$1C] = createNamespace("icon");
|
717
717
|
const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
|
718
718
|
const iconProps = {
|
719
719
|
dot: Boolean,
|
@@ -725,14 +725,14 @@ const iconProps = {
|
|
725
725
|
badgeProps: Object,
|
726
726
|
classPrefix: String
|
727
727
|
};
|
728
|
-
var stdin_default$
|
729
|
-
name: name$
|
728
|
+
var stdin_default$1R = defineComponent({
|
729
|
+
name: name$1H,
|
730
730
|
props: iconProps,
|
731
731
|
setup(props2, {
|
732
732
|
slots
|
733
733
|
}) {
|
734
734
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
735
|
-
const classPrefix = computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
735
|
+
const classPrefix = computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1C());
|
736
736
|
return () => {
|
737
737
|
const {
|
738
738
|
tag,
|
@@ -756,7 +756,7 @@ var stdin_default$1Q = defineComponent({
|
|
756
756
|
default: () => {
|
757
757
|
var _a;
|
758
758
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
|
759
|
-
"class": bem$
|
759
|
+
"class": bem$1C("image"),
|
760
760
|
"src": name2
|
761
761
|
}, null)];
|
762
762
|
}
|
@@ -764,14 +764,14 @@ var stdin_default$1Q = defineComponent({
|
|
764
764
|
};
|
765
765
|
}
|
766
766
|
});
|
767
|
-
const Icon = withInstall(stdin_default$
|
768
|
-
var stdin_default$
|
769
|
-
const [name$
|
767
|
+
const Icon = withInstall(stdin_default$1R);
|
768
|
+
var stdin_default$1Q = Icon;
|
769
|
+
const [name$1G, bem$1B] = createNamespace("loading");
|
770
770
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
771
|
-
"class": bem$
|
771
|
+
"class": bem$1B("line", String(index + 1))
|
772
772
|
}, null));
|
773
773
|
const CircularIcon = createVNode("svg", {
|
774
|
-
"class": bem$
|
774
|
+
"class": bem$1B("circular"),
|
775
775
|
"viewBox": "25 25 50 50"
|
776
776
|
}, [createVNode("circle", {
|
777
777
|
"cx": "50",
|
@@ -787,8 +787,8 @@ const loadingProps = {
|
|
787
787
|
textSize: numericProp,
|
788
788
|
textColor: String
|
789
789
|
};
|
790
|
-
var stdin_default$
|
791
|
-
name: name$
|
790
|
+
var stdin_default$1P = defineComponent({
|
791
|
+
name: name$1G,
|
792
792
|
props: loadingProps,
|
793
793
|
setup(props2, {
|
794
794
|
slots
|
@@ -799,7 +799,7 @@ var stdin_default$1O = defineComponent({
|
|
799
799
|
const renderIcon = () => {
|
800
800
|
const DefaultIcon = props2.type === "spinner" ? SpinIcon : CircularIcon;
|
801
801
|
return createVNode("span", {
|
802
|
-
"class": bem$
|
802
|
+
"class": bem$1B("spinner", props2.type),
|
803
803
|
"style": spinnerStyle.value
|
804
804
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
805
805
|
};
|
@@ -807,7 +807,7 @@ var stdin_default$1O = defineComponent({
|
|
807
807
|
var _a;
|
808
808
|
if (slots.default) {
|
809
809
|
return createVNode("span", {
|
810
|
-
"class": bem$
|
810
|
+
"class": bem$1B("text"),
|
811
811
|
"style": {
|
812
812
|
fontSize: addUnit(props2.textSize),
|
813
813
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
@@ -821,7 +821,7 @@ var stdin_default$1O = defineComponent({
|
|
821
821
|
vertical
|
822
822
|
} = props2;
|
823
823
|
return createVNode("div", {
|
824
|
-
"class": bem$
|
824
|
+
"class": bem$1B([type, {
|
825
825
|
vertical
|
826
826
|
}]),
|
827
827
|
"aria-live": "polite",
|
@@ -830,8 +830,8 @@ var stdin_default$1O = defineComponent({
|
|
830
830
|
};
|
831
831
|
}
|
832
832
|
});
|
833
|
-
const Loading = withInstall(stdin_default$
|
834
|
-
const [name$
|
833
|
+
const Loading = withInstall(stdin_default$1P);
|
834
|
+
const [name$1F, bem$1A] = createNamespace("button");
|
835
835
|
const buttonProps = extend({}, routeProps, {
|
836
836
|
tag: makeStringProp("button"),
|
837
837
|
text: String,
|
@@ -853,8 +853,8 @@ const buttonProps = extend({}, routeProps, {
|
|
853
853
|
loadingType: String,
|
854
854
|
iconPosition: makeStringProp("left")
|
855
855
|
});
|
856
|
-
var stdin_default$
|
857
|
-
name: name$
|
856
|
+
var stdin_default$1O = defineComponent({
|
857
|
+
name: name$1F,
|
858
858
|
props: buttonProps,
|
859
859
|
emits: ["click"],
|
860
860
|
setup(props2, {
|
@@ -869,7 +869,7 @@ var stdin_default$1N = defineComponent({
|
|
869
869
|
return createVNode(Loading, {
|
870
870
|
"size": props2.loadingSize,
|
871
871
|
"type": props2.loadingType,
|
872
|
-
"class": bem$
|
872
|
+
"class": bem$1A("loading")
|
873
873
|
}, null);
|
874
874
|
};
|
875
875
|
const renderIcon = () => {
|
@@ -878,13 +878,13 @@ var stdin_default$1N = defineComponent({
|
|
878
878
|
}
|
879
879
|
if (slots.icon) {
|
880
880
|
return createVNode("div", {
|
881
|
-
"class": bem$
|
881
|
+
"class": bem$1A("icon")
|
882
882
|
}, [slots.icon()]);
|
883
883
|
}
|
884
884
|
if (props2.icon) {
|
885
885
|
return createVNode(Icon, {
|
886
886
|
"name": props2.icon,
|
887
|
-
"class": bem$
|
887
|
+
"class": bem$1A("icon"),
|
888
888
|
"classPrefix": props2.iconPrefix
|
889
889
|
}, null);
|
890
890
|
}
|
@@ -898,7 +898,7 @@ var stdin_default$1N = defineComponent({
|
|
898
898
|
}
|
899
899
|
if (text) {
|
900
900
|
return createVNode("span", {
|
901
|
-
"class": bem$
|
901
|
+
"class": bem$1A("text")
|
902
902
|
}, [text]);
|
903
903
|
}
|
904
904
|
};
|
@@ -945,7 +945,7 @@ var stdin_default$1N = defineComponent({
|
|
945
945
|
nativeType,
|
946
946
|
iconPosition
|
947
947
|
} = props2;
|
948
|
-
const classes = [bem$
|
948
|
+
const classes = [bem$1A([type, size, {
|
949
949
|
plain,
|
950
950
|
block,
|
951
951
|
round,
|
@@ -964,14 +964,14 @@ var stdin_default$1N = defineComponent({
|
|
964
964
|
"onClick": onClick
|
965
965
|
}, {
|
966
966
|
default: () => [createVNode("div", {
|
967
|
-
"class": bem$
|
967
|
+
"class": bem$1A("content")
|
968
968
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
969
969
|
});
|
970
970
|
};
|
971
971
|
}
|
972
972
|
});
|
973
|
-
const Button = withInstall(stdin_default$
|
974
|
-
const [name$
|
973
|
+
const Button = withInstall(stdin_default$1O);
|
974
|
+
const [name$1E, bem$1z] = createNamespace("action-bar-button");
|
975
975
|
const actionBarButtonProps = extend({}, routeProps, {
|
976
976
|
type: String,
|
977
977
|
text: String,
|
@@ -980,8 +980,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
980
980
|
loading: Boolean,
|
981
981
|
disabled: Boolean
|
982
982
|
});
|
983
|
-
var stdin_default$
|
984
|
-
name: name$
|
983
|
+
var stdin_default$1N = defineComponent({
|
984
|
+
name: name$1E,
|
985
985
|
props: actionBarButtonProps,
|
986
986
|
setup(props2, {
|
987
987
|
slots
|
@@ -1016,7 +1016,7 @@ var stdin_default$1M = defineComponent({
|
|
1016
1016
|
disabled
|
1017
1017
|
} = props2;
|
1018
1018
|
return createVNode(Button, {
|
1019
|
-
"class": bem$
|
1019
|
+
"class": bem$1z([type, {
|
1020
1020
|
last: isLast.value,
|
1021
1021
|
first: isFirst.value
|
1022
1022
|
}]),
|
@@ -1033,8 +1033,8 @@ var stdin_default$1M = defineComponent({
|
|
1033
1033
|
};
|
1034
1034
|
}
|
1035
1035
|
});
|
1036
|
-
const ActionBarButton = withInstall(stdin_default$
|
1037
|
-
const [name$
|
1036
|
+
const ActionBarButton = withInstall(stdin_default$1N);
|
1037
|
+
const [name$1D, bem$1y] = createNamespace("action-bar-icon");
|
1038
1038
|
const actionBarIconProps = extend({}, routeProps, {
|
1039
1039
|
dot: Boolean,
|
1040
1040
|
text: String,
|
@@ -1045,8 +1045,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
1045
1045
|
badgeProps: Object,
|
1046
1046
|
iconPrefix: String
|
1047
1047
|
});
|
1048
|
-
var stdin_default$
|
1049
|
-
name: name$
|
1048
|
+
var stdin_default$1M = defineComponent({
|
1049
|
+
name: name$1D,
|
1050
1050
|
props: actionBarIconProps,
|
1051
1051
|
setup(props2, {
|
1052
1052
|
slots
|
@@ -1066,7 +1066,7 @@ var stdin_default$1L = defineComponent({
|
|
1066
1066
|
if (slots.icon) {
|
1067
1067
|
return createVNode(Badge, mergeProps({
|
1068
1068
|
"dot": dot,
|
1069
|
-
"class": bem$
|
1069
|
+
"class": bem$1y("icon"),
|
1070
1070
|
"content": badge
|
1071
1071
|
}, badgeProps2), {
|
1072
1072
|
default: slots.icon
|
@@ -1078,20 +1078,20 @@ var stdin_default$1L = defineComponent({
|
|
1078
1078
|
"name": icon,
|
1079
1079
|
"badge": badge,
|
1080
1080
|
"color": color,
|
1081
|
-
"class": [bem$
|
1081
|
+
"class": [bem$1y("icon"), iconClass],
|
1082
1082
|
"badgeProps": badgeProps2,
|
1083
1083
|
"classPrefix": iconPrefix
|
1084
1084
|
}, null);
|
1085
1085
|
};
|
1086
1086
|
return () => createVNode("div", {
|
1087
1087
|
"role": "button",
|
1088
|
-
"class": bem$
|
1088
|
+
"class": bem$1y(),
|
1089
1089
|
"tabindex": 0,
|
1090
1090
|
"onClick": route2
|
1091
1091
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
1092
1092
|
}
|
1093
1093
|
});
|
1094
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1094
|
+
const ActionBarIcon = withInstall(stdin_default$1M);
|
1095
1095
|
const popupSharedProps = {
|
1096
1096
|
// whether to show popup
|
1097
1097
|
show: Boolean,
|
@@ -1253,7 +1253,7 @@ const useScopeId = () => {
|
|
1253
1253
|
const { scopeId } = ((_a = getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
|
1254
1254
|
return scopeId ? { [scopeId]: "" } : null;
|
1255
1255
|
};
|
1256
|
-
const [name$
|
1256
|
+
const [name$1C, bem$1x] = createNamespace("overlay");
|
1257
1257
|
const overlayProps = {
|
1258
1258
|
show: Boolean,
|
1259
1259
|
zIndex: numericProp,
|
@@ -1263,8 +1263,8 @@ const overlayProps = {
|
|
1263
1263
|
lazyRender: truthProp,
|
1264
1264
|
customStyle: Object
|
1265
1265
|
};
|
1266
|
-
var stdin_default$
|
1267
|
-
name: name$
|
1266
|
+
var stdin_default$1L = defineComponent({
|
1267
|
+
name: name$1C,
|
1268
1268
|
props: overlayProps,
|
1269
1269
|
setup(props2, {
|
1270
1270
|
slots
|
@@ -1285,7 +1285,7 @@ var stdin_default$1K = defineComponent({
|
|
1285
1285
|
return withDirectives(createVNode("div", {
|
1286
1286
|
"ref": root,
|
1287
1287
|
"style": style,
|
1288
|
-
"class": [bem$
|
1288
|
+
"class": [bem$1x(), props2.className]
|
1289
1289
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props2.show]]);
|
1290
1290
|
});
|
1291
1291
|
useEventListener("touchmove", onTouchMove, {
|
@@ -1299,7 +1299,7 @@ var stdin_default$1K = defineComponent({
|
|
1299
1299
|
});
|
1300
1300
|
}
|
1301
1301
|
});
|
1302
|
-
const Overlay = withInstall(stdin_default$
|
1302
|
+
const Overlay = withInstall(stdin_default$1L);
|
1303
1303
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1304
1304
|
round: Boolean,
|
1305
1305
|
position: makeStringProp("center"),
|
@@ -1312,9 +1312,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1312
1312
|
safeAreaInsetTop: Boolean,
|
1313
1313
|
safeAreaInsetBottom: Boolean
|
1314
1314
|
});
|
1315
|
-
const [name$
|
1316
|
-
var stdin_default$
|
1317
|
-
name: name$
|
1315
|
+
const [name$1B, bem$1w] = createNamespace("popup");
|
1316
|
+
var stdin_default$1K = defineComponent({
|
1317
|
+
name: name$1B,
|
1318
1318
|
inheritAttrs: false,
|
1319
1319
|
props: popupProps$2,
|
1320
1320
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1389,7 +1389,7 @@ var stdin_default$1J = defineComponent({
|
|
1389
1389
|
"role": "button",
|
1390
1390
|
"tabindex": 0,
|
1391
1391
|
"name": props2.closeIcon,
|
1392
|
-
"class": [bem$
|
1392
|
+
"class": [bem$1w("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
1393
1393
|
"classPrefix": props2.iconPrefix,
|
1394
1394
|
"onClick": onClickCloseIcon
|
1395
1395
|
}, null);
|
@@ -1418,7 +1418,7 @@ var stdin_default$1J = defineComponent({
|
|
1418
1418
|
"style": style.value,
|
1419
1419
|
"role": "dialog",
|
1420
1420
|
"tabindex": 0,
|
1421
|
-
"class": [bem$
|
1421
|
+
"class": [bem$1w({
|
1422
1422
|
round,
|
1423
1423
|
[position]: position
|
1424
1424
|
}), {
|
@@ -1499,8 +1499,8 @@ var stdin_default$1J = defineComponent({
|
|
1499
1499
|
};
|
1500
1500
|
}
|
1501
1501
|
});
|
1502
|
-
const Popup = withInstall(stdin_default$
|
1503
|
-
const [name$
|
1502
|
+
const Popup = withInstall(stdin_default$1K);
|
1503
|
+
const [name$1A, bem$1v] = createNamespace("action-sheet");
|
1504
1504
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1505
1505
|
title: String,
|
1506
1506
|
round: truthProp,
|
@@ -1514,8 +1514,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1514
1514
|
safeAreaInsetBottom: truthProp
|
1515
1515
|
});
|
1516
1516
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1517
|
-
var stdin_default$
|
1518
|
-
name: name$
|
1517
|
+
var stdin_default$1J = defineComponent({
|
1518
|
+
name: name$1A,
|
1519
1519
|
props: actionSheetProps,
|
1520
1520
|
emits: ["select", "cancel", "update:show"],
|
1521
1521
|
setup(props2, {
|
@@ -1530,10 +1530,10 @@ var stdin_default$1I = defineComponent({
|
|
1530
1530
|
const renderHeader = () => {
|
1531
1531
|
if (props2.title) {
|
1532
1532
|
return createVNode("div", {
|
1533
|
-
"class": bem$
|
1533
|
+
"class": bem$1v("header")
|
1534
1534
|
}, [props2.title, props2.closeable && createVNode(Icon, {
|
1535
1535
|
"name": props2.closeIcon,
|
1536
|
-
"class": [bem$
|
1536
|
+
"class": [bem$1v("close"), HAPTICS_FEEDBACK],
|
1537
1537
|
"onClick": onCancel
|
1538
1538
|
}, null)]);
|
1539
1539
|
}
|
@@ -1541,10 +1541,10 @@ var stdin_default$1I = defineComponent({
|
|
1541
1541
|
const renderCancel = () => {
|
1542
1542
|
if (slots.cancel || props2.cancelText) {
|
1543
1543
|
return [createVNode("div", {
|
1544
|
-
"class": bem$
|
1544
|
+
"class": bem$1v("gap")
|
1545
1545
|
}, null), createVNode("button", {
|
1546
1546
|
"type": "button",
|
1547
|
-
"class": bem$
|
1547
|
+
"class": bem$1v("cancel"),
|
1548
1548
|
"onClick": onCancel
|
1549
1549
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1550
1550
|
}
|
@@ -1552,7 +1552,7 @@ var stdin_default$1I = defineComponent({
|
|
1552
1552
|
const renderActionContent = (action, index) => {
|
1553
1553
|
if (action.loading) {
|
1554
1554
|
return createVNode(Loading, {
|
1555
|
-
"class": bem$
|
1555
|
+
"class": bem$1v("loading-icon")
|
1556
1556
|
}, null);
|
1557
1557
|
}
|
1558
1558
|
if (slots.action) {
|
@@ -1562,9 +1562,9 @@ var stdin_default$1I = defineComponent({
|
|
1562
1562
|
});
|
1563
1563
|
}
|
1564
1564
|
return [createVNode("span", {
|
1565
|
-
"class": bem$
|
1565
|
+
"class": bem$1v("name")
|
1566
1566
|
}, [action.name]), action.subname && createVNode("div", {
|
1567
|
-
"class": bem$
|
1567
|
+
"class": bem$1v("subname")
|
1568
1568
|
}, [action.subname])];
|
1569
1569
|
};
|
1570
1570
|
const renderAction = (action, index) => {
|
@@ -1592,7 +1592,7 @@ var stdin_default$1I = defineComponent({
|
|
1592
1592
|
"style": {
|
1593
1593
|
color
|
1594
1594
|
},
|
1595
|
-
"class": [bem$
|
1595
|
+
"class": [bem$1v("item", {
|
1596
1596
|
loading,
|
1597
1597
|
disabled
|
1598
1598
|
}), className],
|
@@ -1603,26 +1603,26 @@ var stdin_default$1I = defineComponent({
|
|
1603
1603
|
if (props2.description || slots.description) {
|
1604
1604
|
const content = slots.description ? slots.description() : props2.description;
|
1605
1605
|
return createVNode("div", {
|
1606
|
-
"class": bem$
|
1606
|
+
"class": bem$1v("description")
|
1607
1607
|
}, [content]);
|
1608
1608
|
}
|
1609
1609
|
};
|
1610
1610
|
return () => createVNode(Popup, mergeProps({
|
1611
|
-
"class": bem$
|
1611
|
+
"class": bem$1v(),
|
1612
1612
|
"position": "bottom",
|
1613
1613
|
"onUpdate:show": updateShow
|
1614
1614
|
}, pick(props2, popupInheritKeys$2)), {
|
1615
1615
|
default: () => {
|
1616
1616
|
var _a;
|
1617
1617
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
1618
|
-
"class": bem$
|
1618
|
+
"class": bem$1v("content")
|
1619
1619
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1620
1620
|
}
|
1621
1621
|
});
|
1622
1622
|
}
|
1623
1623
|
});
|
1624
|
-
const ActionSheet = withInstall(stdin_default$
|
1625
|
-
const [name$
|
1624
|
+
const ActionSheet = withInstall(stdin_default$1J);
|
1625
|
+
const [name$1z, bem$1u, t$k] = createNamespace("picker");
|
1626
1626
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1627
1627
|
function getColumnsType(columns, fields) {
|
1628
1628
|
const firstColumn = columns[0];
|
@@ -1691,10 +1691,10 @@ function assignDefaultFields(fields) {
|
|
1691
1691
|
const DEFAULT_DURATION = 200;
|
1692
1692
|
const MOMENTUM_TIME = 300;
|
1693
1693
|
const MOMENTUM_DISTANCE = 15;
|
1694
|
-
const [name$
|
1695
|
-
const PICKER_KEY = Symbol(name$
|
1696
|
-
var stdin_default$
|
1697
|
-
name: name$
|
1694
|
+
const [name$1y, bem$1t] = createNamespace("picker-column");
|
1695
|
+
const PICKER_KEY = Symbol(name$1y);
|
1696
|
+
var stdin_default$1I = defineComponent({
|
1697
|
+
name: name$1y,
|
1698
1698
|
props: {
|
1699
1699
|
value: numericProp,
|
1700
1700
|
fields: makeRequiredProp(Object),
|
@@ -1836,7 +1836,7 @@ var stdin_default$1H = defineComponent({
|
|
1836
1836
|
role: "button",
|
1837
1837
|
style: optionStyle,
|
1838
1838
|
tabindex: disabled ? -1 : 0,
|
1839
|
-
class: [bem$
|
1839
|
+
class: [bem$1t("item", {
|
1840
1840
|
disabled,
|
1841
1841
|
selected: value === props2.value
|
1842
1842
|
}), option.className],
|
@@ -1866,7 +1866,7 @@ var stdin_default$1H = defineComponent({
|
|
1866
1866
|
});
|
1867
1867
|
return () => createVNode("div", {
|
1868
1868
|
"ref": root,
|
1869
|
-
"class": bem$
|
1869
|
+
"class": bem$1t(),
|
1870
1870
|
"onTouchstartPassive": onTouchStart,
|
1871
1871
|
"onTouchend": onTouchEnd,
|
1872
1872
|
"onTouchcancel": onTouchEnd
|
@@ -1877,12 +1877,12 @@ var stdin_default$1H = defineComponent({
|
|
1877
1877
|
transitionDuration: `${currentDuration.value}ms`,
|
1878
1878
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1879
1879
|
},
|
1880
|
-
"class": bem$
|
1880
|
+
"class": bem$1t("wrapper"),
|
1881
1881
|
"onTransitionend": stopMomentum
|
1882
1882
|
}, [renderOptions()])]);
|
1883
1883
|
}
|
1884
1884
|
});
|
1885
|
-
const [name$
|
1885
|
+
const [name$1x] = createNamespace("picker-toolbar");
|
1886
1886
|
const pickerToolbarProps = {
|
1887
1887
|
title: String,
|
1888
1888
|
cancelButtonText: String,
|
@@ -1890,8 +1890,8 @@ const pickerToolbarProps = {
|
|
1890
1890
|
};
|
1891
1891
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1892
1892
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1893
|
-
var stdin_default$
|
1894
|
-
name: name$
|
1893
|
+
var stdin_default$1H = defineComponent({
|
1894
|
+
name: name$1x,
|
1895
1895
|
props: pickerToolbarProps,
|
1896
1896
|
emits: ["confirm", "cancel"],
|
1897
1897
|
setup(props2, {
|
@@ -1904,7 +1904,7 @@ var stdin_default$1G = defineComponent({
|
|
1904
1904
|
}
|
1905
1905
|
if (props2.title) {
|
1906
1906
|
return createVNode("div", {
|
1907
|
-
"class": [bem$
|
1907
|
+
"class": [bem$1u("title"), "van-ellipsis"]
|
1908
1908
|
}, [props2.title]);
|
1909
1909
|
}
|
1910
1910
|
};
|
@@ -1914,7 +1914,7 @@ var stdin_default$1G = defineComponent({
|
|
1914
1914
|
const text = props2.cancelButtonText || t$k("cancel");
|
1915
1915
|
return createVNode("button", {
|
1916
1916
|
"type": "button",
|
1917
|
-
"class": [bem$
|
1917
|
+
"class": [bem$1u("cancel"), HAPTICS_FEEDBACK],
|
1918
1918
|
"onClick": onCancel
|
1919
1919
|
}, [slots.cancel ? slots.cancel() : text]);
|
1920
1920
|
};
|
@@ -1922,12 +1922,12 @@ var stdin_default$1G = defineComponent({
|
|
1922
1922
|
const text = props2.confirmButtonText || t$k("confirm");
|
1923
1923
|
return createVNode("button", {
|
1924
1924
|
"type": "button",
|
1925
|
-
"class": [bem$
|
1925
|
+
"class": [bem$1u("confirm"), HAPTICS_FEEDBACK],
|
1926
1926
|
"onClick": onConfirm
|
1927
1927
|
}, [slots.confirm ? slots.confirm() : text]);
|
1928
1928
|
};
|
1929
1929
|
return () => createVNode("div", {
|
1930
|
-
"class": bem$
|
1930
|
+
"class": bem$1u("toolbar")
|
1931
1931
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1932
1932
|
}
|
1933
1933
|
});
|
@@ -2035,7 +2035,7 @@ function useVisibilityChange(target, onChange) {
|
|
2035
2035
|
onBeforeUnmount(unobserve);
|
2036
2036
|
onMountedOrActivated(observe);
|
2037
2037
|
}
|
2038
|
-
const [name$
|
2038
|
+
const [name$1w, bem$1s] = createNamespace("sticky");
|
2039
2039
|
const stickyProps = {
|
2040
2040
|
zIndex: numericProp,
|
2041
2041
|
position: makeStringProp("top"),
|
@@ -2043,8 +2043,8 @@ const stickyProps = {
|
|
2043
2043
|
offsetTop: makeNumericProp(0),
|
2044
2044
|
offsetBottom: makeNumericProp(0)
|
2045
2045
|
};
|
2046
|
-
var stdin_default$
|
2047
|
-
name: name$
|
2046
|
+
var stdin_default$1G = defineComponent({
|
2047
|
+
name: name$1w,
|
2048
2048
|
props: stickyProps,
|
2049
2049
|
emits: ["scroll", "change"],
|
2050
2050
|
setup(props2, {
|
@@ -2157,7 +2157,7 @@ var stdin_default$1F = defineComponent({
|
|
2157
2157
|
"ref": root,
|
2158
2158
|
"style": rootStyle.value
|
2159
2159
|
}, [createVNode("div", {
|
2160
|
-
"class": bem$
|
2160
|
+
"class": bem$1s({
|
2161
2161
|
fixed: state.fixed && !isReset.value
|
2162
2162
|
}),
|
2163
2163
|
"style": stickyStyle.value
|
@@ -2165,8 +2165,8 @@ var stdin_default$1F = defineComponent({
|
|
2165
2165
|
};
|
2166
2166
|
}
|
2167
2167
|
});
|
2168
|
-
const Sticky = withInstall(stdin_default$
|
2169
|
-
const [name$
|
2168
|
+
const Sticky = withInstall(stdin_default$1G);
|
2169
|
+
const [name$1v, bem$1r] = createNamespace("swipe");
|
2170
2170
|
const swipeProps = {
|
2171
2171
|
loop: truthProp,
|
2172
2172
|
width: numericProp,
|
@@ -2181,9 +2181,9 @@ const swipeProps = {
|
|
2181
2181
|
showIndicators: truthProp,
|
2182
2182
|
stopPropagation: truthProp
|
2183
2183
|
};
|
2184
|
-
const SWIPE_KEY = Symbol(name$
|
2185
|
-
var stdin_default$
|
2186
|
-
name: name$
|
2184
|
+
const SWIPE_KEY = Symbol(name$1v);
|
2185
|
+
var stdin_default$1F = defineComponent({
|
2186
|
+
name: name$1v,
|
2187
2187
|
props: swipeProps,
|
2188
2188
|
emits: ["change", "dragStart", "dragEnd"],
|
2189
2189
|
setup(props2, {
|
@@ -2461,7 +2461,7 @@ var stdin_default$1E = defineComponent({
|
|
2461
2461
|
} : void 0;
|
2462
2462
|
return createVNode("i", {
|
2463
2463
|
"style": style,
|
2464
|
-
"class": bem$
|
2464
|
+
"class": bem$1r("indicator", {
|
2465
2465
|
active
|
2466
2466
|
})
|
2467
2467
|
}, null);
|
@@ -2475,7 +2475,7 @@ var stdin_default$1E = defineComponent({
|
|
2475
2475
|
}
|
2476
2476
|
if (props2.showIndicators && count.value > 1) {
|
2477
2477
|
return createVNode("div", {
|
2478
|
-
"class": bem$
|
2478
|
+
"class": bem$1r("indicators", {
|
2479
2479
|
vertical: props2.vertical
|
2480
2480
|
})
|
2481
2481
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2517,11 +2517,11 @@ var stdin_default$1E = defineComponent({
|
|
2517
2517
|
var _a;
|
2518
2518
|
return createVNode("div", {
|
2519
2519
|
"ref": root,
|
2520
|
-
"class": bem$
|
2520
|
+
"class": bem$1r()
|
2521
2521
|
}, [createVNode("div", {
|
2522
2522
|
"ref": track,
|
2523
2523
|
"style": trackStyle.value,
|
2524
|
-
"class": bem$
|
2524
|
+
"class": bem$1r("track", {
|
2525
2525
|
vertical: props2.vertical
|
2526
2526
|
}),
|
2527
2527
|
"onTouchstartPassive": onTouchStart,
|
@@ -2531,10 +2531,10 @@ var stdin_default$1E = defineComponent({
|
|
2531
2531
|
};
|
2532
2532
|
}
|
2533
2533
|
});
|
2534
|
-
const Swipe = withInstall(stdin_default$
|
2535
|
-
const [name$
|
2536
|
-
var stdin_default$
|
2537
|
-
name: name$
|
2534
|
+
const Swipe = withInstall(stdin_default$1F);
|
2535
|
+
const [name$1u, bem$1q] = createNamespace("tabs");
|
2536
|
+
var stdin_default$1E = defineComponent({
|
2537
|
+
name: name$1u,
|
2538
2538
|
props: {
|
2539
2539
|
count: makeRequiredProp(Number),
|
2540
2540
|
inited: Boolean,
|
@@ -2558,7 +2558,7 @@ var stdin_default$1D = defineComponent({
|
|
2558
2558
|
return createVNode(Swipe, {
|
2559
2559
|
"ref": swipeRef,
|
2560
2560
|
"loop": false,
|
2561
|
-
"class": bem$
|
2561
|
+
"class": bem$1q("track"),
|
2562
2562
|
"duration": +props2.duration * 1e3,
|
2563
2563
|
"touchable": props2.swipeable,
|
2564
2564
|
"lazyRender": props2.lazyRender,
|
@@ -2586,13 +2586,13 @@ var stdin_default$1D = defineComponent({
|
|
2586
2586
|
swipeRef
|
2587
2587
|
});
|
2588
2588
|
return () => createVNode("div", {
|
2589
|
-
"class": bem$
|
2589
|
+
"class": bem$1q("content", {
|
2590
2590
|
animated: props2.animated || props2.swipeable
|
2591
2591
|
})
|
2592
2592
|
}, [renderChildren()]);
|
2593
2593
|
}
|
2594
2594
|
});
|
2595
|
-
const [name$
|
2595
|
+
const [name$1t, bem$1p] = createNamespace("tabs");
|
2596
2596
|
const tabsProps = {
|
2597
2597
|
type: makeStringProp("line"),
|
2598
2598
|
color: String,
|
@@ -2616,9 +2616,9 @@ const tabsProps = {
|
|
2616
2616
|
titleActiveColor: String,
|
2617
2617
|
titleInactiveColor: String
|
2618
2618
|
};
|
2619
|
-
const TABS_KEY = Symbol(name$
|
2620
|
-
var stdin_default$
|
2621
|
-
name: name$
|
2619
|
+
const TABS_KEY = Symbol(name$1t);
|
2620
|
+
var stdin_default$1D = defineComponent({
|
2621
|
+
name: name$1t,
|
2622
2622
|
props: tabsProps,
|
2623
2623
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2624
2624
|
setup(props2, {
|
@@ -2816,7 +2816,7 @@ var stdin_default$1C = defineComponent({
|
|
2816
2816
|
const renderLine = () => {
|
2817
2817
|
if (props2.type === "line" && children.length) {
|
2818
2818
|
return createVNode("div", {
|
2819
|
-
"class": bem$
|
2819
|
+
"class": bem$1p("line"),
|
2820
2820
|
"style": state.lineStyle
|
2821
2821
|
}, null);
|
2822
2822
|
}
|
@@ -2830,13 +2830,13 @@ var stdin_default$1C = defineComponent({
|
|
2830
2830
|
} = props2;
|
2831
2831
|
const Header = [createVNode("div", {
|
2832
2832
|
"ref": sticky ? void 0 : wrapRef,
|
2833
|
-
"class": [bem$
|
2833
|
+
"class": [bem$1p("wrap"), {
|
2834
2834
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2835
2835
|
}]
|
2836
2836
|
}, [createVNode("div", {
|
2837
2837
|
"ref": navRef,
|
2838
2838
|
"role": "tablist",
|
2839
|
-
"class": bem$
|
2839
|
+
"class": bem$1p("nav", [type, {
|
2840
2840
|
shrink: props2.shrink,
|
2841
2841
|
complete: scrollable.value
|
2842
2842
|
}]),
|
@@ -2909,14 +2909,14 @@ var stdin_default$1C = defineComponent({
|
|
2909
2909
|
});
|
2910
2910
|
return () => createVNode("div", {
|
2911
2911
|
"ref": root,
|
2912
|
-
"class": bem$
|
2912
|
+
"class": bem$1p([props2.type])
|
2913
2913
|
}, [props2.showHeader ? props2.sticky ? createVNode(Sticky, {
|
2914
2914
|
"container": root.value,
|
2915
2915
|
"offsetTop": offsetTopPx.value,
|
2916
2916
|
"onScroll": onStickyScroll
|
2917
2917
|
}, {
|
2918
2918
|
default: () => [renderHeader()]
|
2919
|
-
}) : renderHeader() : null, createVNode(stdin_default$
|
2919
|
+
}) : renderHeader() : null, createVNode(stdin_default$1E, {
|
2920
2920
|
"ref": contentRef,
|
2921
2921
|
"count": children.length,
|
2922
2922
|
"inited": state.inited,
|
@@ -2936,9 +2936,9 @@ var stdin_default$1C = defineComponent({
|
|
2936
2936
|
});
|
2937
2937
|
const TAB_STATUS_KEY = Symbol();
|
2938
2938
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
2939
|
-
const [name$
|
2939
|
+
const [name$1s, bem$1o] = createNamespace("tab");
|
2940
2940
|
const TabTitle = defineComponent({
|
2941
|
-
name: name$
|
2941
|
+
name: name$1s,
|
2942
2942
|
props: {
|
2943
2943
|
id: String,
|
2944
2944
|
dot: Boolean,
|
@@ -2987,7 +2987,7 @@ const TabTitle = defineComponent({
|
|
2987
2987
|
});
|
2988
2988
|
const renderText = () => {
|
2989
2989
|
const Text2 = createVNode("span", {
|
2990
|
-
"class": bem$
|
2990
|
+
"class": bem$1o("text", {
|
2991
2991
|
ellipsis: !props2.scrollable
|
2992
2992
|
})
|
2993
2993
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -3005,7 +3005,7 @@ const TabTitle = defineComponent({
|
|
3005
3005
|
return () => createVNode("div", {
|
3006
3006
|
"id": props2.id,
|
3007
3007
|
"role": "tab",
|
3008
|
-
"class": [bem$
|
3008
|
+
"class": [bem$1o([props2.type, {
|
3009
3009
|
grow: props2.scrollable && !props2.shrink,
|
3010
3010
|
shrink: props2.shrink,
|
3011
3011
|
active: props2.isActive,
|
@@ -3019,9 +3019,9 @@ const TabTitle = defineComponent({
|
|
3019
3019
|
}, [renderText()]);
|
3020
3020
|
}
|
3021
3021
|
});
|
3022
|
-
const [name$
|
3023
|
-
var stdin_default$
|
3024
|
-
name: name$
|
3022
|
+
const [name$1r, bem$1n] = createNamespace("swipe-item");
|
3023
|
+
var stdin_default$1C = defineComponent({
|
3024
|
+
name: name$1r,
|
3025
3025
|
setup(props2, {
|
3026
3026
|
slots
|
3027
3027
|
}) {
|
@@ -3086,14 +3086,14 @@ var stdin_default$1B = defineComponent({
|
|
3086
3086
|
return () => {
|
3087
3087
|
var _a;
|
3088
3088
|
return createVNode("div", {
|
3089
|
-
"class": bem$
|
3089
|
+
"class": bem$1n(),
|
3090
3090
|
"style": style.value
|
3091
3091
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
3092
3092
|
};
|
3093
3093
|
}
|
3094
3094
|
});
|
3095
|
-
const SwipeItem = withInstall(stdin_default$
|
3096
|
-
const [name$
|
3095
|
+
const SwipeItem = withInstall(stdin_default$1C);
|
3096
|
+
const [name$1q, bem$1m] = createNamespace("tab");
|
3097
3097
|
const tabProps = extend({}, routeProps, {
|
3098
3098
|
dot: Boolean,
|
3099
3099
|
name: numericProp,
|
@@ -3104,8 +3104,8 @@ const tabProps = extend({}, routeProps, {
|
|
3104
3104
|
titleStyle: [String, Object],
|
3105
3105
|
showZeroBadge: truthProp
|
3106
3106
|
});
|
3107
|
-
var stdin_default$
|
3108
|
-
name: name$
|
3107
|
+
var stdin_default$1B = defineComponent({
|
3108
|
+
name: name$1q,
|
3109
3109
|
props: tabProps,
|
3110
3110
|
setup(props2, {
|
3111
3111
|
slots
|
@@ -3203,7 +3203,7 @@ var stdin_default$1A = defineComponent({
|
|
3203
3203
|
return createVNode(SwipeItem, {
|
3204
3204
|
"id": id,
|
3205
3205
|
"role": "tabpanel",
|
3206
|
-
"class": bem$
|
3206
|
+
"class": bem$1m("panel-wrapper", {
|
3207
3207
|
inactive: hasInactiveClass.value
|
3208
3208
|
}),
|
3209
3209
|
"tabindex": active.value ? 0 : -1,
|
@@ -3213,7 +3213,7 @@ var stdin_default$1A = defineComponent({
|
|
3213
3213
|
default: () => {
|
3214
3214
|
var _a2;
|
3215
3215
|
return [createVNode("div", {
|
3216
|
-
"class": bem$
|
3216
|
+
"class": bem$1m("panel")
|
3217
3217
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3218
3218
|
}
|
3219
3219
|
});
|
@@ -3223,24 +3223,24 @@ var stdin_default$1A = defineComponent({
|
|
3223
3223
|
return withDirectives(createVNode("div", {
|
3224
3224
|
"id": id,
|
3225
3225
|
"role": "tabpanel",
|
3226
|
-
"class": bem$
|
3226
|
+
"class": bem$1m("panel"),
|
3227
3227
|
"tabindex": show ? 0 : -1,
|
3228
3228
|
"aria-labelledby": label
|
3229
3229
|
}, [Content]), [[vShow, show]]);
|
3230
3230
|
};
|
3231
3231
|
}
|
3232
3232
|
});
|
3233
|
-
const Tab = withInstall(stdin_default$
|
3234
|
-
const Tabs = withInstall(stdin_default$
|
3235
|
-
const [name$
|
3236
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3233
|
+
const Tab = withInstall(stdin_default$1B);
|
3234
|
+
const Tabs = withInstall(stdin_default$1D);
|
3235
|
+
const [name$1p, bem$1l] = createNamespace("picker-group");
|
3236
|
+
const PICKER_GROUP_KEY = Symbol(name$1p);
|
3237
3237
|
const pickerGroupProps = extend({
|
3238
3238
|
tabs: makeArrayProp(),
|
3239
3239
|
activeTab: makeNumericProp(0),
|
3240
3240
|
nextStepText: String
|
3241
3241
|
}, pickerToolbarProps);
|
3242
|
-
var stdin_default$
|
3243
|
-
name: name$
|
3242
|
+
var stdin_default$1A = defineComponent({
|
3243
|
+
name: name$1p,
|
3244
3244
|
props: pickerGroupProps,
|
3245
3245
|
emits: ["confirm", "cancel", "update:activeTab"],
|
3246
3246
|
setup(props2, {
|
@@ -3267,8 +3267,8 @@ var stdin_default$1z = defineComponent({
|
|
3267
3267
|
const childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== Comment);
|
3268
3268
|
const confirmButtonText = showNextButton() ? props2.nextStepText : props2.confirmButtonText;
|
3269
3269
|
return createVNode("div", {
|
3270
|
-
"class": bem$
|
3271
|
-
}, [createVNode(stdin_default$
|
3270
|
+
"class": bem$1l()
|
3271
|
+
}, [createVNode(stdin_default$1H, {
|
3272
3272
|
"title": props2.title,
|
3273
3273
|
"cancelButtonText": props2.cancelButtonText,
|
3274
3274
|
"confirmButtonText": confirmButtonText,
|
@@ -3277,14 +3277,14 @@ var stdin_default$1z = defineComponent({
|
|
3277
3277
|
}, pick(slots, pickerToolbarSlots)), createVNode(Tabs, {
|
3278
3278
|
"active": activeTab.value,
|
3279
3279
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
3280
|
-
"class": bem$
|
3280
|
+
"class": bem$1l("tabs"),
|
3281
3281
|
"shrink": true,
|
3282
3282
|
"animated": true,
|
3283
3283
|
"lazyRender": false
|
3284
3284
|
}, {
|
3285
3285
|
default: () => [props2.tabs.map((title, index) => createVNode(Tab, {
|
3286
3286
|
"title": title,
|
3287
|
-
"titleClass": bem$
|
3287
|
+
"titleClass": bem$1l("tab-title")
|
3288
3288
|
}, {
|
3289
3289
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3290
3290
|
}))]
|
@@ -3307,8 +3307,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3307
3307
|
toolbarPosition: makeStringProp("top"),
|
3308
3308
|
columnsFieldNames: Object
|
3309
3309
|
});
|
3310
|
-
var stdin_default$
|
3311
|
-
name: name$
|
3310
|
+
var stdin_default$1z = defineComponent({
|
3311
|
+
name: name$1z,
|
3312
3312
|
props: pickerProps,
|
3313
3313
|
emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
|
3314
3314
|
setup(props2, {
|
@@ -3389,7 +3389,7 @@ var stdin_default$1y = defineComponent({
|
|
3389
3389
|
return params;
|
3390
3390
|
};
|
3391
3391
|
const cancel = () => emit("cancel", getEventParams());
|
3392
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
3392
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1I, {
|
3393
3393
|
"value": selectedValues.value[columnIndex],
|
3394
3394
|
"fields": fields.value,
|
3395
3395
|
"options": options,
|
@@ -3418,10 +3418,10 @@ var stdin_default$1y = defineComponent({
|
|
3418
3418
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3419
3419
|
};
|
3420
3420
|
return [createVNode("div", {
|
3421
|
-
"class": bem$
|
3421
|
+
"class": bem$1u("mask"),
|
3422
3422
|
"style": maskStyle
|
3423
3423
|
}, null), createVNode("div", {
|
3424
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3424
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1u("frame")],
|
3425
3425
|
"style": frameStyle
|
3426
3426
|
}, null)];
|
3427
3427
|
}
|
@@ -3433,13 +3433,13 @@ var stdin_default$1y = defineComponent({
|
|
3433
3433
|
};
|
3434
3434
|
return createVNode("div", {
|
3435
3435
|
"ref": columnsRef,
|
3436
|
-
"class": bem$
|
3436
|
+
"class": bem$1u("columns"),
|
3437
3437
|
"style": columnsStyle
|
3438
3438
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3439
3439
|
};
|
3440
3440
|
const renderToolbar = () => {
|
3441
3441
|
if (props2.showToolbar && !parent) {
|
3442
|
-
return createVNode(stdin_default$
|
3442
|
+
return createVNode(stdin_default$1H, mergeProps(pick(props2, pickerToolbarPropKeys), {
|
3443
3443
|
"onConfirm": confirm,
|
3444
3444
|
"onCancel": cancel
|
3445
3445
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3482,9 +3482,9 @@ var stdin_default$1y = defineComponent({
|
|
3482
3482
|
return () => {
|
3483
3483
|
var _a, _b;
|
3484
3484
|
return createVNode("div", {
|
3485
|
-
"class": bem$
|
3485
|
+
"class": bem$1u()
|
3486
3486
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? createVNode(Loading, {
|
3487
|
-
"class": bem$
|
3487
|
+
"class": bem$1u("loading")
|
3488
3488
|
}, 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]);
|
3489
3489
|
};
|
3490
3490
|
}
|
@@ -3575,8 +3575,8 @@ function formatDataForCascade({
|
|
3575
3575
|
}
|
3576
3576
|
return options;
|
3577
3577
|
}
|
3578
|
-
const Picker = withInstall(stdin_default$
|
3579
|
-
const [name$
|
3578
|
+
const Picker = withInstall(stdin_default$1z);
|
3579
|
+
const [name$1o, bem$1k] = createNamespace("area");
|
3580
3580
|
const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
3581
3581
|
modelValue: String,
|
3582
3582
|
columnsNum: makeNumericProp(3),
|
@@ -3586,8 +3586,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
|
3586
3586
|
default: () => ({})
|
3587
3587
|
}
|
3588
3588
|
});
|
3589
|
-
var stdin_default$
|
3590
|
-
name: name$
|
3589
|
+
var stdin_default$1y = defineComponent({
|
3590
|
+
name: name$1o,
|
3591
3591
|
props: areaProps,
|
3592
3592
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3593
3593
|
setup(props2, {
|
@@ -3634,7 +3634,7 @@ var stdin_default$1x = defineComponent({
|
|
3634
3634
|
"ref": picker,
|
3635
3635
|
"modelValue": codes.value,
|
3636
3636
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3637
|
-
"class": bem$
|
3637
|
+
"class": bem$1k(),
|
3638
3638
|
"columns": columns.value,
|
3639
3639
|
"onChange": onChange,
|
3640
3640
|
"onCancel": onCancel,
|
@@ -3642,8 +3642,8 @@ var stdin_default$1x = defineComponent({
|
|
3642
3642
|
}, pick(props2, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3643
3643
|
}
|
3644
3644
|
});
|
3645
|
-
const Area = withInstall(stdin_default$
|
3646
|
-
const [name$
|
3645
|
+
const Area = withInstall(stdin_default$1y);
|
3646
|
+
const [name$1n, bem$1j] = createNamespace("cell");
|
3647
3647
|
const cellSharedProps = {
|
3648
3648
|
tag: makeStringProp("div"),
|
3649
3649
|
icon: String,
|
@@ -3670,8 +3670,8 @@ const cellSharedProps = {
|
|
3670
3670
|
}
|
3671
3671
|
};
|
3672
3672
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3673
|
-
var stdin_default$
|
3674
|
-
name: name$
|
3673
|
+
var stdin_default$1x = defineComponent({
|
3674
|
+
name: name$1n,
|
3675
3675
|
props: cellProps,
|
3676
3676
|
setup(props2, {
|
3677
3677
|
slots
|
@@ -3681,7 +3681,7 @@ var stdin_default$1w = defineComponent({
|
|
3681
3681
|
const showLabel = slots.label || isDef(props2.label);
|
3682
3682
|
if (showLabel) {
|
3683
3683
|
return createVNode("div", {
|
3684
|
-
"class": [bem$
|
3684
|
+
"class": [bem$1j("label"), props2.labelClass]
|
3685
3685
|
}, [slots.label ? slots.label() : props2.label]);
|
3686
3686
|
}
|
3687
3687
|
};
|
@@ -3693,7 +3693,7 @@ var stdin_default$1w = defineComponent({
|
|
3693
3693
|
return;
|
3694
3694
|
}
|
3695
3695
|
return createVNode("div", {
|
3696
|
-
"class": [bem$
|
3696
|
+
"class": [bem$1j("title"), props2.titleClass],
|
3697
3697
|
"style": props2.titleStyle
|
3698
3698
|
}, [titleSlot || createVNode("span", null, [props2.title]), renderLabel()]);
|
3699
3699
|
}
|
@@ -3703,7 +3703,7 @@ var stdin_default$1w = defineComponent({
|
|
3703
3703
|
const hasValue = slot || isDef(props2.value);
|
3704
3704
|
if (hasValue) {
|
3705
3705
|
return createVNode("div", {
|
3706
|
-
"class": [bem$
|
3706
|
+
"class": [bem$1j("value"), props2.valueClass]
|
3707
3707
|
}, [slot ? slot() : createVNode("span", null, [props2.value])]);
|
3708
3708
|
}
|
3709
3709
|
};
|
@@ -3714,7 +3714,7 @@ var stdin_default$1w = defineComponent({
|
|
3714
3714
|
if (props2.icon) {
|
3715
3715
|
return createVNode(Icon, {
|
3716
3716
|
"name": props2.icon,
|
3717
|
-
"class": bem$
|
3717
|
+
"class": bem$1j("left-icon"),
|
3718
3718
|
"classPrefix": props2.iconPrefix
|
3719
3719
|
}, null);
|
3720
3720
|
}
|
@@ -3727,7 +3727,7 @@ var stdin_default$1w = defineComponent({
|
|
3727
3727
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
3728
3728
|
return createVNode(Icon, {
|
3729
3729
|
"name": name2,
|
3730
|
-
"class": bem$
|
3730
|
+
"class": bem$1j("right-icon")
|
3731
3731
|
}, null);
|
3732
3732
|
}
|
3733
3733
|
};
|
@@ -3752,7 +3752,7 @@ var stdin_default$1w = defineComponent({
|
|
3752
3752
|
classes[size] = !!size;
|
3753
3753
|
}
|
3754
3754
|
return createVNode(tag, {
|
3755
|
-
"class": bem$
|
3755
|
+
"class": bem$1j(classes),
|
3756
3756
|
"role": clickable ? "button" : void 0,
|
3757
3757
|
"tabindex": clickable ? 0 : void 0,
|
3758
3758
|
"onClick": route2
|
@@ -3765,8 +3765,8 @@ var stdin_default$1w = defineComponent({
|
|
3765
3765
|
};
|
3766
3766
|
}
|
3767
3767
|
});
|
3768
|
-
const Cell = withInstall(stdin_default$
|
3769
|
-
const [name$
|
3768
|
+
const Cell = withInstall(stdin_default$1x);
|
3769
|
+
const [name$1m, bem$1i] = createNamespace("form");
|
3770
3770
|
const formProps = {
|
3771
3771
|
colon: Boolean,
|
3772
3772
|
disabled: Boolean,
|
@@ -3786,8 +3786,8 @@ const formProps = {
|
|
3786
3786
|
default: "onBlur"
|
3787
3787
|
}
|
3788
3788
|
};
|
3789
|
-
var stdin_default$
|
3790
|
-
name: name$
|
3789
|
+
var stdin_default$1w = defineComponent({
|
3790
|
+
name: name$1m,
|
3791
3791
|
props: formProps,
|
3792
3792
|
emits: ["submit", "failed"],
|
3793
3793
|
setup(props2, {
|
@@ -3913,13 +3913,13 @@ var stdin_default$1v = defineComponent({
|
|
3913
3913
|
return () => {
|
3914
3914
|
var _a;
|
3915
3915
|
return createVNode("form", {
|
3916
|
-
"class": bem$
|
3916
|
+
"class": bem$1i(),
|
3917
3917
|
"onSubmit": onSubmit
|
3918
3918
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3919
3919
|
};
|
3920
3920
|
}
|
3921
3921
|
});
|
3922
|
-
const Form = withInstall(stdin_default$
|
3922
|
+
const Form = withInstall(stdin_default$1w);
|
3923
3923
|
function isEmptyValue(value) {
|
3924
3924
|
if (Array.isArray(value)) {
|
3925
3925
|
return !value.length;
|
@@ -4008,7 +4008,7 @@ function getStringLength(str) {
|
|
4008
4008
|
function cutString(str, maxlength) {
|
4009
4009
|
return [...str].slice(0, maxlength).join("");
|
4010
4010
|
}
|
4011
|
-
const [name$
|
4011
|
+
const [name$1l, bem$1h] = createNamespace("field");
|
4012
4012
|
const fieldSharedProps = {
|
4013
4013
|
id: String,
|
4014
4014
|
name: String,
|
@@ -4061,8 +4061,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
4061
4061
|
default: null
|
4062
4062
|
}
|
4063
4063
|
});
|
4064
|
-
var stdin_default$
|
4065
|
-
name: name$
|
4064
|
+
var stdin_default$1v = defineComponent({
|
4065
|
+
name: name$1l,
|
4066
4066
|
props: fieldProps,
|
4067
4067
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
4068
4068
|
setup(props2, {
|
@@ -4344,7 +4344,7 @@ var stdin_default$1u = defineComponent({
|
|
4344
4344
|
const getInputId = () => props2.id || `${id}-input`;
|
4345
4345
|
const getValidationStatus = () => state.status;
|
4346
4346
|
const renderInput = () => {
|
4347
|
-
const controlClass = bem$
|
4347
|
+
const controlClass = bem$1h("control", [getProp("inputAlign"), {
|
4348
4348
|
error: showError.value,
|
4349
4349
|
custom: !!slots.input,
|
4350
4350
|
"min-height": props2.type === "textarea" && !props2.autosize
|
@@ -4389,7 +4389,7 @@ var stdin_default$1u = defineComponent({
|
|
4389
4389
|
const leftIconSlot = slots["left-icon"];
|
4390
4390
|
if (props2.leftIcon || leftIconSlot) {
|
4391
4391
|
return createVNode("div", {
|
4392
|
-
"class": bem$
|
4392
|
+
"class": bem$1h("left-icon"),
|
4393
4393
|
"onClick": onClickLeftIcon
|
4394
4394
|
}, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
|
4395
4395
|
"name": props2.leftIcon,
|
@@ -4401,7 +4401,7 @@ var stdin_default$1u = defineComponent({
|
|
4401
4401
|
const rightIconSlot = slots["right-icon"];
|
4402
4402
|
if (props2.rightIcon || rightIconSlot) {
|
4403
4403
|
return createVNode("div", {
|
4404
|
-
"class": bem$
|
4404
|
+
"class": bem$1h("right-icon"),
|
4405
4405
|
"onClick": onClickRightIcon
|
4406
4406
|
}, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
|
4407
4407
|
"name": props2.rightIcon,
|
@@ -4413,9 +4413,9 @@ var stdin_default$1u = defineComponent({
|
|
4413
4413
|
if (props2.showWordLimit && props2.maxlength) {
|
4414
4414
|
const count = getStringLength(getModelValue());
|
4415
4415
|
return createVNode("div", {
|
4416
|
-
"class": bem$
|
4416
|
+
"class": bem$1h("word-limit")
|
4417
4417
|
}, [createVNode("span", {
|
4418
|
-
"class": bem$
|
4418
|
+
"class": bem$1h("word-num")
|
4419
4419
|
}, [count]), createTextVNode("/"), props2.maxlength]);
|
4420
4420
|
}
|
4421
4421
|
};
|
@@ -4428,7 +4428,7 @@ var stdin_default$1u = defineComponent({
|
|
4428
4428
|
const slot = slots["error-message"];
|
4429
4429
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4430
4430
|
return createVNode("div", {
|
4431
|
-
"class": bem$
|
4431
|
+
"class": bem$1h("error-message", errorMessageAlign)
|
4432
4432
|
}, [slot ? slot({
|
4433
4433
|
message
|
4434
4434
|
}) : message]);
|
@@ -4456,13 +4456,13 @@ var stdin_default$1u = defineComponent({
|
|
4456
4456
|
}
|
4457
4457
|
};
|
4458
4458
|
const renderFieldBody = () => [createVNode("div", {
|
4459
|
-
"class": bem$
|
4459
|
+
"class": bem$1h("body")
|
4460
4460
|
}, [renderInput(), showClear.value && createVNode(Icon, {
|
4461
4461
|
"ref": clearIconRef,
|
4462
4462
|
"name": props2.clearIcon,
|
4463
|
-
"class": bem$
|
4463
|
+
"class": bem$1h("clear")
|
4464
4464
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
4465
|
-
"class": bem$
|
4465
|
+
"class": bem$1h("button")
|
4466
4466
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4467
4467
|
useExpose({
|
4468
4468
|
blur,
|
@@ -4506,7 +4506,7 @@ var stdin_default$1u = defineComponent({
|
|
4506
4506
|
};
|
4507
4507
|
return createVNode(Cell, {
|
4508
4508
|
"size": props2.size,
|
4509
|
-
"class": bem$
|
4509
|
+
"class": bem$1h({
|
4510
4510
|
error: showError.value,
|
4511
4511
|
disabled,
|
4512
4512
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4516,8 +4516,8 @@ var stdin_default$1u = defineComponent({
|
|
4516
4516
|
"isLink": props2.isLink,
|
4517
4517
|
"clickable": props2.clickable,
|
4518
4518
|
"titleStyle": labelStyle.value,
|
4519
|
-
"valueClass": bem$
|
4520
|
-
"titleClass": [bem$
|
4519
|
+
"valueClass": bem$1h("value"),
|
4520
|
+
"titleClass": [bem$1h("label", [labelAlign, {
|
4521
4521
|
required: showRequiredMark.value
|
4522
4522
|
}]), props2.labelClass],
|
4523
4523
|
"arrowDirection": props2.arrowDirection
|
@@ -4530,7 +4530,7 @@ var stdin_default$1u = defineComponent({
|
|
4530
4530
|
};
|
4531
4531
|
}
|
4532
4532
|
});
|
4533
|
-
const Field = withInstall(stdin_default$
|
4533
|
+
const Field = withInstall(stdin_default$1v);
|
4534
4534
|
let lockCount = 0;
|
4535
4535
|
function lockClick(lock) {
|
4536
4536
|
if (lock) {
|
@@ -4545,7 +4545,7 @@ function lockClick(lock) {
|
|
4545
4545
|
}
|
4546
4546
|
}
|
4547
4547
|
}
|
4548
|
-
const [name$
|
4548
|
+
const [name$1k, bem$1g] = createNamespace("toast");
|
4549
4549
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4550
4550
|
const toastProps = {
|
4551
4551
|
icon: String,
|
@@ -4568,8 +4568,8 @@ const toastProps = {
|
|
4568
4568
|
closeOnClick: Boolean,
|
4569
4569
|
closeOnClickOverlay: Boolean
|
4570
4570
|
};
|
4571
|
-
var stdin_default$
|
4572
|
-
name: name$
|
4571
|
+
var stdin_default$1u = defineComponent({
|
4572
|
+
name: name$1k,
|
4573
4573
|
props: toastProps,
|
4574
4574
|
emits: ["update:show"],
|
4575
4575
|
setup(props2, {
|
@@ -4605,13 +4605,13 @@ var stdin_default$1t = defineComponent({
|
|
4605
4605
|
return createVNode(Icon, {
|
4606
4606
|
"name": icon || type,
|
4607
4607
|
"size": iconSize,
|
4608
|
-
"class": bem$
|
4608
|
+
"class": bem$1g("icon"),
|
4609
4609
|
"classPrefix": iconPrefix
|
4610
4610
|
}, null);
|
4611
4611
|
}
|
4612
4612
|
if (type === "loading") {
|
4613
4613
|
return createVNode(Loading, {
|
4614
|
-
"class": bem$
|
4614
|
+
"class": bem$1g("loading"),
|
4615
4615
|
"size": iconSize,
|
4616
4616
|
"type": loadingType
|
4617
4617
|
}, null);
|
@@ -4624,16 +4624,16 @@ var stdin_default$1t = defineComponent({
|
|
4624
4624
|
} = props2;
|
4625
4625
|
if (slots.message) {
|
4626
4626
|
return createVNode("div", {
|
4627
|
-
"class": bem$
|
4627
|
+
"class": bem$1g("text")
|
4628
4628
|
}, [slots.message()]);
|
4629
4629
|
}
|
4630
4630
|
if (isDef(message) && message !== "") {
|
4631
4631
|
return type === "html" ? createVNode("div", {
|
4632
4632
|
"key": 0,
|
4633
|
-
"class": bem$
|
4633
|
+
"class": bem$1g("text"),
|
4634
4634
|
"innerHTML": String(message)
|
4635
4635
|
}, null) : createVNode("div", {
|
4636
|
-
"class": bem$
|
4636
|
+
"class": bem$1g("text")
|
4637
4637
|
}, [message]);
|
4638
4638
|
}
|
4639
4639
|
};
|
@@ -4649,7 +4649,7 @@ var stdin_default$1t = defineComponent({
|
|
4649
4649
|
onMounted(toggleClickable);
|
4650
4650
|
onUnmounted(toggleClickable);
|
4651
4651
|
return () => createVNode(Popup, mergeProps({
|
4652
|
-
"class": [bem$
|
4652
|
+
"class": [bem$1g([props2.position, props2.wordBreak === "normal" ? "break-normal" : props2.wordBreak, {
|
4653
4653
|
[props2.type]: !props2.icon
|
4654
4654
|
}]), props2.className],
|
4655
4655
|
"lockScroll": false,
|
@@ -4750,7 +4750,7 @@ function createInstance() {
|
|
4750
4750
|
onClosed,
|
4751
4751
|
"onUpdate:show": toggle
|
4752
4752
|
};
|
4753
|
-
return createVNode(stdin_default$
|
4753
|
+
return createVNode(stdin_default$1u, mergeProps(state, attrs), null);
|
4754
4754
|
};
|
4755
4755
|
watch(message, (val) => {
|
4756
4756
|
state.message = val;
|
@@ -4820,8 +4820,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4820
4820
|
const allowMultipleToast = (value = true) => {
|
4821
4821
|
allowMultiple = value;
|
4822
4822
|
};
|
4823
|
-
const Toast = withInstall(stdin_default$
|
4824
|
-
const [name$
|
4823
|
+
const Toast = withInstall(stdin_default$1u);
|
4824
|
+
const [name$1j, bem$1f] = createNamespace("switch");
|
4825
4825
|
const switchProps = {
|
4826
4826
|
size: numericProp,
|
4827
4827
|
loading: Boolean,
|
@@ -4838,8 +4838,8 @@ const switchProps = {
|
|
4838
4838
|
default: false
|
4839
4839
|
}
|
4840
4840
|
};
|
4841
|
-
var stdin_default$
|
4842
|
-
name: name$
|
4841
|
+
var stdin_default$1t = defineComponent({
|
4842
|
+
name: name$1j,
|
4843
4843
|
props: switchProps,
|
4844
4844
|
emits: ["change", "update:modelValue"],
|
4845
4845
|
setup(props2, {
|
@@ -4858,7 +4858,7 @@ var stdin_default$1s = defineComponent({
|
|
4858
4858
|
if (props2.loading) {
|
4859
4859
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
4860
4860
|
return createVNode(Loading, {
|
4861
|
-
"class": bem$
|
4861
|
+
"class": bem$1f("loading"),
|
4862
4862
|
"color": color
|
4863
4863
|
}, null);
|
4864
4864
|
}
|
@@ -4883,7 +4883,7 @@ var stdin_default$1s = defineComponent({
|
|
4883
4883
|
};
|
4884
4884
|
return createVNode("div", {
|
4885
4885
|
"role": "switch",
|
4886
|
-
"class": bem$
|
4886
|
+
"class": bem$1f({
|
4887
4887
|
on: checked,
|
4888
4888
|
loading,
|
4889
4889
|
disabled
|
@@ -4893,16 +4893,16 @@ var stdin_default$1s = defineComponent({
|
|
4893
4893
|
"aria-checked": checked,
|
4894
4894
|
"onClick": onClick
|
4895
4895
|
}, [createVNode("div", {
|
4896
|
-
"class": bem$
|
4896
|
+
"class": bem$1f("node")
|
4897
4897
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4898
4898
|
};
|
4899
4899
|
}
|
4900
4900
|
});
|
4901
|
-
const Switch = withInstall(stdin_default$
|
4902
|
-
const [name$
|
4901
|
+
const Switch = withInstall(stdin_default$1t);
|
4902
|
+
const [name$1i, bem$1e] = createNamespace("address-edit-detail");
|
4903
4903
|
const t$j = createNamespace("address-edit")[2];
|
4904
|
-
var stdin_default$
|
4905
|
-
name: name$
|
4904
|
+
var stdin_default$1s = defineComponent({
|
4905
|
+
name: name$1i,
|
4906
4906
|
props: {
|
4907
4907
|
show: Boolean,
|
4908
4908
|
rows: numericProp,
|
@@ -4936,7 +4936,7 @@ var stdin_default$1r = defineComponent({
|
|
4936
4936
|
"icon": "location-o",
|
4937
4937
|
"title": express.name,
|
4938
4938
|
"label": express.address,
|
4939
|
-
"class": bem$
|
4939
|
+
"class": bem$1e("search-item"),
|
4940
4940
|
"border": false,
|
4941
4941
|
"onClick": () => onSelect(express)
|
4942
4942
|
}, null));
|
@@ -4950,7 +4950,7 @@ var stdin_default$1r = defineComponent({
|
|
4950
4950
|
"autosize": true,
|
4951
4951
|
"clearable": true,
|
4952
4952
|
"ref": field,
|
4953
|
-
"class": bem$
|
4953
|
+
"class": bem$1e(),
|
4954
4954
|
"rows": props2.rows,
|
4955
4955
|
"type": "textarea",
|
4956
4956
|
"rules": props2.rules,
|
@@ -4967,7 +4967,7 @@ var stdin_default$1r = defineComponent({
|
|
4967
4967
|
};
|
4968
4968
|
}
|
4969
4969
|
});
|
4970
|
-
const [name$
|
4970
|
+
const [name$1h, bem$1d, t$i] = createNamespace("address-edit");
|
4971
4971
|
const DEFAULT_DATA = {
|
4972
4972
|
name: "",
|
4973
4973
|
tel: "",
|
@@ -5007,8 +5007,8 @@ const addressEditProps = {
|
|
5007
5007
|
default: isMobile
|
5008
5008
|
}
|
5009
5009
|
};
|
5010
|
-
var stdin_default$
|
5011
|
-
name: name$
|
5010
|
+
var stdin_default$1r = defineComponent({
|
5011
|
+
name: name$1h,
|
5012
5012
|
props: addressEditProps,
|
5013
5013
|
emits: ["save", "focus", "change", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
5014
5014
|
setup(props2, {
|
@@ -5126,7 +5126,7 @@ var stdin_default$1q = defineComponent({
|
|
5126
5126
|
"center": true,
|
5127
5127
|
"border": false,
|
5128
5128
|
"title": t$i("defaultAddress"),
|
5129
|
-
"class": bem$
|
5129
|
+
"class": bem$1d("default")
|
5130
5130
|
}, slots2), [[vShow, !hideBottomFields.value]]);
|
5131
5131
|
}
|
5132
5132
|
};
|
@@ -5152,13 +5152,13 @@ var stdin_default$1q = defineComponent({
|
|
5152
5152
|
disableArea
|
5153
5153
|
} = props2;
|
5154
5154
|
return createVNode(Form, {
|
5155
|
-
"class": bem$
|
5155
|
+
"class": bem$1d(),
|
5156
5156
|
"onSubmit": onSave
|
5157
5157
|
}, {
|
5158
5158
|
default: () => {
|
5159
5159
|
var _a;
|
5160
5160
|
return [createVNode("div", {
|
5161
|
-
"class": bem$
|
5161
|
+
"class": bem$1d("fields")
|
5162
5162
|
}, [createVNode(Field, {
|
5163
5163
|
"modelValue": data.name,
|
5164
5164
|
"onUpdate:modelValue": [($event) => data.name = $event, (val) => onChange("name", val)],
|
@@ -5189,7 +5189,7 @@ var stdin_default$1q = defineComponent({
|
|
5189
5189
|
emit("clickArea");
|
5190
5190
|
showAreaPopup.value = !disableArea;
|
5191
5191
|
}
|
5192
|
-
}, null), [[vShow, props2.showArea]]), createVNode(stdin_default$
|
5192
|
+
}, null), [[vShow, props2.showArea]]), createVNode(stdin_default$1s, {
|
5193
5193
|
"show": props2.showDetail,
|
5194
5194
|
"rows": props2.detailRows,
|
5195
5195
|
"rules": rules.value.addressDetail,
|
@@ -5203,19 +5203,19 @@ var stdin_default$1q = defineComponent({
|
|
5203
5203
|
"onInput": onChangeDetail,
|
5204
5204
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5205
5205
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
5206
|
-
"class": bem$
|
5206
|
+
"class": bem$1d("buttons")
|
5207
5207
|
}, [createVNode(Button, {
|
5208
5208
|
"block": true,
|
5209
5209
|
"round": true,
|
5210
5210
|
"type": "primary",
|
5211
5211
|
"text": props2.saveButtonText || t$i("save"),
|
5212
|
-
"class": bem$
|
5212
|
+
"class": bem$1d("button"),
|
5213
5213
|
"loading": props2.isSaving,
|
5214
5214
|
"nativeType": "submit"
|
5215
5215
|
}, null), props2.showDelete && createVNode(Button, {
|
5216
5216
|
"block": true,
|
5217
5217
|
"round": true,
|
5218
|
-
"class": bem$
|
5218
|
+
"class": bem$1d("button"),
|
5219
5219
|
"loading": props2.isDeleting,
|
5220
5220
|
"text": props2.deleteButtonText || t$i("delete"),
|
5221
5221
|
"onClick": onDelete
|
@@ -5245,8 +5245,8 @@ var stdin_default$1q = defineComponent({
|
|
5245
5245
|
};
|
5246
5246
|
}
|
5247
5247
|
});
|
5248
|
-
const AddressEdit = withInstall(stdin_default$
|
5249
|
-
const [name$
|
5248
|
+
const AddressEdit = withInstall(stdin_default$1r);
|
5249
|
+
const [name$1g, bem$1c] = createNamespace("radio-group");
|
5250
5250
|
const radioGroupProps = {
|
5251
5251
|
shape: String,
|
5252
5252
|
disabled: Boolean,
|
@@ -5255,9 +5255,9 @@ const radioGroupProps = {
|
|
5255
5255
|
modelValue: unknownProp,
|
5256
5256
|
checkedColor: String
|
5257
5257
|
};
|
5258
|
-
const RADIO_KEY = Symbol(name$
|
5259
|
-
var stdin_default$
|
5260
|
-
name: name$
|
5258
|
+
const RADIO_KEY = Symbol(name$1g);
|
5259
|
+
var stdin_default$1q = defineComponent({
|
5260
|
+
name: name$1g,
|
5261
5261
|
props: radioGroupProps,
|
5262
5262
|
emits: ["change", "update:modelValue"],
|
5263
5263
|
setup(props2, {
|
@@ -5277,14 +5277,14 @@ var stdin_default$1p = defineComponent({
|
|
5277
5277
|
return () => {
|
5278
5278
|
var _a;
|
5279
5279
|
return createVNode("div", {
|
5280
|
-
"class": bem$
|
5280
|
+
"class": bem$1c([props2.direction]),
|
5281
5281
|
"role": "radiogroup"
|
5282
5282
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5283
5283
|
};
|
5284
5284
|
}
|
5285
5285
|
});
|
5286
|
-
const RadioGroup = withInstall(stdin_default$
|
5287
|
-
const [name$
|
5286
|
+
const RadioGroup = withInstall(stdin_default$1q);
|
5287
|
+
const [name$1f, bem$1b] = createNamespace("tag");
|
5288
5288
|
const tagProps = {
|
5289
5289
|
size: String,
|
5290
5290
|
mark: Boolean,
|
@@ -5296,8 +5296,8 @@ const tagProps = {
|
|
5296
5296
|
textColor: String,
|
5297
5297
|
closeable: Boolean
|
5298
5298
|
};
|
5299
|
-
var stdin_default$
|
5300
|
-
name: name$
|
5299
|
+
var stdin_default$1p = defineComponent({
|
5300
|
+
name: name$1f,
|
5301
5301
|
props: tagProps,
|
5302
5302
|
emits: ["close"],
|
5303
5303
|
setup(props2, {
|
@@ -5340,12 +5340,12 @@ var stdin_default$1o = defineComponent({
|
|
5340
5340
|
}
|
5341
5341
|
const CloseIcon = closeable && createVNode(Icon, {
|
5342
5342
|
"name": "cross",
|
5343
|
-
"class": [bem$
|
5343
|
+
"class": [bem$1b("close"), HAPTICS_FEEDBACK],
|
5344
5344
|
"onClick": onClose
|
5345
5345
|
}, null);
|
5346
5346
|
return createVNode("span", {
|
5347
5347
|
"style": getStyle(),
|
5348
|
-
"class": bem$
|
5348
|
+
"class": bem$1b([classes, type])
|
5349
5349
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5350
5350
|
};
|
5351
5351
|
return () => createVNode(Transition, {
|
@@ -5355,7 +5355,7 @@ var stdin_default$1o = defineComponent({
|
|
5355
5355
|
});
|
5356
5356
|
}
|
5357
5357
|
});
|
5358
|
-
const Tag = withInstall(stdin_default$
|
5358
|
+
const Tag = withInstall(stdin_default$1p);
|
5359
5359
|
const checkerProps = {
|
5360
5360
|
name: unknownProp,
|
5361
5361
|
disabled: Boolean,
|
@@ -5365,7 +5365,7 @@ const checkerProps = {
|
|
5365
5365
|
labelPosition: String,
|
5366
5366
|
labelDisabled: Boolean
|
5367
5367
|
};
|
5368
|
-
var stdin_default$
|
5368
|
+
var stdin_default$1o = defineComponent({
|
5369
5369
|
props: extend({}, checkerProps, {
|
5370
5370
|
bem: makeRequiredProp(Function),
|
5371
5371
|
role: String,
|
@@ -5462,12 +5462,18 @@ var stdin_default$1n = defineComponent({
|
|
5462
5462
|
}, null)]);
|
5463
5463
|
};
|
5464
5464
|
const renderLabel = () => {
|
5465
|
+
const {
|
5466
|
+
checked
|
5467
|
+
} = props2;
|
5465
5468
|
if (slots.default) {
|
5466
5469
|
return createVNode("span", {
|
5467
5470
|
"class": props2.bem("label", [props2.labelPosition, {
|
5468
5471
|
disabled: disabled.value
|
5469
5472
|
}])
|
5470
|
-
}, [slots.default(
|
5473
|
+
}, [slots.default({
|
5474
|
+
checked,
|
5475
|
+
disabled: disabled.value
|
5476
|
+
})]);
|
5471
5477
|
}
|
5472
5478
|
};
|
5473
5479
|
return () => {
|
@@ -5488,9 +5494,9 @@ var stdin_default$1n = defineComponent({
|
|
5488
5494
|
const radioProps = extend({}, checkerProps, {
|
5489
5495
|
shape: String
|
5490
5496
|
});
|
5491
|
-
const [name$
|
5492
|
-
var stdin_default$
|
5493
|
-
name: name$
|
5497
|
+
const [name$1e, bem$1a] = createNamespace("radio");
|
5498
|
+
var stdin_default$1n = defineComponent({
|
5499
|
+
name: name$1e,
|
5494
5500
|
props: radioProps,
|
5495
5501
|
emits: ["update:modelValue"],
|
5496
5502
|
setup(props2, {
|
@@ -5511,8 +5517,8 @@ var stdin_default$1m = defineComponent({
|
|
5511
5517
|
emit("update:modelValue", props2.name);
|
5512
5518
|
}
|
5513
5519
|
};
|
5514
|
-
return () => createVNode(stdin_default$
|
5515
|
-
"bem": bem$
|
5520
|
+
return () => createVNode(stdin_default$1o, mergeProps({
|
5521
|
+
"bem": bem$1a,
|
5516
5522
|
"role": "radio",
|
5517
5523
|
"parent": parent,
|
5518
5524
|
"checked": checked(),
|
@@ -5520,10 +5526,10 @@ var stdin_default$1m = defineComponent({
|
|
5520
5526
|
}, props2), pick(slots, ["default", "icon"]));
|
5521
5527
|
}
|
5522
5528
|
});
|
5523
|
-
const Radio = withInstall(stdin_default$
|
5524
|
-
const [name$
|
5525
|
-
var stdin_default$
|
5526
|
-
name: name$
|
5529
|
+
const Radio = withInstall(stdin_default$1n);
|
5530
|
+
const [name$1d, bem$19] = createNamespace("address-item");
|
5531
|
+
var stdin_default$1m = defineComponent({
|
5532
|
+
name: name$1d,
|
5527
5533
|
props: {
|
5528
5534
|
address: makeRequiredProp(Object),
|
5529
5535
|
disabled: Boolean,
|
@@ -5544,7 +5550,7 @@ var stdin_default$1l = defineComponent({
|
|
5544
5550
|
};
|
5545
5551
|
const renderRightIcon = () => createVNode(Icon, {
|
5546
5552
|
"name": props2.rightIcon,
|
5547
|
-
"class": bem$
|
5553
|
+
"class": bem$19("edit"),
|
5548
5554
|
"onClick": (event) => {
|
5549
5555
|
event.stopPropagation();
|
5550
5556
|
emit("edit");
|
@@ -5559,7 +5565,7 @@ var stdin_default$1l = defineComponent({
|
|
5559
5565
|
return createVNode(Tag, {
|
5560
5566
|
"type": "primary",
|
5561
5567
|
"round": true,
|
5562
|
-
"class": bem$
|
5568
|
+
"class": bem$19("tag")
|
5563
5569
|
}, {
|
5564
5570
|
default: () => [props2.defaultTagText]
|
5565
5571
|
});
|
@@ -5572,9 +5578,9 @@ var stdin_default$1l = defineComponent({
|
|
5572
5578
|
switchable
|
5573
5579
|
} = props2;
|
5574
5580
|
const Info = [createVNode("div", {
|
5575
|
-
"class": bem$
|
5581
|
+
"class": bem$19("name")
|
5576
5582
|
}, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
|
5577
|
-
"class": bem$
|
5583
|
+
"class": bem$19("address")
|
5578
5584
|
}, [address.address])];
|
5579
5585
|
if (switchable && !disabled) {
|
5580
5586
|
return createVNode(Radio, {
|
@@ -5592,13 +5598,13 @@ var stdin_default$1l = defineComponent({
|
|
5592
5598
|
disabled
|
5593
5599
|
} = props2;
|
5594
5600
|
return createVNode("div", {
|
5595
|
-
"class": bem$
|
5601
|
+
"class": bem$19({
|
5596
5602
|
disabled
|
5597
5603
|
}),
|
5598
5604
|
"onClick": onClick
|
5599
5605
|
}, [createVNode(Cell, {
|
5600
5606
|
"border": false,
|
5601
|
-
"titleClass": bem$
|
5607
|
+
"titleClass": bem$19("title")
|
5602
5608
|
}, {
|
5603
5609
|
title: renderContent,
|
5604
5610
|
"right-icon": renderRightIcon
|
@@ -5608,7 +5614,7 @@ var stdin_default$1l = defineComponent({
|
|
5608
5614
|
};
|
5609
5615
|
}
|
5610
5616
|
});
|
5611
|
-
const [name$
|
5617
|
+
const [name$1c, bem$18, t$h] = createNamespace("address-list");
|
5612
5618
|
const addressListProps = {
|
5613
5619
|
list: makeArrayProp(),
|
5614
5620
|
modelValue: numericProp,
|
@@ -5620,8 +5626,8 @@ const addressListProps = {
|
|
5620
5626
|
defaultTagText: String,
|
5621
5627
|
rightIcon: makeStringProp("edit")
|
5622
5628
|
};
|
5623
|
-
var stdin_default$
|
5624
|
-
name: name$
|
5629
|
+
var stdin_default$1l = defineComponent({
|
5630
|
+
name: name$1c,
|
5625
5631
|
props: addressListProps,
|
5626
5632
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5627
5633
|
setup(props2, {
|
@@ -5637,7 +5643,7 @@ var stdin_default$1k = defineComponent({
|
|
5637
5643
|
emit("update:modelValue", item.id);
|
5638
5644
|
}
|
5639
5645
|
};
|
5640
|
-
return createVNode(stdin_default$
|
5646
|
+
return createVNode(stdin_default$1m, {
|
5641
5647
|
"key": item.id,
|
5642
5648
|
"address": item,
|
5643
5649
|
"disabled": disabled,
|
@@ -5658,13 +5664,13 @@ var stdin_default$1k = defineComponent({
|
|
5658
5664
|
}
|
5659
5665
|
};
|
5660
5666
|
const renderBottom = () => props2.showAddButton ? createVNode("div", {
|
5661
|
-
"class": [bem$
|
5667
|
+
"class": [bem$18("bottom"), "van-safe-area-bottom"]
|
5662
5668
|
}, [createVNode(Button, {
|
5663
5669
|
"round": true,
|
5664
5670
|
"block": true,
|
5665
5671
|
"type": "primary",
|
5666
5672
|
"text": props2.addButtonText || t$h("add"),
|
5667
|
-
"class": bem$
|
5673
|
+
"class": bem$18("add"),
|
5668
5674
|
"onClick": () => emit("add")
|
5669
5675
|
}, null)]) : void 0;
|
5670
5676
|
return () => {
|
@@ -5672,10 +5678,10 @@ var stdin_default$1k = defineComponent({
|
|
5672
5678
|
const List2 = renderList(props2.list);
|
5673
5679
|
const DisabledList = renderList(props2.disabledList, true);
|
5674
5680
|
const DisabledText = props2.disabledText && createVNode("div", {
|
5675
|
-
"class": bem$
|
5681
|
+
"class": bem$18("disabled-text")
|
5676
5682
|
}, [props2.disabledText]);
|
5677
5683
|
return createVNode("div", {
|
5678
|
-
"class": bem$
|
5684
|
+
"class": bem$18()
|
5679
5685
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
|
5680
5686
|
"modelValue": props2.modelValue
|
5681
5687
|
}, {
|
@@ -5684,7 +5690,7 @@ var stdin_default$1k = defineComponent({
|
|
5684
5690
|
};
|
5685
5691
|
}
|
5686
5692
|
});
|
5687
|
-
const AddressList = withInstall(stdin_default$
|
5693
|
+
const AddressList = withInstall(stdin_default$1l);
|
5688
5694
|
const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5689
5695
|
const modeType = {
|
5690
5696
|
event: "event",
|
@@ -5837,7 +5843,7 @@ class ImageCache {
|
|
5837
5843
|
this.caches.shift();
|
5838
5844
|
}
|
5839
5845
|
}
|
5840
|
-
const [name$
|
5846
|
+
const [name$1b, bem$17] = createNamespace("back-top");
|
5841
5847
|
const backTopProps = {
|
5842
5848
|
right: numericProp,
|
5843
5849
|
bottom: numericProp,
|
@@ -5850,8 +5856,8 @@ const backTopProps = {
|
|
5850
5856
|
default: "body"
|
5851
5857
|
}
|
5852
5858
|
};
|
5853
|
-
var stdin_default$
|
5854
|
-
name: name$
|
5859
|
+
var stdin_default$1k = defineComponent({
|
5860
|
+
name: name$1b,
|
5855
5861
|
inheritAttrs: false,
|
5856
5862
|
props: backTopProps,
|
5857
5863
|
emits: ["click"],
|
@@ -5923,19 +5929,19 @@ var stdin_default$1j = defineComponent({
|
|
5923
5929
|
return () => {
|
5924
5930
|
const Content = createVNode("div", mergeProps({
|
5925
5931
|
"ref": !props2.teleport ? root : void 0,
|
5926
|
-
"class": bem$
|
5932
|
+
"class": bem$17({
|
5927
5933
|
active: show.value
|
5928
5934
|
}),
|
5929
5935
|
"style": style.value,
|
5930
5936
|
"onClick": onClick
|
5931
5937
|
}, attrs), [slots.default ? slots.default() : createVNode(Icon, {
|
5932
5938
|
"name": "back-top",
|
5933
|
-
"class": bem$
|
5939
|
+
"class": bem$17("icon")
|
5934
5940
|
}, null)]);
|
5935
5941
|
if (props2.teleport) {
|
5936
5942
|
return [createVNode("div", {
|
5937
5943
|
"ref": root,
|
5938
|
-
"class": bem$
|
5944
|
+
"class": bem$17("placeholder")
|
5939
5945
|
}, null), createVNode(Teleport, {
|
5940
5946
|
"to": props2.teleport
|
5941
5947
|
}, {
|
@@ -5946,7 +5952,7 @@ var stdin_default$1j = defineComponent({
|
|
5946
5952
|
};
|
5947
5953
|
}
|
5948
5954
|
});
|
5949
|
-
const BackTop = withInstall(stdin_default$
|
5955
|
+
const BackTop = withInstall(stdin_default$1k);
|
5950
5956
|
var __async = (__this, __arguments, generator) => {
|
5951
5957
|
return new Promise((resolve, reject) => {
|
5952
5958
|
var fulfilled = (value) => {
|
@@ -5975,9 +5981,9 @@ const barrageProps = {
|
|
5975
5981
|
delay: makeNumberProp(300),
|
5976
5982
|
modelValue: makeArrayProp()
|
5977
5983
|
};
|
5978
|
-
const [name$
|
5979
|
-
var stdin_default$
|
5980
|
-
name: name$
|
5984
|
+
const [name$1a, bem$16] = createNamespace("barrage");
|
5985
|
+
var stdin_default$1j = defineComponent({
|
5986
|
+
name: name$1a,
|
5981
5987
|
props: barrageProps,
|
5982
5988
|
emits: ["update:modelValue"],
|
5983
5989
|
setup(props2, {
|
@@ -5985,7 +5991,7 @@ var stdin_default$1i = defineComponent({
|
|
5985
5991
|
slots
|
5986
5992
|
}) {
|
5987
5993
|
const barrageWrapper = ref();
|
5988
|
-
const className = bem$
|
5994
|
+
const className = bem$16("item");
|
5989
5995
|
const total = ref(0);
|
5990
5996
|
const barrageItems = [];
|
5991
5997
|
const createBarrageItem = (text, delay = props2.delay) => {
|
@@ -6066,15 +6072,15 @@ var stdin_default$1i = defineComponent({
|
|
6066
6072
|
return () => {
|
6067
6073
|
var _a;
|
6068
6074
|
return createVNode("div", {
|
6069
|
-
"class": bem$
|
6075
|
+
"class": bem$16(),
|
6070
6076
|
"ref": barrageWrapper,
|
6071
6077
|
"style": rootStyle.value
|
6072
6078
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6073
6079
|
};
|
6074
6080
|
}
|
6075
6081
|
});
|
6076
|
-
const Barrage = withInstall(stdin_default$
|
6077
|
-
const [name$
|
6082
|
+
const Barrage = withInstall(stdin_default$1j);
|
6083
|
+
const [name$19, bem$15, t$g] = createNamespace("calendar");
|
6078
6084
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6079
6085
|
function compareMonth(date1, date2) {
|
6080
6086
|
const year1 = date1.getFullYear();
|
@@ -6154,9 +6160,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
6154
6160
|
}
|
6155
6161
|
return value;
|
6156
6162
|
});
|
6157
|
-
const [name$
|
6158
|
-
var stdin_default$
|
6159
|
-
name: name$
|
6163
|
+
const [name$18] = createNamespace("calendar-day");
|
6164
|
+
var stdin_default$1i = defineComponent({
|
6165
|
+
name: name$18,
|
6160
6166
|
props: {
|
6161
6167
|
item: makeRequiredProp(Object),
|
6162
6168
|
color: String,
|
@@ -6220,7 +6226,7 @@ var stdin_default$1h = defineComponent({
|
|
6220
6226
|
} = props2.item;
|
6221
6227
|
if (topInfo || slots["top-info"]) {
|
6222
6228
|
return createVNode("div", {
|
6223
|
-
"class": bem$
|
6229
|
+
"class": bem$15("top-info")
|
6224
6230
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
6225
6231
|
}
|
6226
6232
|
};
|
@@ -6230,7 +6236,7 @@ var stdin_default$1h = defineComponent({
|
|
6230
6236
|
} = props2.item;
|
6231
6237
|
if (bottomInfo || slots["bottom-info"]) {
|
6232
6238
|
return createVNode("div", {
|
6233
|
-
"class": bem$
|
6239
|
+
"class": bem$15("bottom-info")
|
6234
6240
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6235
6241
|
}
|
6236
6242
|
};
|
@@ -6247,7 +6253,7 @@ var stdin_default$1h = defineComponent({
|
|
6247
6253
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
6248
6254
|
if (type === "selected") {
|
6249
6255
|
return createVNode("div", {
|
6250
|
-
"class": bem$
|
6256
|
+
"class": bem$15("selected-day"),
|
6251
6257
|
"style": {
|
6252
6258
|
width: rowHeight,
|
6253
6259
|
height: rowHeight,
|
@@ -6264,21 +6270,21 @@ var stdin_default$1h = defineComponent({
|
|
6264
6270
|
} = props2.item;
|
6265
6271
|
if (type === "placeholder") {
|
6266
6272
|
return createVNode("div", {
|
6267
|
-
"class": bem$
|
6273
|
+
"class": bem$15("day"),
|
6268
6274
|
"style": style.value
|
6269
6275
|
}, null);
|
6270
6276
|
}
|
6271
6277
|
return createVNode("div", {
|
6272
6278
|
"role": "gridcell",
|
6273
6279
|
"style": style.value,
|
6274
|
-
"class": [bem$
|
6280
|
+
"class": [bem$15("day", type), className],
|
6275
6281
|
"tabindex": type === "disabled" ? void 0 : -1,
|
6276
6282
|
"onClick": onClick
|
6277
6283
|
}, [renderContent()]);
|
6278
6284
|
};
|
6279
6285
|
}
|
6280
6286
|
});
|
6281
|
-
const [name$
|
6287
|
+
const [name$17] = createNamespace("calendar-month");
|
6282
6288
|
const calendarMonthProps = {
|
6283
6289
|
date: makeRequiredProp(Date),
|
6284
6290
|
type: String,
|
@@ -6295,8 +6301,8 @@ const calendarMonthProps = {
|
|
6295
6301
|
showMonthTitle: Boolean,
|
6296
6302
|
firstDayOfWeek: Number
|
6297
6303
|
};
|
6298
|
-
var stdin_default$
|
6299
|
-
name: name$
|
6304
|
+
var stdin_default$1h = defineComponent({
|
6305
|
+
name: name$17,
|
6300
6306
|
props: calendarMonthProps,
|
6301
6307
|
emits: ["click", "clickDisabledDate"],
|
6302
6308
|
setup(props2, {
|
@@ -6401,7 +6407,7 @@ var stdin_default$1g = defineComponent({
|
|
6401
6407
|
const renderTitle = () => {
|
6402
6408
|
if (props2.showMonthTitle) {
|
6403
6409
|
return createVNode("div", {
|
6404
|
-
"class": bem$
|
6410
|
+
"class": bem$15("month-title")
|
6405
6411
|
}, [slots["month-title"] ? slots["month-title"]({
|
6406
6412
|
date: props2.date,
|
6407
6413
|
text: title.value
|
@@ -6411,7 +6417,7 @@ var stdin_default$1g = defineComponent({
|
|
6411
6417
|
const renderMark = () => {
|
6412
6418
|
if (props2.showMark && shouldRender.value) {
|
6413
6419
|
return createVNode("div", {
|
6414
|
-
"class": bem$
|
6420
|
+
"class": bem$15("month-mark")
|
6415
6421
|
}, [props2.date.getMonth() + 1]);
|
6416
6422
|
}
|
6417
6423
|
};
|
@@ -6451,7 +6457,7 @@ var stdin_default$1g = defineComponent({
|
|
6451
6457
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
6452
6458
|
}
|
6453
6459
|
};
|
6454
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
6460
|
+
const renderDay = (item, index) => createVNode(stdin_default$1i, {
|
6455
6461
|
"item": item,
|
6456
6462
|
"index": index,
|
6457
6463
|
"color": props2.color,
|
@@ -6463,7 +6469,7 @@ var stdin_default$1g = defineComponent({
|
|
6463
6469
|
const renderDays = () => createVNode("div", {
|
6464
6470
|
"ref": daysRef,
|
6465
6471
|
"role": "grid",
|
6466
|
-
"class": bem$
|
6472
|
+
"class": bem$15("days")
|
6467
6473
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6468
6474
|
useExpose({
|
6469
6475
|
getTitle,
|
@@ -6473,14 +6479,14 @@ var stdin_default$1g = defineComponent({
|
|
6473
6479
|
disabledDays
|
6474
6480
|
});
|
6475
6481
|
return () => createVNode("div", {
|
6476
|
-
"class": bem$
|
6482
|
+
"class": bem$15("month"),
|
6477
6483
|
"ref": monthRef
|
6478
6484
|
}, [renderTitle(), renderDays()]);
|
6479
6485
|
}
|
6480
6486
|
});
|
6481
|
-
const [name$
|
6482
|
-
var stdin_default$
|
6483
|
-
name: name$
|
6487
|
+
const [name$16] = createNamespace("calendar-header");
|
6488
|
+
var stdin_default$1g = defineComponent({
|
6489
|
+
name: name$16,
|
6484
6490
|
props: {
|
6485
6491
|
date: Date,
|
6486
6492
|
title: String,
|
@@ -6499,7 +6505,7 @@ var stdin_default$1f = defineComponent({
|
|
6499
6505
|
const text = props2.title || t$g("title");
|
6500
6506
|
const title = slots.title ? slots.title() : text;
|
6501
6507
|
return createVNode("div", {
|
6502
|
-
"class": bem$
|
6508
|
+
"class": bem$15("header-title")
|
6503
6509
|
}, [title]);
|
6504
6510
|
}
|
6505
6511
|
};
|
@@ -6511,7 +6517,7 @@ var stdin_default$1f = defineComponent({
|
|
6511
6517
|
text: props2.subtitle
|
6512
6518
|
}) : props2.subtitle;
|
6513
6519
|
return createVNode("div", {
|
6514
|
-
"class": bem$
|
6520
|
+
"class": bem$15("header-subtitle"),
|
6515
6521
|
"onClick": onClickSubtitle
|
6516
6522
|
}, [title]);
|
6517
6523
|
}
|
@@ -6523,13 +6529,13 @@ var stdin_default$1f = defineComponent({
|
|
6523
6529
|
const weekdays = t$g("weekdays");
|
6524
6530
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
6525
6531
|
return createVNode("div", {
|
6526
|
-
"class": bem$
|
6532
|
+
"class": bem$15("weekdays")
|
6527
6533
|
}, [renderWeekDays2.map((text) => createVNode("span", {
|
6528
|
-
"class": bem$
|
6534
|
+
"class": bem$15("weekday")
|
6529
6535
|
}, [text]))]);
|
6530
6536
|
};
|
6531
6537
|
return () => createVNode("div", {
|
6532
|
-
"class": bem$
|
6538
|
+
"class": bem$15("header")
|
6533
6539
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
6534
6540
|
}
|
6535
6541
|
});
|
@@ -6580,8 +6586,8 @@ const calendarProps = {
|
|
6580
6586
|
validator: (val) => val >= 0 && val <= 6
|
6581
6587
|
}
|
6582
6588
|
};
|
6583
|
-
var stdin_default$
|
6584
|
-
name: name$
|
6589
|
+
var stdin_default$1f = defineComponent({
|
6590
|
+
name: name$19,
|
6585
6591
|
props: calendarProps,
|
6586
6592
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate"],
|
6587
6593
|
setup(props2, {
|
@@ -6630,7 +6636,7 @@ var stdin_default$1e = defineComponent({
|
|
6630
6636
|
let bodyHeight;
|
6631
6637
|
const bodyRef = ref();
|
6632
6638
|
const subtitle = ref({
|
6633
|
-
|
6639
|
+
textFn: () => "",
|
6634
6640
|
date: void 0
|
6635
6641
|
});
|
6636
6642
|
const currentDate = ref(getInitialDate());
|
@@ -6694,7 +6700,7 @@ var stdin_default$1e = defineComponent({
|
|
6694
6700
|
});
|
6695
6701
|
if (currentMonth) {
|
6696
6702
|
subtitle.value = {
|
6697
|
-
|
6703
|
+
textFn: currentMonth.getTitle,
|
6698
6704
|
date: currentMonth.date
|
6699
6705
|
};
|
6700
6706
|
}
|
@@ -6844,7 +6850,7 @@ var stdin_default$1e = defineComponent({
|
|
6844
6850
|
const updateShow = (value) => emit("update:show", value);
|
6845
6851
|
const renderMonth = (date, index) => {
|
6846
6852
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
6847
|
-
return createVNode(stdin_default$
|
6853
|
+
return createVNode(stdin_default$1h, mergeProps({
|
6848
6854
|
"ref": setMonthRefs(index),
|
6849
6855
|
"date": date,
|
6850
6856
|
"currentDate": currentDate.value,
|
@@ -6868,7 +6874,7 @@ var stdin_default$1e = defineComponent({
|
|
6868
6874
|
"block": true,
|
6869
6875
|
"type": "primary",
|
6870
6876
|
"color": props2.color,
|
6871
|
-
"class": bem$
|
6877
|
+
"class": bem$15("confirm"),
|
6872
6878
|
"disabled": disabled,
|
6873
6879
|
"nativeType": "button",
|
6874
6880
|
"onClick": onConfirm
|
@@ -6880,25 +6886,28 @@ var stdin_default$1e = defineComponent({
|
|
6880
6886
|
}
|
6881
6887
|
};
|
6882
6888
|
const renderFooter = () => createVNode("div", {
|
6883
|
-
"class": [bem$
|
6889
|
+
"class": [bem$15("footer"), {
|
6884
6890
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
6885
6891
|
}]
|
6886
6892
|
}, [renderFooterButton()]);
|
6887
|
-
const renderCalendar = () =>
|
6888
|
-
|
6889
|
-
|
6890
|
-
|
6891
|
-
|
6892
|
-
|
6893
|
-
|
6894
|
-
|
6895
|
-
|
6896
|
-
|
6897
|
-
|
6898
|
-
|
6899
|
-
"
|
6900
|
-
|
6901
|
-
|
6893
|
+
const renderCalendar = () => {
|
6894
|
+
const subTitle = subtitle.value.textFn();
|
6895
|
+
return createVNode("div", {
|
6896
|
+
"class": bem$15()
|
6897
|
+
}, [createVNode(stdin_default$1g, {
|
6898
|
+
"date": subtitle.value.date,
|
6899
|
+
"title": props2.title,
|
6900
|
+
"subtitle": subTitle,
|
6901
|
+
"showTitle": props2.showTitle,
|
6902
|
+
"showSubtitle": props2.showSubtitle,
|
6903
|
+
"firstDayOfWeek": dayOffset.value,
|
6904
|
+
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6905
|
+
}, pick(slots, ["title", "subtitle"])), createVNode("div", {
|
6906
|
+
"ref": bodyRef,
|
6907
|
+
"class": bem$15("body"),
|
6908
|
+
"onScroll": onScroll
|
6909
|
+
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6910
|
+
};
|
6902
6911
|
watch(() => props2.show, init);
|
6903
6912
|
watch(() => [props2.type, props2.minDate, props2.maxDate], () => reset(getInitialDate(currentDate.value)));
|
6904
6913
|
watch(() => props2.defaultDate, (value = null) => {
|
@@ -6915,7 +6924,7 @@ var stdin_default$1e = defineComponent({
|
|
6915
6924
|
if (props2.poppable) {
|
6916
6925
|
return createVNode(Popup, {
|
6917
6926
|
"show": props2.show,
|
6918
|
-
"class": bem$
|
6927
|
+
"class": bem$15("popup"),
|
6919
6928
|
"round": props2.round,
|
6920
6929
|
"position": props2.position,
|
6921
6930
|
"closeable": props2.showTitle || props2.showSubtitle,
|
@@ -6932,8 +6941,8 @@ var stdin_default$1e = defineComponent({
|
|
6932
6941
|
};
|
6933
6942
|
}
|
6934
6943
|
});
|
6935
|
-
const Calendar = withInstall(stdin_default$
|
6936
|
-
const [name$
|
6944
|
+
const Calendar = withInstall(stdin_default$1f);
|
6945
|
+
const [name$15, bem$14] = createNamespace("image");
|
6937
6946
|
const imageProps = {
|
6938
6947
|
src: String,
|
6939
6948
|
alt: String,
|
@@ -6952,8 +6961,8 @@ const imageProps = {
|
|
6952
6961
|
showLoading: truthProp,
|
6953
6962
|
loadingIcon: makeStringProp("photo")
|
6954
6963
|
};
|
6955
|
-
var stdin_default$
|
6956
|
-
name: name$
|
6964
|
+
var stdin_default$1e = defineComponent({
|
6965
|
+
name: name$15,
|
6957
6966
|
props: imageProps,
|
6958
6967
|
emits: ["load", "error"],
|
6959
6968
|
setup(props2, {
|
@@ -7014,13 +7023,13 @@ var stdin_default$1d = defineComponent({
|
|
7014
7023
|
const renderPlaceholder = () => {
|
7015
7024
|
if (loading.value && props2.showLoading) {
|
7016
7025
|
return createVNode("div", {
|
7017
|
-
"class": bem$
|
7018
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
7026
|
+
"class": bem$14("loading")
|
7027
|
+
}, [renderIcon(props2.loadingIcon, bem$14("loading-icon"), slots.loading)]);
|
7019
7028
|
}
|
7020
7029
|
if (error.value && props2.showError) {
|
7021
7030
|
return createVNode("div", {
|
7022
|
-
"class": bem$
|
7023
|
-
}, [renderIcon(props2.errorIcon, bem$
|
7031
|
+
"class": bem$14("error")
|
7032
|
+
}, [renderIcon(props2.errorIcon, bem$14("error-icon"), slots.error)]);
|
7024
7033
|
}
|
7025
7034
|
};
|
7026
7035
|
const renderImage = () => {
|
@@ -7029,7 +7038,7 @@ var stdin_default$1d = defineComponent({
|
|
7029
7038
|
}
|
7030
7039
|
const attrs = {
|
7031
7040
|
alt: props2.alt,
|
7032
|
-
class: bem$
|
7041
|
+
class: bem$14("img"),
|
7033
7042
|
style: {
|
7034
7043
|
objectFit: props2.fit,
|
7035
7044
|
objectPosition: props2.position
|
@@ -7087,7 +7096,7 @@ var stdin_default$1d = defineComponent({
|
|
7087
7096
|
return () => {
|
7088
7097
|
var _a;
|
7089
7098
|
return createVNode("div", {
|
7090
|
-
"class": bem$
|
7099
|
+
"class": bem$14({
|
7091
7100
|
round: props2.round,
|
7092
7101
|
block: props2.block
|
7093
7102
|
}),
|
@@ -7096,8 +7105,8 @@ var stdin_default$1d = defineComponent({
|
|
7096
7105
|
};
|
7097
7106
|
}
|
7098
7107
|
});
|
7099
|
-
const Image$1 = withInstall(stdin_default$
|
7100
|
-
const [name$
|
7108
|
+
const Image$1 = withInstall(stdin_default$1e);
|
7109
|
+
const [name$14, bem$13] = createNamespace("card");
|
7101
7110
|
const cardProps = {
|
7102
7111
|
tag: String,
|
7103
7112
|
num: numericProp,
|
@@ -7111,8 +7120,8 @@ const cardProps = {
|
|
7111
7120
|
thumbLink: String,
|
7112
7121
|
originPrice: numericProp
|
7113
7122
|
};
|
7114
|
-
var stdin_default$
|
7115
|
-
name: name$
|
7123
|
+
var stdin_default$1d = defineComponent({
|
7124
|
+
name: name$14,
|
7116
7125
|
props: cardProps,
|
7117
7126
|
emits: ["clickThumb"],
|
7118
7127
|
setup(props2, {
|
@@ -7125,14 +7134,14 @@ var stdin_default$1c = defineComponent({
|
|
7125
7134
|
}
|
7126
7135
|
if (props2.title) {
|
7127
7136
|
return createVNode("div", {
|
7128
|
-
"class": [bem$
|
7137
|
+
"class": [bem$13("title"), "van-multi-ellipsis--l2"]
|
7129
7138
|
}, [props2.title]);
|
7130
7139
|
}
|
7131
7140
|
};
|
7132
7141
|
const renderThumbTag = () => {
|
7133
7142
|
if (slots.tag || props2.tag) {
|
7134
7143
|
return createVNode("div", {
|
7135
|
-
"class": bem$
|
7144
|
+
"class": bem$13("tag")
|
7136
7145
|
}, [slots.tag ? slots.tag() : createVNode(Tag, {
|
7137
7146
|
"mark": true,
|
7138
7147
|
"type": "primary"
|
@@ -7157,7 +7166,7 @@ var stdin_default$1c = defineComponent({
|
|
7157
7166
|
if (slots.thumb || props2.thumb) {
|
7158
7167
|
return createVNode("a", {
|
7159
7168
|
"href": props2.thumbLink,
|
7160
|
-
"class": bem$
|
7169
|
+
"class": bem$13("thumb"),
|
7161
7170
|
"onClick": (event) => emit("clickThumb", event)
|
7162
7171
|
}, [renderThumbImage(), renderThumbTag()]);
|
7163
7172
|
}
|
@@ -7168,18 +7177,18 @@ var stdin_default$1c = defineComponent({
|
|
7168
7177
|
}
|
7169
7178
|
if (props2.desc) {
|
7170
7179
|
return createVNode("div", {
|
7171
|
-
"class": [bem$
|
7180
|
+
"class": [bem$13("desc"), "van-ellipsis"]
|
7172
7181
|
}, [props2.desc]);
|
7173
7182
|
}
|
7174
7183
|
};
|
7175
7184
|
const renderPriceText = () => {
|
7176
7185
|
const priceArr = props2.price.toString().split(".");
|
7177
7186
|
return createVNode("div", null, [createVNode("span", {
|
7178
|
-
"class": bem$
|
7187
|
+
"class": bem$13("price-currency")
|
7179
7188
|
}, [props2.currency]), createVNode("span", {
|
7180
|
-
"class": bem$
|
7189
|
+
"class": bem$13("price-integer")
|
7181
7190
|
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
7182
|
-
"class": bem$
|
7191
|
+
"class": bem$13("price-decimal")
|
7183
7192
|
}, [priceArr[1]])]);
|
7184
7193
|
};
|
7185
7194
|
return () => {
|
@@ -7189,34 +7198,34 @@ var stdin_default$1c = defineComponent({
|
|
7189
7198
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
7190
7199
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
7191
7200
|
const Price = showPrice && createVNode("div", {
|
7192
|
-
"class": bem$
|
7201
|
+
"class": bem$13("price")
|
7193
7202
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
7194
7203
|
const OriginPrice = showOriginPrice && createVNode("div", {
|
7195
|
-
"class": bem$
|
7204
|
+
"class": bem$13("origin-price")
|
7196
7205
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
7197
7206
|
const Num = showNum && createVNode("div", {
|
7198
|
-
"class": bem$
|
7207
|
+
"class": bem$13("num")
|
7199
7208
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
7200
7209
|
const Footer = slots.footer && createVNode("div", {
|
7201
|
-
"class": bem$
|
7210
|
+
"class": bem$13("footer")
|
7202
7211
|
}, [slots.footer()]);
|
7203
7212
|
const Bottom = showBottom && createVNode("div", {
|
7204
|
-
"class": bem$
|
7213
|
+
"class": bem$13("bottom")
|
7205
7214
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
7206
7215
|
return createVNode("div", {
|
7207
|
-
"class": bem$
|
7216
|
+
"class": bem$13()
|
7208
7217
|
}, [createVNode("div", {
|
7209
|
-
"class": bem$
|
7218
|
+
"class": bem$13("header")
|
7210
7219
|
}, [renderThumb(), createVNode("div", {
|
7211
|
-
"class": bem$
|
7220
|
+
"class": bem$13("content", {
|
7212
7221
|
centered: props2.centered
|
7213
7222
|
})
|
7214
7223
|
}, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
7215
7224
|
};
|
7216
7225
|
}
|
7217
7226
|
});
|
7218
|
-
const Card = withInstall(stdin_default$
|
7219
|
-
const [name$
|
7227
|
+
const Card = withInstall(stdin_default$1d);
|
7228
|
+
const [name$13, bem$12, t$f] = createNamespace("cascader");
|
7220
7229
|
const cascaderProps = {
|
7221
7230
|
title: String,
|
7222
7231
|
options: makeArrayProp(),
|
@@ -7229,8 +7238,8 @@ const cascaderProps = {
|
|
7229
7238
|
placeholder: String,
|
7230
7239
|
activeColor: String
|
7231
7240
|
};
|
7232
|
-
var stdin_default$
|
7233
|
-
name: name$
|
7241
|
+
var stdin_default$1c = defineComponent({
|
7242
|
+
name: name$13,
|
7234
7243
|
props: cascaderProps,
|
7235
7244
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
7236
7245
|
setup(props2, {
|
@@ -7339,12 +7348,12 @@ var stdin_default$1b = defineComponent({
|
|
7339
7348
|
title
|
7340
7349
|
}) => emit("clickTab", name2, title);
|
7341
7350
|
const renderHeader = () => props2.showHeader ? createVNode("div", {
|
7342
|
-
"class": bem$
|
7351
|
+
"class": bem$12("header")
|
7343
7352
|
}, [createVNode("h2", {
|
7344
|
-
"class": bem$
|
7353
|
+
"class": bem$12("title")
|
7345
7354
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? createVNode(Icon, {
|
7346
7355
|
"name": props2.closeIcon,
|
7347
|
-
"class": [bem$
|
7356
|
+
"class": [bem$12("close-icon"), HAPTICS_FEEDBACK],
|
7348
7357
|
"onClick": onClose
|
7349
7358
|
}, null) : null]) : null;
|
7350
7359
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7360,7 +7369,7 @@ var stdin_default$1b = defineComponent({
|
|
7360
7369
|
return createVNode("li", {
|
7361
7370
|
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7362
7371
|
"role": "menuitemradio",
|
7363
|
-
"class": [bem$
|
7372
|
+
"class": [bem$12("option", {
|
7364
7373
|
selected,
|
7365
7374
|
disabled
|
7366
7375
|
}), option.className],
|
@@ -7373,12 +7382,12 @@ var stdin_default$1b = defineComponent({
|
|
7373
7382
|
"onClick": () => onSelect(option, tabIndex)
|
7374
7383
|
}, [Text2, selected ? createVNode(Icon, {
|
7375
7384
|
"name": "success",
|
7376
|
-
"class": bem$
|
7385
|
+
"class": bem$12("selected-icon")
|
7377
7386
|
}, null) : null]);
|
7378
7387
|
};
|
7379
7388
|
const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
|
7380
7389
|
"role": "menu",
|
7381
|
-
"class": bem$
|
7390
|
+
"class": bem$12("options")
|
7382
7391
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
7383
7392
|
const renderTab = (tab, tabIndex) => {
|
7384
7393
|
const {
|
@@ -7389,7 +7398,7 @@ var stdin_default$1b = defineComponent({
|
|
7389
7398
|
const title = selected ? selected[textKey] : placeholder;
|
7390
7399
|
return createVNode(Tab, {
|
7391
7400
|
"title": title,
|
7392
|
-
"titleClass": bem$
|
7401
|
+
"titleClass": bem$12("tab", {
|
7393
7402
|
unselected: !selected
|
7394
7403
|
})
|
7395
7404
|
}, {
|
@@ -7408,7 +7417,7 @@ var stdin_default$1b = defineComponent({
|
|
7408
7417
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7409
7418
|
"shrink": true,
|
7410
7419
|
"animated": true,
|
7411
|
-
"class": bem$
|
7420
|
+
"class": bem$12("tabs"),
|
7412
7421
|
"color": props2.activeColor,
|
7413
7422
|
"swipeable": props2.swipeable,
|
7414
7423
|
"onClickTab": onClickTab
|
@@ -7443,19 +7452,19 @@ var stdin_default$1b = defineComponent({
|
|
7443
7452
|
updateTabs();
|
7444
7453
|
});
|
7445
7454
|
return () => createVNode("div", {
|
7446
|
-
"class": bem$
|
7455
|
+
"class": bem$12()
|
7447
7456
|
}, [renderHeader(), renderTabs()]);
|
7448
7457
|
}
|
7449
7458
|
});
|
7450
|
-
const Cascader = withInstall(stdin_default$
|
7451
|
-
const [name$
|
7459
|
+
const Cascader = withInstall(stdin_default$1c);
|
7460
|
+
const [name$12, bem$11] = createNamespace("cell-group");
|
7452
7461
|
const cellGroupProps = {
|
7453
7462
|
title: String,
|
7454
7463
|
inset: Boolean,
|
7455
7464
|
border: truthProp
|
7456
7465
|
};
|
7457
|
-
var stdin_default$
|
7458
|
-
name: name$
|
7466
|
+
var stdin_default$1b = defineComponent({
|
7467
|
+
name: name$12,
|
7459
7468
|
inheritAttrs: false,
|
7460
7469
|
props: cellGroupProps,
|
7461
7470
|
setup(props2, {
|
@@ -7465,7 +7474,7 @@ var stdin_default$1a = defineComponent({
|
|
7465
7474
|
const renderGroup = () => {
|
7466
7475
|
var _a;
|
7467
7476
|
return createVNode("div", mergeProps({
|
7468
|
-
"class": [bem$
|
7477
|
+
"class": [bem$11({
|
7469
7478
|
inset: props2.inset
|
7470
7479
|
}), {
|
7471
7480
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
@@ -7473,7 +7482,7 @@ var stdin_default$1a = defineComponent({
|
|
7473
7482
|
}, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7474
7483
|
};
|
7475
7484
|
const renderTitle = () => createVNode("div", {
|
7476
|
-
"class": bem$
|
7485
|
+
"class": bem$11("title", {
|
7477
7486
|
inset: props2.inset
|
7478
7487
|
})
|
7479
7488
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -7485,8 +7494,8 @@ var stdin_default$1a = defineComponent({
|
|
7485
7494
|
};
|
7486
7495
|
}
|
7487
7496
|
});
|
7488
|
-
const CellGroup = withInstall(stdin_default$
|
7489
|
-
const [name$
|
7497
|
+
const CellGroup = withInstall(stdin_default$1b);
|
7498
|
+
const [name$11, bem$10] = createNamespace("checkbox-group");
|
7490
7499
|
const checkboxGroupProps = {
|
7491
7500
|
max: numericProp,
|
7492
7501
|
shape: makeStringProp("round"),
|
@@ -7496,9 +7505,9 @@ const checkboxGroupProps = {
|
|
7496
7505
|
modelValue: makeArrayProp(),
|
7497
7506
|
checkedColor: String
|
7498
7507
|
};
|
7499
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
7500
|
-
var stdin_default$
|
7501
|
-
name: name$
|
7508
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$11);
|
7509
|
+
var stdin_default$1a = defineComponent({
|
7510
|
+
name: name$11,
|
7502
7511
|
props: checkboxGroupProps,
|
7503
7512
|
emits: ["change", "update:modelValue"],
|
7504
7513
|
setup(props2, {
|
@@ -7544,12 +7553,12 @@ var stdin_default$19 = defineComponent({
|
|
7544
7553
|
return () => {
|
7545
7554
|
var _a;
|
7546
7555
|
return createVNode("div", {
|
7547
|
-
"class": bem
|
7556
|
+
"class": bem$10([props2.direction])
|
7548
7557
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7549
7558
|
};
|
7550
7559
|
}
|
7551
7560
|
});
|
7552
|
-
const [name
|
7561
|
+
const [name$10, bem$$] = createNamespace("checkbox");
|
7553
7562
|
const checkboxProps = extend({}, checkerProps, {
|
7554
7563
|
shape: String,
|
7555
7564
|
bindGroup: truthProp,
|
@@ -7558,8 +7567,8 @@ const checkboxProps = extend({}, checkerProps, {
|
|
7558
7567
|
default: null
|
7559
7568
|
}
|
7560
7569
|
});
|
7561
|
-
var stdin_default$
|
7562
|
-
name: name
|
7570
|
+
var stdin_default$19 = defineComponent({
|
7571
|
+
name: name$10,
|
7563
7572
|
props: checkboxProps,
|
7564
7573
|
emits: ["change", "update:modelValue"],
|
7565
7574
|
setup(props2, {
|
@@ -7621,8 +7630,8 @@ var stdin_default$18 = defineComponent({
|
|
7621
7630
|
checked
|
7622
7631
|
});
|
7623
7632
|
useCustomFieldValue(() => props2.modelValue);
|
7624
|
-
return () => createVNode(stdin_default$
|
7625
|
-
"bem": bem
|
7633
|
+
return () => createVNode(stdin_default$1o, mergeProps({
|
7634
|
+
"bem": bem$$,
|
7626
7635
|
"role": "checkbox",
|
7627
7636
|
"parent": parent,
|
7628
7637
|
"checked": checked.value,
|
@@ -7630,9 +7639,9 @@ var stdin_default$18 = defineComponent({
|
|
7630
7639
|
}, props2), pick(slots, ["default", "icon"]));
|
7631
7640
|
}
|
7632
7641
|
});
|
7633
|
-
const Checkbox = withInstall(stdin_default$
|
7634
|
-
const CheckboxGroup = withInstall(stdin_default$
|
7635
|
-
const [name
|
7642
|
+
const Checkbox = withInstall(stdin_default$19);
|
7643
|
+
const CheckboxGroup = withInstall(stdin_default$1a);
|
7644
|
+
const [name$$, bem$_] = createNamespace("circle");
|
7636
7645
|
let uid = 0;
|
7637
7646
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7638
7647
|
function getPath(clockwise, viewBoxSize) {
|
@@ -7653,8 +7662,8 @@ const circleProps = {
|
|
7653
7662
|
strokeLinecap: String,
|
7654
7663
|
startPosition: makeStringProp("top")
|
7655
7664
|
};
|
7656
|
-
var stdin_default$
|
7657
|
-
name: name
|
7665
|
+
var stdin_default$18 = defineComponent({
|
7666
|
+
name: name$$,
|
7658
7667
|
props: circleProps,
|
7659
7668
|
emits: ["update:currentRate"],
|
7660
7669
|
setup(props2, {
|
@@ -7722,7 +7731,7 @@ var stdin_default$17 = defineComponent({
|
|
7722
7731
|
return createVNode("path", {
|
7723
7732
|
"d": path.value,
|
7724
7733
|
"style": style,
|
7725
|
-
"class": bem$
|
7734
|
+
"class": bem$_("hover"),
|
7726
7735
|
"stroke": color
|
7727
7736
|
}, null);
|
7728
7737
|
};
|
@@ -7733,7 +7742,7 @@ var stdin_default$17 = defineComponent({
|
|
7733
7742
|
strokeWidth: `${props2.strokeWidth}px`
|
7734
7743
|
};
|
7735
7744
|
return createVNode("path", {
|
7736
|
-
"class": bem$
|
7745
|
+
"class": bem$_("layer"),
|
7737
7746
|
"style": style,
|
7738
7747
|
"d": path.value
|
7739
7748
|
}, null);
|
@@ -7764,12 +7773,12 @@ var stdin_default$17 = defineComponent({
|
|
7764
7773
|
}
|
7765
7774
|
if (props2.text) {
|
7766
7775
|
return createVNode("div", {
|
7767
|
-
"class": bem$
|
7776
|
+
"class": bem$_("text")
|
7768
7777
|
}, [props2.text]);
|
7769
7778
|
}
|
7770
7779
|
};
|
7771
7780
|
return () => createVNode("div", {
|
7772
|
-
"class": bem$
|
7781
|
+
"class": bem$_(),
|
7773
7782
|
"style": getSizeStyle(props2.size)
|
7774
7783
|
}, [createVNode("svg", {
|
7775
7784
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -7777,18 +7786,21 @@ var stdin_default$17 = defineComponent({
|
|
7777
7786
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7778
7787
|
}
|
7779
7788
|
});
|
7780
|
-
const Circle = withInstall(stdin_default$
|
7781
|
-
const [name$
|
7782
|
-
const ROW_KEY = Symbol(name$
|
7789
|
+
const Circle = withInstall(stdin_default$18);
|
7790
|
+
const [name$_, bem$Z] = createNamespace("row");
|
7791
|
+
const ROW_KEY = Symbol(name$_);
|
7783
7792
|
const rowProps = {
|
7784
7793
|
tag: makeStringProp("div"),
|
7785
7794
|
wrap: truthProp,
|
7786
7795
|
align: String,
|
7787
|
-
gutter:
|
7796
|
+
gutter: {
|
7797
|
+
type: [String, Number, Array],
|
7798
|
+
default: 0
|
7799
|
+
},
|
7788
7800
|
justify: String
|
7789
7801
|
};
|
7790
|
-
var stdin_default$
|
7791
|
-
name: name$
|
7802
|
+
var stdin_default$17 = defineComponent({
|
7803
|
+
name: name$_,
|
7792
7804
|
props: rowProps,
|
7793
7805
|
setup(props2, {
|
7794
7806
|
slots
|
@@ -7812,7 +7824,12 @@ var stdin_default$16 = defineComponent({
|
|
7812
7824
|
return groups2;
|
7813
7825
|
});
|
7814
7826
|
const spaces = computed(() => {
|
7815
|
-
|
7827
|
+
let gutter = 0;
|
7828
|
+
if (Array.isArray(props2.gutter)) {
|
7829
|
+
gutter = Number(props2.gutter[0]) || 0;
|
7830
|
+
} else {
|
7831
|
+
gutter = Number(props2.gutter);
|
7832
|
+
}
|
7816
7833
|
const spaces2 = [];
|
7817
7834
|
if (!gutter) {
|
7818
7835
|
return spaces2;
|
@@ -7836,8 +7853,31 @@ var stdin_default$16 = defineComponent({
|
|
7836
7853
|
});
|
7837
7854
|
return spaces2;
|
7838
7855
|
});
|
7856
|
+
const verticalSpaces = computed(() => {
|
7857
|
+
const {
|
7858
|
+
gutter
|
7859
|
+
} = props2;
|
7860
|
+
const spaces2 = [];
|
7861
|
+
if (Array.isArray(gutter) && gutter.length > 1) {
|
7862
|
+
const bottom = Number(gutter[1]) || 0;
|
7863
|
+
if (bottom <= 0) {
|
7864
|
+
return spaces2;
|
7865
|
+
}
|
7866
|
+
groups.value.forEach((group, index) => {
|
7867
|
+
if (index === groups.value.length - 1)
|
7868
|
+
return;
|
7869
|
+
group.forEach(() => {
|
7870
|
+
spaces2.push({
|
7871
|
+
bottom
|
7872
|
+
});
|
7873
|
+
});
|
7874
|
+
});
|
7875
|
+
}
|
7876
|
+
return spaces2;
|
7877
|
+
});
|
7839
7878
|
linkChildren({
|
7840
|
-
spaces
|
7879
|
+
spaces,
|
7880
|
+
verticalSpaces
|
7841
7881
|
});
|
7842
7882
|
return () => {
|
7843
7883
|
const {
|
@@ -7847,7 +7887,7 @@ var stdin_default$16 = defineComponent({
|
|
7847
7887
|
justify
|
7848
7888
|
} = props2;
|
7849
7889
|
return createVNode(tag, {
|
7850
|
-
"class": bem$
|
7890
|
+
"class": bem$Z({
|
7851
7891
|
[`align-${align}`]: align,
|
7852
7892
|
[`justify-${justify}`]: justify,
|
7853
7893
|
nowrap: !wrap
|
@@ -7861,14 +7901,14 @@ var stdin_default$16 = defineComponent({
|
|
7861
7901
|
};
|
7862
7902
|
}
|
7863
7903
|
});
|
7864
|
-
const [name$
|
7904
|
+
const [name$Z, bem$Y] = createNamespace("col");
|
7865
7905
|
const colProps = {
|
7866
7906
|
tag: makeStringProp("div"),
|
7867
7907
|
span: makeNumericProp(0),
|
7868
7908
|
offset: numericProp
|
7869
7909
|
};
|
7870
|
-
var stdin_default$
|
7871
|
-
name: name$
|
7910
|
+
var stdin_default$16 = defineComponent({
|
7911
|
+
name: name$Z,
|
7872
7912
|
props: colProps,
|
7873
7913
|
setup(props2, {
|
7874
7914
|
slots
|
@@ -7882,18 +7922,26 @@ var stdin_default$15 = defineComponent({
|
|
7882
7922
|
return;
|
7883
7923
|
}
|
7884
7924
|
const {
|
7885
|
-
spaces
|
7925
|
+
spaces,
|
7926
|
+
verticalSpaces
|
7886
7927
|
} = parent;
|
7928
|
+
let styles = {};
|
7887
7929
|
if (spaces && spaces.value && spaces.value[index.value]) {
|
7888
7930
|
const {
|
7889
7931
|
left,
|
7890
7932
|
right
|
7891
7933
|
} = spaces.value[index.value];
|
7892
|
-
|
7934
|
+
styles = {
|
7893
7935
|
paddingLeft: left ? `${left}px` : null,
|
7894
7936
|
paddingRight: right ? `${right}px` : null
|
7895
7937
|
};
|
7896
7938
|
}
|
7939
|
+
const {
|
7940
|
+
bottom
|
7941
|
+
} = verticalSpaces.value[index.value] || {};
|
7942
|
+
return extend(styles, {
|
7943
|
+
marginBottom: bottom ? `${bottom}px` : null
|
7944
|
+
});
|
7897
7945
|
});
|
7898
7946
|
return () => {
|
7899
7947
|
const {
|
@@ -7903,7 +7951,7 @@ var stdin_default$15 = defineComponent({
|
|
7903
7951
|
} = props2;
|
7904
7952
|
return createVNode(tag, {
|
7905
7953
|
"style": style.value,
|
7906
|
-
"class": bem$
|
7954
|
+
"class": bem$Y({
|
7907
7955
|
[span]: span,
|
7908
7956
|
[`offset-${offset}`]: offset
|
7909
7957
|
})
|
@@ -7916,9 +7964,9 @@ var stdin_default$15 = defineComponent({
|
|
7916
7964
|
};
|
7917
7965
|
}
|
7918
7966
|
});
|
7919
|
-
const Col = withInstall(stdin_default$
|
7920
|
-
const [name$
|
7921
|
-
const COLLAPSE_KEY = Symbol(name$
|
7967
|
+
const Col = withInstall(stdin_default$16);
|
7968
|
+
const [name$Y, bem$X] = createNamespace("collapse");
|
7969
|
+
const COLLAPSE_KEY = Symbol(name$Y);
|
7922
7970
|
const collapseProps = {
|
7923
7971
|
border: truthProp,
|
7924
7972
|
accordion: Boolean,
|
@@ -7938,8 +7986,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7938
7986
|
}
|
7939
7987
|
return true;
|
7940
7988
|
}
|
7941
|
-
var stdin_default$
|
7942
|
-
name: name$
|
7989
|
+
var stdin_default$15 = defineComponent({
|
7990
|
+
name: name$Y,
|
7943
7991
|
props: collapseProps,
|
7944
7992
|
emits: ["change", "update:modelValue"],
|
7945
7993
|
setup(props2, {
|
@@ -8009,15 +8057,15 @@ var stdin_default$14 = defineComponent({
|
|
8009
8057
|
return () => {
|
8010
8058
|
var _a;
|
8011
8059
|
return createVNode("div", {
|
8012
|
-
"class": [bem$
|
8060
|
+
"class": [bem$X(), {
|
8013
8061
|
[BORDER_TOP_BOTTOM]: props2.border
|
8014
8062
|
}]
|
8015
8063
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8016
8064
|
};
|
8017
8065
|
}
|
8018
8066
|
});
|
8019
|
-
const Collapse = withInstall(stdin_default$
|
8020
|
-
const [name$
|
8067
|
+
const Collapse = withInstall(stdin_default$15);
|
8068
|
+
const [name$X, bem$W] = createNamespace("collapse-item");
|
8021
8069
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
8022
8070
|
const collapseItemProps = extend({}, cellSharedProps, {
|
8023
8071
|
name: numericProp,
|
@@ -8026,8 +8074,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
8026
8074
|
readonly: Boolean,
|
8027
8075
|
lazyRender: truthProp
|
8028
8076
|
});
|
8029
|
-
var stdin_default$
|
8030
|
-
name: name$
|
8077
|
+
var stdin_default$14 = defineComponent({
|
8078
|
+
name: name$X,
|
8031
8079
|
props: collapseItemProps,
|
8032
8080
|
setup(props2, {
|
8033
8081
|
slots
|
@@ -8109,7 +8157,7 @@ var stdin_default$13 = defineComponent({
|
|
8109
8157
|
}
|
8110
8158
|
return createVNode(Cell, mergeProps({
|
8111
8159
|
"role": "button",
|
8112
|
-
"class": bem$
|
8160
|
+
"class": bem$W("title", {
|
8113
8161
|
disabled,
|
8114
8162
|
expanded: expanded.value,
|
8115
8163
|
borderless: !border
|
@@ -8122,11 +8170,11 @@ var stdin_default$13 = defineComponent({
|
|
8122
8170
|
var _a;
|
8123
8171
|
return withDirectives(createVNode("div", {
|
8124
8172
|
"ref": wrapperRef,
|
8125
|
-
"class": bem$
|
8173
|
+
"class": bem$W("wrapper"),
|
8126
8174
|
"onTransitionend": onTransitionEnd
|
8127
8175
|
}, [createVNode("div", {
|
8128
8176
|
"ref": contentRef,
|
8129
|
-
"class": bem$
|
8177
|
+
"class": bem$W("content")
|
8130
8178
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
|
8131
8179
|
});
|
8132
8180
|
useExpose({
|
@@ -8135,15 +8183,15 @@ var stdin_default$13 = defineComponent({
|
|
8135
8183
|
itemName: name2
|
8136
8184
|
});
|
8137
8185
|
return () => createVNode("div", {
|
8138
|
-
"class": [bem$
|
8186
|
+
"class": [bem$W({
|
8139
8187
|
border: index.value && props2.border
|
8140
8188
|
})]
|
8141
8189
|
}, [renderTitle(), renderContent()]);
|
8142
8190
|
}
|
8143
8191
|
});
|
8144
|
-
const CollapseItem = withInstall(stdin_default$
|
8145
|
-
const ConfigProvider = withInstall(stdin_default$
|
8146
|
-
const [name$
|
8192
|
+
const CollapseItem = withInstall(stdin_default$14);
|
8193
|
+
const ConfigProvider = withInstall(stdin_default$1S);
|
8194
|
+
const [name$W, bem$V, t$e] = createNamespace("contact-card");
|
8147
8195
|
const contactCardProps = {
|
8148
8196
|
tel: String,
|
8149
8197
|
name: String,
|
@@ -8151,8 +8199,8 @@ const contactCardProps = {
|
|
8151
8199
|
addText: String,
|
8152
8200
|
editable: truthProp
|
8153
8201
|
};
|
8154
|
-
var stdin_default$
|
8155
|
-
name: name$
|
8202
|
+
var stdin_default$13 = defineComponent({
|
8203
|
+
name: name$W,
|
8156
8204
|
props: contactCardProps,
|
8157
8205
|
emits: ["click"],
|
8158
8206
|
setup(props2, {
|
@@ -8172,18 +8220,18 @@ var stdin_default$12 = defineComponent({
|
|
8172
8220
|
return () => createVNode(Cell, {
|
8173
8221
|
"center": true,
|
8174
8222
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
8175
|
-
"class": bem$
|
8223
|
+
"class": bem$V([props2.type]),
|
8176
8224
|
"border": false,
|
8177
8225
|
"isLink": props2.editable,
|
8178
|
-
"titleClass": bem$
|
8226
|
+
"titleClass": bem$V("title"),
|
8179
8227
|
"onClick": onClick
|
8180
8228
|
}, {
|
8181
8229
|
title: renderContent
|
8182
8230
|
});
|
8183
8231
|
}
|
8184
8232
|
});
|
8185
|
-
const ContactCard = withInstall(stdin_default$
|
8186
|
-
const [name$
|
8233
|
+
const ContactCard = withInstall(stdin_default$13);
|
8234
|
+
const [name$V, bem$U, t$d] = createNamespace("contact-edit");
|
8187
8235
|
const DEFAULT_CONTACT = {
|
8188
8236
|
tel: "",
|
8189
8237
|
name: ""
|
@@ -8203,8 +8251,8 @@ const contactEditProps = {
|
|
8203
8251
|
default: isMobile
|
8204
8252
|
}
|
8205
8253
|
};
|
8206
|
-
var stdin_default$
|
8207
|
-
name: name$
|
8254
|
+
var stdin_default$12 = defineComponent({
|
8255
|
+
name: name$V,
|
8208
8256
|
props: contactEditProps,
|
8209
8257
|
emits: ["save", "delete", "changeDefault"],
|
8210
8258
|
setup(props2, {
|
@@ -8218,20 +8266,20 @@ var stdin_default$11 = defineComponent({
|
|
8218
8266
|
};
|
8219
8267
|
const onDelete = () => emit("delete", contact);
|
8220
8268
|
const renderButtons = () => createVNode("div", {
|
8221
|
-
"class": bem$
|
8269
|
+
"class": bem$U("buttons")
|
8222
8270
|
}, [createVNode(Button, {
|
8223
8271
|
"block": true,
|
8224
8272
|
"round": true,
|
8225
8273
|
"type": "primary",
|
8226
8274
|
"text": t$d("save"),
|
8227
|
-
"class": bem$
|
8275
|
+
"class": bem$U("button"),
|
8228
8276
|
"loading": props2.isSaving,
|
8229
8277
|
"nativeType": "submit"
|
8230
8278
|
}, null), props2.isEdit && createVNode(Button, {
|
8231
8279
|
"block": true,
|
8232
8280
|
"round": true,
|
8233
8281
|
"text": t$d("delete"),
|
8234
|
-
"class": bem$
|
8282
|
+
"class": bem$U("button"),
|
8235
8283
|
"loading": props2.isDeleting,
|
8236
8284
|
"onClick": onDelete
|
8237
8285
|
}, null)]);
|
@@ -8244,7 +8292,7 @@ var stdin_default$11 = defineComponent({
|
|
8244
8292
|
if (props2.showSetDefault) {
|
8245
8293
|
return createVNode(Cell, {
|
8246
8294
|
"title": props2.setDefaultLabel,
|
8247
|
-
"class": bem$
|
8295
|
+
"class": bem$U("switch-cell"),
|
8248
8296
|
"border": false
|
8249
8297
|
}, {
|
8250
8298
|
"right-icon": renderSwitch
|
@@ -8253,11 +8301,11 @@ var stdin_default$11 = defineComponent({
|
|
8253
8301
|
};
|
8254
8302
|
watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
8255
8303
|
return () => createVNode(Form, {
|
8256
|
-
"class": bem$
|
8304
|
+
"class": bem$U(),
|
8257
8305
|
"onSubmit": onSave
|
8258
8306
|
}, {
|
8259
8307
|
default: () => [createVNode("div", {
|
8260
|
-
"class": bem$
|
8308
|
+
"class": bem$U("fields")
|
8261
8309
|
}, [createVNode(Field, {
|
8262
8310
|
"modelValue": contact.name,
|
8263
8311
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -8284,16 +8332,16 @@ var stdin_default$11 = defineComponent({
|
|
8284
8332
|
});
|
8285
8333
|
}
|
8286
8334
|
});
|
8287
|
-
const ContactEdit = withInstall(stdin_default$
|
8288
|
-
const [name$
|
8335
|
+
const ContactEdit = withInstall(stdin_default$12);
|
8336
|
+
const [name$U, bem$T, t$c] = createNamespace("contact-list");
|
8289
8337
|
const contactListProps = {
|
8290
8338
|
list: Array,
|
8291
8339
|
addText: String,
|
8292
8340
|
modelValue: unknownProp,
|
8293
8341
|
defaultTagText: String
|
8294
8342
|
};
|
8295
|
-
var stdin_default$
|
8296
|
-
name: name$
|
8343
|
+
var stdin_default$11 = defineComponent({
|
8344
|
+
name: name$U,
|
8297
8345
|
props: contactListProps,
|
8298
8346
|
emits: ["add", "edit", "select", "update:modelValue"],
|
8299
8347
|
setup(props2, {
|
@@ -8305,13 +8353,13 @@ var stdin_default$10 = defineComponent({
|
|
8305
8353
|
emit("select", item, index);
|
8306
8354
|
};
|
8307
8355
|
const renderRightIcon = () => createVNode(Radio, {
|
8308
|
-
"class": bem$
|
8356
|
+
"class": bem$T("radio"),
|
8309
8357
|
"name": item.id,
|
8310
8358
|
"iconSize": 18
|
8311
8359
|
}, null);
|
8312
8360
|
const renderEditIcon = () => createVNode(Icon, {
|
8313
8361
|
"name": "edit",
|
8314
|
-
"class": bem$
|
8362
|
+
"class": bem$T("edit"),
|
8315
8363
|
"onClick": (event) => {
|
8316
8364
|
event.stopPropagation();
|
8317
8365
|
emit("edit", item, index);
|
@@ -8323,7 +8371,7 @@ var stdin_default$10 = defineComponent({
|
|
8323
8371
|
nodes.push(createVNode(Tag, {
|
8324
8372
|
"type": "primary",
|
8325
8373
|
"round": true,
|
8326
|
-
"class": bem$
|
8374
|
+
"class": bem$T("item-tag")
|
8327
8375
|
}, {
|
8328
8376
|
default: () => [props2.defaultTagText]
|
8329
8377
|
}));
|
@@ -8334,8 +8382,8 @@ var stdin_default$10 = defineComponent({
|
|
8334
8382
|
"key": item.id,
|
8335
8383
|
"isLink": true,
|
8336
8384
|
"center": true,
|
8337
|
-
"class": bem$
|
8338
|
-
"titleClass": bem$
|
8385
|
+
"class": bem$T("item"),
|
8386
|
+
"titleClass": bem$T("item-title"),
|
8339
8387
|
"onClick": onClick
|
8340
8388
|
}, {
|
8341
8389
|
icon: renderEditIcon,
|
@@ -8344,25 +8392,25 @@ var stdin_default$10 = defineComponent({
|
|
8344
8392
|
});
|
8345
8393
|
};
|
8346
8394
|
return () => createVNode("div", {
|
8347
|
-
"class": bem$
|
8395
|
+
"class": bem$T()
|
8348
8396
|
}, [createVNode(RadioGroup, {
|
8349
8397
|
"modelValue": props2.modelValue,
|
8350
|
-
"class": bem$
|
8398
|
+
"class": bem$T("group")
|
8351
8399
|
}, {
|
8352
8400
|
default: () => [props2.list && props2.list.map(renderItem)]
|
8353
8401
|
}), createVNode("div", {
|
8354
|
-
"class": [bem$
|
8402
|
+
"class": [bem$T("bottom"), "van-safe-area-bottom"]
|
8355
8403
|
}, [createVNode(Button, {
|
8356
8404
|
"round": true,
|
8357
8405
|
"block": true,
|
8358
8406
|
"type": "primary",
|
8359
|
-
"class": bem$
|
8407
|
+
"class": bem$T("add"),
|
8360
8408
|
"text": props2.addText || t$c("addContact"),
|
8361
8409
|
"onClick": () => emit("add")
|
8362
8410
|
}, null)])]);
|
8363
8411
|
}
|
8364
8412
|
});
|
8365
|
-
const ContactList = withInstall(stdin_default$
|
8413
|
+
const ContactList = withInstall(stdin_default$11);
|
8366
8414
|
function parseFormat(format2, currentTime) {
|
8367
8415
|
const { days } = currentTime;
|
8368
8416
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -8398,15 +8446,15 @@ function parseFormat(format2, currentTime) {
|
|
8398
8446
|
}
|
8399
8447
|
return format2;
|
8400
8448
|
}
|
8401
|
-
const [name$
|
8449
|
+
const [name$T, bem$S] = createNamespace("count-down");
|
8402
8450
|
const countDownProps = {
|
8403
8451
|
time: makeNumericProp(0),
|
8404
8452
|
format: makeStringProp("HH:mm:ss"),
|
8405
8453
|
autoStart: truthProp,
|
8406
8454
|
millisecond: Boolean
|
8407
8455
|
};
|
8408
|
-
var stdin_default
|
8409
|
-
name: name$
|
8456
|
+
var stdin_default$10 = defineComponent({
|
8457
|
+
name: name$T,
|
8410
8458
|
props: countDownProps,
|
8411
8459
|
emits: ["change", "finish"],
|
8412
8460
|
setup(props2, {
|
@@ -8441,11 +8489,11 @@ var stdin_default$$ = defineComponent({
|
|
8441
8489
|
});
|
8442
8490
|
return () => createVNode("div", {
|
8443
8491
|
"role": "timer",
|
8444
|
-
"class": bem$
|
8492
|
+
"class": bem$S()
|
8445
8493
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8446
8494
|
}
|
8447
8495
|
});
|
8448
|
-
const CountDown = withInstall(stdin_default
|
8496
|
+
const CountDown = withInstall(stdin_default$10);
|
8449
8497
|
function getDate(timeStamp) {
|
8450
8498
|
const date = new Date(timeStamp * 1e3);
|
8451
8499
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8454,9 +8502,9 @@ function getDate(timeStamp) {
|
|
8454
8502
|
}
|
8455
8503
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8456
8504
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8457
|
-
const [name$
|
8458
|
-
var stdin_default
|
8459
|
-
name: name$
|
8505
|
+
const [name$S, bem$R, t$b] = createNamespace("coupon");
|
8506
|
+
var stdin_default$$ = defineComponent({
|
8507
|
+
name: name$S,
|
8460
8508
|
props: {
|
8461
8509
|
chosen: Boolean,
|
8462
8510
|
coupon: makeRequiredProp(Object),
|
@@ -8500,34 +8548,34 @@ var stdin_default$_ = defineComponent({
|
|
8500
8548
|
} = props2;
|
8501
8549
|
const description = disabled && coupon.reason || coupon.description;
|
8502
8550
|
return createVNode("div", {
|
8503
|
-
"class": bem$
|
8551
|
+
"class": bem$R({
|
8504
8552
|
disabled
|
8505
8553
|
})
|
8506
8554
|
}, [createVNode("div", {
|
8507
|
-
"class": bem$
|
8555
|
+
"class": bem$R("content")
|
8508
8556
|
}, [createVNode("div", {
|
8509
|
-
"class": bem$
|
8557
|
+
"class": bem$R("head")
|
8510
8558
|
}, [createVNode("h2", {
|
8511
|
-
"class": bem$
|
8559
|
+
"class": bem$R("amount")
|
8512
8560
|
}, [faceAmount.value]), createVNode("p", {
|
8513
|
-
"class": bem$
|
8561
|
+
"class": bem$R("condition")
|
8514
8562
|
}, [coupon.condition || conditionMessage.value])]), createVNode("div", {
|
8515
|
-
"class": bem$
|
8563
|
+
"class": bem$R("body")
|
8516
8564
|
}, [createVNode("p", {
|
8517
|
-
"class": bem$
|
8565
|
+
"class": bem$R("name")
|
8518
8566
|
}, [coupon.name]), createVNode("p", {
|
8519
|
-
"class": bem$
|
8567
|
+
"class": bem$R("valid")
|
8520
8568
|
}, [validPeriod.value]), !disabled && createVNode(Checkbox, {
|
8521
|
-
"class": bem$
|
8569
|
+
"class": bem$R("corner"),
|
8522
8570
|
"modelValue": chosen
|
8523
8571
|
}, null)])]), description && createVNode("p", {
|
8524
|
-
"class": bem$
|
8572
|
+
"class": bem$R("description")
|
8525
8573
|
}, [description])]);
|
8526
8574
|
};
|
8527
8575
|
}
|
8528
8576
|
});
|
8529
|
-
const Coupon = withInstall(stdin_default
|
8530
|
-
const [name$
|
8577
|
+
const Coupon = withInstall(stdin_default$$);
|
8578
|
+
const [name$R, bem$Q, t$a] = createNamespace("coupon-cell");
|
8531
8579
|
const couponCellProps = {
|
8532
8580
|
title: String,
|
8533
8581
|
border: truthProp,
|
@@ -8555,34 +8603,34 @@ function formatValue({
|
|
8555
8603
|
}
|
8556
8604
|
return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
|
8557
8605
|
}
|
8558
|
-
var stdin_default$
|
8559
|
-
name: name$
|
8606
|
+
var stdin_default$_ = defineComponent({
|
8607
|
+
name: name$R,
|
8560
8608
|
props: couponCellProps,
|
8561
8609
|
setup(props2) {
|
8562
8610
|
return () => {
|
8563
8611
|
const selected = props2.coupons[+props2.chosenCoupon];
|
8564
8612
|
return createVNode(Cell, {
|
8565
|
-
"class": bem$
|
8613
|
+
"class": bem$Q(),
|
8566
8614
|
"value": formatValue(props2),
|
8567
8615
|
"title": props2.title || t$a("title"),
|
8568
8616
|
"border": props2.border,
|
8569
8617
|
"isLink": props2.editable,
|
8570
|
-
"valueClass": bem$
|
8618
|
+
"valueClass": bem$Q("value", {
|
8571
8619
|
selected
|
8572
8620
|
})
|
8573
8621
|
}, null);
|
8574
8622
|
};
|
8575
8623
|
}
|
8576
8624
|
});
|
8577
|
-
const CouponCell = withInstall(stdin_default$
|
8578
|
-
const [name$
|
8625
|
+
const CouponCell = withInstall(stdin_default$_);
|
8626
|
+
const [name$Q, bem$P] = createNamespace("empty");
|
8579
8627
|
const emptyProps = {
|
8580
8628
|
image: makeStringProp("default"),
|
8581
8629
|
imageSize: [Number, String, Array],
|
8582
8630
|
description: String
|
8583
8631
|
};
|
8584
|
-
var stdin_default$
|
8585
|
-
name: name$
|
8632
|
+
var stdin_default$Z = defineComponent({
|
8633
|
+
name: name$Q,
|
8586
8634
|
props: emptyProps,
|
8587
8635
|
setup(props2, {
|
8588
8636
|
slots
|
@@ -8591,14 +8639,14 @@ var stdin_default$Y = defineComponent({
|
|
8591
8639
|
const description = slots.description ? slots.description() : props2.description;
|
8592
8640
|
if (description) {
|
8593
8641
|
return createVNode("p", {
|
8594
|
-
"class": bem$
|
8642
|
+
"class": bem$P("description")
|
8595
8643
|
}, [description]);
|
8596
8644
|
}
|
8597
8645
|
};
|
8598
8646
|
const renderBottom = () => {
|
8599
8647
|
if (slots.default) {
|
8600
8648
|
return createVNode("div", {
|
8601
|
-
"class": bem$
|
8649
|
+
"class": bem$P("bottom")
|
8602
8650
|
}, [slots.default()]);
|
8603
8651
|
}
|
8604
8652
|
};
|
@@ -8883,15 +8931,15 @@ var stdin_default$Y = defineComponent({
|
|
8883
8931
|
}, null);
|
8884
8932
|
};
|
8885
8933
|
return () => createVNode("div", {
|
8886
|
-
"class": bem$
|
8934
|
+
"class": bem$P()
|
8887
8935
|
}, [createVNode("div", {
|
8888
|
-
"class": bem$
|
8936
|
+
"class": bem$P("image"),
|
8889
8937
|
"style": getSizeStyle(props2.imageSize)
|
8890
8938
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8891
8939
|
}
|
8892
8940
|
});
|
8893
|
-
const Empty = withInstall(stdin_default$
|
8894
|
-
const [name$
|
8941
|
+
const Empty = withInstall(stdin_default$Z);
|
8942
|
+
const [name$P, bem$O, t$9] = createNamespace("coupon-list");
|
8895
8943
|
const couponListProps = {
|
8896
8944
|
code: makeStringProp(""),
|
8897
8945
|
coupons: makeArrayProp(),
|
@@ -8912,8 +8960,8 @@ const couponListProps = {
|
|
8912
8960
|
exchangeButtonLoading: Boolean,
|
8913
8961
|
exchangeButtonDisabled: Boolean
|
8914
8962
|
};
|
8915
|
-
var stdin_default$
|
8916
|
-
name: name$
|
8963
|
+
var stdin_default$Y = defineComponent({
|
8964
|
+
name: name$P,
|
8917
8965
|
props: couponListProps,
|
8918
8966
|
emits: ["change", "exchange", "update:code"],
|
8919
8967
|
setup(props2, {
|
@@ -8949,26 +8997,26 @@ var stdin_default$X = defineComponent({
|
|
8949
8997
|
"image": props2.emptyImage
|
8950
8998
|
}, {
|
8951
8999
|
default: () => [createVNode("p", {
|
8952
|
-
"class": bem$
|
9000
|
+
"class": bem$O("empty-tip")
|
8953
9001
|
}, [t$9("noCoupon")])]
|
8954
9002
|
});
|
8955
9003
|
const renderExchangeBar = () => {
|
8956
9004
|
if (props2.showExchangeBar) {
|
8957
9005
|
return createVNode("div", {
|
8958
9006
|
"ref": barRef,
|
8959
|
-
"class": bem$
|
9007
|
+
"class": bem$O("exchange-bar")
|
8960
9008
|
}, [createVNode(Field, {
|
8961
9009
|
"modelValue": currentCode.value,
|
8962
9010
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8963
9011
|
"clearable": true,
|
8964
9012
|
"border": false,
|
8965
|
-
"class": bem$
|
9013
|
+
"class": bem$O("field"),
|
8966
9014
|
"placeholder": props2.inputPlaceholder || t$9("placeholder"),
|
8967
9015
|
"maxlength": "20"
|
8968
9016
|
}, null), createVNode(Button, {
|
8969
9017
|
"plain": true,
|
8970
9018
|
"type": "primary",
|
8971
|
-
"class": bem$
|
9019
|
+
"class": bem$O("exchange"),
|
8972
9020
|
"text": props2.exchangeButtonText || t$9("exchange"),
|
8973
9021
|
"loading": props2.exchangeButtonLoading,
|
8974
9022
|
"disabled": buttonDisabled.value,
|
@@ -8988,7 +9036,7 @@ var stdin_default$X = defineComponent({
|
|
8988
9036
|
default: () => {
|
8989
9037
|
var _a;
|
8990
9038
|
return [createVNode("div", {
|
8991
|
-
"class": bem$
|
9039
|
+
"class": bem$O("list", {
|
8992
9040
|
"with-bottom": props2.showCloseButton
|
8993
9041
|
}),
|
8994
9042
|
"style": {
|
@@ -9017,7 +9065,7 @@ var stdin_default$X = defineComponent({
|
|
9017
9065
|
default: () => {
|
9018
9066
|
var _a;
|
9019
9067
|
return [createVNode("div", {
|
9020
|
-
"class": bem$
|
9068
|
+
"class": bem$O("list", {
|
9021
9069
|
"with-bottom": props2.showCloseButton
|
9022
9070
|
}),
|
9023
9071
|
"style": {
|
@@ -9044,28 +9092,28 @@ var stdin_default$X = defineComponent({
|
|
9044
9092
|
});
|
9045
9093
|
return () => createVNode("div", {
|
9046
9094
|
"ref": root,
|
9047
|
-
"class": bem$
|
9095
|
+
"class": bem$O()
|
9048
9096
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
9049
9097
|
"active": activeTab.value,
|
9050
9098
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
9051
|
-
"class": bem$
|
9099
|
+
"class": bem$O("tab")
|
9052
9100
|
}, {
|
9053
9101
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
9054
9102
|
}), createVNode("div", {
|
9055
|
-
"class": bem$
|
9103
|
+
"class": bem$O("bottom")
|
9056
9104
|
}, [withDirectives(createVNode(Button, {
|
9057
9105
|
"round": true,
|
9058
9106
|
"block": true,
|
9059
9107
|
"type": "primary",
|
9060
|
-
"class": bem$
|
9108
|
+
"class": bem$O("close"),
|
9061
9109
|
"text": props2.closeButtonText || t$9("close"),
|
9062
9110
|
"onClick": () => emit("change", -1)
|
9063
9111
|
}, null), [[vShow, props2.showCloseButton]])])]);
|
9064
9112
|
}
|
9065
9113
|
});
|
9066
|
-
const CouponList = withInstall(stdin_default$
|
9114
|
+
const CouponList = withInstall(stdin_default$Y);
|
9067
9115
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
9068
|
-
const [name$
|
9116
|
+
const [name$O] = createNamespace("date-picker");
|
9069
9117
|
const datePickerProps = extend({}, sharedProps, {
|
9070
9118
|
columnsType: {
|
9071
9119
|
type: Array,
|
@@ -9082,8 +9130,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
9082
9130
|
validator: isDate
|
9083
9131
|
}
|
9084
9132
|
});
|
9085
|
-
var stdin_default$
|
9086
|
-
name: name$
|
9133
|
+
var stdin_default$X = defineComponent({
|
9134
|
+
name: name$O,
|
9087
9135
|
props: datePickerProps,
|
9088
9136
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
9089
9137
|
setup(props2, {
|
@@ -9176,8 +9224,8 @@ var stdin_default$W = defineComponent({
|
|
9176
9224
|
}, pick(props2, pickerInheritKeys)), slots);
|
9177
9225
|
}
|
9178
9226
|
});
|
9179
|
-
const DatePicker = withInstall(stdin_default$
|
9180
|
-
const [name$
|
9227
|
+
const DatePicker = withInstall(stdin_default$X);
|
9228
|
+
const [name$N, bem$N, t$8] = createNamespace("dialog");
|
9181
9229
|
const dialogProps = extend({}, popupSharedProps, {
|
9182
9230
|
title: String,
|
9183
9231
|
theme: String,
|
@@ -9200,8 +9248,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
9200
9248
|
closeOnClickOverlay: Boolean
|
9201
9249
|
});
|
9202
9250
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9203
|
-
var stdin_default$
|
9204
|
-
name: name$
|
9251
|
+
var stdin_default$W = defineComponent({
|
9252
|
+
name: name$N,
|
9205
9253
|
props: dialogProps,
|
9206
9254
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
9207
9255
|
setup(props2, {
|
@@ -9258,7 +9306,7 @@ var stdin_default$V = defineComponent({
|
|
9258
9306
|
const title = slots.title ? slots.title() : props2.title;
|
9259
9307
|
if (title) {
|
9260
9308
|
return createVNode("div", {
|
9261
|
-
"class": bem$
|
9309
|
+
"class": bem$N("header", {
|
9262
9310
|
isolated: !props2.message && !slots.default
|
9263
9311
|
})
|
9264
9312
|
}, [title]);
|
@@ -9270,7 +9318,7 @@ var stdin_default$V = defineComponent({
|
|
9270
9318
|
allowHtml,
|
9271
9319
|
messageAlign
|
9272
9320
|
} = props2;
|
9273
|
-
const classNames = bem$
|
9321
|
+
const classNames = bem$N("message", {
|
9274
9322
|
"has-title": hasTitle,
|
9275
9323
|
[messageAlign]: messageAlign
|
9276
9324
|
});
|
@@ -9288,7 +9336,7 @@ var stdin_default$V = defineComponent({
|
|
9288
9336
|
const renderContent = () => {
|
9289
9337
|
if (slots.default) {
|
9290
9338
|
return createVNode("div", {
|
9291
|
-
"class": bem$
|
9339
|
+
"class": bem$N("content")
|
9292
9340
|
}, [slots.default()]);
|
9293
9341
|
}
|
9294
9342
|
const {
|
@@ -9300,18 +9348,18 @@ var stdin_default$V = defineComponent({
|
|
9300
9348
|
const hasTitle = !!(title || slots.title);
|
9301
9349
|
return createVNode("div", {
|
9302
9350
|
"key": allowHtml ? 1 : 0,
|
9303
|
-
"class": bem$
|
9351
|
+
"class": bem$N("content", {
|
9304
9352
|
isolated: !hasTitle
|
9305
9353
|
})
|
9306
9354
|
}, [renderMessage(hasTitle)]);
|
9307
9355
|
}
|
9308
9356
|
};
|
9309
9357
|
const renderButtons = () => createVNode("div", {
|
9310
|
-
"class": [BORDER_TOP, bem$
|
9358
|
+
"class": [BORDER_TOP, bem$N("footer")]
|
9311
9359
|
}, [props2.showCancelButton && createVNode(Button, {
|
9312
9360
|
"size": "large",
|
9313
9361
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9314
|
-
"class": bem$
|
9362
|
+
"class": bem$N("cancel"),
|
9315
9363
|
"style": {
|
9316
9364
|
color: props2.cancelButtonColor
|
9317
9365
|
},
|
@@ -9321,7 +9369,7 @@ var stdin_default$V = defineComponent({
|
|
9321
9369
|
}, null), props2.showConfirmButton && createVNode(Button, {
|
9322
9370
|
"size": "large",
|
9323
9371
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9324
|
-
"class": [bem$
|
9372
|
+
"class": [bem$N("confirm"), {
|
9325
9373
|
[BORDER_LEFT]: props2.showCancelButton
|
9326
9374
|
}],
|
9327
9375
|
"style": {
|
@@ -9332,12 +9380,12 @@ var stdin_default$V = defineComponent({
|
|
9332
9380
|
"onClick": onConfirm
|
9333
9381
|
}, null)]);
|
9334
9382
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
9335
|
-
"class": bem$
|
9383
|
+
"class": bem$N("footer")
|
9336
9384
|
}, {
|
9337
9385
|
default: () => [props2.showCancelButton && createVNode(ActionBarButton, {
|
9338
9386
|
"type": "warning",
|
9339
9387
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9340
|
-
"class": bem$
|
9388
|
+
"class": bem$N("cancel"),
|
9341
9389
|
"color": props2.cancelButtonColor,
|
9342
9390
|
"loading": loading.cancel,
|
9343
9391
|
"disabled": props2.cancelButtonDisabled,
|
@@ -9345,7 +9393,7 @@ var stdin_default$V = defineComponent({
|
|
9345
9393
|
}, null), props2.showConfirmButton && createVNode(ActionBarButton, {
|
9346
9394
|
"type": "danger",
|
9347
9395
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9348
|
-
"class": bem$
|
9396
|
+
"class": bem$N("confirm"),
|
9349
9397
|
"color": props2.confirmButtonColor,
|
9350
9398
|
"loading": loading.confirm,
|
9351
9399
|
"disabled": props2.confirmButtonDisabled,
|
@@ -9369,7 +9417,7 @@ var stdin_default$V = defineComponent({
|
|
9369
9417
|
return createVNode(Popup, mergeProps({
|
9370
9418
|
"ref": root,
|
9371
9419
|
"role": "dialog",
|
9372
|
-
"class": [bem$
|
9420
|
+
"class": [bem$N([theme]), className],
|
9373
9421
|
"style": {
|
9374
9422
|
width: addUnit(width)
|
9375
9423
|
},
|
@@ -9419,7 +9467,7 @@ function initInstance$2() {
|
|
9419
9467
|
state,
|
9420
9468
|
toggle
|
9421
9469
|
} = usePopupState();
|
9422
|
-
return () => createVNode(stdin_default$
|
9470
|
+
return () => createVNode(stdin_default$W, mergeProps(state, {
|
9423
9471
|
"onUpdate:show": toggle
|
9424
9472
|
}), null);
|
9425
9473
|
}
|
@@ -9457,16 +9505,16 @@ const closeDialog = () => {
|
|
9457
9505
|
instance$2.toggle(false);
|
9458
9506
|
}
|
9459
9507
|
};
|
9460
|
-
const Dialog = withInstall(stdin_default$
|
9461
|
-
const [name$
|
9508
|
+
const Dialog = withInstall(stdin_default$W);
|
9509
|
+
const [name$M, bem$M] = createNamespace("divider");
|
9462
9510
|
const dividerProps = {
|
9463
9511
|
dashed: Boolean,
|
9464
9512
|
hairline: truthProp,
|
9465
9513
|
vertical: Boolean,
|
9466
9514
|
contentPosition: makeStringProp("center")
|
9467
9515
|
};
|
9468
|
-
var stdin_default$
|
9469
|
-
name: name$
|
9516
|
+
var stdin_default$V = defineComponent({
|
9517
|
+
name: name$M,
|
9470
9518
|
props: dividerProps,
|
9471
9519
|
setup(props2, {
|
9472
9520
|
slots
|
@@ -9475,7 +9523,7 @@ var stdin_default$U = defineComponent({
|
|
9475
9523
|
var _a;
|
9476
9524
|
return createVNode("div", {
|
9477
9525
|
"role": "separator",
|
9478
|
-
"class": bem$
|
9526
|
+
"class": bem$M({
|
9479
9527
|
dashed: props2.dashed,
|
9480
9528
|
hairline: props2.hairline,
|
9481
9529
|
vertical: props2.vertical,
|
@@ -9485,8 +9533,8 @@ var stdin_default$U = defineComponent({
|
|
9485
9533
|
};
|
9486
9534
|
}
|
9487
9535
|
});
|
9488
|
-
const Divider = withInstall(stdin_default$
|
9489
|
-
const [name$
|
9536
|
+
const Divider = withInstall(stdin_default$V);
|
9537
|
+
const [name$L, bem$L] = createNamespace("dropdown-menu");
|
9490
9538
|
const dropdownMenuProps = {
|
9491
9539
|
overlay: truthProp,
|
9492
9540
|
zIndex: numericProp,
|
@@ -9497,9 +9545,9 @@ const dropdownMenuProps = {
|
|
9497
9545
|
closeOnClickOverlay: truthProp,
|
9498
9546
|
swipeThreshold: numericProp
|
9499
9547
|
};
|
9500
|
-
const DROPDOWN_KEY = Symbol(name$
|
9501
|
-
var stdin_default$
|
9502
|
-
name: name$
|
9548
|
+
const DROPDOWN_KEY = Symbol(name$L);
|
9549
|
+
var stdin_default$U = defineComponent({
|
9550
|
+
name: name$L,
|
9503
9551
|
props: dropdownMenuProps,
|
9504
9552
|
setup(props2, {
|
9505
9553
|
slots
|
@@ -9570,7 +9618,7 @@ var stdin_default$T = defineComponent({
|
|
9570
9618
|
"id": `${id}-${index}`,
|
9571
9619
|
"role": "button",
|
9572
9620
|
"tabindex": disabled ? void 0 : 0,
|
9573
|
-
"class": [bem$
|
9621
|
+
"class": [bem$L("item", {
|
9574
9622
|
disabled,
|
9575
9623
|
grow: scrollable.value
|
9576
9624
|
}), {
|
@@ -9582,7 +9630,7 @@ var stdin_default$T = defineComponent({
|
|
9582
9630
|
}
|
9583
9631
|
}
|
9584
9632
|
}, [createVNode("span", {
|
9585
|
-
"class": [bem$
|
9633
|
+
"class": [bem$L("title", {
|
9586
9634
|
down: showPopup === (props2.direction === "down"),
|
9587
9635
|
active: showPopup
|
9588
9636
|
}), titleClass],
|
@@ -9611,11 +9659,11 @@ var stdin_default$T = defineComponent({
|
|
9611
9659
|
var _a;
|
9612
9660
|
return createVNode("div", {
|
9613
9661
|
"ref": root,
|
9614
|
-
"class": bem$
|
9662
|
+
"class": bem$L()
|
9615
9663
|
}, [createVNode("div", {
|
9616
9664
|
"ref": barRef,
|
9617
9665
|
"style": barStyle.value,
|
9618
|
-
"class": bem$
|
9666
|
+
"class": bem$L("bar", {
|
9619
9667
|
opened: opened.value,
|
9620
9668
|
scrollable: scrollable.value
|
9621
9669
|
})
|
@@ -9623,7 +9671,7 @@ var stdin_default$T = defineComponent({
|
|
9623
9671
|
};
|
9624
9672
|
}
|
9625
9673
|
});
|
9626
|
-
const [name$
|
9674
|
+
const [name$K, bem$K] = createNamespace("dropdown-item");
|
9627
9675
|
const dropdownItemProps = {
|
9628
9676
|
title: String,
|
9629
9677
|
options: makeArrayProp(),
|
@@ -9633,8 +9681,8 @@ const dropdownItemProps = {
|
|
9633
9681
|
modelValue: unknownProp,
|
9634
9682
|
titleClass: unknownProp
|
9635
9683
|
};
|
9636
|
-
var stdin_default$
|
9637
|
-
name: name$
|
9684
|
+
var stdin_default$T = defineComponent({
|
9685
|
+
name: name$K,
|
9638
9686
|
inheritAttrs: false,
|
9639
9687
|
props: dropdownItemProps,
|
9640
9688
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
@@ -9707,7 +9755,7 @@ var stdin_default$S = defineComponent({
|
|
9707
9755
|
const renderIcon = () => {
|
9708
9756
|
if (active) {
|
9709
9757
|
return createVNode(Icon, {
|
9710
|
-
"class": bem$
|
9758
|
+
"class": bem$K("icon"),
|
9711
9759
|
"color": activeColor,
|
9712
9760
|
"name": "success"
|
9713
9761
|
}, null);
|
@@ -9718,7 +9766,7 @@ var stdin_default$S = defineComponent({
|
|
9718
9766
|
"key": String(option.value),
|
9719
9767
|
"icon": option.icon,
|
9720
9768
|
"title": option.text,
|
9721
|
-
"class": bem$
|
9769
|
+
"class": bem$K("option", {
|
9722
9770
|
active
|
9723
9771
|
}),
|
9724
9772
|
"style": {
|
@@ -9750,13 +9798,13 @@ var stdin_default$S = defineComponent({
|
|
9750
9798
|
}
|
9751
9799
|
return withDirectives(createVNode("div", mergeProps({
|
9752
9800
|
"style": style,
|
9753
|
-
"class": bem$
|
9801
|
+
"class": bem$K([direction]),
|
9754
9802
|
"onClick": onClickWrapper
|
9755
9803
|
}, attrs), [createVNode(Popup, {
|
9756
9804
|
"show": state.showPopup,
|
9757
9805
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
9758
9806
|
"role": "menu",
|
9759
|
-
"class": bem$
|
9807
|
+
"class": bem$K("content"),
|
9760
9808
|
"overlay": overlay,
|
9761
9809
|
"position": direction === "down" ? "top" : "bottom",
|
9762
9810
|
"duration": state.transition ? duration : 0,
|
@@ -9794,8 +9842,8 @@ var stdin_default$S = defineComponent({
|
|
9794
9842
|
};
|
9795
9843
|
}
|
9796
9844
|
});
|
9797
|
-
const DropdownItem = withInstall(stdin_default$
|
9798
|
-
const DropdownMenu = withInstall(stdin_default$
|
9845
|
+
const DropdownItem = withInstall(stdin_default$T);
|
9846
|
+
const DropdownMenu = withInstall(stdin_default$U);
|
9799
9847
|
const floatingBubbleProps = {
|
9800
9848
|
gap: makeNumberProp(24),
|
9801
9849
|
icon: String,
|
@@ -9813,9 +9861,9 @@ const floatingBubbleProps = {
|
|
9813
9861
|
default: "body"
|
9814
9862
|
}
|
9815
9863
|
};
|
9816
|
-
const [name$
|
9817
|
-
var stdin_default$
|
9818
|
-
name: name$
|
9864
|
+
const [name$J, bem$J] = createNamespace("floating-bubble");
|
9865
|
+
var stdin_default$S = defineComponent({
|
9866
|
+
name: name$J,
|
9819
9867
|
inheritAttrs: false,
|
9820
9868
|
props: floatingBubbleProps,
|
9821
9869
|
emits: ["click", "update:offset", "offsetChange"],
|
@@ -9948,16 +9996,16 @@ var stdin_default$R = defineComponent({
|
|
9948
9996
|
});
|
9949
9997
|
return () => {
|
9950
9998
|
const Content = withDirectives(createVNode("div", mergeProps({
|
9951
|
-
"class": bem$
|
9999
|
+
"class": bem$J(),
|
9952
10000
|
"ref": rootRef,
|
9953
10001
|
"onTouchstartPassive": onTouchStart,
|
9954
10002
|
"onTouchend": onTouchEnd,
|
9955
10003
|
"onTouchcancel": onTouchEnd,
|
9956
10004
|
"onClickCapture": onClick,
|
9957
10005
|
"style": rootStyle.value
|
9958
|
-
}, attrs), [slots.default ? slots.default() : createVNode(stdin_default$
|
10006
|
+
}, attrs), [slots.default ? slots.default() : createVNode(stdin_default$1Q, {
|
9959
10007
|
"name": props2.icon,
|
9960
|
-
"class": bem$
|
10008
|
+
"class": bem$J("icon")
|
9961
10009
|
}, null)]), [[vShow, show.value]]);
|
9962
10010
|
return props2.teleport ? createVNode(Teleport, {
|
9963
10011
|
"to": props2.teleport
|
@@ -9967,7 +10015,7 @@ var stdin_default$R = defineComponent({
|
|
9967
10015
|
};
|
9968
10016
|
}
|
9969
10017
|
});
|
9970
|
-
const FloatingBubble = withInstall(stdin_default$
|
10018
|
+
const FloatingBubble = withInstall(stdin_default$S);
|
9971
10019
|
const floatingPanelProps = {
|
9972
10020
|
height: makeNumericProp(0),
|
9973
10021
|
anchors: makeArrayProp(),
|
@@ -9976,9 +10024,9 @@ const floatingPanelProps = {
|
|
9976
10024
|
lockScroll: Boolean,
|
9977
10025
|
safeAreaInsetBottom: truthProp
|
9978
10026
|
};
|
9979
|
-
const [name$
|
9980
|
-
var stdin_default$
|
9981
|
-
name: name$
|
10027
|
+
const [name$I, bem$I] = createNamespace("floating-panel");
|
10028
|
+
var stdin_default$R = defineComponent({
|
10029
|
+
name: name$I,
|
9982
10030
|
props: floatingPanelProps,
|
9983
10031
|
emits: ["heightChange", "update:height"],
|
9984
10032
|
setup(props2, {
|
@@ -10068,7 +10116,7 @@ var stdin_default$Q = defineComponent({
|
|
10068
10116
|
return () => {
|
10069
10117
|
var _a;
|
10070
10118
|
return createVNode("div", {
|
10071
|
-
"class": [bem$
|
10119
|
+
"class": [bem$I(), {
|
10072
10120
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
10073
10121
|
}],
|
10074
10122
|
"ref": rootRef,
|
@@ -10077,18 +10125,18 @@ var stdin_default$Q = defineComponent({
|
|
10077
10125
|
"onTouchend": onTouchend,
|
10078
10126
|
"onTouchcancel": onTouchend
|
10079
10127
|
}, [createVNode("div", {
|
10080
|
-
"class": bem$
|
10128
|
+
"class": bem$I("header")
|
10081
10129
|
}, [createVNode("div", {
|
10082
|
-
"class": bem$
|
10130
|
+
"class": bem$I("header-bar")
|
10083
10131
|
}, null)]), createVNode("div", {
|
10084
|
-
"class": bem$
|
10132
|
+
"class": bem$I("content"),
|
10085
10133
|
"ref": contentRef
|
10086
10134
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
10087
10135
|
};
|
10088
10136
|
}
|
10089
10137
|
});
|
10090
|
-
const FloatingPanel = withInstall(stdin_default$
|
10091
|
-
const [name$
|
10138
|
+
const FloatingPanel = withInstall(stdin_default$R);
|
10139
|
+
const [name$H, bem$H] = createNamespace("grid");
|
10092
10140
|
const gridProps = {
|
10093
10141
|
square: Boolean,
|
10094
10142
|
center: truthProp,
|
@@ -10100,9 +10148,9 @@ const gridProps = {
|
|
10100
10148
|
clickable: Boolean,
|
10101
10149
|
columnNum: makeNumericProp(4)
|
10102
10150
|
};
|
10103
|
-
const GRID_KEY = Symbol(name$
|
10104
|
-
var stdin_default$
|
10105
|
-
name: name$
|
10151
|
+
const GRID_KEY = Symbol(name$H);
|
10152
|
+
var stdin_default$Q = defineComponent({
|
10153
|
+
name: name$H,
|
10106
10154
|
props: gridProps,
|
10107
10155
|
setup(props2, {
|
10108
10156
|
slots
|
@@ -10119,15 +10167,15 @@ var stdin_default$P = defineComponent({
|
|
10119
10167
|
"style": {
|
10120
10168
|
paddingLeft: addUnit(props2.gutter)
|
10121
10169
|
},
|
10122
|
-
"class": [bem$
|
10170
|
+
"class": [bem$H(), {
|
10123
10171
|
[BORDER_TOP]: props2.border && !props2.gutter
|
10124
10172
|
}]
|
10125
10173
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
10126
10174
|
};
|
10127
10175
|
}
|
10128
10176
|
});
|
10129
|
-
const Grid = withInstall(stdin_default$
|
10130
|
-
const [name$
|
10177
|
+
const Grid = withInstall(stdin_default$Q);
|
10178
|
+
const [name$G, bem$G] = createNamespace("grid-item");
|
10131
10179
|
const gridItemProps = extend({}, routeProps, {
|
10132
10180
|
dot: Boolean,
|
10133
10181
|
text: String,
|
@@ -10137,8 +10185,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
10137
10185
|
iconPrefix: String,
|
10138
10186
|
badgeProps: Object
|
10139
10187
|
});
|
10140
|
-
var stdin_default$
|
10141
|
-
name: name$
|
10188
|
+
var stdin_default$P = defineComponent({
|
10189
|
+
name: name$G,
|
10142
10190
|
props: gridItemProps,
|
10143
10191
|
setup(props2, {
|
10144
10192
|
slots
|
@@ -10204,7 +10252,7 @@ var stdin_default$O = defineComponent({
|
|
10204
10252
|
"name": props2.icon,
|
10205
10253
|
"size": parent.props.iconSize,
|
10206
10254
|
"badge": props2.badge,
|
10207
|
-
"class": bem$
|
10255
|
+
"class": bem$G("icon"),
|
10208
10256
|
"color": props2.iconColor,
|
10209
10257
|
"badgeProps": props2.badgeProps,
|
10210
10258
|
"classPrefix": props2.iconPrefix
|
@@ -10217,7 +10265,7 @@ var stdin_default$O = defineComponent({
|
|
10217
10265
|
}
|
10218
10266
|
if (props2.text) {
|
10219
10267
|
return createVNode("span", {
|
10220
|
-
"class": bem$
|
10268
|
+
"class": bem$G("text")
|
10221
10269
|
}, [props2.text]);
|
10222
10270
|
}
|
10223
10271
|
};
|
@@ -10237,7 +10285,7 @@ var stdin_default$O = defineComponent({
|
|
10237
10285
|
direction,
|
10238
10286
|
clickable
|
10239
10287
|
} = parent.props;
|
10240
|
-
const classes = [bem$
|
10288
|
+
const classes = [bem$G("content", [direction, {
|
10241
10289
|
center,
|
10242
10290
|
square,
|
10243
10291
|
reverse,
|
@@ -10247,7 +10295,7 @@ var stdin_default$O = defineComponent({
|
|
10247
10295
|
[BORDER]: border
|
10248
10296
|
}];
|
10249
10297
|
return createVNode("div", {
|
10250
|
-
"class": [bem$
|
10298
|
+
"class": [bem$G({
|
10251
10299
|
square
|
10252
10300
|
})],
|
10253
10301
|
"style": rootStyle.value
|
@@ -10261,7 +10309,123 @@ var stdin_default$O = defineComponent({
|
|
10261
10309
|
};
|
10262
10310
|
}
|
10263
10311
|
});
|
10264
|
-
const GridItem = withInstall(stdin_default$
|
10312
|
+
const GridItem = withInstall(stdin_default$P);
|
10313
|
+
const [name$F, bem$F] = createNamespace("highlight");
|
10314
|
+
const highlightProps = {
|
10315
|
+
autoEscape: truthProp,
|
10316
|
+
caseSensitive: Boolean,
|
10317
|
+
highlightClass: String,
|
10318
|
+
highlightTag: makeStringProp("span"),
|
10319
|
+
keywords: makeRequiredProp([String, Array]),
|
10320
|
+
sourceString: makeStringProp(""),
|
10321
|
+
tag: makeStringProp("div"),
|
10322
|
+
unhighlightClass: String,
|
10323
|
+
unhighlightTag: makeStringProp("span")
|
10324
|
+
};
|
10325
|
+
var stdin_default$O = defineComponent({
|
10326
|
+
name: name$F,
|
10327
|
+
props: highlightProps,
|
10328
|
+
setup(props2) {
|
10329
|
+
const highlightChunks = computed(() => {
|
10330
|
+
const {
|
10331
|
+
autoEscape,
|
10332
|
+
caseSensitive,
|
10333
|
+
keywords,
|
10334
|
+
sourceString
|
10335
|
+
} = props2;
|
10336
|
+
const flags = caseSensitive ? "g" : "gi";
|
10337
|
+
const _keywords = Array.isArray(keywords) ? keywords : [keywords];
|
10338
|
+
let chunks = _keywords.filter((keyword) => keyword).reduce((chunks2, keyword) => {
|
10339
|
+
if (autoEscape) {
|
10340
|
+
keyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
10341
|
+
}
|
10342
|
+
const regex = new RegExp(keyword, flags);
|
10343
|
+
let match;
|
10344
|
+
while (match = regex.exec(sourceString)) {
|
10345
|
+
const start = match.index;
|
10346
|
+
const end = regex.lastIndex;
|
10347
|
+
if (start >= end) {
|
10348
|
+
regex.lastIndex++;
|
10349
|
+
continue;
|
10350
|
+
}
|
10351
|
+
chunks2.push({
|
10352
|
+
start,
|
10353
|
+
end,
|
10354
|
+
highlight: true
|
10355
|
+
});
|
10356
|
+
}
|
10357
|
+
return chunks2;
|
10358
|
+
}, []);
|
10359
|
+
chunks = chunks.sort((a, b) => a.start - b.start).reduce((chunks2, currentChunk) => {
|
10360
|
+
const prevChunk = chunks2[chunks2.length - 1];
|
10361
|
+
if (!prevChunk || currentChunk.start > prevChunk.end) {
|
10362
|
+
const unhighlightStart = prevChunk ? prevChunk.end : 0;
|
10363
|
+
const unhighlightEnd = currentChunk.start;
|
10364
|
+
if (unhighlightStart !== unhighlightEnd) {
|
10365
|
+
chunks2.push({
|
10366
|
+
start: unhighlightStart,
|
10367
|
+
end: unhighlightEnd,
|
10368
|
+
highlight: false
|
10369
|
+
});
|
10370
|
+
}
|
10371
|
+
chunks2.push(currentChunk);
|
10372
|
+
} else {
|
10373
|
+
prevChunk.end = Math.max(prevChunk.end, currentChunk.end);
|
10374
|
+
}
|
10375
|
+
return chunks2;
|
10376
|
+
}, []);
|
10377
|
+
const lastChunk = chunks[chunks.length - 1];
|
10378
|
+
if (lastChunk && lastChunk.end < sourceString.length) {
|
10379
|
+
chunks.push({
|
10380
|
+
start: lastChunk.end,
|
10381
|
+
end: sourceString.length,
|
10382
|
+
highlight: false
|
10383
|
+
});
|
10384
|
+
}
|
10385
|
+
return chunks;
|
10386
|
+
});
|
10387
|
+
const renderContent = () => {
|
10388
|
+
const {
|
10389
|
+
sourceString,
|
10390
|
+
highlightClass,
|
10391
|
+
unhighlightClass,
|
10392
|
+
highlightTag,
|
10393
|
+
unhighlightTag
|
10394
|
+
} = props2;
|
10395
|
+
return highlightChunks.value.map((chunk) => {
|
10396
|
+
const {
|
10397
|
+
start,
|
10398
|
+
end,
|
10399
|
+
highlight
|
10400
|
+
} = chunk;
|
10401
|
+
const text = sourceString.slice(start, end);
|
10402
|
+
if (highlight) {
|
10403
|
+
return createVNode(highlightTag, {
|
10404
|
+
"class": [bem$F("tag"), highlightClass]
|
10405
|
+
}, {
|
10406
|
+
default: () => [text]
|
10407
|
+
});
|
10408
|
+
}
|
10409
|
+
return createVNode(unhighlightTag, {
|
10410
|
+
"class": unhighlightClass
|
10411
|
+
}, {
|
10412
|
+
default: () => [text]
|
10413
|
+
});
|
10414
|
+
});
|
10415
|
+
};
|
10416
|
+
return () => {
|
10417
|
+
const {
|
10418
|
+
tag
|
10419
|
+
} = props2;
|
10420
|
+
return createVNode(tag, {
|
10421
|
+
"class": bem$F()
|
10422
|
+
}, {
|
10423
|
+
default: () => [renderContent()]
|
10424
|
+
});
|
10425
|
+
};
|
10426
|
+
}
|
10427
|
+
});
|
10428
|
+
const Highlight = withInstall(stdin_default$O);
|
10265
10429
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
10266
10430
|
const getCenter = (touches) => ({
|
10267
10431
|
x: (touches[0].clientX + touches[1].clientX) / 2,
|
@@ -10269,19 +10433,20 @@ const getCenter = (touches) => ({
|
|
10269
10433
|
});
|
10270
10434
|
const bem$E = createNamespace("image-preview")[1];
|
10271
10435
|
const longImageRatio = 2.6;
|
10436
|
+
const imagePreviewItemProps = {
|
10437
|
+
src: String,
|
10438
|
+
show: Boolean,
|
10439
|
+
active: Number,
|
10440
|
+
minZoom: makeRequiredProp(numericProp),
|
10441
|
+
maxZoom: makeRequiredProp(numericProp),
|
10442
|
+
rootWidth: makeRequiredProp(Number),
|
10443
|
+
rootHeight: makeRequiredProp(Number),
|
10444
|
+
disableZoom: Boolean,
|
10445
|
+
doubleScale: Boolean,
|
10446
|
+
closeOnClickOverlay: Boolean
|
10447
|
+
};
|
10272
10448
|
var stdin_default$N = defineComponent({
|
10273
|
-
props:
|
10274
|
-
src: String,
|
10275
|
-
show: Boolean,
|
10276
|
-
active: Number,
|
10277
|
-
minZoom: makeRequiredProp(numericProp),
|
10278
|
-
maxZoom: makeRequiredProp(numericProp),
|
10279
|
-
rootWidth: makeRequiredProp(Number),
|
10280
|
-
rootHeight: makeRequiredProp(Number),
|
10281
|
-
disableZoom: Boolean,
|
10282
|
-
doubleScale: Boolean,
|
10283
|
-
closeOnClickOverlay: Boolean
|
10284
|
-
},
|
10449
|
+
props: imagePreviewItemProps,
|
10285
10450
|
emits: ["scale", "close", "longPress"],
|
10286
10451
|
setup(props2, {
|
10287
10452
|
emit,
|
@@ -10547,6 +10712,9 @@ var stdin_default$N = defineComponent({
|
|
10547
10712
|
return (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10548
10713
|
})
|
10549
10714
|
});
|
10715
|
+
useExpose({
|
10716
|
+
resetScale
|
10717
|
+
});
|
10550
10718
|
return () => {
|
10551
10719
|
const imageSlots = {
|
10552
10720
|
loading: () => createVNode(Loading, {
|
@@ -10613,6 +10781,7 @@ var stdin_default$M = defineComponent({
|
|
10613
10781
|
slots
|
10614
10782
|
}) {
|
10615
10783
|
const swipeRef = ref();
|
10784
|
+
const activedPreviewItemRef = ref();
|
10616
10785
|
const state = reactive({
|
10617
10786
|
active: 0,
|
10618
10787
|
rootWidth: 0,
|
@@ -10677,6 +10846,11 @@ var stdin_default$M = defineComponent({
|
|
10677
10846
|
"onDragStart": onDragStart
|
10678
10847
|
}, {
|
10679
10848
|
default: () => [props2.images.map((image, index) => createVNode(stdin_default$N, {
|
10849
|
+
"ref": (item) => {
|
10850
|
+
if (index === state.active) {
|
10851
|
+
activedPreviewItemRef.value = item;
|
10852
|
+
}
|
10853
|
+
},
|
10680
10854
|
"src": image,
|
10681
10855
|
"show": props2.show,
|
10682
10856
|
"active": state.active,
|
@@ -10712,6 +10886,10 @@ var stdin_default$M = defineComponent({
|
|
10712
10886
|
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
10713
10887
|
};
|
10714
10888
|
useExpose({
|
10889
|
+
resetScale: () => {
|
10890
|
+
var _a;
|
10891
|
+
(_a = activedPreviewItemRef.value) == null ? void 0 : _a.resetScale();
|
10892
|
+
},
|
10715
10893
|
swipeTo
|
10716
10894
|
});
|
10717
10895
|
onMounted(resize);
|
@@ -12117,7 +12295,7 @@ var stdin_default$C = defineComponent({
|
|
12117
12295
|
}
|
12118
12296
|
});
|
12119
12297
|
const PasswordInput = withInstall(stdin_default$C);
|
12120
|
-
const PickerGroup = withInstall(stdin_default$
|
12298
|
+
const PickerGroup = withInstall(stdin_default$1A);
|
12121
12299
|
const [name$t, bem$s] = createNamespace("popover");
|
12122
12300
|
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
12123
12301
|
const popoverProps = {
|
@@ -12905,7 +13083,7 @@ var stdin_default$w = defineComponent({
|
|
12905
13083
|
}
|
12906
13084
|
});
|
12907
13085
|
const RollingText = withInstall(stdin_default$w);
|
12908
|
-
const Row = withInstall(stdin_default$
|
13086
|
+
const Row = withInstall(stdin_default$17);
|
12909
13087
|
const [name$n, bem$m, t$4] = createNamespace("search");
|
12910
13088
|
const searchProps = extend({}, fieldSharedProps, {
|
12911
13089
|
label: String,
|
@@ -14868,8 +15046,11 @@ var stdin_default$9 = defineComponent({
|
|
14868
15046
|
}
|
14869
15047
|
document.body.removeChild(container);
|
14870
15048
|
};
|
15049
|
+
const toggle = (isExpanded = !expanded.value) => {
|
15050
|
+
expanded.value = isExpanded;
|
15051
|
+
};
|
14871
15052
|
const onClickAction = (event) => {
|
14872
|
-
|
15053
|
+
toggle();
|
14873
15054
|
emit("clickAction", event);
|
14874
15055
|
};
|
14875
15056
|
const renderAction = () => createVNode("span", {
|
@@ -14877,8 +15058,10 @@ var stdin_default$9 = defineComponent({
|
|
14877
15058
|
"onClick": onClickAction
|
14878
15059
|
}, [actionText.value]);
|
14879
15060
|
onMounted(calcEllipsised);
|
14880
|
-
watch(() => [props2.content, props2.rows, props2.position], calcEllipsised);
|
14881
|
-
|
15061
|
+
watch([windowWidth, () => [props2.content, props2.rows, props2.position]], calcEllipsised);
|
15062
|
+
useExpose({
|
15063
|
+
toggle
|
15064
|
+
});
|
14882
15065
|
return () => createVNode("div", {
|
14883
15066
|
"ref": root,
|
14884
15067
|
"class": bem$3()
|
@@ -16545,7 +16728,7 @@ const Lazyload = {
|
|
16545
16728
|
});
|
16546
16729
|
}
|
16547
16730
|
};
|
16548
|
-
const version = "4.
|
16731
|
+
const version = "4.8.1";
|
16549
16732
|
function install(app) {
|
16550
16733
|
const components = [
|
16551
16734
|
ActionBar,
|
@@ -16590,6 +16773,7 @@ function install(app) {
|
|
16590
16773
|
Form,
|
16591
16774
|
Grid,
|
16592
16775
|
GridItem,
|
16776
|
+
Highlight,
|
16593
16777
|
Icon,
|
16594
16778
|
Image$1,
|
16595
16779
|
ImagePreview,
|
@@ -16705,6 +16889,7 @@ export {
|
|
16705
16889
|
Form,
|
16706
16890
|
Grid,
|
16707
16891
|
GridItem,
|
16892
|
+
Highlight,
|
16708
16893
|
Icon,
|
16709
16894
|
Image$1 as Image,
|
16710
16895
|
ImagePreview,
|
@@ -16810,6 +16995,7 @@ export {
|
|
16810
16995
|
formProps,
|
16811
16996
|
gridItemProps,
|
16812
16997
|
gridProps,
|
16998
|
+
highlightProps,
|
16813
16999
|
iconProps,
|
16814
17000
|
imagePreviewProps,
|
16815
17001
|
imageProps,
|