vant 4.7.2 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/es/address-edit/AddressEdit.mjs +1 -1
- package/es/calendar/Calendar.mjs +20 -17
- package/es/cell/Cell.d.ts +17 -5
- package/es/cell/Cell.mjs +5 -2
- package/es/cell/index.d.ts +9 -3
- package/es/checkbox/Checker.mjs +7 -1
- package/es/col/Col.mjs +11 -3
- package/es/collapse-item/CollapseItem.d.ts +13 -4
- package/es/collapse-item/index.d.ts +9 -3
- package/es/config-provider/types.d.ts +1 -1
- package/es/field/Field.d.ts +30 -21
- package/es/field/Field.mjs +11 -3
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +18 -12
- package/es/field/types.d.ts +1 -1
- package/es/form/Form.d.ts +3 -0
- package/es/form/Form.mjs +1 -0
- package/es/form/index.d.ts +2 -0
- 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/locale/lang/ar-SA.d.ts +63 -0
- package/es/locale/lang/ar-SA.mjs +65 -0
- package/es/picker-group/PickerGroup.mjs +3 -3
- package/es/progress/types.d.ts +1 -4
- 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/search/Search.d.ts +13 -13
- package/es/search/Search.mjs +3 -1
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +9 -9
- package/es/signature/Signature.mjs +16 -3
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +6 -0
- package/es/tabs/Tabs.d.ts +13 -0
- package/es/tabs/Tabs.mjs +3 -2
- package/es/tabs/index.d.ts +9 -0
- package/es/text-ellipsis/index.css +1 -1
- package/lib/address-edit/AddressEdit.js +1 -1
- package/lib/calendar/Calendar.js +20 -17
- package/lib/cell/Cell.d.ts +17 -5
- package/lib/cell/Cell.js +5 -2
- package/lib/cell/index.d.ts +9 -3
- package/lib/checkbox/Checker.js +7 -1
- package/lib/col/Col.js +10 -2
- package/lib/collapse-item/CollapseItem.d.ts +13 -4
- package/lib/collapse-item/index.d.ts +9 -3
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/field/Field.d.ts +30 -21
- package/lib/field/Field.js +11 -3
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +18 -12
- package/lib/field/types.d.ts +1 -1
- package/lib/form/Form.d.ts +3 -0
- package/lib/form/Form.js +1 -0
- package/lib/form/index.d.ts +2 -0
- 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/locale/lang/ar-SA.d.ts +63 -0
- package/lib/locale/lang/ar-SA.js +84 -0
- package/lib/picker-group/PickerGroup.js +2 -2
- package/lib/progress/types.d.ts +1 -4
- 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/search/Search.d.ts +13 -13
- package/lib/search/Search.js +3 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +9 -9
- package/lib/signature/Signature.js +14 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +6 -0
- package/lib/tabs/Tabs.d.ts +13 -0
- package/lib/tabs/Tabs.js +3 -2
- package/lib/tabs/index.d.ts +9 -0
- package/lib/text-ellipsis/index.css +1 -1
- package/lib/vant.cjs.js +813 -605
- package/lib/vant.es.js +814 -606
- package/lib/vant.js +813 -605
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
package/lib/vant.cjs.js
CHANGED
@@ -241,7 +241,7 @@ function deepAssign(to, from) {
|
|
241
241
|
});
|
242
242
|
return to;
|
243
243
|
}
|
244
|
-
var stdin_default$
|
244
|
+
var stdin_default$1W = {
|
245
245
|
name: "姓名",
|
246
246
|
tel: "电话",
|
247
247
|
save: "保存",
|
@@ -305,7 +305,7 @@ var stdin_default$1V = {
|
|
305
305
|
};
|
306
306
|
const lang = vue.ref("zh-CN");
|
307
307
|
const messages = vue.reactive({
|
308
|
-
"zh-CN": stdin_default$
|
308
|
+
"zh-CN": stdin_default$1W
|
309
309
|
});
|
310
310
|
const Locale = {
|
311
311
|
messages() {
|
@@ -320,11 +320,11 @@ const Locale = {
|
|
320
320
|
}
|
321
321
|
};
|
322
322
|
const useCurrentLang = () => lang;
|
323
|
-
var stdin_default$
|
323
|
+
var stdin_default$1V = Locale;
|
324
324
|
function createTranslate(name2) {
|
325
325
|
const prefix = camelize(name2) + ".";
|
326
326
|
return (path, ...args) => {
|
327
|
-
const messages2 = stdin_default$
|
327
|
+
const messages2 = stdin_default$1V.messages();
|
328
328
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
329
329
|
return isFunction(message) ? message(...args) : message;
|
330
330
|
};
|
@@ -454,20 +454,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
454
454
|
}
|
455
455
|
}, [renderContent()]);
|
456
456
|
}
|
457
|
-
const [name$
|
458
|
-
const ACTION_BAR_KEY = Symbol(name$
|
457
|
+
const [name$1K, bem$1F] = createNamespace("action-bar");
|
458
|
+
const ACTION_BAR_KEY = Symbol(name$1K);
|
459
459
|
const actionBarProps = {
|
460
460
|
placeholder: Boolean,
|
461
461
|
safeAreaInsetBottom: truthProp
|
462
462
|
};
|
463
|
-
var stdin_default$
|
464
|
-
name: name$
|
463
|
+
var stdin_default$1U = vue.defineComponent({
|
464
|
+
name: name$1K,
|
465
465
|
props: actionBarProps,
|
466
466
|
setup(props2, {
|
467
467
|
slots
|
468
468
|
}) {
|
469
469
|
const root = vue.ref();
|
470
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
470
|
+
const renderPlaceholder = usePlaceholder(root, bem$1F);
|
471
471
|
const {
|
472
472
|
linkChildren
|
473
473
|
} = use.useChildren(ACTION_BAR_KEY);
|
@@ -476,7 +476,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
476
476
|
var _a;
|
477
477
|
return vue.createVNode("div", {
|
478
478
|
"ref": root,
|
479
|
-
"class": [bem$
|
479
|
+
"class": [bem$1F(), {
|
480
480
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
481
481
|
}]
|
482
482
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -489,7 +489,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
489
489
|
};
|
490
490
|
}
|
491
491
|
});
|
492
|
-
const ActionBar = withInstall(stdin_default$
|
492
|
+
const ActionBar = withInstall(stdin_default$1U);
|
493
493
|
function useExpose(apis) {
|
494
494
|
const instance2 = vue.getCurrentInstance();
|
495
495
|
if (instance2) {
|
@@ -517,7 +517,7 @@ function useRoute() {
|
|
517
517
|
const vm = vue.getCurrentInstance().proxy;
|
518
518
|
return () => route(vm);
|
519
519
|
}
|
520
|
-
const [name$
|
520
|
+
const [name$1J, bem$1E] = createNamespace("badge");
|
521
521
|
const badgeProps = {
|
522
522
|
dot: Boolean,
|
523
523
|
max: numericProp,
|
@@ -528,8 +528,8 @@ const badgeProps = {
|
|
528
528
|
showZero: truthProp,
|
529
529
|
position: makeStringProp("top-right")
|
530
530
|
};
|
531
|
-
var stdin_default$
|
532
|
-
name: name$
|
531
|
+
var stdin_default$1T = vue.defineComponent({
|
532
|
+
name: name$1J,
|
533
533
|
props: badgeProps,
|
534
534
|
setup(props2, {
|
535
535
|
slots
|
@@ -592,7 +592,7 @@ var stdin_default$1S = vue.defineComponent({
|
|
592
592
|
const renderBadge = () => {
|
593
593
|
if (hasContent() || props2.dot) {
|
594
594
|
return vue.createVNode("div", {
|
595
|
-
"class": bem$
|
595
|
+
"class": bem$1E([props2.position, {
|
596
596
|
dot: props2.dot,
|
597
597
|
fixed: !!slots.default
|
598
598
|
}]),
|
@@ -606,7 +606,7 @@ var stdin_default$1S = vue.defineComponent({
|
|
606
606
|
tag
|
607
607
|
} = props2;
|
608
608
|
return vue.createVNode(tag, {
|
609
|
-
"class": bem$
|
609
|
+
"class": bem$1E("wrapper")
|
610
610
|
}, {
|
611
611
|
default: () => [slots.default(), renderBadge()]
|
612
612
|
});
|
@@ -615,14 +615,14 @@ var stdin_default$1S = vue.defineComponent({
|
|
615
615
|
};
|
616
616
|
}
|
617
617
|
});
|
618
|
-
const Badge = withInstall(stdin_default$
|
618
|
+
const Badge = withInstall(stdin_default$1T);
|
619
619
|
let globalZIndex = 2e3;
|
620
620
|
const useGlobalZIndex = () => ++globalZIndex;
|
621
621
|
const setGlobalZIndex = (val) => {
|
622
622
|
globalZIndex = val;
|
623
623
|
};
|
624
|
-
const [name$
|
625
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
624
|
+
const [name$1I, bem$1D] = createNamespace("config-provider");
|
625
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1I);
|
626
626
|
const configProviderProps = {
|
627
627
|
tag: makeStringProp("div"),
|
628
628
|
theme: makeStringProp("light"),
|
@@ -656,8 +656,8 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
|
|
656
656
|
}
|
657
657
|
});
|
658
658
|
}
|
659
|
-
var stdin_default$
|
660
|
-
name: name$
|
659
|
+
var stdin_default$1S = vue.defineComponent({
|
660
|
+
name: name$1I,
|
661
661
|
props: configProviderProps,
|
662
662
|
setup(props2, {
|
663
663
|
slots
|
@@ -705,7 +705,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
705
705
|
}
|
706
706
|
});
|
707
707
|
return () => vue.createVNode(props2.tag, {
|
708
|
-
"class": bem$
|
708
|
+
"class": bem$1D(),
|
709
709
|
"style": props2.themeVarsScope === "local" ? style.value : void 0
|
710
710
|
}, {
|
711
711
|
default: () => {
|
@@ -715,7 +715,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
715
715
|
});
|
716
716
|
}
|
717
717
|
});
|
718
|
-
const [name$
|
718
|
+
const [name$1H, bem$1C] = createNamespace("icon");
|
719
719
|
const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
|
720
720
|
const iconProps = {
|
721
721
|
dot: Boolean,
|
@@ -727,14 +727,14 @@ const iconProps = {
|
|
727
727
|
badgeProps: Object,
|
728
728
|
classPrefix: String
|
729
729
|
};
|
730
|
-
var stdin_default$
|
731
|
-
name: name$
|
730
|
+
var stdin_default$1R = vue.defineComponent({
|
731
|
+
name: name$1H,
|
732
732
|
props: iconProps,
|
733
733
|
setup(props2, {
|
734
734
|
slots
|
735
735
|
}) {
|
736
736
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
737
|
-
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
737
|
+
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1C());
|
738
738
|
return () => {
|
739
739
|
const {
|
740
740
|
tag,
|
@@ -758,7 +758,7 @@ var stdin_default$1Q = vue.defineComponent({
|
|
758
758
|
default: () => {
|
759
759
|
var _a;
|
760
760
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
761
|
-
"class": bem$
|
761
|
+
"class": bem$1C("image"),
|
762
762
|
"src": name2
|
763
763
|
}, null)];
|
764
764
|
}
|
@@ -766,14 +766,14 @@ var stdin_default$1Q = vue.defineComponent({
|
|
766
766
|
};
|
767
767
|
}
|
768
768
|
});
|
769
|
-
const Icon = withInstall(stdin_default$
|
770
|
-
var stdin_default$
|
771
|
-
const [name$
|
769
|
+
const Icon = withInstall(stdin_default$1R);
|
770
|
+
var stdin_default$1Q = Icon;
|
771
|
+
const [name$1G, bem$1B] = createNamespace("loading");
|
772
772
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
773
|
-
"class": bem$
|
773
|
+
"class": bem$1B("line", String(index + 1))
|
774
774
|
}, null));
|
775
775
|
const CircularIcon = vue.createVNode("svg", {
|
776
|
-
"class": bem$
|
776
|
+
"class": bem$1B("circular"),
|
777
777
|
"viewBox": "25 25 50 50"
|
778
778
|
}, [vue.createVNode("circle", {
|
779
779
|
"cx": "50",
|
@@ -789,8 +789,8 @@ const loadingProps = {
|
|
789
789
|
textSize: numericProp,
|
790
790
|
textColor: String
|
791
791
|
};
|
792
|
-
var stdin_default$
|
793
|
-
name: name$
|
792
|
+
var stdin_default$1P = vue.defineComponent({
|
793
|
+
name: name$1G,
|
794
794
|
props: loadingProps,
|
795
795
|
setup(props2, {
|
796
796
|
slots
|
@@ -801,7 +801,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
801
801
|
const renderIcon = () => {
|
802
802
|
const DefaultIcon = props2.type === "spinner" ? SpinIcon : CircularIcon;
|
803
803
|
return vue.createVNode("span", {
|
804
|
-
"class": bem$
|
804
|
+
"class": bem$1B("spinner", props2.type),
|
805
805
|
"style": spinnerStyle.value
|
806
806
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
807
807
|
};
|
@@ -809,7 +809,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
809
809
|
var _a;
|
810
810
|
if (slots.default) {
|
811
811
|
return vue.createVNode("span", {
|
812
|
-
"class": bem$
|
812
|
+
"class": bem$1B("text"),
|
813
813
|
"style": {
|
814
814
|
fontSize: addUnit(props2.textSize),
|
815
815
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
@@ -823,7 +823,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
823
823
|
vertical
|
824
824
|
} = props2;
|
825
825
|
return vue.createVNode("div", {
|
826
|
-
"class": bem$
|
826
|
+
"class": bem$1B([type, {
|
827
827
|
vertical
|
828
828
|
}]),
|
829
829
|
"aria-live": "polite",
|
@@ -832,8 +832,8 @@ var stdin_default$1O = vue.defineComponent({
|
|
832
832
|
};
|
833
833
|
}
|
834
834
|
});
|
835
|
-
const Loading = withInstall(stdin_default$
|
836
|
-
const [name$
|
835
|
+
const Loading = withInstall(stdin_default$1P);
|
836
|
+
const [name$1F, bem$1A] = createNamespace("button");
|
837
837
|
const buttonProps = extend({}, routeProps, {
|
838
838
|
tag: makeStringProp("button"),
|
839
839
|
text: String,
|
@@ -855,8 +855,8 @@ const buttonProps = extend({}, routeProps, {
|
|
855
855
|
loadingType: String,
|
856
856
|
iconPosition: makeStringProp("left")
|
857
857
|
});
|
858
|
-
var stdin_default$
|
859
|
-
name: name$
|
858
|
+
var stdin_default$1O = vue.defineComponent({
|
859
|
+
name: name$1F,
|
860
860
|
props: buttonProps,
|
861
861
|
emits: ["click"],
|
862
862
|
setup(props2, {
|
@@ -871,7 +871,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
871
871
|
return vue.createVNode(Loading, {
|
872
872
|
"size": props2.loadingSize,
|
873
873
|
"type": props2.loadingType,
|
874
|
-
"class": bem$
|
874
|
+
"class": bem$1A("loading")
|
875
875
|
}, null);
|
876
876
|
};
|
877
877
|
const renderIcon = () => {
|
@@ -880,13 +880,13 @@ var stdin_default$1N = vue.defineComponent({
|
|
880
880
|
}
|
881
881
|
if (slots.icon) {
|
882
882
|
return vue.createVNode("div", {
|
883
|
-
"class": bem$
|
883
|
+
"class": bem$1A("icon")
|
884
884
|
}, [slots.icon()]);
|
885
885
|
}
|
886
886
|
if (props2.icon) {
|
887
887
|
return vue.createVNode(Icon, {
|
888
888
|
"name": props2.icon,
|
889
|
-
"class": bem$
|
889
|
+
"class": bem$1A("icon"),
|
890
890
|
"classPrefix": props2.iconPrefix
|
891
891
|
}, null);
|
892
892
|
}
|
@@ -900,7 +900,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
900
900
|
}
|
901
901
|
if (text) {
|
902
902
|
return vue.createVNode("span", {
|
903
|
-
"class": bem$
|
903
|
+
"class": bem$1A("text")
|
904
904
|
}, [text]);
|
905
905
|
}
|
906
906
|
};
|
@@ -947,7 +947,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
947
947
|
nativeType,
|
948
948
|
iconPosition
|
949
949
|
} = props2;
|
950
|
-
const classes = [bem$
|
950
|
+
const classes = [bem$1A([type, size, {
|
951
951
|
plain,
|
952
952
|
block,
|
953
953
|
round,
|
@@ -966,14 +966,14 @@ var stdin_default$1N = vue.defineComponent({
|
|
966
966
|
"onClick": onClick
|
967
967
|
}, {
|
968
968
|
default: () => [vue.createVNode("div", {
|
969
|
-
"class": bem$
|
969
|
+
"class": bem$1A("content")
|
970
970
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
971
971
|
});
|
972
972
|
};
|
973
973
|
}
|
974
974
|
});
|
975
|
-
const Button = withInstall(stdin_default$
|
976
|
-
const [name$
|
975
|
+
const Button = withInstall(stdin_default$1O);
|
976
|
+
const [name$1E, bem$1z] = createNamespace("action-bar-button");
|
977
977
|
const actionBarButtonProps = extend({}, routeProps, {
|
978
978
|
type: String,
|
979
979
|
text: String,
|
@@ -982,8 +982,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
982
982
|
loading: Boolean,
|
983
983
|
disabled: Boolean
|
984
984
|
});
|
985
|
-
var stdin_default$
|
986
|
-
name: name$
|
985
|
+
var stdin_default$1N = vue.defineComponent({
|
986
|
+
name: name$1E,
|
987
987
|
props: actionBarButtonProps,
|
988
988
|
setup(props2, {
|
989
989
|
slots
|
@@ -1018,7 +1018,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
1018
1018
|
disabled
|
1019
1019
|
} = props2;
|
1020
1020
|
return vue.createVNode(Button, {
|
1021
|
-
"class": bem$
|
1021
|
+
"class": bem$1z([type, {
|
1022
1022
|
last: isLast.value,
|
1023
1023
|
first: isFirst.value
|
1024
1024
|
}]),
|
@@ -1035,8 +1035,8 @@ var stdin_default$1M = vue.defineComponent({
|
|
1035
1035
|
};
|
1036
1036
|
}
|
1037
1037
|
});
|
1038
|
-
const ActionBarButton = withInstall(stdin_default$
|
1039
|
-
const [name$
|
1038
|
+
const ActionBarButton = withInstall(stdin_default$1N);
|
1039
|
+
const [name$1D, bem$1y] = createNamespace("action-bar-icon");
|
1040
1040
|
const actionBarIconProps = extend({}, routeProps, {
|
1041
1041
|
dot: Boolean,
|
1042
1042
|
text: String,
|
@@ -1047,8 +1047,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
1047
1047
|
badgeProps: Object,
|
1048
1048
|
iconPrefix: String
|
1049
1049
|
});
|
1050
|
-
var stdin_default$
|
1051
|
-
name: name$
|
1050
|
+
var stdin_default$1M = vue.defineComponent({
|
1051
|
+
name: name$1D,
|
1052
1052
|
props: actionBarIconProps,
|
1053
1053
|
setup(props2, {
|
1054
1054
|
slots
|
@@ -1068,7 +1068,7 @@ var stdin_default$1L = vue.defineComponent({
|
|
1068
1068
|
if (slots.icon) {
|
1069
1069
|
return vue.createVNode(Badge, vue.mergeProps({
|
1070
1070
|
"dot": dot,
|
1071
|
-
"class": bem$
|
1071
|
+
"class": bem$1y("icon"),
|
1072
1072
|
"content": badge
|
1073
1073
|
}, badgeProps2), {
|
1074
1074
|
default: slots.icon
|
@@ -1080,20 +1080,20 @@ var stdin_default$1L = vue.defineComponent({
|
|
1080
1080
|
"name": icon,
|
1081
1081
|
"badge": badge,
|
1082
1082
|
"color": color,
|
1083
|
-
"class": [bem$
|
1083
|
+
"class": [bem$1y("icon"), iconClass],
|
1084
1084
|
"badgeProps": badgeProps2,
|
1085
1085
|
"classPrefix": iconPrefix
|
1086
1086
|
}, null);
|
1087
1087
|
};
|
1088
1088
|
return () => vue.createVNode("div", {
|
1089
1089
|
"role": "button",
|
1090
|
-
"class": bem$
|
1090
|
+
"class": bem$1y(),
|
1091
1091
|
"tabindex": 0,
|
1092
1092
|
"onClick": route2
|
1093
1093
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
1094
1094
|
}
|
1095
1095
|
});
|
1096
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1096
|
+
const ActionBarIcon = withInstall(stdin_default$1M);
|
1097
1097
|
const popupSharedProps = {
|
1098
1098
|
// whether to show popup
|
1099
1099
|
show: Boolean,
|
@@ -1255,7 +1255,7 @@ const useScopeId = () => {
|
|
1255
1255
|
const { scopeId } = ((_a = vue.getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
|
1256
1256
|
return scopeId ? { [scopeId]: "" } : null;
|
1257
1257
|
};
|
1258
|
-
const [name$
|
1258
|
+
const [name$1C, bem$1x] = createNamespace("overlay");
|
1259
1259
|
const overlayProps = {
|
1260
1260
|
show: Boolean,
|
1261
1261
|
zIndex: numericProp,
|
@@ -1265,8 +1265,8 @@ const overlayProps = {
|
|
1265
1265
|
lazyRender: truthProp,
|
1266
1266
|
customStyle: Object
|
1267
1267
|
};
|
1268
|
-
var stdin_default$
|
1269
|
-
name: name$
|
1268
|
+
var stdin_default$1L = vue.defineComponent({
|
1269
|
+
name: name$1C,
|
1270
1270
|
props: overlayProps,
|
1271
1271
|
setup(props2, {
|
1272
1272
|
slots
|
@@ -1287,7 +1287,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
1287
1287
|
return vue.withDirectives(vue.createVNode("div", {
|
1288
1288
|
"ref": root,
|
1289
1289
|
"style": style,
|
1290
|
-
"class": [bem$
|
1290
|
+
"class": [bem$1x(), props2.className]
|
1291
1291
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props2.show]]);
|
1292
1292
|
});
|
1293
1293
|
use.useEventListener("touchmove", onTouchMove, {
|
@@ -1301,7 +1301,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
1301
1301
|
});
|
1302
1302
|
}
|
1303
1303
|
});
|
1304
|
-
const Overlay = withInstall(stdin_default$
|
1304
|
+
const Overlay = withInstall(stdin_default$1L);
|
1305
1305
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1306
1306
|
round: Boolean,
|
1307
1307
|
position: makeStringProp("center"),
|
@@ -1314,9 +1314,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1314
1314
|
safeAreaInsetTop: Boolean,
|
1315
1315
|
safeAreaInsetBottom: Boolean
|
1316
1316
|
});
|
1317
|
-
const [name$
|
1318
|
-
var stdin_default$
|
1319
|
-
name: name$
|
1317
|
+
const [name$1B, bem$1w] = createNamespace("popup");
|
1318
|
+
var stdin_default$1K = vue.defineComponent({
|
1319
|
+
name: name$1B,
|
1320
1320
|
inheritAttrs: false,
|
1321
1321
|
props: popupProps$2,
|
1322
1322
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1391,7 +1391,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
1391
1391
|
"role": "button",
|
1392
1392
|
"tabindex": 0,
|
1393
1393
|
"name": props2.closeIcon,
|
1394
|
-
"class": [bem$
|
1394
|
+
"class": [bem$1w("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
1395
1395
|
"classPrefix": props2.iconPrefix,
|
1396
1396
|
"onClick": onClickCloseIcon
|
1397
1397
|
}, null);
|
@@ -1420,7 +1420,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
1420
1420
|
"style": style.value,
|
1421
1421
|
"role": "dialog",
|
1422
1422
|
"tabindex": 0,
|
1423
|
-
"class": [bem$
|
1423
|
+
"class": [bem$1w({
|
1424
1424
|
round,
|
1425
1425
|
[position]: position
|
1426
1426
|
}), {
|
@@ -1501,8 +1501,8 @@ var stdin_default$1J = vue.defineComponent({
|
|
1501
1501
|
};
|
1502
1502
|
}
|
1503
1503
|
});
|
1504
|
-
const Popup = withInstall(stdin_default$
|
1505
|
-
const [name$
|
1504
|
+
const Popup = withInstall(stdin_default$1K);
|
1505
|
+
const [name$1A, bem$1v] = createNamespace("action-sheet");
|
1506
1506
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1507
1507
|
title: String,
|
1508
1508
|
round: truthProp,
|
@@ -1516,8 +1516,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1516
1516
|
safeAreaInsetBottom: truthProp
|
1517
1517
|
});
|
1518
1518
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1519
|
-
var stdin_default$
|
1520
|
-
name: name$
|
1519
|
+
var stdin_default$1J = vue.defineComponent({
|
1520
|
+
name: name$1A,
|
1521
1521
|
props: actionSheetProps,
|
1522
1522
|
emits: ["select", "cancel", "update:show"],
|
1523
1523
|
setup(props2, {
|
@@ -1532,10 +1532,10 @@ var stdin_default$1I = vue.defineComponent({
|
|
1532
1532
|
const renderHeader = () => {
|
1533
1533
|
if (props2.title) {
|
1534
1534
|
return vue.createVNode("div", {
|
1535
|
-
"class": bem$
|
1535
|
+
"class": bem$1v("header")
|
1536
1536
|
}, [props2.title, props2.closeable && vue.createVNode(Icon, {
|
1537
1537
|
"name": props2.closeIcon,
|
1538
|
-
"class": [bem$
|
1538
|
+
"class": [bem$1v("close"), HAPTICS_FEEDBACK],
|
1539
1539
|
"onClick": onCancel
|
1540
1540
|
}, null)]);
|
1541
1541
|
}
|
@@ -1543,10 +1543,10 @@ var stdin_default$1I = vue.defineComponent({
|
|
1543
1543
|
const renderCancel = () => {
|
1544
1544
|
if (slots.cancel || props2.cancelText) {
|
1545
1545
|
return [vue.createVNode("div", {
|
1546
|
-
"class": bem$
|
1546
|
+
"class": bem$1v("gap")
|
1547
1547
|
}, null), vue.createVNode("button", {
|
1548
1548
|
"type": "button",
|
1549
|
-
"class": bem$
|
1549
|
+
"class": bem$1v("cancel"),
|
1550
1550
|
"onClick": onCancel
|
1551
1551
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1552
1552
|
}
|
@@ -1554,7 +1554,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
1554
1554
|
const renderActionContent = (action, index) => {
|
1555
1555
|
if (action.loading) {
|
1556
1556
|
return vue.createVNode(Loading, {
|
1557
|
-
"class": bem$
|
1557
|
+
"class": bem$1v("loading-icon")
|
1558
1558
|
}, null);
|
1559
1559
|
}
|
1560
1560
|
if (slots.action) {
|
@@ -1564,9 +1564,9 @@ var stdin_default$1I = vue.defineComponent({
|
|
1564
1564
|
});
|
1565
1565
|
}
|
1566
1566
|
return [vue.createVNode("span", {
|
1567
|
-
"class": bem$
|
1567
|
+
"class": bem$1v("name")
|
1568
1568
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
1569
|
-
"class": bem$
|
1569
|
+
"class": bem$1v("subname")
|
1570
1570
|
}, [action.subname])];
|
1571
1571
|
};
|
1572
1572
|
const renderAction = (action, index) => {
|
@@ -1594,7 +1594,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
1594
1594
|
"style": {
|
1595
1595
|
color
|
1596
1596
|
},
|
1597
|
-
"class": [bem$
|
1597
|
+
"class": [bem$1v("item", {
|
1598
1598
|
loading,
|
1599
1599
|
disabled
|
1600
1600
|
}), className],
|
@@ -1605,26 +1605,26 @@ var stdin_default$1I = vue.defineComponent({
|
|
1605
1605
|
if (props2.description || slots.description) {
|
1606
1606
|
const content = slots.description ? slots.description() : props2.description;
|
1607
1607
|
return vue.createVNode("div", {
|
1608
|
-
"class": bem$
|
1608
|
+
"class": bem$1v("description")
|
1609
1609
|
}, [content]);
|
1610
1610
|
}
|
1611
1611
|
};
|
1612
1612
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
1613
|
-
"class": bem$
|
1613
|
+
"class": bem$1v(),
|
1614
1614
|
"position": "bottom",
|
1615
1615
|
"onUpdate:show": updateShow
|
1616
1616
|
}, pick(props2, popupInheritKeys$2)), {
|
1617
1617
|
default: () => {
|
1618
1618
|
var _a;
|
1619
1619
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1620
|
-
"class": bem$
|
1620
|
+
"class": bem$1v("content")
|
1621
1621
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1622
1622
|
}
|
1623
1623
|
});
|
1624
1624
|
}
|
1625
1625
|
});
|
1626
|
-
const ActionSheet = withInstall(stdin_default$
|
1627
|
-
const [name$
|
1626
|
+
const ActionSheet = withInstall(stdin_default$1J);
|
1627
|
+
const [name$1z, bem$1u, t$k] = createNamespace("picker");
|
1628
1628
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1629
1629
|
function getColumnsType(columns, fields) {
|
1630
1630
|
const firstColumn = columns[0];
|
@@ -1693,10 +1693,10 @@ function assignDefaultFields(fields) {
|
|
1693
1693
|
const DEFAULT_DURATION = 200;
|
1694
1694
|
const MOMENTUM_TIME = 300;
|
1695
1695
|
const MOMENTUM_DISTANCE = 15;
|
1696
|
-
const [name$
|
1697
|
-
const PICKER_KEY = Symbol(name$
|
1698
|
-
var stdin_default$
|
1699
|
-
name: name$
|
1696
|
+
const [name$1y, bem$1t] = createNamespace("picker-column");
|
1697
|
+
const PICKER_KEY = Symbol(name$1y);
|
1698
|
+
var stdin_default$1I = vue.defineComponent({
|
1699
|
+
name: name$1y,
|
1700
1700
|
props: {
|
1701
1701
|
value: numericProp,
|
1702
1702
|
fields: makeRequiredProp(Object),
|
@@ -1838,7 +1838,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
1838
1838
|
role: "button",
|
1839
1839
|
style: optionStyle,
|
1840
1840
|
tabindex: disabled ? -1 : 0,
|
1841
|
-
class: [bem$
|
1841
|
+
class: [bem$1t("item", {
|
1842
1842
|
disabled,
|
1843
1843
|
selected: value === props2.value
|
1844
1844
|
}), option.className],
|
@@ -1868,7 +1868,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
1868
1868
|
});
|
1869
1869
|
return () => vue.createVNode("div", {
|
1870
1870
|
"ref": root,
|
1871
|
-
"class": bem$
|
1871
|
+
"class": bem$1t(),
|
1872
1872
|
"onTouchstartPassive": onTouchStart,
|
1873
1873
|
"onTouchend": onTouchEnd,
|
1874
1874
|
"onTouchcancel": onTouchEnd
|
@@ -1879,12 +1879,12 @@ var stdin_default$1H = vue.defineComponent({
|
|
1879
1879
|
transitionDuration: `${currentDuration.value}ms`,
|
1880
1880
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1881
1881
|
},
|
1882
|
-
"class": bem$
|
1882
|
+
"class": bem$1t("wrapper"),
|
1883
1883
|
"onTransitionend": stopMomentum
|
1884
1884
|
}, [renderOptions()])]);
|
1885
1885
|
}
|
1886
1886
|
});
|
1887
|
-
const [name$
|
1887
|
+
const [name$1x] = createNamespace("picker-toolbar");
|
1888
1888
|
const pickerToolbarProps = {
|
1889
1889
|
title: String,
|
1890
1890
|
cancelButtonText: String,
|
@@ -1892,8 +1892,8 @@ const pickerToolbarProps = {
|
|
1892
1892
|
};
|
1893
1893
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1894
1894
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1895
|
-
var stdin_default$
|
1896
|
-
name: name$
|
1895
|
+
var stdin_default$1H = vue.defineComponent({
|
1896
|
+
name: name$1x,
|
1897
1897
|
props: pickerToolbarProps,
|
1898
1898
|
emits: ["confirm", "cancel"],
|
1899
1899
|
setup(props2, {
|
@@ -1906,7 +1906,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
1906
1906
|
}
|
1907
1907
|
if (props2.title) {
|
1908
1908
|
return vue.createVNode("div", {
|
1909
|
-
"class": [bem$
|
1909
|
+
"class": [bem$1u("title"), "van-ellipsis"]
|
1910
1910
|
}, [props2.title]);
|
1911
1911
|
}
|
1912
1912
|
};
|
@@ -1916,7 +1916,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
1916
1916
|
const text = props2.cancelButtonText || t$k("cancel");
|
1917
1917
|
return vue.createVNode("button", {
|
1918
1918
|
"type": "button",
|
1919
|
-
"class": [bem$
|
1919
|
+
"class": [bem$1u("cancel"), HAPTICS_FEEDBACK],
|
1920
1920
|
"onClick": onCancel
|
1921
1921
|
}, [slots.cancel ? slots.cancel() : text]);
|
1922
1922
|
};
|
@@ -1924,12 +1924,12 @@ var stdin_default$1G = vue.defineComponent({
|
|
1924
1924
|
const text = props2.confirmButtonText || t$k("confirm");
|
1925
1925
|
return vue.createVNode("button", {
|
1926
1926
|
"type": "button",
|
1927
|
-
"class": [bem$
|
1927
|
+
"class": [bem$1u("confirm"), HAPTICS_FEEDBACK],
|
1928
1928
|
"onClick": onConfirm
|
1929
1929
|
}, [slots.confirm ? slots.confirm() : text]);
|
1930
1930
|
};
|
1931
1931
|
return () => vue.createVNode("div", {
|
1932
|
-
"class": bem$
|
1932
|
+
"class": bem$1u("toolbar")
|
1933
1933
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1934
1934
|
}
|
1935
1935
|
});
|
@@ -2037,7 +2037,7 @@ function useVisibilityChange(target, onChange) {
|
|
2037
2037
|
vue.onBeforeUnmount(unobserve);
|
2038
2038
|
use.onMountedOrActivated(observe);
|
2039
2039
|
}
|
2040
|
-
const [name$
|
2040
|
+
const [name$1w, bem$1s] = createNamespace("sticky");
|
2041
2041
|
const stickyProps = {
|
2042
2042
|
zIndex: numericProp,
|
2043
2043
|
position: makeStringProp("top"),
|
@@ -2045,8 +2045,8 @@ const stickyProps = {
|
|
2045
2045
|
offsetTop: makeNumericProp(0),
|
2046
2046
|
offsetBottom: makeNumericProp(0)
|
2047
2047
|
};
|
2048
|
-
var stdin_default$
|
2049
|
-
name: name$
|
2048
|
+
var stdin_default$1G = vue.defineComponent({
|
2049
|
+
name: name$1w,
|
2050
2050
|
props: stickyProps,
|
2051
2051
|
emits: ["scroll", "change"],
|
2052
2052
|
setup(props2, {
|
@@ -2159,7 +2159,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
2159
2159
|
"ref": root,
|
2160
2160
|
"style": rootStyle.value
|
2161
2161
|
}, [vue.createVNode("div", {
|
2162
|
-
"class": bem$
|
2162
|
+
"class": bem$1s({
|
2163
2163
|
fixed: state.fixed && !isReset.value
|
2164
2164
|
}),
|
2165
2165
|
"style": stickyStyle.value
|
@@ -2167,8 +2167,8 @@ var stdin_default$1F = vue.defineComponent({
|
|
2167
2167
|
};
|
2168
2168
|
}
|
2169
2169
|
});
|
2170
|
-
const Sticky = withInstall(stdin_default$
|
2171
|
-
const [name$
|
2170
|
+
const Sticky = withInstall(stdin_default$1G);
|
2171
|
+
const [name$1v, bem$1r] = createNamespace("swipe");
|
2172
2172
|
const swipeProps = {
|
2173
2173
|
loop: truthProp,
|
2174
2174
|
width: numericProp,
|
@@ -2183,9 +2183,9 @@ const swipeProps = {
|
|
2183
2183
|
showIndicators: truthProp,
|
2184
2184
|
stopPropagation: truthProp
|
2185
2185
|
};
|
2186
|
-
const SWIPE_KEY = Symbol(name$
|
2187
|
-
var stdin_default$
|
2188
|
-
name: name$
|
2186
|
+
const SWIPE_KEY = Symbol(name$1v);
|
2187
|
+
var stdin_default$1F = vue.defineComponent({
|
2188
|
+
name: name$1v,
|
2189
2189
|
props: swipeProps,
|
2190
2190
|
emits: ["change", "dragStart", "dragEnd"],
|
2191
2191
|
setup(props2, {
|
@@ -2463,7 +2463,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
2463
2463
|
} : void 0;
|
2464
2464
|
return vue.createVNode("i", {
|
2465
2465
|
"style": style,
|
2466
|
-
"class": bem$
|
2466
|
+
"class": bem$1r("indicator", {
|
2467
2467
|
active
|
2468
2468
|
})
|
2469
2469
|
}, null);
|
@@ -2477,7 +2477,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
2477
2477
|
}
|
2478
2478
|
if (props2.showIndicators && count.value > 1) {
|
2479
2479
|
return vue.createVNode("div", {
|
2480
|
-
"class": bem$
|
2480
|
+
"class": bem$1r("indicators", {
|
2481
2481
|
vertical: props2.vertical
|
2482
2482
|
})
|
2483
2483
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2519,11 +2519,11 @@ var stdin_default$1E = vue.defineComponent({
|
|
2519
2519
|
var _a;
|
2520
2520
|
return vue.createVNode("div", {
|
2521
2521
|
"ref": root,
|
2522
|
-
"class": bem$
|
2522
|
+
"class": bem$1r()
|
2523
2523
|
}, [vue.createVNode("div", {
|
2524
2524
|
"ref": track,
|
2525
2525
|
"style": trackStyle.value,
|
2526
|
-
"class": bem$
|
2526
|
+
"class": bem$1r("track", {
|
2527
2527
|
vertical: props2.vertical
|
2528
2528
|
}),
|
2529
2529
|
"onTouchstartPassive": onTouchStart,
|
@@ -2533,10 +2533,10 @@ var stdin_default$1E = vue.defineComponent({
|
|
2533
2533
|
};
|
2534
2534
|
}
|
2535
2535
|
});
|
2536
|
-
const Swipe = withInstall(stdin_default$
|
2537
|
-
const [name$
|
2538
|
-
var stdin_default$
|
2539
|
-
name: name$
|
2536
|
+
const Swipe = withInstall(stdin_default$1F);
|
2537
|
+
const [name$1u, bem$1q] = createNamespace("tabs");
|
2538
|
+
var stdin_default$1E = vue.defineComponent({
|
2539
|
+
name: name$1u,
|
2540
2540
|
props: {
|
2541
2541
|
count: makeRequiredProp(Number),
|
2542
2542
|
inited: Boolean,
|
@@ -2560,7 +2560,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
2560
2560
|
return vue.createVNode(Swipe, {
|
2561
2561
|
"ref": swipeRef,
|
2562
2562
|
"loop": false,
|
2563
|
-
"class": bem$
|
2563
|
+
"class": bem$1q("track"),
|
2564
2564
|
"duration": +props2.duration * 1e3,
|
2565
2565
|
"touchable": props2.swipeable,
|
2566
2566
|
"lazyRender": props2.lazyRender,
|
@@ -2588,13 +2588,13 @@ var stdin_default$1D = vue.defineComponent({
|
|
2588
2588
|
swipeRef
|
2589
2589
|
});
|
2590
2590
|
return () => vue.createVNode("div", {
|
2591
|
-
"class": bem$
|
2591
|
+
"class": bem$1q("content", {
|
2592
2592
|
animated: props2.animated || props2.swipeable
|
2593
2593
|
})
|
2594
2594
|
}, [renderChildren()]);
|
2595
2595
|
}
|
2596
2596
|
});
|
2597
|
-
const [name$
|
2597
|
+
const [name$1t, bem$1p] = createNamespace("tabs");
|
2598
2598
|
const tabsProps = {
|
2599
2599
|
type: makeStringProp("line"),
|
2600
2600
|
color: String,
|
@@ -2610,6 +2610,7 @@ const tabsProps = {
|
|
2610
2610
|
offsetTop: makeNumericProp(0),
|
2611
2611
|
background: String,
|
2612
2612
|
lazyRender: truthProp,
|
2613
|
+
showHeader: truthProp,
|
2613
2614
|
lineWidth: numericProp,
|
2614
2615
|
lineHeight: numericProp,
|
2615
2616
|
beforeChange: Function,
|
@@ -2617,9 +2618,9 @@ const tabsProps = {
|
|
2617
2618
|
titleActiveColor: String,
|
2618
2619
|
titleInactiveColor: String
|
2619
2620
|
};
|
2620
|
-
const TABS_KEY = Symbol(name$
|
2621
|
-
var stdin_default$
|
2622
|
-
name: name$
|
2621
|
+
const TABS_KEY = Symbol(name$1t);
|
2622
|
+
var stdin_default$1D = vue.defineComponent({
|
2623
|
+
name: name$1t,
|
2623
2624
|
props: tabsProps,
|
2624
2625
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2625
2626
|
setup(props2, {
|
@@ -2817,7 +2818,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
2817
2818
|
const renderLine = () => {
|
2818
2819
|
if (props2.type === "line" && children.length) {
|
2819
2820
|
return vue.createVNode("div", {
|
2820
|
-
"class": bem$
|
2821
|
+
"class": bem$1p("line"),
|
2821
2822
|
"style": state.lineStyle
|
2822
2823
|
}, null);
|
2823
2824
|
}
|
@@ -2831,13 +2832,13 @@ var stdin_default$1C = vue.defineComponent({
|
|
2831
2832
|
} = props2;
|
2832
2833
|
const Header = [vue.createVNode("div", {
|
2833
2834
|
"ref": sticky ? void 0 : wrapRef,
|
2834
|
-
"class": [bem$
|
2835
|
+
"class": [bem$1p("wrap"), {
|
2835
2836
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2836
2837
|
}]
|
2837
2838
|
}, [vue.createVNode("div", {
|
2838
2839
|
"ref": navRef,
|
2839
2840
|
"role": "tablist",
|
2840
|
-
"class": bem$
|
2841
|
+
"class": bem$1p("nav", [type, {
|
2841
2842
|
shrink: props2.shrink,
|
2842
2843
|
complete: scrollable.value
|
2843
2844
|
}]),
|
@@ -2910,14 +2911,14 @@ var stdin_default$1C = vue.defineComponent({
|
|
2910
2911
|
});
|
2911
2912
|
return () => vue.createVNode("div", {
|
2912
2913
|
"ref": root,
|
2913
|
-
"class": bem$
|
2914
|
-
}, [props2.sticky ? vue.createVNode(Sticky, {
|
2914
|
+
"class": bem$1p([props2.type])
|
2915
|
+
}, [props2.showHeader ? props2.sticky ? vue.createVNode(Sticky, {
|
2915
2916
|
"container": root.value,
|
2916
2917
|
"offsetTop": offsetTopPx.value,
|
2917
2918
|
"onScroll": onStickyScroll
|
2918
2919
|
}, {
|
2919
2920
|
default: () => [renderHeader()]
|
2920
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
2921
|
+
}) : renderHeader() : null, vue.createVNode(stdin_default$1E, {
|
2921
2922
|
"ref": contentRef,
|
2922
2923
|
"count": children.length,
|
2923
2924
|
"inited": state.inited,
|
@@ -2937,9 +2938,9 @@ var stdin_default$1C = vue.defineComponent({
|
|
2937
2938
|
});
|
2938
2939
|
const TAB_STATUS_KEY = Symbol();
|
2939
2940
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
2940
|
-
const [name$
|
2941
|
+
const [name$1s, bem$1o] = createNamespace("tab");
|
2941
2942
|
const TabTitle = vue.defineComponent({
|
2942
|
-
name: name$
|
2943
|
+
name: name$1s,
|
2943
2944
|
props: {
|
2944
2945
|
id: String,
|
2945
2946
|
dot: Boolean,
|
@@ -2988,7 +2989,7 @@ const TabTitle = vue.defineComponent({
|
|
2988
2989
|
});
|
2989
2990
|
const renderText = () => {
|
2990
2991
|
const Text = vue.createVNode("span", {
|
2991
|
-
"class": bem$
|
2992
|
+
"class": bem$1o("text", {
|
2992
2993
|
ellipsis: !props2.scrollable
|
2993
2994
|
})
|
2994
2995
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -3006,7 +3007,7 @@ const TabTitle = vue.defineComponent({
|
|
3006
3007
|
return () => vue.createVNode("div", {
|
3007
3008
|
"id": props2.id,
|
3008
3009
|
"role": "tab",
|
3009
|
-
"class": [bem$
|
3010
|
+
"class": [bem$1o([props2.type, {
|
3010
3011
|
grow: props2.scrollable && !props2.shrink,
|
3011
3012
|
shrink: props2.shrink,
|
3012
3013
|
active: props2.isActive,
|
@@ -3020,9 +3021,9 @@ const TabTitle = vue.defineComponent({
|
|
3020
3021
|
}, [renderText()]);
|
3021
3022
|
}
|
3022
3023
|
});
|
3023
|
-
const [name$
|
3024
|
-
var stdin_default$
|
3025
|
-
name: name$
|
3024
|
+
const [name$1r, bem$1n] = createNamespace("swipe-item");
|
3025
|
+
var stdin_default$1C = vue.defineComponent({
|
3026
|
+
name: name$1r,
|
3026
3027
|
setup(props2, {
|
3027
3028
|
slots
|
3028
3029
|
}) {
|
@@ -3087,14 +3088,14 @@ var stdin_default$1B = vue.defineComponent({
|
|
3087
3088
|
return () => {
|
3088
3089
|
var _a;
|
3089
3090
|
return vue.createVNode("div", {
|
3090
|
-
"class": bem$
|
3091
|
+
"class": bem$1n(),
|
3091
3092
|
"style": style.value
|
3092
3093
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
3093
3094
|
};
|
3094
3095
|
}
|
3095
3096
|
});
|
3096
|
-
const SwipeItem = withInstall(stdin_default$
|
3097
|
-
const [name$
|
3097
|
+
const SwipeItem = withInstall(stdin_default$1C);
|
3098
|
+
const [name$1q, bem$1m] = createNamespace("tab");
|
3098
3099
|
const tabProps = extend({}, routeProps, {
|
3099
3100
|
dot: Boolean,
|
3100
3101
|
name: numericProp,
|
@@ -3105,8 +3106,8 @@ const tabProps = extend({}, routeProps, {
|
|
3105
3106
|
titleStyle: [String, Object],
|
3106
3107
|
showZeroBadge: truthProp
|
3107
3108
|
});
|
3108
|
-
var stdin_default$
|
3109
|
-
name: name$
|
3109
|
+
var stdin_default$1B = vue.defineComponent({
|
3110
|
+
name: name$1q,
|
3110
3111
|
props: tabProps,
|
3111
3112
|
setup(props2, {
|
3112
3113
|
slots
|
@@ -3204,7 +3205,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
3204
3205
|
return vue.createVNode(SwipeItem, {
|
3205
3206
|
"id": id,
|
3206
3207
|
"role": "tabpanel",
|
3207
|
-
"class": bem$
|
3208
|
+
"class": bem$1m("panel-wrapper", {
|
3208
3209
|
inactive: hasInactiveClass.value
|
3209
3210
|
}),
|
3210
3211
|
"tabindex": active.value ? 0 : -1,
|
@@ -3214,7 +3215,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
3214
3215
|
default: () => {
|
3215
3216
|
var _a2;
|
3216
3217
|
return [vue.createVNode("div", {
|
3217
|
-
"class": bem$
|
3218
|
+
"class": bem$1m("panel")
|
3218
3219
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3219
3220
|
}
|
3220
3221
|
});
|
@@ -3224,24 +3225,24 @@ var stdin_default$1A = vue.defineComponent({
|
|
3224
3225
|
return vue.withDirectives(vue.createVNode("div", {
|
3225
3226
|
"id": id,
|
3226
3227
|
"role": "tabpanel",
|
3227
|
-
"class": bem$
|
3228
|
+
"class": bem$1m("panel"),
|
3228
3229
|
"tabindex": show ? 0 : -1,
|
3229
3230
|
"aria-labelledby": label
|
3230
3231
|
}, [Content]), [[vue.vShow, show]]);
|
3231
3232
|
};
|
3232
3233
|
}
|
3233
3234
|
});
|
3234
|
-
const Tab = withInstall(stdin_default$
|
3235
|
-
const Tabs = withInstall(stdin_default$
|
3236
|
-
const [name$
|
3237
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3235
|
+
const Tab = withInstall(stdin_default$1B);
|
3236
|
+
const Tabs = withInstall(stdin_default$1D);
|
3237
|
+
const [name$1p, bem$1l] = createNamespace("picker-group");
|
3238
|
+
const PICKER_GROUP_KEY = Symbol(name$1p);
|
3238
3239
|
const pickerGroupProps = extend({
|
3239
3240
|
tabs: makeArrayProp(),
|
3240
3241
|
activeTab: makeNumericProp(0),
|
3241
3242
|
nextStepText: String
|
3242
3243
|
}, pickerToolbarProps);
|
3243
|
-
var stdin_default$
|
3244
|
-
name: name$
|
3244
|
+
var stdin_default$1A = vue.defineComponent({
|
3245
|
+
name: name$1p,
|
3245
3246
|
props: pickerGroupProps,
|
3246
3247
|
emits: ["confirm", "cancel", "update:activeTab"],
|
3247
3248
|
setup(props2, {
|
@@ -3264,12 +3265,12 @@ var stdin_default$1z = vue.defineComponent({
|
|
3264
3265
|
};
|
3265
3266
|
const onCancel = () => emit("cancel");
|
3266
3267
|
return () => {
|
3267
|
-
var _a;
|
3268
|
-
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3268
|
+
var _a, _b;
|
3269
|
+
const childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== vue.Comment);
|
3269
3270
|
const confirmButtonText = showNextButton() ? props2.nextStepText : props2.confirmButtonText;
|
3270
3271
|
return vue.createVNode("div", {
|
3271
|
-
"class": bem$
|
3272
|
-
}, [vue.createVNode(stdin_default$
|
3272
|
+
"class": bem$1l()
|
3273
|
+
}, [vue.createVNode(stdin_default$1H, {
|
3273
3274
|
"title": props2.title,
|
3274
3275
|
"cancelButtonText": props2.cancelButtonText,
|
3275
3276
|
"confirmButtonText": confirmButtonText,
|
@@ -3278,14 +3279,14 @@ var stdin_default$1z = vue.defineComponent({
|
|
3278
3279
|
}, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
|
3279
3280
|
"active": activeTab.value,
|
3280
3281
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
3281
|
-
"class": bem$
|
3282
|
+
"class": bem$1l("tabs"),
|
3282
3283
|
"shrink": true,
|
3283
3284
|
"animated": true,
|
3284
3285
|
"lazyRender": false
|
3285
3286
|
}, {
|
3286
3287
|
default: () => [props2.tabs.map((title, index) => vue.createVNode(Tab, {
|
3287
3288
|
"title": title,
|
3288
|
-
"titleClass": bem$
|
3289
|
+
"titleClass": bem$1l("tab-title")
|
3289
3290
|
}, {
|
3290
3291
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3291
3292
|
}))]
|
@@ -3308,8 +3309,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3308
3309
|
toolbarPosition: makeStringProp("top"),
|
3309
3310
|
columnsFieldNames: Object
|
3310
3311
|
});
|
3311
|
-
var stdin_default$
|
3312
|
-
name: name$
|
3312
|
+
var stdin_default$1z = vue.defineComponent({
|
3313
|
+
name: name$1z,
|
3313
3314
|
props: pickerProps,
|
3314
3315
|
emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
|
3315
3316
|
setup(props2, {
|
@@ -3390,7 +3391,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
3390
3391
|
return params;
|
3391
3392
|
};
|
3392
3393
|
const cancel = () => emit("cancel", getEventParams());
|
3393
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
3394
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1I, {
|
3394
3395
|
"value": selectedValues.value[columnIndex],
|
3395
3396
|
"fields": fields.value,
|
3396
3397
|
"options": options,
|
@@ -3419,10 +3420,10 @@ var stdin_default$1y = vue.defineComponent({
|
|
3419
3420
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3420
3421
|
};
|
3421
3422
|
return [vue.createVNode("div", {
|
3422
|
-
"class": bem$
|
3423
|
+
"class": bem$1u("mask"),
|
3423
3424
|
"style": maskStyle
|
3424
3425
|
}, null), vue.createVNode("div", {
|
3425
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3426
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1u("frame")],
|
3426
3427
|
"style": frameStyle
|
3427
3428
|
}, null)];
|
3428
3429
|
}
|
@@ -3434,13 +3435,13 @@ var stdin_default$1y = vue.defineComponent({
|
|
3434
3435
|
};
|
3435
3436
|
return vue.createVNode("div", {
|
3436
3437
|
"ref": columnsRef,
|
3437
|
-
"class": bem$
|
3438
|
+
"class": bem$1u("columns"),
|
3438
3439
|
"style": columnsStyle
|
3439
3440
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3440
3441
|
};
|
3441
3442
|
const renderToolbar = () => {
|
3442
3443
|
if (props2.showToolbar && !parent) {
|
3443
|
-
return vue.createVNode(stdin_default$
|
3444
|
+
return vue.createVNode(stdin_default$1H, vue.mergeProps(pick(props2, pickerToolbarPropKeys), {
|
3444
3445
|
"onConfirm": confirm,
|
3445
3446
|
"onCancel": cancel
|
3446
3447
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3483,9 +3484,9 @@ var stdin_default$1y = vue.defineComponent({
|
|
3483
3484
|
return () => {
|
3484
3485
|
var _a, _b;
|
3485
3486
|
return vue.createVNode("div", {
|
3486
|
-
"class": bem$
|
3487
|
+
"class": bem$1u()
|
3487
3488
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? vue.createVNode(Loading, {
|
3488
|
-
"class": bem$
|
3489
|
+
"class": bem$1u("loading")
|
3489
3490
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props2.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3490
3491
|
};
|
3491
3492
|
}
|
@@ -3576,8 +3577,8 @@ function formatDataForCascade({
|
|
3576
3577
|
}
|
3577
3578
|
return options;
|
3578
3579
|
}
|
3579
|
-
const Picker = withInstall(stdin_default$
|
3580
|
-
const [name$
|
3580
|
+
const Picker = withInstall(stdin_default$1z);
|
3581
|
+
const [name$1o, bem$1k] = createNamespace("area");
|
3581
3582
|
const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
3582
3583
|
modelValue: String,
|
3583
3584
|
columnsNum: makeNumericProp(3),
|
@@ -3587,8 +3588,8 @@ const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
|
3587
3588
|
default: () => ({})
|
3588
3589
|
}
|
3589
3590
|
});
|
3590
|
-
var stdin_default$
|
3591
|
-
name: name$
|
3591
|
+
var stdin_default$1y = vue.defineComponent({
|
3592
|
+
name: name$1o,
|
3592
3593
|
props: areaProps,
|
3593
3594
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3594
3595
|
setup(props2, {
|
@@ -3635,7 +3636,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
3635
3636
|
"ref": picker,
|
3636
3637
|
"modelValue": codes.value,
|
3637
3638
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3638
|
-
"class": bem$
|
3639
|
+
"class": bem$1k(),
|
3639
3640
|
"columns": columns.value,
|
3640
3641
|
"onChange": onChange,
|
3641
3642
|
"onCancel": onCancel,
|
@@ -3643,8 +3644,8 @@ var stdin_default$1x = vue.defineComponent({
|
|
3643
3644
|
}, pick(props2, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3644
3645
|
}
|
3645
3646
|
});
|
3646
|
-
const Area = withInstall(stdin_default$
|
3647
|
-
const [name$
|
3647
|
+
const Area = withInstall(stdin_default$1y);
|
3648
|
+
const [name$1n, bem$1j] = createNamespace("cell");
|
3648
3649
|
const cellSharedProps = {
|
3649
3650
|
tag: makeStringProp("div"),
|
3650
3651
|
icon: String,
|
@@ -3655,21 +3656,24 @@ const cellSharedProps = {
|
|
3655
3656
|
center: Boolean,
|
3656
3657
|
isLink: Boolean,
|
3657
3658
|
border: truthProp,
|
3658
|
-
required: Boolean,
|
3659
3659
|
iconPrefix: String,
|
3660
3660
|
valueClass: unknownProp,
|
3661
3661
|
labelClass: unknownProp,
|
3662
3662
|
titleClass: unknownProp,
|
3663
3663
|
titleStyle: null,
|
3664
3664
|
arrowDirection: String,
|
3665
|
+
required: {
|
3666
|
+
type: [Boolean, String],
|
3667
|
+
default: null
|
3668
|
+
},
|
3665
3669
|
clickable: {
|
3666
3670
|
type: Boolean,
|
3667
3671
|
default: null
|
3668
3672
|
}
|
3669
3673
|
};
|
3670
3674
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3671
|
-
var stdin_default$
|
3672
|
-
name: name$
|
3675
|
+
var stdin_default$1x = vue.defineComponent({
|
3676
|
+
name: name$1n,
|
3673
3677
|
props: cellProps,
|
3674
3678
|
setup(props2, {
|
3675
3679
|
slots
|
@@ -3679,7 +3683,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3679
3683
|
const showLabel = slots.label || isDef(props2.label);
|
3680
3684
|
if (showLabel) {
|
3681
3685
|
return vue.createVNode("div", {
|
3682
|
-
"class": [bem$
|
3686
|
+
"class": [bem$1j("label"), props2.labelClass]
|
3683
3687
|
}, [slots.label ? slots.label() : props2.label]);
|
3684
3688
|
}
|
3685
3689
|
};
|
@@ -3691,7 +3695,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3691
3695
|
return;
|
3692
3696
|
}
|
3693
3697
|
return vue.createVNode("div", {
|
3694
|
-
"class": [bem$
|
3698
|
+
"class": [bem$1j("title"), props2.titleClass],
|
3695
3699
|
"style": props2.titleStyle
|
3696
3700
|
}, [titleSlot || vue.createVNode("span", null, [props2.title]), renderLabel()]);
|
3697
3701
|
}
|
@@ -3701,7 +3705,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3701
3705
|
const hasValue = slot || isDef(props2.value);
|
3702
3706
|
if (hasValue) {
|
3703
3707
|
return vue.createVNode("div", {
|
3704
|
-
"class": [bem$
|
3708
|
+
"class": [bem$1j("value"), props2.valueClass]
|
3705
3709
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
3706
3710
|
}
|
3707
3711
|
};
|
@@ -3712,7 +3716,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3712
3716
|
if (props2.icon) {
|
3713
3717
|
return vue.createVNode(Icon, {
|
3714
3718
|
"name": props2.icon,
|
3715
|
-
"class": bem$
|
3719
|
+
"class": bem$1j("left-icon"),
|
3716
3720
|
"classPrefix": props2.iconPrefix
|
3717
3721
|
}, null);
|
3718
3722
|
}
|
@@ -3725,7 +3729,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3725
3729
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
3726
3730
|
return vue.createVNode(Icon, {
|
3727
3731
|
"name": name2,
|
3728
|
-
"class": bem$
|
3732
|
+
"class": bem$1j("right-icon")
|
3729
3733
|
}, null);
|
3730
3734
|
}
|
3731
3735
|
};
|
@@ -3742,7 +3746,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3742
3746
|
const clickable = (_a = props2.clickable) != null ? _a : isLink;
|
3743
3747
|
const classes = {
|
3744
3748
|
center,
|
3745
|
-
required,
|
3749
|
+
required: !!required,
|
3746
3750
|
clickable,
|
3747
3751
|
borderless: !border
|
3748
3752
|
};
|
@@ -3750,7 +3754,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
3750
3754
|
classes[size] = !!size;
|
3751
3755
|
}
|
3752
3756
|
return vue.createVNode(tag, {
|
3753
|
-
"class": bem$
|
3757
|
+
"class": bem$1j(classes),
|
3754
3758
|
"role": clickable ? "button" : void 0,
|
3755
3759
|
"tabindex": clickable ? 0 : void 0,
|
3756
3760
|
"onClick": route2
|
@@ -3763,12 +3767,13 @@ var stdin_default$1w = vue.defineComponent({
|
|
3763
3767
|
};
|
3764
3768
|
}
|
3765
3769
|
});
|
3766
|
-
const Cell = withInstall(stdin_default$
|
3767
|
-
const [name$
|
3770
|
+
const Cell = withInstall(stdin_default$1x);
|
3771
|
+
const [name$1m, bem$1i] = createNamespace("form");
|
3768
3772
|
const formProps = {
|
3769
3773
|
colon: Boolean,
|
3770
3774
|
disabled: Boolean,
|
3771
3775
|
readonly: Boolean,
|
3776
|
+
required: [Boolean, String],
|
3772
3777
|
showError: Boolean,
|
3773
3778
|
labelWidth: numericProp,
|
3774
3779
|
labelAlign: String,
|
@@ -3783,8 +3788,8 @@ const formProps = {
|
|
3783
3788
|
default: "onBlur"
|
3784
3789
|
}
|
3785
3790
|
};
|
3786
|
-
var stdin_default$
|
3787
|
-
name: name$
|
3791
|
+
var stdin_default$1w = vue.defineComponent({
|
3792
|
+
name: name$1m,
|
3788
3793
|
props: formProps,
|
3789
3794
|
emits: ["submit", "failed"],
|
3790
3795
|
setup(props2, {
|
@@ -3910,13 +3915,13 @@ var stdin_default$1v = vue.defineComponent({
|
|
3910
3915
|
return () => {
|
3911
3916
|
var _a;
|
3912
3917
|
return vue.createVNode("form", {
|
3913
|
-
"class": bem$
|
3918
|
+
"class": bem$1i(),
|
3914
3919
|
"onSubmit": onSubmit
|
3915
3920
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3916
3921
|
};
|
3917
3922
|
}
|
3918
3923
|
});
|
3919
|
-
const Form = withInstall(stdin_default$
|
3924
|
+
const Form = withInstall(stdin_default$1w);
|
3920
3925
|
function isEmptyValue(value) {
|
3921
3926
|
if (Array.isArray(value)) {
|
3922
3927
|
return !value.length;
|
@@ -4005,7 +4010,7 @@ function getStringLength(str) {
|
|
4005
4010
|
function cutString(str, maxlength) {
|
4006
4011
|
return [...str].slice(0, maxlength).join("");
|
4007
4012
|
}
|
4008
|
-
const [name$
|
4013
|
+
const [name$1l, bem$1h] = createNamespace("field");
|
4009
4014
|
const fieldSharedProps = {
|
4010
4015
|
id: String,
|
4011
4016
|
name: String,
|
@@ -4024,12 +4029,12 @@ const fieldSharedProps = {
|
|
4024
4029
|
autocorrect: String,
|
4025
4030
|
errorMessage: String,
|
4026
4031
|
enterkeyhint: String,
|
4032
|
+
clearTrigger: makeStringProp("focus"),
|
4033
|
+
formatTrigger: makeStringProp("onChange"),
|
4027
4034
|
spellcheck: {
|
4028
4035
|
type: Boolean,
|
4029
4036
|
default: null
|
4030
4037
|
},
|
4031
|
-
clearTrigger: makeStringProp("focus"),
|
4032
|
-
formatTrigger: makeStringProp("onChange"),
|
4033
4038
|
error: {
|
4034
4039
|
type: Boolean,
|
4035
4040
|
default: null
|
@@ -4058,8 +4063,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
4058
4063
|
default: null
|
4059
4064
|
}
|
4060
4065
|
});
|
4061
|
-
var stdin_default$
|
4062
|
-
name: name$
|
4066
|
+
var stdin_default$1v = vue.defineComponent({
|
4067
|
+
name: name$1l,
|
4063
4068
|
props: fieldProps,
|
4064
4069
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
4065
4070
|
setup(props2, {
|
@@ -4105,6 +4110,14 @@ var stdin_default$1u = vue.defineComponent({
|
|
4105
4110
|
}
|
4106
4111
|
return props2.modelValue;
|
4107
4112
|
});
|
4113
|
+
const showRequiredMark = vue.computed(() => {
|
4114
|
+
var _a;
|
4115
|
+
const required = getProp("required");
|
4116
|
+
if (required === "auto") {
|
4117
|
+
return (_a = props2.rules) == null ? void 0 : _a.some((rule) => rule.required);
|
4118
|
+
}
|
4119
|
+
return required;
|
4120
|
+
});
|
4108
4121
|
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
4109
4122
|
if (state.status === "failed") {
|
4110
4123
|
return;
|
@@ -4333,7 +4346,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4333
4346
|
const getInputId = () => props2.id || `${id}-input`;
|
4334
4347
|
const getValidationStatus = () => state.status;
|
4335
4348
|
const renderInput = () => {
|
4336
|
-
const controlClass = bem$
|
4349
|
+
const controlClass = bem$1h("control", [getProp("inputAlign"), {
|
4337
4350
|
error: showError.value,
|
4338
4351
|
custom: !!slots.input,
|
4339
4352
|
"min-height": props2.type === "textarea" && !props2.autosize
|
@@ -4378,7 +4391,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4378
4391
|
const leftIconSlot = slots["left-icon"];
|
4379
4392
|
if (props2.leftIcon || leftIconSlot) {
|
4380
4393
|
return vue.createVNode("div", {
|
4381
|
-
"class": bem$
|
4394
|
+
"class": bem$1h("left-icon"),
|
4382
4395
|
"onClick": onClickLeftIcon
|
4383
4396
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
4384
4397
|
"name": props2.leftIcon,
|
@@ -4390,7 +4403,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4390
4403
|
const rightIconSlot = slots["right-icon"];
|
4391
4404
|
if (props2.rightIcon || rightIconSlot) {
|
4392
4405
|
return vue.createVNode("div", {
|
4393
|
-
"class": bem$
|
4406
|
+
"class": bem$1h("right-icon"),
|
4394
4407
|
"onClick": onClickRightIcon
|
4395
4408
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
4396
4409
|
"name": props2.rightIcon,
|
@@ -4402,9 +4415,9 @@ var stdin_default$1u = vue.defineComponent({
|
|
4402
4415
|
if (props2.showWordLimit && props2.maxlength) {
|
4403
4416
|
const count = getStringLength(getModelValue());
|
4404
4417
|
return vue.createVNode("div", {
|
4405
|
-
"class": bem$
|
4418
|
+
"class": bem$1h("word-limit")
|
4406
4419
|
}, [vue.createVNode("span", {
|
4407
|
-
"class": bem$
|
4420
|
+
"class": bem$1h("word-num")
|
4408
4421
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
4409
4422
|
}
|
4410
4423
|
};
|
@@ -4417,7 +4430,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4417
4430
|
const slot = slots["error-message"];
|
4418
4431
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4419
4432
|
return vue.createVNode("div", {
|
4420
|
-
"class": bem$
|
4433
|
+
"class": bem$1h("error-message", errorMessageAlign)
|
4421
4434
|
}, [slot ? slot({
|
4422
4435
|
message
|
4423
4436
|
}) : message]);
|
@@ -4445,13 +4458,13 @@ var stdin_default$1u = vue.defineComponent({
|
|
4445
4458
|
}
|
4446
4459
|
};
|
4447
4460
|
const renderFieldBody = () => [vue.createVNode("div", {
|
4448
|
-
"class": bem$
|
4461
|
+
"class": bem$1h("body")
|
4449
4462
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
4450
4463
|
"ref": clearIconRef,
|
4451
4464
|
"name": props2.clearIcon,
|
4452
|
-
"class": bem$
|
4465
|
+
"class": bem$1h("clear")
|
4453
4466
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
4454
|
-
"class": bem$
|
4467
|
+
"class": bem$1h("button")
|
4455
4468
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4456
4469
|
useExpose({
|
4457
4470
|
blur,
|
@@ -4495,7 +4508,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4495
4508
|
};
|
4496
4509
|
return vue.createVNode(Cell, {
|
4497
4510
|
"size": props2.size,
|
4498
|
-
"class": bem$
|
4511
|
+
"class": bem$1h({
|
4499
4512
|
error: showError.value,
|
4500
4513
|
disabled,
|
4501
4514
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4505,9 +4518,9 @@ var stdin_default$1u = vue.defineComponent({
|
|
4505
4518
|
"isLink": props2.isLink,
|
4506
4519
|
"clickable": props2.clickable,
|
4507
4520
|
"titleStyle": labelStyle.value,
|
4508
|
-
"valueClass": bem$
|
4509
|
-
"titleClass": [bem$
|
4510
|
-
required:
|
4521
|
+
"valueClass": bem$1h("value"),
|
4522
|
+
"titleClass": [bem$1h("label", [labelAlign, {
|
4523
|
+
required: showRequiredMark.value
|
4511
4524
|
}]), props2.labelClass],
|
4512
4525
|
"arrowDirection": props2.arrowDirection
|
4513
4526
|
}, {
|
@@ -4519,7 +4532,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
4519
4532
|
};
|
4520
4533
|
}
|
4521
4534
|
});
|
4522
|
-
const Field = withInstall(stdin_default$
|
4535
|
+
const Field = withInstall(stdin_default$1v);
|
4523
4536
|
let lockCount = 0;
|
4524
4537
|
function lockClick(lock) {
|
4525
4538
|
if (lock) {
|
@@ -4534,7 +4547,7 @@ function lockClick(lock) {
|
|
4534
4547
|
}
|
4535
4548
|
}
|
4536
4549
|
}
|
4537
|
-
const [name$
|
4550
|
+
const [name$1k, bem$1g] = createNamespace("toast");
|
4538
4551
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4539
4552
|
const toastProps = {
|
4540
4553
|
icon: String,
|
@@ -4557,8 +4570,8 @@ const toastProps = {
|
|
4557
4570
|
closeOnClick: Boolean,
|
4558
4571
|
closeOnClickOverlay: Boolean
|
4559
4572
|
};
|
4560
|
-
var stdin_default$
|
4561
|
-
name: name$
|
4573
|
+
var stdin_default$1u = vue.defineComponent({
|
4574
|
+
name: name$1k,
|
4562
4575
|
props: toastProps,
|
4563
4576
|
emits: ["update:show"],
|
4564
4577
|
setup(props2, {
|
@@ -4594,13 +4607,13 @@ var stdin_default$1t = vue.defineComponent({
|
|
4594
4607
|
return vue.createVNode(Icon, {
|
4595
4608
|
"name": icon || type,
|
4596
4609
|
"size": iconSize,
|
4597
|
-
"class": bem$
|
4610
|
+
"class": bem$1g("icon"),
|
4598
4611
|
"classPrefix": iconPrefix
|
4599
4612
|
}, null);
|
4600
4613
|
}
|
4601
4614
|
if (type === "loading") {
|
4602
4615
|
return vue.createVNode(Loading, {
|
4603
|
-
"class": bem$
|
4616
|
+
"class": bem$1g("loading"),
|
4604
4617
|
"size": iconSize,
|
4605
4618
|
"type": loadingType
|
4606
4619
|
}, null);
|
@@ -4613,16 +4626,16 @@ var stdin_default$1t = vue.defineComponent({
|
|
4613
4626
|
} = props2;
|
4614
4627
|
if (slots.message) {
|
4615
4628
|
return vue.createVNode("div", {
|
4616
|
-
"class": bem$
|
4629
|
+
"class": bem$1g("text")
|
4617
4630
|
}, [slots.message()]);
|
4618
4631
|
}
|
4619
4632
|
if (isDef(message) && message !== "") {
|
4620
4633
|
return type === "html" ? vue.createVNode("div", {
|
4621
4634
|
"key": 0,
|
4622
|
-
"class": bem$
|
4635
|
+
"class": bem$1g("text"),
|
4623
4636
|
"innerHTML": String(message)
|
4624
4637
|
}, null) : vue.createVNode("div", {
|
4625
|
-
"class": bem$
|
4638
|
+
"class": bem$1g("text")
|
4626
4639
|
}, [message]);
|
4627
4640
|
}
|
4628
4641
|
};
|
@@ -4638,7 +4651,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
4638
4651
|
vue.onMounted(toggleClickable);
|
4639
4652
|
vue.onUnmounted(toggleClickable);
|
4640
4653
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
4641
|
-
"class": [bem$
|
4654
|
+
"class": [bem$1g([props2.position, props2.wordBreak === "normal" ? "break-normal" : props2.wordBreak, {
|
4642
4655
|
[props2.type]: !props2.icon
|
4643
4656
|
}]), props2.className],
|
4644
4657
|
"lockScroll": false,
|
@@ -4739,7 +4752,7 @@ function createInstance() {
|
|
4739
4752
|
onClosed,
|
4740
4753
|
"onUpdate:show": toggle
|
4741
4754
|
};
|
4742
|
-
return vue.createVNode(stdin_default$
|
4755
|
+
return vue.createVNode(stdin_default$1u, vue.mergeProps(state, attrs), null);
|
4743
4756
|
};
|
4744
4757
|
vue.watch(message, (val) => {
|
4745
4758
|
state.message = val;
|
@@ -4809,8 +4822,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4809
4822
|
const allowMultipleToast = (value = true) => {
|
4810
4823
|
allowMultiple = value;
|
4811
4824
|
};
|
4812
|
-
const Toast = withInstall(stdin_default$
|
4813
|
-
const [name$
|
4825
|
+
const Toast = withInstall(stdin_default$1u);
|
4826
|
+
const [name$1j, bem$1f] = createNamespace("switch");
|
4814
4827
|
const switchProps = {
|
4815
4828
|
size: numericProp,
|
4816
4829
|
loading: Boolean,
|
@@ -4827,8 +4840,8 @@ const switchProps = {
|
|
4827
4840
|
default: false
|
4828
4841
|
}
|
4829
4842
|
};
|
4830
|
-
var stdin_default$
|
4831
|
-
name: name$
|
4843
|
+
var stdin_default$1t = vue.defineComponent({
|
4844
|
+
name: name$1j,
|
4832
4845
|
props: switchProps,
|
4833
4846
|
emits: ["change", "update:modelValue"],
|
4834
4847
|
setup(props2, {
|
@@ -4847,7 +4860,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
4847
4860
|
if (props2.loading) {
|
4848
4861
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
4849
4862
|
return vue.createVNode(Loading, {
|
4850
|
-
"class": bem$
|
4863
|
+
"class": bem$1f("loading"),
|
4851
4864
|
"color": color
|
4852
4865
|
}, null);
|
4853
4866
|
}
|
@@ -4872,7 +4885,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
4872
4885
|
};
|
4873
4886
|
return vue.createVNode("div", {
|
4874
4887
|
"role": "switch",
|
4875
|
-
"class": bem$
|
4888
|
+
"class": bem$1f({
|
4876
4889
|
on: checked,
|
4877
4890
|
loading,
|
4878
4891
|
disabled
|
@@ -4882,16 +4895,16 @@ var stdin_default$1s = vue.defineComponent({
|
|
4882
4895
|
"aria-checked": checked,
|
4883
4896
|
"onClick": onClick
|
4884
4897
|
}, [vue.createVNode("div", {
|
4885
|
-
"class": bem$
|
4898
|
+
"class": bem$1f("node")
|
4886
4899
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4887
4900
|
};
|
4888
4901
|
}
|
4889
4902
|
});
|
4890
|
-
const Switch = withInstall(stdin_default$
|
4891
|
-
const [name$
|
4903
|
+
const Switch = withInstall(stdin_default$1t);
|
4904
|
+
const [name$1i, bem$1e] = createNamespace("address-edit-detail");
|
4892
4905
|
const t$j = createNamespace("address-edit")[2];
|
4893
|
-
var stdin_default$
|
4894
|
-
name: name$
|
4906
|
+
var stdin_default$1s = vue.defineComponent({
|
4907
|
+
name: name$1i,
|
4895
4908
|
props: {
|
4896
4909
|
show: Boolean,
|
4897
4910
|
rows: numericProp,
|
@@ -4925,7 +4938,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4925
4938
|
"icon": "location-o",
|
4926
4939
|
"title": express.name,
|
4927
4940
|
"label": express.address,
|
4928
|
-
"class": bem$
|
4941
|
+
"class": bem$1e("search-item"),
|
4929
4942
|
"border": false,
|
4930
4943
|
"onClick": () => onSelect(express)
|
4931
4944
|
}, null));
|
@@ -4939,7 +4952,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4939
4952
|
"autosize": true,
|
4940
4953
|
"clearable": true,
|
4941
4954
|
"ref": field,
|
4942
|
-
"class": bem$
|
4955
|
+
"class": bem$1e(),
|
4943
4956
|
"rows": props2.rows,
|
4944
4957
|
"type": "textarea",
|
4945
4958
|
"rules": props2.rules,
|
@@ -4956,7 +4969,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
4956
4969
|
};
|
4957
4970
|
}
|
4958
4971
|
});
|
4959
|
-
const [name$
|
4972
|
+
const [name$1h, bem$1d, t$i] = createNamespace("address-edit");
|
4960
4973
|
const DEFAULT_DATA = {
|
4961
4974
|
name: "",
|
4962
4975
|
tel: "",
|
@@ -4996,8 +5009,8 @@ const addressEditProps = {
|
|
4996
5009
|
default: isMobile
|
4997
5010
|
}
|
4998
5011
|
};
|
4999
|
-
var stdin_default$
|
5000
|
-
name: name$
|
5012
|
+
var stdin_default$1r = vue.defineComponent({
|
5013
|
+
name: name$1h,
|
5001
5014
|
props: addressEditProps,
|
5002
5015
|
emits: ["save", "focus", "change", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
5003
5016
|
setup(props2, {
|
@@ -5115,7 +5128,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
5115
5128
|
"center": true,
|
5116
5129
|
"border": false,
|
5117
5130
|
"title": t$i("defaultAddress"),
|
5118
|
-
"class": bem$
|
5131
|
+
"class": bem$1d("default")
|
5119
5132
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
5120
5133
|
}
|
5121
5134
|
};
|
@@ -5141,13 +5154,13 @@ var stdin_default$1q = vue.defineComponent({
|
|
5141
5154
|
disableArea
|
5142
5155
|
} = props2;
|
5143
5156
|
return vue.createVNode(Form, {
|
5144
|
-
"class": bem$
|
5157
|
+
"class": bem$1d(),
|
5145
5158
|
"onSubmit": onSave
|
5146
5159
|
}, {
|
5147
5160
|
default: () => {
|
5148
5161
|
var _a;
|
5149
5162
|
return [vue.createVNode("div", {
|
5150
|
-
"class": bem$
|
5163
|
+
"class": bem$1d("fields")
|
5151
5164
|
}, [vue.createVNode(Field, {
|
5152
5165
|
"modelValue": data.name,
|
5153
5166
|
"onUpdate:modelValue": [($event) => data.name = $event, (val) => onChange("name", val)],
|
@@ -5171,14 +5184,14 @@ var stdin_default$1q = vue.defineComponent({
|
|
5171
5184
|
"label": t$i("area"),
|
5172
5185
|
"is-link": !disableArea,
|
5173
5186
|
"modelValue": areaText.value,
|
5174
|
-
"rules": rules.value.areaCode,
|
5187
|
+
"rules": props2.showArea ? rules.value.areaCode : void 0,
|
5175
5188
|
"placeholder": props2.areaPlaceholder || t$i("area"),
|
5176
5189
|
"onFocus": () => onFocus("areaCode"),
|
5177
5190
|
"onClick": () => {
|
5178
5191
|
emit("clickArea");
|
5179
5192
|
showAreaPopup.value = !disableArea;
|
5180
5193
|
}
|
5181
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
5194
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1s, {
|
5182
5195
|
"show": props2.showDetail,
|
5183
5196
|
"rows": props2.detailRows,
|
5184
5197
|
"rules": rules.value.addressDetail,
|
@@ -5192,19 +5205,19 @@ var stdin_default$1q = vue.defineComponent({
|
|
5192
5205
|
"onInput": onChangeDetail,
|
5193
5206
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5194
5207
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
5195
|
-
"class": bem$
|
5208
|
+
"class": bem$1d("buttons")
|
5196
5209
|
}, [vue.createVNode(Button, {
|
5197
5210
|
"block": true,
|
5198
5211
|
"round": true,
|
5199
5212
|
"type": "primary",
|
5200
5213
|
"text": props2.saveButtonText || t$i("save"),
|
5201
|
-
"class": bem$
|
5214
|
+
"class": bem$1d("button"),
|
5202
5215
|
"loading": props2.isSaving,
|
5203
5216
|
"nativeType": "submit"
|
5204
5217
|
}, null), props2.showDelete && vue.createVNode(Button, {
|
5205
5218
|
"block": true,
|
5206
5219
|
"round": true,
|
5207
|
-
"class": bem$
|
5220
|
+
"class": bem$1d("button"),
|
5208
5221
|
"loading": props2.isDeleting,
|
5209
5222
|
"text": props2.deleteButtonText || t$i("delete"),
|
5210
5223
|
"onClick": onDelete
|
@@ -5234,8 +5247,8 @@ var stdin_default$1q = vue.defineComponent({
|
|
5234
5247
|
};
|
5235
5248
|
}
|
5236
5249
|
});
|
5237
|
-
const AddressEdit = withInstall(stdin_default$
|
5238
|
-
const [name$
|
5250
|
+
const AddressEdit = withInstall(stdin_default$1r);
|
5251
|
+
const [name$1g, bem$1c] = createNamespace("radio-group");
|
5239
5252
|
const radioGroupProps = {
|
5240
5253
|
shape: String,
|
5241
5254
|
disabled: Boolean,
|
@@ -5244,9 +5257,9 @@ const radioGroupProps = {
|
|
5244
5257
|
modelValue: unknownProp,
|
5245
5258
|
checkedColor: String
|
5246
5259
|
};
|
5247
|
-
const RADIO_KEY = Symbol(name$
|
5248
|
-
var stdin_default$
|
5249
|
-
name: name$
|
5260
|
+
const RADIO_KEY = Symbol(name$1g);
|
5261
|
+
var stdin_default$1q = vue.defineComponent({
|
5262
|
+
name: name$1g,
|
5250
5263
|
props: radioGroupProps,
|
5251
5264
|
emits: ["change", "update:modelValue"],
|
5252
5265
|
setup(props2, {
|
@@ -5266,14 +5279,14 @@ var stdin_default$1p = vue.defineComponent({
|
|
5266
5279
|
return () => {
|
5267
5280
|
var _a;
|
5268
5281
|
return vue.createVNode("div", {
|
5269
|
-
"class": bem$
|
5282
|
+
"class": bem$1c([props2.direction]),
|
5270
5283
|
"role": "radiogroup"
|
5271
5284
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5272
5285
|
};
|
5273
5286
|
}
|
5274
5287
|
});
|
5275
|
-
const RadioGroup = withInstall(stdin_default$
|
5276
|
-
const [name$
|
5288
|
+
const RadioGroup = withInstall(stdin_default$1q);
|
5289
|
+
const [name$1f, bem$1b] = createNamespace("tag");
|
5277
5290
|
const tagProps = {
|
5278
5291
|
size: String,
|
5279
5292
|
mark: Boolean,
|
@@ -5285,8 +5298,8 @@ const tagProps = {
|
|
5285
5298
|
textColor: String,
|
5286
5299
|
closeable: Boolean
|
5287
5300
|
};
|
5288
|
-
var stdin_default$
|
5289
|
-
name: name$
|
5301
|
+
var stdin_default$1p = vue.defineComponent({
|
5302
|
+
name: name$1f,
|
5290
5303
|
props: tagProps,
|
5291
5304
|
emits: ["close"],
|
5292
5305
|
setup(props2, {
|
@@ -5329,12 +5342,12 @@ var stdin_default$1o = vue.defineComponent({
|
|
5329
5342
|
}
|
5330
5343
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5331
5344
|
"name": "cross",
|
5332
|
-
"class": [bem$
|
5345
|
+
"class": [bem$1b("close"), HAPTICS_FEEDBACK],
|
5333
5346
|
"onClick": onClose
|
5334
5347
|
}, null);
|
5335
5348
|
return vue.createVNode("span", {
|
5336
5349
|
"style": getStyle(),
|
5337
|
-
"class": bem$
|
5350
|
+
"class": bem$1b([classes, type])
|
5338
5351
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5339
5352
|
};
|
5340
5353
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5344,7 +5357,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
5344
5357
|
});
|
5345
5358
|
}
|
5346
5359
|
});
|
5347
|
-
const Tag = withInstall(stdin_default$
|
5360
|
+
const Tag = withInstall(stdin_default$1p);
|
5348
5361
|
const checkerProps = {
|
5349
5362
|
name: unknownProp,
|
5350
5363
|
disabled: Boolean,
|
@@ -5354,7 +5367,7 @@ const checkerProps = {
|
|
5354
5367
|
labelPosition: String,
|
5355
5368
|
labelDisabled: Boolean
|
5356
5369
|
};
|
5357
|
-
var stdin_default$
|
5370
|
+
var stdin_default$1o = vue.defineComponent({
|
5358
5371
|
props: extend({}, checkerProps, {
|
5359
5372
|
bem: makeRequiredProp(Function),
|
5360
5373
|
role: String,
|
@@ -5451,12 +5464,18 @@ var stdin_default$1n = vue.defineComponent({
|
|
5451
5464
|
}, null)]);
|
5452
5465
|
};
|
5453
5466
|
const renderLabel = () => {
|
5467
|
+
const {
|
5468
|
+
checked
|
5469
|
+
} = props2;
|
5454
5470
|
if (slots.default) {
|
5455
5471
|
return vue.createVNode("span", {
|
5456
5472
|
"class": props2.bem("label", [props2.labelPosition, {
|
5457
5473
|
disabled: disabled.value
|
5458
5474
|
}])
|
5459
|
-
}, [slots.default(
|
5475
|
+
}, [slots.default({
|
5476
|
+
checked,
|
5477
|
+
disabled: disabled.value
|
5478
|
+
})]);
|
5460
5479
|
}
|
5461
5480
|
};
|
5462
5481
|
return () => {
|
@@ -5477,9 +5496,9 @@ var stdin_default$1n = vue.defineComponent({
|
|
5477
5496
|
const radioProps = extend({}, checkerProps, {
|
5478
5497
|
shape: String
|
5479
5498
|
});
|
5480
|
-
const [name$
|
5481
|
-
var stdin_default$
|
5482
|
-
name: name$
|
5499
|
+
const [name$1e, bem$1a] = createNamespace("radio");
|
5500
|
+
var stdin_default$1n = vue.defineComponent({
|
5501
|
+
name: name$1e,
|
5483
5502
|
props: radioProps,
|
5484
5503
|
emits: ["update:modelValue"],
|
5485
5504
|
setup(props2, {
|
@@ -5500,8 +5519,8 @@ var stdin_default$1m = vue.defineComponent({
|
|
5500
5519
|
emit("update:modelValue", props2.name);
|
5501
5520
|
}
|
5502
5521
|
};
|
5503
|
-
return () => vue.createVNode(stdin_default$
|
5504
|
-
"bem": bem$
|
5522
|
+
return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
|
5523
|
+
"bem": bem$1a,
|
5505
5524
|
"role": "radio",
|
5506
5525
|
"parent": parent,
|
5507
5526
|
"checked": checked(),
|
@@ -5509,10 +5528,10 @@ var stdin_default$1m = vue.defineComponent({
|
|
5509
5528
|
}, props2), pick(slots, ["default", "icon"]));
|
5510
5529
|
}
|
5511
5530
|
});
|
5512
|
-
const Radio = withInstall(stdin_default$
|
5513
|
-
const [name$
|
5514
|
-
var stdin_default$
|
5515
|
-
name: name$
|
5531
|
+
const Radio = withInstall(stdin_default$1n);
|
5532
|
+
const [name$1d, bem$19] = createNamespace("address-item");
|
5533
|
+
var stdin_default$1m = vue.defineComponent({
|
5534
|
+
name: name$1d,
|
5516
5535
|
props: {
|
5517
5536
|
address: makeRequiredProp(Object),
|
5518
5537
|
disabled: Boolean,
|
@@ -5533,7 +5552,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5533
5552
|
};
|
5534
5553
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5535
5554
|
"name": props2.rightIcon,
|
5536
|
-
"class": bem$
|
5555
|
+
"class": bem$19("edit"),
|
5537
5556
|
"onClick": (event) => {
|
5538
5557
|
event.stopPropagation();
|
5539
5558
|
emit("edit");
|
@@ -5548,7 +5567,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5548
5567
|
return vue.createVNode(Tag, {
|
5549
5568
|
"type": "primary",
|
5550
5569
|
"round": true,
|
5551
|
-
"class": bem$
|
5570
|
+
"class": bem$19("tag")
|
5552
5571
|
}, {
|
5553
5572
|
default: () => [props2.defaultTagText]
|
5554
5573
|
});
|
@@ -5561,9 +5580,9 @@ var stdin_default$1l = vue.defineComponent({
|
|
5561
5580
|
switchable
|
5562
5581
|
} = props2;
|
5563
5582
|
const Info = [vue.createVNode("div", {
|
5564
|
-
"class": bem$
|
5583
|
+
"class": bem$19("name")
|
5565
5584
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
5566
|
-
"class": bem$
|
5585
|
+
"class": bem$19("address")
|
5567
5586
|
}, [address.address])];
|
5568
5587
|
if (switchable && !disabled) {
|
5569
5588
|
return vue.createVNode(Radio, {
|
@@ -5581,13 +5600,13 @@ var stdin_default$1l = vue.defineComponent({
|
|
5581
5600
|
disabled
|
5582
5601
|
} = props2;
|
5583
5602
|
return vue.createVNode("div", {
|
5584
|
-
"class": bem$
|
5603
|
+
"class": bem$19({
|
5585
5604
|
disabled
|
5586
5605
|
}),
|
5587
5606
|
"onClick": onClick
|
5588
5607
|
}, [vue.createVNode(Cell, {
|
5589
5608
|
"border": false,
|
5590
|
-
"titleClass": bem$
|
5609
|
+
"titleClass": bem$19("title")
|
5591
5610
|
}, {
|
5592
5611
|
title: renderContent,
|
5593
5612
|
"right-icon": renderRightIcon
|
@@ -5597,7 +5616,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
5597
5616
|
};
|
5598
5617
|
}
|
5599
5618
|
});
|
5600
|
-
const [name$
|
5619
|
+
const [name$1c, bem$18, t$h] = createNamespace("address-list");
|
5601
5620
|
const addressListProps = {
|
5602
5621
|
list: makeArrayProp(),
|
5603
5622
|
modelValue: numericProp,
|
@@ -5609,8 +5628,8 @@ const addressListProps = {
|
|
5609
5628
|
defaultTagText: String,
|
5610
5629
|
rightIcon: makeStringProp("edit")
|
5611
5630
|
};
|
5612
|
-
var stdin_default$
|
5613
|
-
name: name$
|
5631
|
+
var stdin_default$1l = vue.defineComponent({
|
5632
|
+
name: name$1c,
|
5614
5633
|
props: addressListProps,
|
5615
5634
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5616
5635
|
setup(props2, {
|
@@ -5626,7 +5645,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
5626
5645
|
emit("update:modelValue", item.id);
|
5627
5646
|
}
|
5628
5647
|
};
|
5629
|
-
return vue.createVNode(stdin_default$
|
5648
|
+
return vue.createVNode(stdin_default$1m, {
|
5630
5649
|
"key": item.id,
|
5631
5650
|
"address": item,
|
5632
5651
|
"disabled": disabled,
|
@@ -5647,13 +5666,13 @@ var stdin_default$1k = vue.defineComponent({
|
|
5647
5666
|
}
|
5648
5667
|
};
|
5649
5668
|
const renderBottom = () => props2.showAddButton ? vue.createVNode("div", {
|
5650
|
-
"class": [bem$
|
5669
|
+
"class": [bem$18("bottom"), "van-safe-area-bottom"]
|
5651
5670
|
}, [vue.createVNode(Button, {
|
5652
5671
|
"round": true,
|
5653
5672
|
"block": true,
|
5654
5673
|
"type": "primary",
|
5655
5674
|
"text": props2.addButtonText || t$h("add"),
|
5656
|
-
"class": bem$
|
5675
|
+
"class": bem$18("add"),
|
5657
5676
|
"onClick": () => emit("add")
|
5658
5677
|
}, null)]) : void 0;
|
5659
5678
|
return () => {
|
@@ -5661,10 +5680,10 @@ var stdin_default$1k = vue.defineComponent({
|
|
5661
5680
|
const List2 = renderList(props2.list);
|
5662
5681
|
const DisabledList = renderList(props2.disabledList, true);
|
5663
5682
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
5664
|
-
"class": bem$
|
5683
|
+
"class": bem$18("disabled-text")
|
5665
5684
|
}, [props2.disabledText]);
|
5666
5685
|
return vue.createVNode("div", {
|
5667
|
-
"class": bem$
|
5686
|
+
"class": bem$18()
|
5668
5687
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
5669
5688
|
"modelValue": props2.modelValue
|
5670
5689
|
}, {
|
@@ -5673,7 +5692,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
5673
5692
|
};
|
5674
5693
|
}
|
5675
5694
|
});
|
5676
|
-
const AddressList = withInstall(stdin_default$
|
5695
|
+
const AddressList = withInstall(stdin_default$1l);
|
5677
5696
|
const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5678
5697
|
const modeType = {
|
5679
5698
|
event: "event",
|
@@ -5826,7 +5845,7 @@ class ImageCache {
|
|
5826
5845
|
this.caches.shift();
|
5827
5846
|
}
|
5828
5847
|
}
|
5829
|
-
const [name$
|
5848
|
+
const [name$1b, bem$17] = createNamespace("back-top");
|
5830
5849
|
const backTopProps = {
|
5831
5850
|
right: numericProp,
|
5832
5851
|
bottom: numericProp,
|
@@ -5839,8 +5858,8 @@ const backTopProps = {
|
|
5839
5858
|
default: "body"
|
5840
5859
|
}
|
5841
5860
|
};
|
5842
|
-
var stdin_default$
|
5843
|
-
name: name$
|
5861
|
+
var stdin_default$1k = vue.defineComponent({
|
5862
|
+
name: name$1b,
|
5844
5863
|
inheritAttrs: false,
|
5845
5864
|
props: backTopProps,
|
5846
5865
|
emits: ["click"],
|
@@ -5912,19 +5931,19 @@ var stdin_default$1j = vue.defineComponent({
|
|
5912
5931
|
return () => {
|
5913
5932
|
const Content = vue.createVNode("div", vue.mergeProps({
|
5914
5933
|
"ref": !props2.teleport ? root : void 0,
|
5915
|
-
"class": bem$
|
5934
|
+
"class": bem$17({
|
5916
5935
|
active: show.value
|
5917
5936
|
}),
|
5918
5937
|
"style": style.value,
|
5919
5938
|
"onClick": onClick
|
5920
5939
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
5921
5940
|
"name": "back-top",
|
5922
|
-
"class": bem$
|
5941
|
+
"class": bem$17("icon")
|
5923
5942
|
}, null)]);
|
5924
5943
|
if (props2.teleport) {
|
5925
5944
|
return [vue.createVNode("div", {
|
5926
5945
|
"ref": root,
|
5927
|
-
"class": bem$
|
5946
|
+
"class": bem$17("placeholder")
|
5928
5947
|
}, null), vue.createVNode(vue.Teleport, {
|
5929
5948
|
"to": props2.teleport
|
5930
5949
|
}, {
|
@@ -5935,7 +5954,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
5935
5954
|
};
|
5936
5955
|
}
|
5937
5956
|
});
|
5938
|
-
const BackTop = withInstall(stdin_default$
|
5957
|
+
const BackTop = withInstall(stdin_default$1k);
|
5939
5958
|
var __async = (__this, __arguments, generator) => {
|
5940
5959
|
return new Promise((resolve, reject) => {
|
5941
5960
|
var fulfilled = (value) => {
|
@@ -5964,9 +5983,9 @@ const barrageProps = {
|
|
5964
5983
|
delay: makeNumberProp(300),
|
5965
5984
|
modelValue: makeArrayProp()
|
5966
5985
|
};
|
5967
|
-
const [name$
|
5968
|
-
var stdin_default$
|
5969
|
-
name: name$
|
5986
|
+
const [name$1a, bem$16] = createNamespace("barrage");
|
5987
|
+
var stdin_default$1j = vue.defineComponent({
|
5988
|
+
name: name$1a,
|
5970
5989
|
props: barrageProps,
|
5971
5990
|
emits: ["update:modelValue"],
|
5972
5991
|
setup(props2, {
|
@@ -5974,7 +5993,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
5974
5993
|
slots
|
5975
5994
|
}) {
|
5976
5995
|
const barrageWrapper = vue.ref();
|
5977
|
-
const className = bem$
|
5996
|
+
const className = bem$16("item");
|
5978
5997
|
const total = vue.ref(0);
|
5979
5998
|
const barrageItems = [];
|
5980
5999
|
const createBarrageItem = (text, delay = props2.delay) => {
|
@@ -6055,15 +6074,15 @@ var stdin_default$1i = vue.defineComponent({
|
|
6055
6074
|
return () => {
|
6056
6075
|
var _a;
|
6057
6076
|
return vue.createVNode("div", {
|
6058
|
-
"class": bem$
|
6077
|
+
"class": bem$16(),
|
6059
6078
|
"ref": barrageWrapper,
|
6060
6079
|
"style": rootStyle.value
|
6061
6080
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6062
6081
|
};
|
6063
6082
|
}
|
6064
6083
|
});
|
6065
|
-
const Barrage = withInstall(stdin_default$
|
6066
|
-
const [name$
|
6084
|
+
const Barrage = withInstall(stdin_default$1j);
|
6085
|
+
const [name$19, bem$15, t$g] = createNamespace("calendar");
|
6067
6086
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6068
6087
|
function compareMonth(date1, date2) {
|
6069
6088
|
const year1 = date1.getFullYear();
|
@@ -6143,9 +6162,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
6143
6162
|
}
|
6144
6163
|
return value;
|
6145
6164
|
});
|
6146
|
-
const [name$
|
6147
|
-
var stdin_default$
|
6148
|
-
name: name$
|
6165
|
+
const [name$18] = createNamespace("calendar-day");
|
6166
|
+
var stdin_default$1i = vue.defineComponent({
|
6167
|
+
name: name$18,
|
6149
6168
|
props: {
|
6150
6169
|
item: makeRequiredProp(Object),
|
6151
6170
|
color: String,
|
@@ -6209,7 +6228,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6209
6228
|
} = props2.item;
|
6210
6229
|
if (topInfo || slots["top-info"]) {
|
6211
6230
|
return vue.createVNode("div", {
|
6212
|
-
"class": bem$
|
6231
|
+
"class": bem$15("top-info")
|
6213
6232
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
6214
6233
|
}
|
6215
6234
|
};
|
@@ -6219,7 +6238,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6219
6238
|
} = props2.item;
|
6220
6239
|
if (bottomInfo || slots["bottom-info"]) {
|
6221
6240
|
return vue.createVNode("div", {
|
6222
|
-
"class": bem$
|
6241
|
+
"class": bem$15("bottom-info")
|
6223
6242
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6224
6243
|
}
|
6225
6244
|
};
|
@@ -6236,7 +6255,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6236
6255
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
6237
6256
|
if (type === "selected") {
|
6238
6257
|
return vue.createVNode("div", {
|
6239
|
-
"class": bem$
|
6258
|
+
"class": bem$15("selected-day"),
|
6240
6259
|
"style": {
|
6241
6260
|
width: rowHeight,
|
6242
6261
|
height: rowHeight,
|
@@ -6253,21 +6272,21 @@ var stdin_default$1h = vue.defineComponent({
|
|
6253
6272
|
} = props2.item;
|
6254
6273
|
if (type === "placeholder") {
|
6255
6274
|
return vue.createVNode("div", {
|
6256
|
-
"class": bem$
|
6275
|
+
"class": bem$15("day"),
|
6257
6276
|
"style": style.value
|
6258
6277
|
}, null);
|
6259
6278
|
}
|
6260
6279
|
return vue.createVNode("div", {
|
6261
6280
|
"role": "gridcell",
|
6262
6281
|
"style": style.value,
|
6263
|
-
"class": [bem$
|
6282
|
+
"class": [bem$15("day", type), className],
|
6264
6283
|
"tabindex": type === "disabled" ? void 0 : -1,
|
6265
6284
|
"onClick": onClick
|
6266
6285
|
}, [renderContent()]);
|
6267
6286
|
};
|
6268
6287
|
}
|
6269
6288
|
});
|
6270
|
-
const [name$
|
6289
|
+
const [name$17] = createNamespace("calendar-month");
|
6271
6290
|
const calendarMonthProps = {
|
6272
6291
|
date: makeRequiredProp(Date),
|
6273
6292
|
type: String,
|
@@ -6284,8 +6303,8 @@ const calendarMonthProps = {
|
|
6284
6303
|
showMonthTitle: Boolean,
|
6285
6304
|
firstDayOfWeek: Number
|
6286
6305
|
};
|
6287
|
-
var stdin_default$
|
6288
|
-
name: name$
|
6306
|
+
var stdin_default$1h = vue.defineComponent({
|
6307
|
+
name: name$17,
|
6289
6308
|
props: calendarMonthProps,
|
6290
6309
|
emits: ["click", "clickDisabledDate"],
|
6291
6310
|
setup(props2, {
|
@@ -6390,7 +6409,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6390
6409
|
const renderTitle = () => {
|
6391
6410
|
if (props2.showMonthTitle) {
|
6392
6411
|
return vue.createVNode("div", {
|
6393
|
-
"class": bem$
|
6412
|
+
"class": bem$15("month-title")
|
6394
6413
|
}, [slots["month-title"] ? slots["month-title"]({
|
6395
6414
|
date: props2.date,
|
6396
6415
|
text: title.value
|
@@ -6400,7 +6419,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6400
6419
|
const renderMark = () => {
|
6401
6420
|
if (props2.showMark && shouldRender.value) {
|
6402
6421
|
return vue.createVNode("div", {
|
6403
|
-
"class": bem$
|
6422
|
+
"class": bem$15("month-mark")
|
6404
6423
|
}, [props2.date.getMonth() + 1]);
|
6405
6424
|
}
|
6406
6425
|
};
|
@@ -6440,7 +6459,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6440
6459
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
6441
6460
|
}
|
6442
6461
|
};
|
6443
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
6462
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1i, {
|
6444
6463
|
"item": item,
|
6445
6464
|
"index": index,
|
6446
6465
|
"color": props2.color,
|
@@ -6452,7 +6471,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
6452
6471
|
const renderDays = () => vue.createVNode("div", {
|
6453
6472
|
"ref": daysRef,
|
6454
6473
|
"role": "grid",
|
6455
|
-
"class": bem$
|
6474
|
+
"class": bem$15("days")
|
6456
6475
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6457
6476
|
useExpose({
|
6458
6477
|
getTitle,
|
@@ -6462,14 +6481,14 @@ var stdin_default$1g = vue.defineComponent({
|
|
6462
6481
|
disabledDays
|
6463
6482
|
});
|
6464
6483
|
return () => vue.createVNode("div", {
|
6465
|
-
"class": bem$
|
6484
|
+
"class": bem$15("month"),
|
6466
6485
|
"ref": monthRef
|
6467
6486
|
}, [renderTitle(), renderDays()]);
|
6468
6487
|
}
|
6469
6488
|
});
|
6470
|
-
const [name$
|
6471
|
-
var stdin_default$
|
6472
|
-
name: name$
|
6489
|
+
const [name$16] = createNamespace("calendar-header");
|
6490
|
+
var stdin_default$1g = vue.defineComponent({
|
6491
|
+
name: name$16,
|
6473
6492
|
props: {
|
6474
6493
|
date: Date,
|
6475
6494
|
title: String,
|
@@ -6488,7 +6507,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
6488
6507
|
const text = props2.title || t$g("title");
|
6489
6508
|
const title = slots.title ? slots.title() : text;
|
6490
6509
|
return vue.createVNode("div", {
|
6491
|
-
"class": bem$
|
6510
|
+
"class": bem$15("header-title")
|
6492
6511
|
}, [title]);
|
6493
6512
|
}
|
6494
6513
|
};
|
@@ -6500,7 +6519,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
6500
6519
|
text: props2.subtitle
|
6501
6520
|
}) : props2.subtitle;
|
6502
6521
|
return vue.createVNode("div", {
|
6503
|
-
"class": bem$
|
6522
|
+
"class": bem$15("header-subtitle"),
|
6504
6523
|
"onClick": onClickSubtitle
|
6505
6524
|
}, [title]);
|
6506
6525
|
}
|
@@ -6512,13 +6531,13 @@ var stdin_default$1f = vue.defineComponent({
|
|
6512
6531
|
const weekdays = t$g("weekdays");
|
6513
6532
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
6514
6533
|
return vue.createVNode("div", {
|
6515
|
-
"class": bem$
|
6534
|
+
"class": bem$15("weekdays")
|
6516
6535
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
6517
|
-
"class": bem$
|
6536
|
+
"class": bem$15("weekday")
|
6518
6537
|
}, [text]))]);
|
6519
6538
|
};
|
6520
6539
|
return () => vue.createVNode("div", {
|
6521
|
-
"class": bem$
|
6540
|
+
"class": bem$15("header")
|
6522
6541
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
6523
6542
|
}
|
6524
6543
|
});
|
@@ -6569,8 +6588,8 @@ const calendarProps = {
|
|
6569
6588
|
validator: (val) => val >= 0 && val <= 6
|
6570
6589
|
}
|
6571
6590
|
};
|
6572
|
-
var stdin_default$
|
6573
|
-
name: name$
|
6591
|
+
var stdin_default$1f = vue.defineComponent({
|
6592
|
+
name: name$19,
|
6574
6593
|
props: calendarProps,
|
6575
6594
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate"],
|
6576
6595
|
setup(props2, {
|
@@ -6619,7 +6638,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6619
6638
|
let bodyHeight;
|
6620
6639
|
const bodyRef = vue.ref();
|
6621
6640
|
const subtitle = vue.ref({
|
6622
|
-
|
6641
|
+
textFn: () => "",
|
6623
6642
|
date: void 0
|
6624
6643
|
});
|
6625
6644
|
const currentDate = vue.ref(getInitialDate());
|
@@ -6683,7 +6702,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6683
6702
|
});
|
6684
6703
|
if (currentMonth) {
|
6685
6704
|
subtitle.value = {
|
6686
|
-
|
6705
|
+
textFn: currentMonth.getTitle,
|
6687
6706
|
date: currentMonth.date
|
6688
6707
|
};
|
6689
6708
|
}
|
@@ -6833,7 +6852,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6833
6852
|
const updateShow = (value) => emit("update:show", value);
|
6834
6853
|
const renderMonth = (date, index) => {
|
6835
6854
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
6836
|
-
return vue.createVNode(stdin_default$
|
6855
|
+
return vue.createVNode(stdin_default$1h, vue.mergeProps({
|
6837
6856
|
"ref": setMonthRefs(index),
|
6838
6857
|
"date": date,
|
6839
6858
|
"currentDate": currentDate.value,
|
@@ -6857,7 +6876,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6857
6876
|
"block": true,
|
6858
6877
|
"type": "primary",
|
6859
6878
|
"color": props2.color,
|
6860
|
-
"class": bem$
|
6879
|
+
"class": bem$15("confirm"),
|
6861
6880
|
"disabled": disabled,
|
6862
6881
|
"nativeType": "button",
|
6863
6882
|
"onClick": onConfirm
|
@@ -6869,25 +6888,28 @@ var stdin_default$1e = vue.defineComponent({
|
|
6869
6888
|
}
|
6870
6889
|
};
|
6871
6890
|
const renderFooter = () => vue.createVNode("div", {
|
6872
|
-
"class": [bem$
|
6891
|
+
"class": [bem$15("footer"), {
|
6873
6892
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
6874
6893
|
}]
|
6875
6894
|
}, [renderFooterButton()]);
|
6876
|
-
const renderCalendar = () =>
|
6877
|
-
|
6878
|
-
|
6879
|
-
|
6880
|
-
|
6881
|
-
|
6882
|
-
|
6883
|
-
|
6884
|
-
|
6885
|
-
|
6886
|
-
|
6887
|
-
|
6888
|
-
"
|
6889
|
-
|
6890
|
-
|
6895
|
+
const renderCalendar = () => {
|
6896
|
+
const subTitle = subtitle.value.textFn();
|
6897
|
+
return vue.createVNode("div", {
|
6898
|
+
"class": bem$15()
|
6899
|
+
}, [vue.createVNode(stdin_default$1g, {
|
6900
|
+
"date": subtitle.value.date,
|
6901
|
+
"title": props2.title,
|
6902
|
+
"subtitle": subTitle,
|
6903
|
+
"showTitle": props2.showTitle,
|
6904
|
+
"showSubtitle": props2.showSubtitle,
|
6905
|
+
"firstDayOfWeek": dayOffset.value,
|
6906
|
+
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6907
|
+
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
6908
|
+
"ref": bodyRef,
|
6909
|
+
"class": bem$15("body"),
|
6910
|
+
"onScroll": onScroll
|
6911
|
+
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6912
|
+
};
|
6891
6913
|
vue.watch(() => props2.show, init);
|
6892
6914
|
vue.watch(() => [props2.type, props2.minDate, props2.maxDate], () => reset(getInitialDate(currentDate.value)));
|
6893
6915
|
vue.watch(() => props2.defaultDate, (value = null) => {
|
@@ -6904,7 +6926,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
6904
6926
|
if (props2.poppable) {
|
6905
6927
|
return vue.createVNode(Popup, {
|
6906
6928
|
"show": props2.show,
|
6907
|
-
"class": bem$
|
6929
|
+
"class": bem$15("popup"),
|
6908
6930
|
"round": props2.round,
|
6909
6931
|
"position": props2.position,
|
6910
6932
|
"closeable": props2.showTitle || props2.showSubtitle,
|
@@ -6921,8 +6943,8 @@ var stdin_default$1e = vue.defineComponent({
|
|
6921
6943
|
};
|
6922
6944
|
}
|
6923
6945
|
});
|
6924
|
-
const Calendar = withInstall(stdin_default$
|
6925
|
-
const [name$
|
6946
|
+
const Calendar = withInstall(stdin_default$1f);
|
6947
|
+
const [name$15, bem$14] = createNamespace("image");
|
6926
6948
|
const imageProps = {
|
6927
6949
|
src: String,
|
6928
6950
|
alt: String,
|
@@ -6941,8 +6963,8 @@ const imageProps = {
|
|
6941
6963
|
showLoading: truthProp,
|
6942
6964
|
loadingIcon: makeStringProp("photo")
|
6943
6965
|
};
|
6944
|
-
var stdin_default$
|
6945
|
-
name: name$
|
6966
|
+
var stdin_default$1e = vue.defineComponent({
|
6967
|
+
name: name$15,
|
6946
6968
|
props: imageProps,
|
6947
6969
|
emits: ["load", "error"],
|
6948
6970
|
setup(props2, {
|
@@ -7003,13 +7025,13 @@ var stdin_default$1d = vue.defineComponent({
|
|
7003
7025
|
const renderPlaceholder = () => {
|
7004
7026
|
if (loading.value && props2.showLoading) {
|
7005
7027
|
return vue.createVNode("div", {
|
7006
|
-
"class": bem$
|
7007
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
7028
|
+
"class": bem$14("loading")
|
7029
|
+
}, [renderIcon(props2.loadingIcon, bem$14("loading-icon"), slots.loading)]);
|
7008
7030
|
}
|
7009
7031
|
if (error.value && props2.showError) {
|
7010
7032
|
return vue.createVNode("div", {
|
7011
|
-
"class": bem$
|
7012
|
-
}, [renderIcon(props2.errorIcon, bem$
|
7033
|
+
"class": bem$14("error")
|
7034
|
+
}, [renderIcon(props2.errorIcon, bem$14("error-icon"), slots.error)]);
|
7013
7035
|
}
|
7014
7036
|
};
|
7015
7037
|
const renderImage = () => {
|
@@ -7018,7 +7040,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
7018
7040
|
}
|
7019
7041
|
const attrs = {
|
7020
7042
|
alt: props2.alt,
|
7021
|
-
class: bem$
|
7043
|
+
class: bem$14("img"),
|
7022
7044
|
style: {
|
7023
7045
|
objectFit: props2.fit,
|
7024
7046
|
objectPosition: props2.position
|
@@ -7076,7 +7098,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
7076
7098
|
return () => {
|
7077
7099
|
var _a;
|
7078
7100
|
return vue.createVNode("div", {
|
7079
|
-
"class": bem$
|
7101
|
+
"class": bem$14({
|
7080
7102
|
round: props2.round,
|
7081
7103
|
block: props2.block
|
7082
7104
|
}),
|
@@ -7085,8 +7107,8 @@ var stdin_default$1d = vue.defineComponent({
|
|
7085
7107
|
};
|
7086
7108
|
}
|
7087
7109
|
});
|
7088
|
-
const Image$1 = withInstall(stdin_default$
|
7089
|
-
const [name$
|
7110
|
+
const Image$1 = withInstall(stdin_default$1e);
|
7111
|
+
const [name$14, bem$13] = createNamespace("card");
|
7090
7112
|
const cardProps = {
|
7091
7113
|
tag: String,
|
7092
7114
|
num: numericProp,
|
@@ -7100,8 +7122,8 @@ const cardProps = {
|
|
7100
7122
|
thumbLink: String,
|
7101
7123
|
originPrice: numericProp
|
7102
7124
|
};
|
7103
|
-
var stdin_default$
|
7104
|
-
name: name$
|
7125
|
+
var stdin_default$1d = vue.defineComponent({
|
7126
|
+
name: name$14,
|
7105
7127
|
props: cardProps,
|
7106
7128
|
emits: ["clickThumb"],
|
7107
7129
|
setup(props2, {
|
@@ -7114,14 +7136,14 @@ var stdin_default$1c = vue.defineComponent({
|
|
7114
7136
|
}
|
7115
7137
|
if (props2.title) {
|
7116
7138
|
return vue.createVNode("div", {
|
7117
|
-
"class": [bem$
|
7139
|
+
"class": [bem$13("title"), "van-multi-ellipsis--l2"]
|
7118
7140
|
}, [props2.title]);
|
7119
7141
|
}
|
7120
7142
|
};
|
7121
7143
|
const renderThumbTag = () => {
|
7122
7144
|
if (slots.tag || props2.tag) {
|
7123
7145
|
return vue.createVNode("div", {
|
7124
|
-
"class": bem$
|
7146
|
+
"class": bem$13("tag")
|
7125
7147
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
7126
7148
|
"mark": true,
|
7127
7149
|
"type": "primary"
|
@@ -7146,7 +7168,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
7146
7168
|
if (slots.thumb || props2.thumb) {
|
7147
7169
|
return vue.createVNode("a", {
|
7148
7170
|
"href": props2.thumbLink,
|
7149
|
-
"class": bem$
|
7171
|
+
"class": bem$13("thumb"),
|
7150
7172
|
"onClick": (event) => emit("clickThumb", event)
|
7151
7173
|
}, [renderThumbImage(), renderThumbTag()]);
|
7152
7174
|
}
|
@@ -7157,18 +7179,18 @@ var stdin_default$1c = vue.defineComponent({
|
|
7157
7179
|
}
|
7158
7180
|
if (props2.desc) {
|
7159
7181
|
return vue.createVNode("div", {
|
7160
|
-
"class": [bem$
|
7182
|
+
"class": [bem$13("desc"), "van-ellipsis"]
|
7161
7183
|
}, [props2.desc]);
|
7162
7184
|
}
|
7163
7185
|
};
|
7164
7186
|
const renderPriceText = () => {
|
7165
7187
|
const priceArr = props2.price.toString().split(".");
|
7166
7188
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
7167
|
-
"class": bem$
|
7189
|
+
"class": bem$13("price-currency")
|
7168
7190
|
}, [props2.currency]), vue.createVNode("span", {
|
7169
|
-
"class": bem$
|
7191
|
+
"class": bem$13("price-integer")
|
7170
7192
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7171
|
-
"class": bem$
|
7193
|
+
"class": bem$13("price-decimal")
|
7172
7194
|
}, [priceArr[1]])]);
|
7173
7195
|
};
|
7174
7196
|
return () => {
|
@@ -7178,34 +7200,34 @@ var stdin_default$1c = vue.defineComponent({
|
|
7178
7200
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
7179
7201
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
7180
7202
|
const Price = showPrice && vue.createVNode("div", {
|
7181
|
-
"class": bem$
|
7203
|
+
"class": bem$13("price")
|
7182
7204
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
7183
7205
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
7184
|
-
"class": bem$
|
7206
|
+
"class": bem$13("origin-price")
|
7185
7207
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
7186
7208
|
const Num = showNum && vue.createVNode("div", {
|
7187
|
-
"class": bem$
|
7209
|
+
"class": bem$13("num")
|
7188
7210
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
7189
7211
|
const Footer = slots.footer && vue.createVNode("div", {
|
7190
|
-
"class": bem$
|
7212
|
+
"class": bem$13("footer")
|
7191
7213
|
}, [slots.footer()]);
|
7192
7214
|
const Bottom = showBottom && vue.createVNode("div", {
|
7193
|
-
"class": bem$
|
7215
|
+
"class": bem$13("bottom")
|
7194
7216
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
7195
7217
|
return vue.createVNode("div", {
|
7196
|
-
"class": bem$
|
7218
|
+
"class": bem$13()
|
7197
7219
|
}, [vue.createVNode("div", {
|
7198
|
-
"class": bem$
|
7220
|
+
"class": bem$13("header")
|
7199
7221
|
}, [renderThumb(), vue.createVNode("div", {
|
7200
|
-
"class": bem$
|
7222
|
+
"class": bem$13("content", {
|
7201
7223
|
centered: props2.centered
|
7202
7224
|
})
|
7203
7225
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
7204
7226
|
};
|
7205
7227
|
}
|
7206
7228
|
});
|
7207
|
-
const Card = withInstall(stdin_default$
|
7208
|
-
const [name$
|
7229
|
+
const Card = withInstall(stdin_default$1d);
|
7230
|
+
const [name$13, bem$12, t$f] = createNamespace("cascader");
|
7209
7231
|
const cascaderProps = {
|
7210
7232
|
title: String,
|
7211
7233
|
options: makeArrayProp(),
|
@@ -7218,8 +7240,8 @@ const cascaderProps = {
|
|
7218
7240
|
placeholder: String,
|
7219
7241
|
activeColor: String
|
7220
7242
|
};
|
7221
|
-
var stdin_default$
|
7222
|
-
name: name$
|
7243
|
+
var stdin_default$1c = vue.defineComponent({
|
7244
|
+
name: name$13,
|
7223
7245
|
props: cascaderProps,
|
7224
7246
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
7225
7247
|
setup(props2, {
|
@@ -7328,12 +7350,12 @@ var stdin_default$1b = vue.defineComponent({
|
|
7328
7350
|
title
|
7329
7351
|
}) => emit("clickTab", name2, title);
|
7330
7352
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
7331
|
-
"class": bem$
|
7353
|
+
"class": bem$12("header")
|
7332
7354
|
}, [vue.createVNode("h2", {
|
7333
|
-
"class": bem$
|
7355
|
+
"class": bem$12("title")
|
7334
7356
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
7335
7357
|
"name": props2.closeIcon,
|
7336
|
-
"class": [bem$
|
7358
|
+
"class": [bem$12("close-icon"), HAPTICS_FEEDBACK],
|
7337
7359
|
"onClick": onClose
|
7338
7360
|
}, null) : null]) : null;
|
7339
7361
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7349,7 +7371,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7349
7371
|
return vue.createVNode("li", {
|
7350
7372
|
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7351
7373
|
"role": "menuitemradio",
|
7352
|
-
"class": [bem$
|
7374
|
+
"class": [bem$12("option", {
|
7353
7375
|
selected,
|
7354
7376
|
disabled
|
7355
7377
|
}), option.className],
|
@@ -7362,12 +7384,12 @@ var stdin_default$1b = vue.defineComponent({
|
|
7362
7384
|
"onClick": () => onSelect(option, tabIndex)
|
7363
7385
|
}, [Text, selected ? vue.createVNode(Icon, {
|
7364
7386
|
"name": "success",
|
7365
|
-
"class": bem$
|
7387
|
+
"class": bem$12("selected-icon")
|
7366
7388
|
}, null) : null]);
|
7367
7389
|
};
|
7368
7390
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
7369
7391
|
"role": "menu",
|
7370
|
-
"class": bem$
|
7392
|
+
"class": bem$12("options")
|
7371
7393
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
7372
7394
|
const renderTab = (tab, tabIndex) => {
|
7373
7395
|
const {
|
@@ -7378,7 +7400,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7378
7400
|
const title = selected ? selected[textKey] : placeholder;
|
7379
7401
|
return vue.createVNode(Tab, {
|
7380
7402
|
"title": title,
|
7381
|
-
"titleClass": bem$
|
7403
|
+
"titleClass": bem$12("tab", {
|
7382
7404
|
unselected: !selected
|
7383
7405
|
})
|
7384
7406
|
}, {
|
@@ -7397,7 +7419,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
7397
7419
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7398
7420
|
"shrink": true,
|
7399
7421
|
"animated": true,
|
7400
|
-
"class": bem$
|
7422
|
+
"class": bem$12("tabs"),
|
7401
7423
|
"color": props2.activeColor,
|
7402
7424
|
"swipeable": props2.swipeable,
|
7403
7425
|
"onClickTab": onClickTab
|
@@ -7432,19 +7454,19 @@ var stdin_default$1b = vue.defineComponent({
|
|
7432
7454
|
updateTabs();
|
7433
7455
|
});
|
7434
7456
|
return () => vue.createVNode("div", {
|
7435
|
-
"class": bem$
|
7457
|
+
"class": bem$12()
|
7436
7458
|
}, [renderHeader(), renderTabs()]);
|
7437
7459
|
}
|
7438
7460
|
});
|
7439
|
-
const Cascader = withInstall(stdin_default$
|
7440
|
-
const [name$
|
7461
|
+
const Cascader = withInstall(stdin_default$1c);
|
7462
|
+
const [name$12, bem$11] = createNamespace("cell-group");
|
7441
7463
|
const cellGroupProps = {
|
7442
7464
|
title: String,
|
7443
7465
|
inset: Boolean,
|
7444
7466
|
border: truthProp
|
7445
7467
|
};
|
7446
|
-
var stdin_default$
|
7447
|
-
name: name$
|
7468
|
+
var stdin_default$1b = vue.defineComponent({
|
7469
|
+
name: name$12,
|
7448
7470
|
inheritAttrs: false,
|
7449
7471
|
props: cellGroupProps,
|
7450
7472
|
setup(props2, {
|
@@ -7454,7 +7476,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
7454
7476
|
const renderGroup = () => {
|
7455
7477
|
var _a;
|
7456
7478
|
return vue.createVNode("div", vue.mergeProps({
|
7457
|
-
"class": [bem$
|
7479
|
+
"class": [bem$11({
|
7458
7480
|
inset: props2.inset
|
7459
7481
|
}), {
|
7460
7482
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
@@ -7462,7 +7484,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
7462
7484
|
}, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7463
7485
|
};
|
7464
7486
|
const renderTitle = () => vue.createVNode("div", {
|
7465
|
-
"class": bem$
|
7487
|
+
"class": bem$11("title", {
|
7466
7488
|
inset: props2.inset
|
7467
7489
|
})
|
7468
7490
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -7474,8 +7496,8 @@ var stdin_default$1a = vue.defineComponent({
|
|
7474
7496
|
};
|
7475
7497
|
}
|
7476
7498
|
});
|
7477
|
-
const CellGroup = withInstall(stdin_default$
|
7478
|
-
const [name$
|
7499
|
+
const CellGroup = withInstall(stdin_default$1b);
|
7500
|
+
const [name$11, bem$10] = createNamespace("checkbox-group");
|
7479
7501
|
const checkboxGroupProps = {
|
7480
7502
|
max: numericProp,
|
7481
7503
|
shape: makeStringProp("round"),
|
@@ -7485,9 +7507,9 @@ const checkboxGroupProps = {
|
|
7485
7507
|
modelValue: makeArrayProp(),
|
7486
7508
|
checkedColor: String
|
7487
7509
|
};
|
7488
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
7489
|
-
var stdin_default$
|
7490
|
-
name: name$
|
7510
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$11);
|
7511
|
+
var stdin_default$1a = vue.defineComponent({
|
7512
|
+
name: name$11,
|
7491
7513
|
props: checkboxGroupProps,
|
7492
7514
|
emits: ["change", "update:modelValue"],
|
7493
7515
|
setup(props2, {
|
@@ -7533,12 +7555,12 @@ var stdin_default$19 = vue.defineComponent({
|
|
7533
7555
|
return () => {
|
7534
7556
|
var _a;
|
7535
7557
|
return vue.createVNode("div", {
|
7536
|
-
"class": bem
|
7558
|
+
"class": bem$10([props2.direction])
|
7537
7559
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7538
7560
|
};
|
7539
7561
|
}
|
7540
7562
|
});
|
7541
|
-
const [name
|
7563
|
+
const [name$10, bem$$] = createNamespace("checkbox");
|
7542
7564
|
const checkboxProps = extend({}, checkerProps, {
|
7543
7565
|
shape: String,
|
7544
7566
|
bindGroup: truthProp,
|
@@ -7547,8 +7569,8 @@ const checkboxProps = extend({}, checkerProps, {
|
|
7547
7569
|
default: null
|
7548
7570
|
}
|
7549
7571
|
});
|
7550
|
-
var stdin_default$
|
7551
|
-
name: name
|
7572
|
+
var stdin_default$19 = vue.defineComponent({
|
7573
|
+
name: name$10,
|
7552
7574
|
props: checkboxProps,
|
7553
7575
|
emits: ["change", "update:modelValue"],
|
7554
7576
|
setup(props2, {
|
@@ -7610,8 +7632,8 @@ var stdin_default$18 = vue.defineComponent({
|
|
7610
7632
|
checked
|
7611
7633
|
});
|
7612
7634
|
use.useCustomFieldValue(() => props2.modelValue);
|
7613
|
-
return () => vue.createVNode(stdin_default$
|
7614
|
-
"bem": bem
|
7635
|
+
return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
|
7636
|
+
"bem": bem$$,
|
7615
7637
|
"role": "checkbox",
|
7616
7638
|
"parent": parent,
|
7617
7639
|
"checked": checked.value,
|
@@ -7619,9 +7641,9 @@ var stdin_default$18 = vue.defineComponent({
|
|
7619
7641
|
}, props2), pick(slots, ["default", "icon"]));
|
7620
7642
|
}
|
7621
7643
|
});
|
7622
|
-
const Checkbox = withInstall(stdin_default$
|
7623
|
-
const CheckboxGroup = withInstall(stdin_default$
|
7624
|
-
const [name
|
7644
|
+
const Checkbox = withInstall(stdin_default$19);
|
7645
|
+
const CheckboxGroup = withInstall(stdin_default$1a);
|
7646
|
+
const [name$$, bem$_] = createNamespace("circle");
|
7625
7647
|
let uid = 0;
|
7626
7648
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7627
7649
|
function getPath(clockwise, viewBoxSize) {
|
@@ -7642,8 +7664,8 @@ const circleProps = {
|
|
7642
7664
|
strokeLinecap: String,
|
7643
7665
|
startPosition: makeStringProp("top")
|
7644
7666
|
};
|
7645
|
-
var stdin_default$
|
7646
|
-
name: name
|
7667
|
+
var stdin_default$18 = vue.defineComponent({
|
7668
|
+
name: name$$,
|
7647
7669
|
props: circleProps,
|
7648
7670
|
emits: ["update:currentRate"],
|
7649
7671
|
setup(props2, {
|
@@ -7711,7 +7733,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
7711
7733
|
return vue.createVNode("path", {
|
7712
7734
|
"d": path.value,
|
7713
7735
|
"style": style,
|
7714
|
-
"class": bem$
|
7736
|
+
"class": bem$_("hover"),
|
7715
7737
|
"stroke": color
|
7716
7738
|
}, null);
|
7717
7739
|
};
|
@@ -7722,7 +7744,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
7722
7744
|
strokeWidth: `${props2.strokeWidth}px`
|
7723
7745
|
};
|
7724
7746
|
return vue.createVNode("path", {
|
7725
|
-
"class": bem$
|
7747
|
+
"class": bem$_("layer"),
|
7726
7748
|
"style": style,
|
7727
7749
|
"d": path.value
|
7728
7750
|
}, null);
|
@@ -7753,12 +7775,12 @@ var stdin_default$17 = vue.defineComponent({
|
|
7753
7775
|
}
|
7754
7776
|
if (props2.text) {
|
7755
7777
|
return vue.createVNode("div", {
|
7756
|
-
"class": bem$
|
7778
|
+
"class": bem$_("text")
|
7757
7779
|
}, [props2.text]);
|
7758
7780
|
}
|
7759
7781
|
};
|
7760
7782
|
return () => vue.createVNode("div", {
|
7761
|
-
"class": bem$
|
7783
|
+
"class": bem$_(),
|
7762
7784
|
"style": getSizeStyle(props2.size)
|
7763
7785
|
}, [vue.createVNode("svg", {
|
7764
7786
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -7766,18 +7788,21 @@ var stdin_default$17 = vue.defineComponent({
|
|
7766
7788
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7767
7789
|
}
|
7768
7790
|
});
|
7769
|
-
const Circle = withInstall(stdin_default$
|
7770
|
-
const [name$
|
7771
|
-
const ROW_KEY = Symbol(name$
|
7791
|
+
const Circle = withInstall(stdin_default$18);
|
7792
|
+
const [name$_, bem$Z] = createNamespace("row");
|
7793
|
+
const ROW_KEY = Symbol(name$_);
|
7772
7794
|
const rowProps = {
|
7773
7795
|
tag: makeStringProp("div"),
|
7774
7796
|
wrap: truthProp,
|
7775
7797
|
align: String,
|
7776
|
-
gutter:
|
7798
|
+
gutter: {
|
7799
|
+
type: [String, Number, Array],
|
7800
|
+
default: 0
|
7801
|
+
},
|
7777
7802
|
justify: String
|
7778
7803
|
};
|
7779
|
-
var stdin_default$
|
7780
|
-
name: name$
|
7804
|
+
var stdin_default$17 = vue.defineComponent({
|
7805
|
+
name: name$_,
|
7781
7806
|
props: rowProps,
|
7782
7807
|
setup(props2, {
|
7783
7808
|
slots
|
@@ -7801,7 +7826,12 @@ var stdin_default$16 = vue.defineComponent({
|
|
7801
7826
|
return groups2;
|
7802
7827
|
});
|
7803
7828
|
const spaces = vue.computed(() => {
|
7804
|
-
|
7829
|
+
let gutter = 0;
|
7830
|
+
if (Array.isArray(props2.gutter)) {
|
7831
|
+
gutter = Number(props2.gutter[0]) || 0;
|
7832
|
+
} else {
|
7833
|
+
gutter = Number(props2.gutter);
|
7834
|
+
}
|
7805
7835
|
const spaces2 = [];
|
7806
7836
|
if (!gutter) {
|
7807
7837
|
return spaces2;
|
@@ -7825,8 +7855,31 @@ var stdin_default$16 = vue.defineComponent({
|
|
7825
7855
|
});
|
7826
7856
|
return spaces2;
|
7827
7857
|
});
|
7858
|
+
const verticalSpaces = vue.computed(() => {
|
7859
|
+
const {
|
7860
|
+
gutter
|
7861
|
+
} = props2;
|
7862
|
+
const spaces2 = [];
|
7863
|
+
if (Array.isArray(gutter) && gutter.length > 1) {
|
7864
|
+
const bottom = Number(gutter[1]) || 0;
|
7865
|
+
if (bottom <= 0) {
|
7866
|
+
return spaces2;
|
7867
|
+
}
|
7868
|
+
groups.value.forEach((group, index) => {
|
7869
|
+
if (index === groups.value.length - 1)
|
7870
|
+
return;
|
7871
|
+
group.forEach(() => {
|
7872
|
+
spaces2.push({
|
7873
|
+
bottom
|
7874
|
+
});
|
7875
|
+
});
|
7876
|
+
});
|
7877
|
+
}
|
7878
|
+
return spaces2;
|
7879
|
+
});
|
7828
7880
|
linkChildren({
|
7829
|
-
spaces
|
7881
|
+
spaces,
|
7882
|
+
verticalSpaces
|
7830
7883
|
});
|
7831
7884
|
return () => {
|
7832
7885
|
const {
|
@@ -7836,7 +7889,7 @@ var stdin_default$16 = vue.defineComponent({
|
|
7836
7889
|
justify
|
7837
7890
|
} = props2;
|
7838
7891
|
return vue.createVNode(tag, {
|
7839
|
-
"class": bem$
|
7892
|
+
"class": bem$Z({
|
7840
7893
|
[`align-${align}`]: align,
|
7841
7894
|
[`justify-${justify}`]: justify,
|
7842
7895
|
nowrap: !wrap
|
@@ -7850,14 +7903,14 @@ var stdin_default$16 = vue.defineComponent({
|
|
7850
7903
|
};
|
7851
7904
|
}
|
7852
7905
|
});
|
7853
|
-
const [name$
|
7906
|
+
const [name$Z, bem$Y] = createNamespace("col");
|
7854
7907
|
const colProps = {
|
7855
7908
|
tag: makeStringProp("div"),
|
7856
7909
|
span: makeNumericProp(0),
|
7857
7910
|
offset: numericProp
|
7858
7911
|
};
|
7859
|
-
var stdin_default$
|
7860
|
-
name: name$
|
7912
|
+
var stdin_default$16 = vue.defineComponent({
|
7913
|
+
name: name$Z,
|
7861
7914
|
props: colProps,
|
7862
7915
|
setup(props2, {
|
7863
7916
|
slots
|
@@ -7871,18 +7924,26 @@ var stdin_default$15 = vue.defineComponent({
|
|
7871
7924
|
return;
|
7872
7925
|
}
|
7873
7926
|
const {
|
7874
|
-
spaces
|
7927
|
+
spaces,
|
7928
|
+
verticalSpaces
|
7875
7929
|
} = parent;
|
7930
|
+
let styles = {};
|
7876
7931
|
if (spaces && spaces.value && spaces.value[index.value]) {
|
7877
7932
|
const {
|
7878
7933
|
left,
|
7879
7934
|
right
|
7880
7935
|
} = spaces.value[index.value];
|
7881
|
-
|
7936
|
+
styles = {
|
7882
7937
|
paddingLeft: left ? `${left}px` : null,
|
7883
7938
|
paddingRight: right ? `${right}px` : null
|
7884
7939
|
};
|
7885
7940
|
}
|
7941
|
+
const {
|
7942
|
+
bottom
|
7943
|
+
} = verticalSpaces.value[index.value] || {};
|
7944
|
+
return extend(styles, {
|
7945
|
+
marginBottom: bottom ? `${bottom}px` : null
|
7946
|
+
});
|
7886
7947
|
});
|
7887
7948
|
return () => {
|
7888
7949
|
const {
|
@@ -7892,7 +7953,7 @@ var stdin_default$15 = vue.defineComponent({
|
|
7892
7953
|
} = props2;
|
7893
7954
|
return vue.createVNode(tag, {
|
7894
7955
|
"style": style.value,
|
7895
|
-
"class": bem$
|
7956
|
+
"class": bem$Y({
|
7896
7957
|
[span]: span,
|
7897
7958
|
[`offset-${offset}`]: offset
|
7898
7959
|
})
|
@@ -7905,9 +7966,9 @@ var stdin_default$15 = vue.defineComponent({
|
|
7905
7966
|
};
|
7906
7967
|
}
|
7907
7968
|
});
|
7908
|
-
const Col = withInstall(stdin_default$
|
7909
|
-
const [name$
|
7910
|
-
const COLLAPSE_KEY = Symbol(name$
|
7969
|
+
const Col = withInstall(stdin_default$16);
|
7970
|
+
const [name$Y, bem$X] = createNamespace("collapse");
|
7971
|
+
const COLLAPSE_KEY = Symbol(name$Y);
|
7911
7972
|
const collapseProps = {
|
7912
7973
|
border: truthProp,
|
7913
7974
|
accordion: Boolean,
|
@@ -7927,8 +7988,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7927
7988
|
}
|
7928
7989
|
return true;
|
7929
7990
|
}
|
7930
|
-
var stdin_default$
|
7931
|
-
name: name$
|
7991
|
+
var stdin_default$15 = vue.defineComponent({
|
7992
|
+
name: name$Y,
|
7932
7993
|
props: collapseProps,
|
7933
7994
|
emits: ["change", "update:modelValue"],
|
7934
7995
|
setup(props2, {
|
@@ -7998,15 +8059,15 @@ var stdin_default$14 = vue.defineComponent({
|
|
7998
8059
|
return () => {
|
7999
8060
|
var _a;
|
8000
8061
|
return vue.createVNode("div", {
|
8001
|
-
"class": [bem$
|
8062
|
+
"class": [bem$X(), {
|
8002
8063
|
[BORDER_TOP_BOTTOM]: props2.border
|
8003
8064
|
}]
|
8004
8065
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8005
8066
|
};
|
8006
8067
|
}
|
8007
8068
|
});
|
8008
|
-
const Collapse = withInstall(stdin_default$
|
8009
|
-
const [name$
|
8069
|
+
const Collapse = withInstall(stdin_default$15);
|
8070
|
+
const [name$X, bem$W] = createNamespace("collapse-item");
|
8010
8071
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
8011
8072
|
const collapseItemProps = extend({}, cellSharedProps, {
|
8012
8073
|
name: numericProp,
|
@@ -8015,8 +8076,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
8015
8076
|
readonly: Boolean,
|
8016
8077
|
lazyRender: truthProp
|
8017
8078
|
});
|
8018
|
-
var stdin_default$
|
8019
|
-
name: name$
|
8079
|
+
var stdin_default$14 = vue.defineComponent({
|
8080
|
+
name: name$X,
|
8020
8081
|
props: collapseItemProps,
|
8021
8082
|
setup(props2, {
|
8022
8083
|
slots
|
@@ -8098,7 +8159,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
8098
8159
|
}
|
8099
8160
|
return vue.createVNode(Cell, vue.mergeProps({
|
8100
8161
|
"role": "button",
|
8101
|
-
"class": bem$
|
8162
|
+
"class": bem$W("title", {
|
8102
8163
|
disabled,
|
8103
8164
|
expanded: expanded.value,
|
8104
8165
|
borderless: !border
|
@@ -8111,11 +8172,11 @@ var stdin_default$13 = vue.defineComponent({
|
|
8111
8172
|
var _a;
|
8112
8173
|
return vue.withDirectives(vue.createVNode("div", {
|
8113
8174
|
"ref": wrapperRef,
|
8114
|
-
"class": bem$
|
8175
|
+
"class": bem$W("wrapper"),
|
8115
8176
|
"onTransitionend": onTransitionEnd
|
8116
8177
|
}, [vue.createVNode("div", {
|
8117
8178
|
"ref": contentRef,
|
8118
|
-
"class": bem$
|
8179
|
+
"class": bem$W("content")
|
8119
8180
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
8120
8181
|
});
|
8121
8182
|
useExpose({
|
@@ -8124,15 +8185,15 @@ var stdin_default$13 = vue.defineComponent({
|
|
8124
8185
|
itemName: name2
|
8125
8186
|
});
|
8126
8187
|
return () => vue.createVNode("div", {
|
8127
|
-
"class": [bem$
|
8188
|
+
"class": [bem$W({
|
8128
8189
|
border: index.value && props2.border
|
8129
8190
|
})]
|
8130
8191
|
}, [renderTitle(), renderContent()]);
|
8131
8192
|
}
|
8132
8193
|
});
|
8133
|
-
const CollapseItem = withInstall(stdin_default$
|
8134
|
-
const ConfigProvider = withInstall(stdin_default$
|
8135
|
-
const [name$
|
8194
|
+
const CollapseItem = withInstall(stdin_default$14);
|
8195
|
+
const ConfigProvider = withInstall(stdin_default$1S);
|
8196
|
+
const [name$W, bem$V, t$e] = createNamespace("contact-card");
|
8136
8197
|
const contactCardProps = {
|
8137
8198
|
tel: String,
|
8138
8199
|
name: String,
|
@@ -8140,8 +8201,8 @@ const contactCardProps = {
|
|
8140
8201
|
addText: String,
|
8141
8202
|
editable: truthProp
|
8142
8203
|
};
|
8143
|
-
var stdin_default$
|
8144
|
-
name: name$
|
8204
|
+
var stdin_default$13 = vue.defineComponent({
|
8205
|
+
name: name$W,
|
8145
8206
|
props: contactCardProps,
|
8146
8207
|
emits: ["click"],
|
8147
8208
|
setup(props2, {
|
@@ -8161,18 +8222,18 @@ var stdin_default$12 = vue.defineComponent({
|
|
8161
8222
|
return () => vue.createVNode(Cell, {
|
8162
8223
|
"center": true,
|
8163
8224
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
8164
|
-
"class": bem$
|
8225
|
+
"class": bem$V([props2.type]),
|
8165
8226
|
"border": false,
|
8166
8227
|
"isLink": props2.editable,
|
8167
|
-
"titleClass": bem$
|
8228
|
+
"titleClass": bem$V("title"),
|
8168
8229
|
"onClick": onClick
|
8169
8230
|
}, {
|
8170
8231
|
title: renderContent
|
8171
8232
|
});
|
8172
8233
|
}
|
8173
8234
|
});
|
8174
|
-
const ContactCard = withInstall(stdin_default$
|
8175
|
-
const [name$
|
8235
|
+
const ContactCard = withInstall(stdin_default$13);
|
8236
|
+
const [name$V, bem$U, t$d] = createNamespace("contact-edit");
|
8176
8237
|
const DEFAULT_CONTACT = {
|
8177
8238
|
tel: "",
|
8178
8239
|
name: ""
|
@@ -8192,8 +8253,8 @@ const contactEditProps = {
|
|
8192
8253
|
default: isMobile
|
8193
8254
|
}
|
8194
8255
|
};
|
8195
|
-
var stdin_default$
|
8196
|
-
name: name$
|
8256
|
+
var stdin_default$12 = vue.defineComponent({
|
8257
|
+
name: name$V,
|
8197
8258
|
props: contactEditProps,
|
8198
8259
|
emits: ["save", "delete", "changeDefault"],
|
8199
8260
|
setup(props2, {
|
@@ -8207,20 +8268,20 @@ var stdin_default$11 = vue.defineComponent({
|
|
8207
8268
|
};
|
8208
8269
|
const onDelete = () => emit("delete", contact);
|
8209
8270
|
const renderButtons = () => vue.createVNode("div", {
|
8210
|
-
"class": bem$
|
8271
|
+
"class": bem$U("buttons")
|
8211
8272
|
}, [vue.createVNode(Button, {
|
8212
8273
|
"block": true,
|
8213
8274
|
"round": true,
|
8214
8275
|
"type": "primary",
|
8215
8276
|
"text": t$d("save"),
|
8216
|
-
"class": bem$
|
8277
|
+
"class": bem$U("button"),
|
8217
8278
|
"loading": props2.isSaving,
|
8218
8279
|
"nativeType": "submit"
|
8219
8280
|
}, null), props2.isEdit && vue.createVNode(Button, {
|
8220
8281
|
"block": true,
|
8221
8282
|
"round": true,
|
8222
8283
|
"text": t$d("delete"),
|
8223
|
-
"class": bem$
|
8284
|
+
"class": bem$U("button"),
|
8224
8285
|
"loading": props2.isDeleting,
|
8225
8286
|
"onClick": onDelete
|
8226
8287
|
}, null)]);
|
@@ -8233,7 +8294,7 @@ var stdin_default$11 = vue.defineComponent({
|
|
8233
8294
|
if (props2.showSetDefault) {
|
8234
8295
|
return vue.createVNode(Cell, {
|
8235
8296
|
"title": props2.setDefaultLabel,
|
8236
|
-
"class": bem$
|
8297
|
+
"class": bem$U("switch-cell"),
|
8237
8298
|
"border": false
|
8238
8299
|
}, {
|
8239
8300
|
"right-icon": renderSwitch
|
@@ -8242,11 +8303,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
8242
8303
|
};
|
8243
8304
|
vue.watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
8244
8305
|
return () => vue.createVNode(Form, {
|
8245
|
-
"class": bem$
|
8306
|
+
"class": bem$U(),
|
8246
8307
|
"onSubmit": onSave
|
8247
8308
|
}, {
|
8248
8309
|
default: () => [vue.createVNode("div", {
|
8249
|
-
"class": bem$
|
8310
|
+
"class": bem$U("fields")
|
8250
8311
|
}, [vue.createVNode(Field, {
|
8251
8312
|
"modelValue": contact.name,
|
8252
8313
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -8273,16 +8334,16 @@ var stdin_default$11 = vue.defineComponent({
|
|
8273
8334
|
});
|
8274
8335
|
}
|
8275
8336
|
});
|
8276
|
-
const ContactEdit = withInstall(stdin_default$
|
8277
|
-
const [name$
|
8337
|
+
const ContactEdit = withInstall(stdin_default$12);
|
8338
|
+
const [name$U, bem$T, t$c] = createNamespace("contact-list");
|
8278
8339
|
const contactListProps = {
|
8279
8340
|
list: Array,
|
8280
8341
|
addText: String,
|
8281
8342
|
modelValue: unknownProp,
|
8282
8343
|
defaultTagText: String
|
8283
8344
|
};
|
8284
|
-
var stdin_default$
|
8285
|
-
name: name$
|
8345
|
+
var stdin_default$11 = vue.defineComponent({
|
8346
|
+
name: name$U,
|
8286
8347
|
props: contactListProps,
|
8287
8348
|
emits: ["add", "edit", "select", "update:modelValue"],
|
8288
8349
|
setup(props2, {
|
@@ -8294,13 +8355,13 @@ var stdin_default$10 = vue.defineComponent({
|
|
8294
8355
|
emit("select", item, index);
|
8295
8356
|
};
|
8296
8357
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
8297
|
-
"class": bem$
|
8358
|
+
"class": bem$T("radio"),
|
8298
8359
|
"name": item.id,
|
8299
8360
|
"iconSize": 18
|
8300
8361
|
}, null);
|
8301
8362
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
8302
8363
|
"name": "edit",
|
8303
|
-
"class": bem$
|
8364
|
+
"class": bem$T("edit"),
|
8304
8365
|
"onClick": (event) => {
|
8305
8366
|
event.stopPropagation();
|
8306
8367
|
emit("edit", item, index);
|
@@ -8312,7 +8373,7 @@ var stdin_default$10 = vue.defineComponent({
|
|
8312
8373
|
nodes.push(vue.createVNode(Tag, {
|
8313
8374
|
"type": "primary",
|
8314
8375
|
"round": true,
|
8315
|
-
"class": bem$
|
8376
|
+
"class": bem$T("item-tag")
|
8316
8377
|
}, {
|
8317
8378
|
default: () => [props2.defaultTagText]
|
8318
8379
|
}));
|
@@ -8323,8 +8384,8 @@ var stdin_default$10 = vue.defineComponent({
|
|
8323
8384
|
"key": item.id,
|
8324
8385
|
"isLink": true,
|
8325
8386
|
"center": true,
|
8326
|
-
"class": bem$
|
8327
|
-
"titleClass": bem$
|
8387
|
+
"class": bem$T("item"),
|
8388
|
+
"titleClass": bem$T("item-title"),
|
8328
8389
|
"onClick": onClick
|
8329
8390
|
}, {
|
8330
8391
|
icon: renderEditIcon,
|
@@ -8333,25 +8394,25 @@ var stdin_default$10 = vue.defineComponent({
|
|
8333
8394
|
});
|
8334
8395
|
};
|
8335
8396
|
return () => vue.createVNode("div", {
|
8336
|
-
"class": bem$
|
8397
|
+
"class": bem$T()
|
8337
8398
|
}, [vue.createVNode(RadioGroup, {
|
8338
8399
|
"modelValue": props2.modelValue,
|
8339
|
-
"class": bem$
|
8400
|
+
"class": bem$T("group")
|
8340
8401
|
}, {
|
8341
8402
|
default: () => [props2.list && props2.list.map(renderItem)]
|
8342
8403
|
}), vue.createVNode("div", {
|
8343
|
-
"class": [bem$
|
8404
|
+
"class": [bem$T("bottom"), "van-safe-area-bottom"]
|
8344
8405
|
}, [vue.createVNode(Button, {
|
8345
8406
|
"round": true,
|
8346
8407
|
"block": true,
|
8347
8408
|
"type": "primary",
|
8348
|
-
"class": bem$
|
8409
|
+
"class": bem$T("add"),
|
8349
8410
|
"text": props2.addText || t$c("addContact"),
|
8350
8411
|
"onClick": () => emit("add")
|
8351
8412
|
}, null)])]);
|
8352
8413
|
}
|
8353
8414
|
});
|
8354
|
-
const ContactList = withInstall(stdin_default$
|
8415
|
+
const ContactList = withInstall(stdin_default$11);
|
8355
8416
|
function parseFormat(format2, currentTime) {
|
8356
8417
|
const { days } = currentTime;
|
8357
8418
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -8387,15 +8448,15 @@ function parseFormat(format2, currentTime) {
|
|
8387
8448
|
}
|
8388
8449
|
return format2;
|
8389
8450
|
}
|
8390
|
-
const [name$
|
8451
|
+
const [name$T, bem$S] = createNamespace("count-down");
|
8391
8452
|
const countDownProps = {
|
8392
8453
|
time: makeNumericProp(0),
|
8393
8454
|
format: makeStringProp("HH:mm:ss"),
|
8394
8455
|
autoStart: truthProp,
|
8395
8456
|
millisecond: Boolean
|
8396
8457
|
};
|
8397
|
-
var stdin_default
|
8398
|
-
name: name$
|
8458
|
+
var stdin_default$10 = vue.defineComponent({
|
8459
|
+
name: name$T,
|
8399
8460
|
props: countDownProps,
|
8400
8461
|
emits: ["change", "finish"],
|
8401
8462
|
setup(props2, {
|
@@ -8430,11 +8491,11 @@ var stdin_default$$ = vue.defineComponent({
|
|
8430
8491
|
});
|
8431
8492
|
return () => vue.createVNode("div", {
|
8432
8493
|
"role": "timer",
|
8433
|
-
"class": bem$
|
8494
|
+
"class": bem$S()
|
8434
8495
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8435
8496
|
}
|
8436
8497
|
});
|
8437
|
-
const CountDown = withInstall(stdin_default
|
8498
|
+
const CountDown = withInstall(stdin_default$10);
|
8438
8499
|
function getDate(timeStamp) {
|
8439
8500
|
const date = new Date(timeStamp * 1e3);
|
8440
8501
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8443,9 +8504,9 @@ function getDate(timeStamp) {
|
|
8443
8504
|
}
|
8444
8505
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8445
8506
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8446
|
-
const [name$
|
8447
|
-
var stdin_default
|
8448
|
-
name: name$
|
8507
|
+
const [name$S, bem$R, t$b] = createNamespace("coupon");
|
8508
|
+
var stdin_default$$ = vue.defineComponent({
|
8509
|
+
name: name$S,
|
8449
8510
|
props: {
|
8450
8511
|
chosen: Boolean,
|
8451
8512
|
coupon: makeRequiredProp(Object),
|
@@ -8489,34 +8550,34 @@ var stdin_default$_ = vue.defineComponent({
|
|
8489
8550
|
} = props2;
|
8490
8551
|
const description = disabled && coupon.reason || coupon.description;
|
8491
8552
|
return vue.createVNode("div", {
|
8492
|
-
"class": bem$
|
8553
|
+
"class": bem$R({
|
8493
8554
|
disabled
|
8494
8555
|
})
|
8495
8556
|
}, [vue.createVNode("div", {
|
8496
|
-
"class": bem$
|
8557
|
+
"class": bem$R("content")
|
8497
8558
|
}, [vue.createVNode("div", {
|
8498
|
-
"class": bem$
|
8559
|
+
"class": bem$R("head")
|
8499
8560
|
}, [vue.createVNode("h2", {
|
8500
|
-
"class": bem$
|
8561
|
+
"class": bem$R("amount")
|
8501
8562
|
}, [faceAmount.value]), vue.createVNode("p", {
|
8502
|
-
"class": bem$
|
8563
|
+
"class": bem$R("condition")
|
8503
8564
|
}, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
|
8504
|
-
"class": bem$
|
8565
|
+
"class": bem$R("body")
|
8505
8566
|
}, [vue.createVNode("p", {
|
8506
|
-
"class": bem$
|
8567
|
+
"class": bem$R("name")
|
8507
8568
|
}, [coupon.name]), vue.createVNode("p", {
|
8508
|
-
"class": bem$
|
8569
|
+
"class": bem$R("valid")
|
8509
8570
|
}, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
|
8510
|
-
"class": bem$
|
8571
|
+
"class": bem$R("corner"),
|
8511
8572
|
"modelValue": chosen
|
8512
8573
|
}, null)])]), description && vue.createVNode("p", {
|
8513
|
-
"class": bem$
|
8574
|
+
"class": bem$R("description")
|
8514
8575
|
}, [description])]);
|
8515
8576
|
};
|
8516
8577
|
}
|
8517
8578
|
});
|
8518
|
-
const Coupon = withInstall(stdin_default
|
8519
|
-
const [name$
|
8579
|
+
const Coupon = withInstall(stdin_default$$);
|
8580
|
+
const [name$R, bem$Q, t$a] = createNamespace("coupon-cell");
|
8520
8581
|
const couponCellProps = {
|
8521
8582
|
title: String,
|
8522
8583
|
border: truthProp,
|
@@ -8544,34 +8605,34 @@ function formatValue({
|
|
8544
8605
|
}
|
8545
8606
|
return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
|
8546
8607
|
}
|
8547
|
-
var stdin_default$
|
8548
|
-
name: name$
|
8608
|
+
var stdin_default$_ = vue.defineComponent({
|
8609
|
+
name: name$R,
|
8549
8610
|
props: couponCellProps,
|
8550
8611
|
setup(props2) {
|
8551
8612
|
return () => {
|
8552
8613
|
const selected = props2.coupons[+props2.chosenCoupon];
|
8553
8614
|
return vue.createVNode(Cell, {
|
8554
|
-
"class": bem$
|
8615
|
+
"class": bem$Q(),
|
8555
8616
|
"value": formatValue(props2),
|
8556
8617
|
"title": props2.title || t$a("title"),
|
8557
8618
|
"border": props2.border,
|
8558
8619
|
"isLink": props2.editable,
|
8559
|
-
"valueClass": bem$
|
8620
|
+
"valueClass": bem$Q("value", {
|
8560
8621
|
selected
|
8561
8622
|
})
|
8562
8623
|
}, null);
|
8563
8624
|
};
|
8564
8625
|
}
|
8565
8626
|
});
|
8566
|
-
const CouponCell = withInstall(stdin_default$
|
8567
|
-
const [name$
|
8627
|
+
const CouponCell = withInstall(stdin_default$_);
|
8628
|
+
const [name$Q, bem$P] = createNamespace("empty");
|
8568
8629
|
const emptyProps = {
|
8569
8630
|
image: makeStringProp("default"),
|
8570
8631
|
imageSize: [Number, String, Array],
|
8571
8632
|
description: String
|
8572
8633
|
};
|
8573
|
-
var stdin_default$
|
8574
|
-
name: name$
|
8634
|
+
var stdin_default$Z = vue.defineComponent({
|
8635
|
+
name: name$Q,
|
8575
8636
|
props: emptyProps,
|
8576
8637
|
setup(props2, {
|
8577
8638
|
slots
|
@@ -8580,14 +8641,14 @@ var stdin_default$Y = vue.defineComponent({
|
|
8580
8641
|
const description = slots.description ? slots.description() : props2.description;
|
8581
8642
|
if (description) {
|
8582
8643
|
return vue.createVNode("p", {
|
8583
|
-
"class": bem$
|
8644
|
+
"class": bem$P("description")
|
8584
8645
|
}, [description]);
|
8585
8646
|
}
|
8586
8647
|
};
|
8587
8648
|
const renderBottom = () => {
|
8588
8649
|
if (slots.default) {
|
8589
8650
|
return vue.createVNode("div", {
|
8590
|
-
"class": bem$
|
8651
|
+
"class": bem$P("bottom")
|
8591
8652
|
}, [slots.default()]);
|
8592
8653
|
}
|
8593
8654
|
};
|
@@ -8872,15 +8933,15 @@ var stdin_default$Y = vue.defineComponent({
|
|
8872
8933
|
}, null);
|
8873
8934
|
};
|
8874
8935
|
return () => vue.createVNode("div", {
|
8875
|
-
"class": bem$
|
8936
|
+
"class": bem$P()
|
8876
8937
|
}, [vue.createVNode("div", {
|
8877
|
-
"class": bem$
|
8938
|
+
"class": bem$P("image"),
|
8878
8939
|
"style": getSizeStyle(props2.imageSize)
|
8879
8940
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8880
8941
|
}
|
8881
8942
|
});
|
8882
|
-
const Empty = withInstall(stdin_default$
|
8883
|
-
const [name$
|
8943
|
+
const Empty = withInstall(stdin_default$Z);
|
8944
|
+
const [name$P, bem$O, t$9] = createNamespace("coupon-list");
|
8884
8945
|
const couponListProps = {
|
8885
8946
|
code: makeStringProp(""),
|
8886
8947
|
coupons: makeArrayProp(),
|
@@ -8901,8 +8962,8 @@ const couponListProps = {
|
|
8901
8962
|
exchangeButtonLoading: Boolean,
|
8902
8963
|
exchangeButtonDisabled: Boolean
|
8903
8964
|
};
|
8904
|
-
var stdin_default$
|
8905
|
-
name: name$
|
8965
|
+
var stdin_default$Y = vue.defineComponent({
|
8966
|
+
name: name$P,
|
8906
8967
|
props: couponListProps,
|
8907
8968
|
emits: ["change", "exchange", "update:code"],
|
8908
8969
|
setup(props2, {
|
@@ -8938,26 +8999,26 @@ var stdin_default$X = vue.defineComponent({
|
|
8938
8999
|
"image": props2.emptyImage
|
8939
9000
|
}, {
|
8940
9001
|
default: () => [vue.createVNode("p", {
|
8941
|
-
"class": bem$
|
9002
|
+
"class": bem$O("empty-tip")
|
8942
9003
|
}, [t$9("noCoupon")])]
|
8943
9004
|
});
|
8944
9005
|
const renderExchangeBar = () => {
|
8945
9006
|
if (props2.showExchangeBar) {
|
8946
9007
|
return vue.createVNode("div", {
|
8947
9008
|
"ref": barRef,
|
8948
|
-
"class": bem$
|
9009
|
+
"class": bem$O("exchange-bar")
|
8949
9010
|
}, [vue.createVNode(Field, {
|
8950
9011
|
"modelValue": currentCode.value,
|
8951
9012
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8952
9013
|
"clearable": true,
|
8953
9014
|
"border": false,
|
8954
|
-
"class": bem$
|
9015
|
+
"class": bem$O("field"),
|
8955
9016
|
"placeholder": props2.inputPlaceholder || t$9("placeholder"),
|
8956
9017
|
"maxlength": "20"
|
8957
9018
|
}, null), vue.createVNode(Button, {
|
8958
9019
|
"plain": true,
|
8959
9020
|
"type": "primary",
|
8960
|
-
"class": bem$
|
9021
|
+
"class": bem$O("exchange"),
|
8961
9022
|
"text": props2.exchangeButtonText || t$9("exchange"),
|
8962
9023
|
"loading": props2.exchangeButtonLoading,
|
8963
9024
|
"disabled": buttonDisabled.value,
|
@@ -8977,7 +9038,7 @@ var stdin_default$X = vue.defineComponent({
|
|
8977
9038
|
default: () => {
|
8978
9039
|
var _a;
|
8979
9040
|
return [vue.createVNode("div", {
|
8980
|
-
"class": bem$
|
9041
|
+
"class": bem$O("list", {
|
8981
9042
|
"with-bottom": props2.showCloseButton
|
8982
9043
|
}),
|
8983
9044
|
"style": {
|
@@ -9006,7 +9067,7 @@ var stdin_default$X = vue.defineComponent({
|
|
9006
9067
|
default: () => {
|
9007
9068
|
var _a;
|
9008
9069
|
return [vue.createVNode("div", {
|
9009
|
-
"class": bem$
|
9070
|
+
"class": bem$O("list", {
|
9010
9071
|
"with-bottom": props2.showCloseButton
|
9011
9072
|
}),
|
9012
9073
|
"style": {
|
@@ -9033,28 +9094,28 @@ var stdin_default$X = vue.defineComponent({
|
|
9033
9094
|
});
|
9034
9095
|
return () => vue.createVNode("div", {
|
9035
9096
|
"ref": root,
|
9036
|
-
"class": bem$
|
9097
|
+
"class": bem$O()
|
9037
9098
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
9038
9099
|
"active": activeTab.value,
|
9039
9100
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
9040
|
-
"class": bem$
|
9101
|
+
"class": bem$O("tab")
|
9041
9102
|
}, {
|
9042
9103
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
9043
9104
|
}), vue.createVNode("div", {
|
9044
|
-
"class": bem$
|
9105
|
+
"class": bem$O("bottom")
|
9045
9106
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
9046
9107
|
"round": true,
|
9047
9108
|
"block": true,
|
9048
9109
|
"type": "primary",
|
9049
|
-
"class": bem$
|
9110
|
+
"class": bem$O("close"),
|
9050
9111
|
"text": props2.closeButtonText || t$9("close"),
|
9051
9112
|
"onClick": () => emit("change", -1)
|
9052
9113
|
}, null), [[vue.vShow, props2.showCloseButton]])])]);
|
9053
9114
|
}
|
9054
9115
|
});
|
9055
|
-
const CouponList = withInstall(stdin_default$
|
9116
|
+
const CouponList = withInstall(stdin_default$Y);
|
9056
9117
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
9057
|
-
const [name$
|
9118
|
+
const [name$O] = createNamespace("date-picker");
|
9058
9119
|
const datePickerProps = extend({}, sharedProps, {
|
9059
9120
|
columnsType: {
|
9060
9121
|
type: Array,
|
@@ -9071,8 +9132,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
9071
9132
|
validator: isDate
|
9072
9133
|
}
|
9073
9134
|
});
|
9074
|
-
var stdin_default$
|
9075
|
-
name: name$
|
9135
|
+
var stdin_default$X = vue.defineComponent({
|
9136
|
+
name: name$O,
|
9076
9137
|
props: datePickerProps,
|
9077
9138
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
9078
9139
|
setup(props2, {
|
@@ -9165,8 +9226,8 @@ var stdin_default$W = vue.defineComponent({
|
|
9165
9226
|
}, pick(props2, pickerInheritKeys)), slots);
|
9166
9227
|
}
|
9167
9228
|
});
|
9168
|
-
const DatePicker = withInstall(stdin_default$
|
9169
|
-
const [name$
|
9229
|
+
const DatePicker = withInstall(stdin_default$X);
|
9230
|
+
const [name$N, bem$N, t$8] = createNamespace("dialog");
|
9170
9231
|
const dialogProps = extend({}, popupSharedProps, {
|
9171
9232
|
title: String,
|
9172
9233
|
theme: String,
|
@@ -9189,8 +9250,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
9189
9250
|
closeOnClickOverlay: Boolean
|
9190
9251
|
});
|
9191
9252
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9192
|
-
var stdin_default$
|
9193
|
-
name: name$
|
9253
|
+
var stdin_default$W = vue.defineComponent({
|
9254
|
+
name: name$N,
|
9194
9255
|
props: dialogProps,
|
9195
9256
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
9196
9257
|
setup(props2, {
|
@@ -9247,7 +9308,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9247
9308
|
const title = slots.title ? slots.title() : props2.title;
|
9248
9309
|
if (title) {
|
9249
9310
|
return vue.createVNode("div", {
|
9250
|
-
"class": bem$
|
9311
|
+
"class": bem$N("header", {
|
9251
9312
|
isolated: !props2.message && !slots.default
|
9252
9313
|
})
|
9253
9314
|
}, [title]);
|
@@ -9259,7 +9320,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9259
9320
|
allowHtml,
|
9260
9321
|
messageAlign
|
9261
9322
|
} = props2;
|
9262
|
-
const classNames = bem$
|
9323
|
+
const classNames = bem$N("message", {
|
9263
9324
|
"has-title": hasTitle,
|
9264
9325
|
[messageAlign]: messageAlign
|
9265
9326
|
});
|
@@ -9277,7 +9338,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9277
9338
|
const renderContent = () => {
|
9278
9339
|
if (slots.default) {
|
9279
9340
|
return vue.createVNode("div", {
|
9280
|
-
"class": bem$
|
9341
|
+
"class": bem$N("content")
|
9281
9342
|
}, [slots.default()]);
|
9282
9343
|
}
|
9283
9344
|
const {
|
@@ -9289,18 +9350,18 @@ var stdin_default$V = vue.defineComponent({
|
|
9289
9350
|
const hasTitle = !!(title || slots.title);
|
9290
9351
|
return vue.createVNode("div", {
|
9291
9352
|
"key": allowHtml ? 1 : 0,
|
9292
|
-
"class": bem$
|
9353
|
+
"class": bem$N("content", {
|
9293
9354
|
isolated: !hasTitle
|
9294
9355
|
})
|
9295
9356
|
}, [renderMessage(hasTitle)]);
|
9296
9357
|
}
|
9297
9358
|
};
|
9298
9359
|
const renderButtons = () => vue.createVNode("div", {
|
9299
|
-
"class": [BORDER_TOP, bem$
|
9360
|
+
"class": [BORDER_TOP, bem$N("footer")]
|
9300
9361
|
}, [props2.showCancelButton && vue.createVNode(Button, {
|
9301
9362
|
"size": "large",
|
9302
9363
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9303
|
-
"class": bem$
|
9364
|
+
"class": bem$N("cancel"),
|
9304
9365
|
"style": {
|
9305
9366
|
color: props2.cancelButtonColor
|
9306
9367
|
},
|
@@ -9310,7 +9371,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9310
9371
|
}, null), props2.showConfirmButton && vue.createVNode(Button, {
|
9311
9372
|
"size": "large",
|
9312
9373
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9313
|
-
"class": [bem$
|
9374
|
+
"class": [bem$N("confirm"), {
|
9314
9375
|
[BORDER_LEFT]: props2.showCancelButton
|
9315
9376
|
}],
|
9316
9377
|
"style": {
|
@@ -9321,12 +9382,12 @@ var stdin_default$V = vue.defineComponent({
|
|
9321
9382
|
"onClick": onConfirm
|
9322
9383
|
}, null)]);
|
9323
9384
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
9324
|
-
"class": bem$
|
9385
|
+
"class": bem$N("footer")
|
9325
9386
|
}, {
|
9326
9387
|
default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
|
9327
9388
|
"type": "warning",
|
9328
9389
|
"text": props2.cancelButtonText || t$8("cancel"),
|
9329
|
-
"class": bem$
|
9390
|
+
"class": bem$N("cancel"),
|
9330
9391
|
"color": props2.cancelButtonColor,
|
9331
9392
|
"loading": loading.cancel,
|
9332
9393
|
"disabled": props2.cancelButtonDisabled,
|
@@ -9334,7 +9395,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9334
9395
|
}, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
|
9335
9396
|
"type": "danger",
|
9336
9397
|
"text": props2.confirmButtonText || t$8("confirm"),
|
9337
|
-
"class": bem$
|
9398
|
+
"class": bem$N("confirm"),
|
9338
9399
|
"color": props2.confirmButtonColor,
|
9339
9400
|
"loading": loading.confirm,
|
9340
9401
|
"disabled": props2.confirmButtonDisabled,
|
@@ -9358,7 +9419,7 @@ var stdin_default$V = vue.defineComponent({
|
|
9358
9419
|
return vue.createVNode(Popup, vue.mergeProps({
|
9359
9420
|
"ref": root,
|
9360
9421
|
"role": "dialog",
|
9361
|
-
"class": [bem$
|
9422
|
+
"class": [bem$N([theme]), className],
|
9362
9423
|
"style": {
|
9363
9424
|
width: addUnit(width)
|
9364
9425
|
},
|
@@ -9408,7 +9469,7 @@ function initInstance$2() {
|
|
9408
9469
|
state,
|
9409
9470
|
toggle
|
9410
9471
|
} = usePopupState();
|
9411
|
-
return () => vue.createVNode(stdin_default$
|
9472
|
+
return () => vue.createVNode(stdin_default$W, vue.mergeProps(state, {
|
9412
9473
|
"onUpdate:show": toggle
|
9413
9474
|
}), null);
|
9414
9475
|
}
|
@@ -9446,16 +9507,16 @@ const closeDialog = () => {
|
|
9446
9507
|
instance$2.toggle(false);
|
9447
9508
|
}
|
9448
9509
|
};
|
9449
|
-
const Dialog = withInstall(stdin_default$
|
9450
|
-
const [name$
|
9510
|
+
const Dialog = withInstall(stdin_default$W);
|
9511
|
+
const [name$M, bem$M] = createNamespace("divider");
|
9451
9512
|
const dividerProps = {
|
9452
9513
|
dashed: Boolean,
|
9453
9514
|
hairline: truthProp,
|
9454
9515
|
vertical: Boolean,
|
9455
9516
|
contentPosition: makeStringProp("center")
|
9456
9517
|
};
|
9457
|
-
var stdin_default$
|
9458
|
-
name: name$
|
9518
|
+
var stdin_default$V = vue.defineComponent({
|
9519
|
+
name: name$M,
|
9459
9520
|
props: dividerProps,
|
9460
9521
|
setup(props2, {
|
9461
9522
|
slots
|
@@ -9464,7 +9525,7 @@ var stdin_default$U = vue.defineComponent({
|
|
9464
9525
|
var _a;
|
9465
9526
|
return vue.createVNode("div", {
|
9466
9527
|
"role": "separator",
|
9467
|
-
"class": bem$
|
9528
|
+
"class": bem$M({
|
9468
9529
|
dashed: props2.dashed,
|
9469
9530
|
hairline: props2.hairline,
|
9470
9531
|
vertical: props2.vertical,
|
@@ -9474,8 +9535,8 @@ var stdin_default$U = vue.defineComponent({
|
|
9474
9535
|
};
|
9475
9536
|
}
|
9476
9537
|
});
|
9477
|
-
const Divider = withInstall(stdin_default$
|
9478
|
-
const [name$
|
9538
|
+
const Divider = withInstall(stdin_default$V);
|
9539
|
+
const [name$L, bem$L] = createNamespace("dropdown-menu");
|
9479
9540
|
const dropdownMenuProps = {
|
9480
9541
|
overlay: truthProp,
|
9481
9542
|
zIndex: numericProp,
|
@@ -9486,9 +9547,9 @@ const dropdownMenuProps = {
|
|
9486
9547
|
closeOnClickOverlay: truthProp,
|
9487
9548
|
swipeThreshold: numericProp
|
9488
9549
|
};
|
9489
|
-
const DROPDOWN_KEY = Symbol(name$
|
9490
|
-
var stdin_default$
|
9491
|
-
name: name$
|
9550
|
+
const DROPDOWN_KEY = Symbol(name$L);
|
9551
|
+
var stdin_default$U = vue.defineComponent({
|
9552
|
+
name: name$L,
|
9492
9553
|
props: dropdownMenuProps,
|
9493
9554
|
setup(props2, {
|
9494
9555
|
slots
|
@@ -9559,7 +9620,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9559
9620
|
"id": `${id}-${index}`,
|
9560
9621
|
"role": "button",
|
9561
9622
|
"tabindex": disabled ? void 0 : 0,
|
9562
|
-
"class": [bem$
|
9623
|
+
"class": [bem$L("item", {
|
9563
9624
|
disabled,
|
9564
9625
|
grow: scrollable.value
|
9565
9626
|
}), {
|
@@ -9571,7 +9632,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9571
9632
|
}
|
9572
9633
|
}
|
9573
9634
|
}, [vue.createVNode("span", {
|
9574
|
-
"class": [bem$
|
9635
|
+
"class": [bem$L("title", {
|
9575
9636
|
down: showPopup === (props2.direction === "down"),
|
9576
9637
|
active: showPopup
|
9577
9638
|
}), titleClass],
|
@@ -9600,11 +9661,11 @@ var stdin_default$T = vue.defineComponent({
|
|
9600
9661
|
var _a;
|
9601
9662
|
return vue.createVNode("div", {
|
9602
9663
|
"ref": root,
|
9603
|
-
"class": bem$
|
9664
|
+
"class": bem$L()
|
9604
9665
|
}, [vue.createVNode("div", {
|
9605
9666
|
"ref": barRef,
|
9606
9667
|
"style": barStyle.value,
|
9607
|
-
"class": bem$
|
9668
|
+
"class": bem$L("bar", {
|
9608
9669
|
opened: opened.value,
|
9609
9670
|
scrollable: scrollable.value
|
9610
9671
|
})
|
@@ -9612,7 +9673,7 @@ var stdin_default$T = vue.defineComponent({
|
|
9612
9673
|
};
|
9613
9674
|
}
|
9614
9675
|
});
|
9615
|
-
const [name$
|
9676
|
+
const [name$K, bem$K] = createNamespace("dropdown-item");
|
9616
9677
|
const dropdownItemProps = {
|
9617
9678
|
title: String,
|
9618
9679
|
options: makeArrayProp(),
|
@@ -9622,8 +9683,8 @@ const dropdownItemProps = {
|
|
9622
9683
|
modelValue: unknownProp,
|
9623
9684
|
titleClass: unknownProp
|
9624
9685
|
};
|
9625
|
-
var stdin_default$
|
9626
|
-
name: name$
|
9686
|
+
var stdin_default$T = vue.defineComponent({
|
9687
|
+
name: name$K,
|
9627
9688
|
inheritAttrs: false,
|
9628
9689
|
props: dropdownItemProps,
|
9629
9690
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
@@ -9696,7 +9757,7 @@ var stdin_default$S = vue.defineComponent({
|
|
9696
9757
|
const renderIcon = () => {
|
9697
9758
|
if (active) {
|
9698
9759
|
return vue.createVNode(Icon, {
|
9699
|
-
"class": bem$
|
9760
|
+
"class": bem$K("icon"),
|
9700
9761
|
"color": activeColor,
|
9701
9762
|
"name": "success"
|
9702
9763
|
}, null);
|
@@ -9707,7 +9768,7 @@ var stdin_default$S = vue.defineComponent({
|
|
9707
9768
|
"key": String(option.value),
|
9708
9769
|
"icon": option.icon,
|
9709
9770
|
"title": option.text,
|
9710
|
-
"class": bem$
|
9771
|
+
"class": bem$K("option", {
|
9711
9772
|
active
|
9712
9773
|
}),
|
9713
9774
|
"style": {
|
@@ -9739,13 +9800,13 @@ var stdin_default$S = vue.defineComponent({
|
|
9739
9800
|
}
|
9740
9801
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
9741
9802
|
"style": style,
|
9742
|
-
"class": bem$
|
9803
|
+
"class": bem$K([direction]),
|
9743
9804
|
"onClick": onClickWrapper
|
9744
9805
|
}, attrs), [vue.createVNode(Popup, {
|
9745
9806
|
"show": state.showPopup,
|
9746
9807
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
9747
9808
|
"role": "menu",
|
9748
|
-
"class": bem$
|
9809
|
+
"class": bem$K("content"),
|
9749
9810
|
"overlay": overlay,
|
9750
9811
|
"position": direction === "down" ? "top" : "bottom",
|
9751
9812
|
"duration": state.transition ? duration : 0,
|
@@ -9783,8 +9844,8 @@ var stdin_default$S = vue.defineComponent({
|
|
9783
9844
|
};
|
9784
9845
|
}
|
9785
9846
|
});
|
9786
|
-
const DropdownItem = withInstall(stdin_default$
|
9787
|
-
const DropdownMenu = withInstall(stdin_default$
|
9847
|
+
const DropdownItem = withInstall(stdin_default$T);
|
9848
|
+
const DropdownMenu = withInstall(stdin_default$U);
|
9788
9849
|
const floatingBubbleProps = {
|
9789
9850
|
gap: makeNumberProp(24),
|
9790
9851
|
icon: String,
|
@@ -9802,9 +9863,9 @@ const floatingBubbleProps = {
|
|
9802
9863
|
default: "body"
|
9803
9864
|
}
|
9804
9865
|
};
|
9805
|
-
const [name$
|
9806
|
-
var stdin_default$
|
9807
|
-
name: name$
|
9866
|
+
const [name$J, bem$J] = createNamespace("floating-bubble");
|
9867
|
+
var stdin_default$S = vue.defineComponent({
|
9868
|
+
name: name$J,
|
9808
9869
|
inheritAttrs: false,
|
9809
9870
|
props: floatingBubbleProps,
|
9810
9871
|
emits: ["click", "update:offset", "offsetChange"],
|
@@ -9937,16 +9998,16 @@ var stdin_default$R = vue.defineComponent({
|
|
9937
9998
|
});
|
9938
9999
|
return () => {
|
9939
10000
|
const Content = vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
9940
|
-
"class": bem$
|
10001
|
+
"class": bem$J(),
|
9941
10002
|
"ref": rootRef,
|
9942
10003
|
"onTouchstartPassive": onTouchStart,
|
9943
10004
|
"onTouchend": onTouchEnd,
|
9944
10005
|
"onTouchcancel": onTouchEnd,
|
9945
10006
|
"onClickCapture": onClick,
|
9946
10007
|
"style": rootStyle.value
|
9947
|
-
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$
|
10008
|
+
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1Q, {
|
9948
10009
|
"name": props2.icon,
|
9949
|
-
"class": bem$
|
10010
|
+
"class": bem$J("icon")
|
9950
10011
|
}, null)]), [[vue.vShow, show.value]]);
|
9951
10012
|
return props2.teleport ? vue.createVNode(vue.Teleport, {
|
9952
10013
|
"to": props2.teleport
|
@@ -9956,7 +10017,7 @@ var stdin_default$R = vue.defineComponent({
|
|
9956
10017
|
};
|
9957
10018
|
}
|
9958
10019
|
});
|
9959
|
-
const FloatingBubble = withInstall(stdin_default$
|
10020
|
+
const FloatingBubble = withInstall(stdin_default$S);
|
9960
10021
|
const floatingPanelProps = {
|
9961
10022
|
height: makeNumericProp(0),
|
9962
10023
|
anchors: makeArrayProp(),
|
@@ -9965,9 +10026,9 @@ const floatingPanelProps = {
|
|
9965
10026
|
lockScroll: Boolean,
|
9966
10027
|
safeAreaInsetBottom: truthProp
|
9967
10028
|
};
|
9968
|
-
const [name$
|
9969
|
-
var stdin_default$
|
9970
|
-
name: name$
|
10029
|
+
const [name$I, bem$I] = createNamespace("floating-panel");
|
10030
|
+
var stdin_default$R = vue.defineComponent({
|
10031
|
+
name: name$I,
|
9971
10032
|
props: floatingPanelProps,
|
9972
10033
|
emits: ["heightChange", "update:height"],
|
9973
10034
|
setup(props2, {
|
@@ -10057,7 +10118,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
10057
10118
|
return () => {
|
10058
10119
|
var _a;
|
10059
10120
|
return vue.createVNode("div", {
|
10060
|
-
"class": [bem$
|
10121
|
+
"class": [bem$I(), {
|
10061
10122
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
10062
10123
|
}],
|
10063
10124
|
"ref": rootRef,
|
@@ -10066,18 +10127,18 @@ var stdin_default$Q = vue.defineComponent({
|
|
10066
10127
|
"onTouchend": onTouchend,
|
10067
10128
|
"onTouchcancel": onTouchend
|
10068
10129
|
}, [vue.createVNode("div", {
|
10069
|
-
"class": bem$
|
10130
|
+
"class": bem$I("header")
|
10070
10131
|
}, [vue.createVNode("div", {
|
10071
|
-
"class": bem$
|
10132
|
+
"class": bem$I("header-bar")
|
10072
10133
|
}, null)]), vue.createVNode("div", {
|
10073
|
-
"class": bem$
|
10134
|
+
"class": bem$I("content"),
|
10074
10135
|
"ref": contentRef
|
10075
10136
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
10076
10137
|
};
|
10077
10138
|
}
|
10078
10139
|
});
|
10079
|
-
const FloatingPanel = withInstall(stdin_default$
|
10080
|
-
const [name$
|
10140
|
+
const FloatingPanel = withInstall(stdin_default$R);
|
10141
|
+
const [name$H, bem$H] = createNamespace("grid");
|
10081
10142
|
const gridProps = {
|
10082
10143
|
square: Boolean,
|
10083
10144
|
center: truthProp,
|
@@ -10089,9 +10150,9 @@ const gridProps = {
|
|
10089
10150
|
clickable: Boolean,
|
10090
10151
|
columnNum: makeNumericProp(4)
|
10091
10152
|
};
|
10092
|
-
const GRID_KEY = Symbol(name$
|
10093
|
-
var stdin_default$
|
10094
|
-
name: name$
|
10153
|
+
const GRID_KEY = Symbol(name$H);
|
10154
|
+
var stdin_default$Q = vue.defineComponent({
|
10155
|
+
name: name$H,
|
10095
10156
|
props: gridProps,
|
10096
10157
|
setup(props2, {
|
10097
10158
|
slots
|
@@ -10108,15 +10169,15 @@ var stdin_default$P = vue.defineComponent({
|
|
10108
10169
|
"style": {
|
10109
10170
|
paddingLeft: addUnit(props2.gutter)
|
10110
10171
|
},
|
10111
|
-
"class": [bem$
|
10172
|
+
"class": [bem$H(), {
|
10112
10173
|
[BORDER_TOP]: props2.border && !props2.gutter
|
10113
10174
|
}]
|
10114
10175
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
10115
10176
|
};
|
10116
10177
|
}
|
10117
10178
|
});
|
10118
|
-
const Grid = withInstall(stdin_default$
|
10119
|
-
const [name$
|
10179
|
+
const Grid = withInstall(stdin_default$Q);
|
10180
|
+
const [name$G, bem$G] = createNamespace("grid-item");
|
10120
10181
|
const gridItemProps = extend({}, routeProps, {
|
10121
10182
|
dot: Boolean,
|
10122
10183
|
text: String,
|
@@ -10126,8 +10187,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
10126
10187
|
iconPrefix: String,
|
10127
10188
|
badgeProps: Object
|
10128
10189
|
});
|
10129
|
-
var stdin_default$
|
10130
|
-
name: name$
|
10190
|
+
var stdin_default$P = vue.defineComponent({
|
10191
|
+
name: name$G,
|
10131
10192
|
props: gridItemProps,
|
10132
10193
|
setup(props2, {
|
10133
10194
|
slots
|
@@ -10193,7 +10254,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10193
10254
|
"name": props2.icon,
|
10194
10255
|
"size": parent.props.iconSize,
|
10195
10256
|
"badge": props2.badge,
|
10196
|
-
"class": bem$
|
10257
|
+
"class": bem$G("icon"),
|
10197
10258
|
"color": props2.iconColor,
|
10198
10259
|
"badgeProps": props2.badgeProps,
|
10199
10260
|
"classPrefix": props2.iconPrefix
|
@@ -10206,7 +10267,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10206
10267
|
}
|
10207
10268
|
if (props2.text) {
|
10208
10269
|
return vue.createVNode("span", {
|
10209
|
-
"class": bem$
|
10270
|
+
"class": bem$G("text")
|
10210
10271
|
}, [props2.text]);
|
10211
10272
|
}
|
10212
10273
|
};
|
@@ -10226,7 +10287,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10226
10287
|
direction,
|
10227
10288
|
clickable
|
10228
10289
|
} = parent.props;
|
10229
|
-
const classes = [bem$
|
10290
|
+
const classes = [bem$G("content", [direction, {
|
10230
10291
|
center,
|
10231
10292
|
square,
|
10232
10293
|
reverse,
|
@@ -10236,7 +10297,7 @@ var stdin_default$O = vue.defineComponent({
|
|
10236
10297
|
[BORDER]: border
|
10237
10298
|
}];
|
10238
10299
|
return vue.createVNode("div", {
|
10239
|
-
"class": [bem$
|
10300
|
+
"class": [bem$G({
|
10240
10301
|
square
|
10241
10302
|
})],
|
10242
10303
|
"style": rootStyle.value
|
@@ -10250,7 +10311,123 @@ var stdin_default$O = vue.defineComponent({
|
|
10250
10311
|
};
|
10251
10312
|
}
|
10252
10313
|
});
|
10253
|
-
const GridItem = withInstall(stdin_default$
|
10314
|
+
const GridItem = withInstall(stdin_default$P);
|
10315
|
+
const [name$F, bem$F] = createNamespace("highlight");
|
10316
|
+
const highlightProps = {
|
10317
|
+
autoEscape: truthProp,
|
10318
|
+
caseSensitive: Boolean,
|
10319
|
+
highlightClass: String,
|
10320
|
+
highlightTag: makeStringProp("span"),
|
10321
|
+
keywords: makeRequiredProp([String, Array]),
|
10322
|
+
sourceString: makeStringProp(""),
|
10323
|
+
tag: makeStringProp("div"),
|
10324
|
+
unhighlightClass: String,
|
10325
|
+
unhighlightTag: makeStringProp("span")
|
10326
|
+
};
|
10327
|
+
var stdin_default$O = vue.defineComponent({
|
10328
|
+
name: name$F,
|
10329
|
+
props: highlightProps,
|
10330
|
+
setup(props2) {
|
10331
|
+
const highlightChunks = vue.computed(() => {
|
10332
|
+
const {
|
10333
|
+
autoEscape,
|
10334
|
+
caseSensitive,
|
10335
|
+
keywords,
|
10336
|
+
sourceString
|
10337
|
+
} = props2;
|
10338
|
+
const flags = caseSensitive ? "g" : "gi";
|
10339
|
+
const _keywords = Array.isArray(keywords) ? keywords : [keywords];
|
10340
|
+
let chunks = _keywords.filter((keyword) => keyword).reduce((chunks2, keyword) => {
|
10341
|
+
if (autoEscape) {
|
10342
|
+
keyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
10343
|
+
}
|
10344
|
+
const regex = new RegExp(keyword, flags);
|
10345
|
+
let match;
|
10346
|
+
while (match = regex.exec(sourceString)) {
|
10347
|
+
const start = match.index;
|
10348
|
+
const end = regex.lastIndex;
|
10349
|
+
if (start >= end) {
|
10350
|
+
regex.lastIndex++;
|
10351
|
+
continue;
|
10352
|
+
}
|
10353
|
+
chunks2.push({
|
10354
|
+
start,
|
10355
|
+
end,
|
10356
|
+
highlight: true
|
10357
|
+
});
|
10358
|
+
}
|
10359
|
+
return chunks2;
|
10360
|
+
}, []);
|
10361
|
+
chunks = chunks.sort((a, b) => a.start - b.start).reduce((chunks2, currentChunk) => {
|
10362
|
+
const prevChunk = chunks2[chunks2.length - 1];
|
10363
|
+
if (!prevChunk || currentChunk.start > prevChunk.end) {
|
10364
|
+
const unhighlightStart = prevChunk ? prevChunk.end : 0;
|
10365
|
+
const unhighlightEnd = currentChunk.start;
|
10366
|
+
if (unhighlightStart !== unhighlightEnd) {
|
10367
|
+
chunks2.push({
|
10368
|
+
start: unhighlightStart,
|
10369
|
+
end: unhighlightEnd,
|
10370
|
+
highlight: false
|
10371
|
+
});
|
10372
|
+
}
|
10373
|
+
chunks2.push(currentChunk);
|
10374
|
+
} else {
|
10375
|
+
prevChunk.end = Math.max(prevChunk.end, currentChunk.end);
|
10376
|
+
}
|
10377
|
+
return chunks2;
|
10378
|
+
}, []);
|
10379
|
+
const lastChunk = chunks[chunks.length - 1];
|
10380
|
+
if (lastChunk && lastChunk.end < sourceString.length) {
|
10381
|
+
chunks.push({
|
10382
|
+
start: lastChunk.end,
|
10383
|
+
end: sourceString.length,
|
10384
|
+
highlight: false
|
10385
|
+
});
|
10386
|
+
}
|
10387
|
+
return chunks;
|
10388
|
+
});
|
10389
|
+
const renderContent = () => {
|
10390
|
+
const {
|
10391
|
+
sourceString,
|
10392
|
+
highlightClass,
|
10393
|
+
unhighlightClass,
|
10394
|
+
highlightTag,
|
10395
|
+
unhighlightTag
|
10396
|
+
} = props2;
|
10397
|
+
return highlightChunks.value.map((chunk) => {
|
10398
|
+
const {
|
10399
|
+
start,
|
10400
|
+
end,
|
10401
|
+
highlight
|
10402
|
+
} = chunk;
|
10403
|
+
const text = sourceString.slice(start, end);
|
10404
|
+
if (highlight) {
|
10405
|
+
return vue.createVNode(highlightTag, {
|
10406
|
+
"class": [bem$F("tag"), highlightClass]
|
10407
|
+
}, {
|
10408
|
+
default: () => [text]
|
10409
|
+
});
|
10410
|
+
}
|
10411
|
+
return vue.createVNode(unhighlightTag, {
|
10412
|
+
"class": unhighlightClass
|
10413
|
+
}, {
|
10414
|
+
default: () => [text]
|
10415
|
+
});
|
10416
|
+
});
|
10417
|
+
};
|
10418
|
+
return () => {
|
10419
|
+
const {
|
10420
|
+
tag
|
10421
|
+
} = props2;
|
10422
|
+
return vue.createVNode(tag, {
|
10423
|
+
"class": bem$F()
|
10424
|
+
}, {
|
10425
|
+
default: () => [renderContent()]
|
10426
|
+
});
|
10427
|
+
};
|
10428
|
+
}
|
10429
|
+
});
|
10430
|
+
const Highlight = withInstall(stdin_default$O);
|
10254
10431
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
10255
10432
|
const getCenter = (touches) => ({
|
10256
10433
|
x: (touches[0].clientX + touches[1].clientX) / 2,
|
@@ -10258,19 +10435,20 @@ const getCenter = (touches) => ({
|
|
10258
10435
|
});
|
10259
10436
|
const bem$E = createNamespace("image-preview")[1];
|
10260
10437
|
const longImageRatio = 2.6;
|
10438
|
+
const imagePreviewItemProps = {
|
10439
|
+
src: String,
|
10440
|
+
show: Boolean,
|
10441
|
+
active: Number,
|
10442
|
+
minZoom: makeRequiredProp(numericProp),
|
10443
|
+
maxZoom: makeRequiredProp(numericProp),
|
10444
|
+
rootWidth: makeRequiredProp(Number),
|
10445
|
+
rootHeight: makeRequiredProp(Number),
|
10446
|
+
disableZoom: Boolean,
|
10447
|
+
doubleScale: Boolean,
|
10448
|
+
closeOnClickOverlay: Boolean
|
10449
|
+
};
|
10261
10450
|
var stdin_default$N = vue.defineComponent({
|
10262
|
-
props:
|
10263
|
-
src: String,
|
10264
|
-
show: Boolean,
|
10265
|
-
active: Number,
|
10266
|
-
minZoom: makeRequiredProp(numericProp),
|
10267
|
-
maxZoom: makeRequiredProp(numericProp),
|
10268
|
-
rootWidth: makeRequiredProp(Number),
|
10269
|
-
rootHeight: makeRequiredProp(Number),
|
10270
|
-
disableZoom: Boolean,
|
10271
|
-
doubleScale: Boolean,
|
10272
|
-
closeOnClickOverlay: Boolean
|
10273
|
-
},
|
10451
|
+
props: imagePreviewItemProps,
|
10274
10452
|
emits: ["scale", "close", "longPress"],
|
10275
10453
|
setup(props2, {
|
10276
10454
|
emit,
|
@@ -10536,6 +10714,9 @@ var stdin_default$N = vue.defineComponent({
|
|
10536
10714
|
return (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10537
10715
|
})
|
10538
10716
|
});
|
10717
|
+
useExpose({
|
10718
|
+
resetScale
|
10719
|
+
});
|
10539
10720
|
return () => {
|
10540
10721
|
const imageSlots = {
|
10541
10722
|
loading: () => vue.createVNode(Loading, {
|
@@ -10602,6 +10783,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10602
10783
|
slots
|
10603
10784
|
}) {
|
10604
10785
|
const swipeRef = vue.ref();
|
10786
|
+
const activedPreviewItemRef = vue.ref();
|
10605
10787
|
const state = vue.reactive({
|
10606
10788
|
active: 0,
|
10607
10789
|
rootWidth: 0,
|
@@ -10666,6 +10848,11 @@ var stdin_default$M = vue.defineComponent({
|
|
10666
10848
|
"onDragStart": onDragStart
|
10667
10849
|
}, {
|
10668
10850
|
default: () => [props2.images.map((image, index) => vue.createVNode(stdin_default$N, {
|
10851
|
+
"ref": (item) => {
|
10852
|
+
if (index === state.active) {
|
10853
|
+
activedPreviewItemRef.value = item;
|
10854
|
+
}
|
10855
|
+
},
|
10669
10856
|
"src": image,
|
10670
10857
|
"show": props2.show,
|
10671
10858
|
"active": state.active,
|
@@ -10701,6 +10888,10 @@ var stdin_default$M = vue.defineComponent({
|
|
10701
10888
|
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
10702
10889
|
};
|
10703
10890
|
useExpose({
|
10891
|
+
resetScale: () => {
|
10892
|
+
var _a;
|
10893
|
+
(_a = activedPreviewItemRef.value) == null ? void 0 : _a.resetScale();
|
10894
|
+
},
|
10704
10895
|
swipeTo
|
10705
10896
|
});
|
10706
10897
|
vue.onMounted(resize);
|
@@ -12106,7 +12297,7 @@ var stdin_default$C = vue.defineComponent({
|
|
12106
12297
|
}
|
12107
12298
|
});
|
12108
12299
|
const PasswordInput = withInstall(stdin_default$C);
|
12109
|
-
const PickerGroup = withInstall(stdin_default$
|
12300
|
+
const PickerGroup = withInstall(stdin_default$1A);
|
12110
12301
|
const [name$t, bem$s] = createNamespace("popover");
|
12111
12302
|
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
12112
12303
|
const popoverProps = {
|
@@ -12894,7 +13085,7 @@ var stdin_default$w = vue.defineComponent({
|
|
12894
13085
|
}
|
12895
13086
|
});
|
12896
13087
|
const RollingText = withInstall(stdin_default$w);
|
12897
|
-
const Row = withInstall(stdin_default$
|
13088
|
+
const Row = withInstall(stdin_default$17);
|
12898
13089
|
const [name$n, bem$m, t$4] = createNamespace("search");
|
12899
13090
|
const searchProps = extend({}, fieldSharedProps, {
|
12900
13091
|
label: String,
|
@@ -12972,7 +13163,9 @@ var stdin_default$v = vue.defineComponent({
|
|
12972
13163
|
return vue.createVNode(Field, vue.mergeProps({
|
12973
13164
|
"ref": fieldRef,
|
12974
13165
|
"type": "search",
|
12975
|
-
"class": bem$m("field"
|
13166
|
+
"class": bem$m("field", {
|
13167
|
+
"with-message": fieldAttrs.errorMessage
|
13168
|
+
}),
|
12976
13169
|
"border": false,
|
12977
13170
|
"onBlur": onBlur,
|
12978
13171
|
"onFocus": onFocus,
|
@@ -13320,7 +13513,7 @@ var stdin_default$r = vue.defineComponent({
|
|
13320
13513
|
}
|
13321
13514
|
emit("clear");
|
13322
13515
|
};
|
13323
|
-
|
13516
|
+
const initialize = () => {
|
13324
13517
|
var _a, _b, _c;
|
13325
13518
|
if (isRenderCanvas && canvasRef.value) {
|
13326
13519
|
const canvas = canvasRef.value;
|
@@ -13330,6 +13523,18 @@ var stdin_default$r = vue.defineComponent({
|
|
13330
13523
|
(_c = ctx.value) == null ? void 0 : _c.scale(dpr, dpr);
|
13331
13524
|
setCanvasBgColor(ctx.value);
|
13332
13525
|
}
|
13526
|
+
};
|
13527
|
+
const resize = () => {
|
13528
|
+
if (ctx.value) {
|
13529
|
+
const data = ctx.value.getImageData(0, 0, canvasWidth, canvasHeight);
|
13530
|
+
initialize();
|
13531
|
+
ctx.value.putImageData(data, 0, 0);
|
13532
|
+
}
|
13533
|
+
};
|
13534
|
+
vue.watch(windowWidth, resize);
|
13535
|
+
vue.onMounted(initialize);
|
13536
|
+
useExpose({
|
13537
|
+
resize
|
13333
13538
|
});
|
13334
13539
|
return () => vue.createVNode("div", {
|
13335
13540
|
"class": bem$i()
|
@@ -16520,7 +16725,7 @@ const Lazyload = {
|
|
16520
16725
|
});
|
16521
16726
|
}
|
16522
16727
|
};
|
16523
|
-
const version = "4.
|
16728
|
+
const version = "4.8.0";
|
16524
16729
|
function install(app) {
|
16525
16730
|
const components = [
|
16526
16731
|
ActionBar,
|
@@ -16565,6 +16770,7 @@ function install(app) {
|
|
16565
16770
|
Form,
|
16566
16771
|
Grid,
|
16567
16772
|
GridItem,
|
16773
|
+
Highlight,
|
16568
16774
|
Icon,
|
16569
16775
|
Image$1,
|
16570
16776
|
ImagePreview,
|
@@ -16679,6 +16885,7 @@ exports.FloatingPanel = FloatingPanel;
|
|
16679
16885
|
exports.Form = Form;
|
16680
16886
|
exports.Grid = Grid;
|
16681
16887
|
exports.GridItem = GridItem;
|
16888
|
+
exports.Highlight = Highlight;
|
16682
16889
|
exports.Icon = Icon;
|
16683
16890
|
exports.Image = Image$1;
|
16684
16891
|
exports.ImagePreview = ImagePreview;
|
@@ -16784,6 +16991,7 @@ exports.floatingPanelProps = floatingPanelProps;
|
|
16784
16991
|
exports.formProps = formProps;
|
16785
16992
|
exports.gridItemProps = gridItemProps;
|
16786
16993
|
exports.gridProps = gridProps;
|
16994
|
+
exports.highlightProps = highlightProps;
|
16787
16995
|
exports.iconProps = iconProps;
|
16788
16996
|
exports.imagePreviewProps = imagePreviewProps;
|
16789
16997
|
exports.imageProps = imageProps;
|