vant 4.0.0-rc.6 → 4.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-sheet/index.css +1 -1
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/date-picker/DatePicker.mjs +4 -1
- package/es/image-preview/ImagePreview.d.ts +2 -1
- package/es/image-preview/ImagePreview.mjs +6 -3
- package/es/image-preview/ImagePreviewItem.d.ts +2 -1
- package/es/image-preview/ImagePreviewItem.mjs +15 -11
- package/es/image-preview/index.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/lazy-image.mjs +5 -5
- package/es/picker/Picker.mjs +4 -2
- package/es/picker/PickerColumn.mjs +5 -4
- package/es/popover/Popover.mjs +13 -8
- package/es/skeleton/Skeleton.d.ts +23 -23
- package/es/skeleton/Skeleton.mjs +28 -23
- package/es/skeleton/SkeletonAvatar.d.ts +26 -0
- package/es/skeleton/SkeletonAvatar.mjs +22 -0
- package/es/skeleton/SkeletonImage.d.ts +26 -0
- package/es/skeleton/SkeletonImage.mjs +26 -0
- package/es/skeleton/SkeletonParagraph.d.ts +27 -0
- package/es/skeleton/SkeletonParagraph.mjs +31 -0
- package/es/skeleton/SkeletonTitle.d.ts +16 -0
- package/es/skeleton/SkeletonTitle.mjs +26 -0
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +85 -18
- package/es/skeleton/index.mjs +22 -2
- package/es/skeleton/style/index.mjs +2 -0
- package/es/skeleton/types.d.ts +7 -3
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.d.ts +1 -1
- package/es/time-picker/TimePicker.mjs +4 -1
- package/es/uploader/Uploader.mjs +4 -4
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +3 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/date-picker/DatePicker.js +4 -1
- package/lib/image-preview/ImagePreview.d.ts +2 -1
- package/lib/image-preview/ImagePreview.js +6 -3
- package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
- package/lib/image-preview/ImagePreviewItem.js +14 -10
- package/lib/image-preview/index.d.ts +2 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/lazy-image.js +6 -6
- package/lib/picker/Picker.js +3 -1
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/popover/Popover.js +13 -8
- package/lib/skeleton/Skeleton.d.ts +23 -23
- package/lib/skeleton/Skeleton.js +34 -23
- package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
- package/lib/skeleton/SkeletonAvatar.js +41 -0
- package/lib/skeleton/SkeletonImage.d.ts +26 -0
- package/lib/skeleton/SkeletonImage.js +45 -0
- package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
- package/lib/skeleton/SkeletonParagraph.js +50 -0
- package/lib/skeleton/SkeletonTitle.d.ts +16 -0
- package/lib/skeleton/SkeletonTitle.js +45 -0
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +85 -18
- package/lib/skeleton/index.js +22 -2
- package/lib/skeleton/style/index.js +2 -0
- package/lib/skeleton/types.d.ts +7 -3
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.js +4 -1
- package/lib/uploader/Uploader.js +3 -3
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/vant.cjs.js +900 -778
- package/lib/vant.es.js +900 -778
- package/lib/vant.js +894 -778
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -12164
- package/package.json +1 -1
package/lib/vant.es.js
CHANGED
@@ -235,7 +235,7 @@ function deepAssign(to, from) {
|
|
235
235
|
});
|
236
236
|
return to;
|
237
237
|
}
|
238
|
-
var stdin_default$
|
238
|
+
var stdin_default$1J = {
|
239
239
|
name: "\u59D3\u540D",
|
240
240
|
tel: "\u7535\u8BDD",
|
241
241
|
save: "\u4FDD\u5B58",
|
@@ -298,7 +298,7 @@ var stdin_default$1F = {
|
|
298
298
|
};
|
299
299
|
const lang = ref("zh-CN");
|
300
300
|
const messages = reactive({
|
301
|
-
"zh-CN": stdin_default$
|
301
|
+
"zh-CN": stdin_default$1J
|
302
302
|
});
|
303
303
|
const Locale = {
|
304
304
|
messages() {
|
@@ -312,11 +312,11 @@ const Locale = {
|
|
312
312
|
deepAssign(messages, newMessages);
|
313
313
|
}
|
314
314
|
};
|
315
|
-
var stdin_default$
|
315
|
+
var stdin_default$1I = Locale;
|
316
316
|
function createTranslate(name2) {
|
317
317
|
const prefix = camelize(name2) + ".";
|
318
318
|
return (path, ...args) => {
|
319
|
-
const messages2 = stdin_default$
|
319
|
+
const messages2 = stdin_default$1I.messages();
|
320
320
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
321
321
|
return isFunction(message) ? message(...args) : message;
|
322
322
|
};
|
@@ -366,6 +366,7 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
|
366
366
|
const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
367
367
|
const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
368
368
|
const FORM_KEY = Symbol("van-form");
|
369
|
+
const LONG_PRESS_START_TIME = 500;
|
369
370
|
function callInterceptor(interceptor, {
|
370
371
|
args = [],
|
371
372
|
done,
|
@@ -436,20 +437,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
436
437
|
}
|
437
438
|
}, [renderContent()]);
|
438
439
|
}
|
439
|
-
const [name$
|
440
|
-
const ACTION_BAR_KEY = Symbol(name$
|
440
|
+
const [name$1A, bem$1v] = createNamespace("action-bar");
|
441
|
+
const ACTION_BAR_KEY = Symbol(name$1A);
|
441
442
|
const actionBarProps = {
|
442
443
|
placeholder: Boolean,
|
443
444
|
safeAreaInsetBottom: truthProp
|
444
445
|
};
|
445
|
-
var stdin_default$
|
446
|
-
name: name$
|
446
|
+
var stdin_default$1H = defineComponent({
|
447
|
+
name: name$1A,
|
447
448
|
props: actionBarProps,
|
448
449
|
setup(props, {
|
449
450
|
slots
|
450
451
|
}) {
|
451
452
|
const root = ref();
|
452
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
453
|
+
const renderPlaceholder = usePlaceholder(root, bem$1v);
|
453
454
|
const {
|
454
455
|
linkChildren
|
455
456
|
} = useChildren(ACTION_BAR_KEY);
|
@@ -458,7 +459,7 @@ var stdin_default$1D = defineComponent({
|
|
458
459
|
var _a;
|
459
460
|
return createVNode("div", {
|
460
461
|
"ref": root,
|
461
|
-
"class": [bem$
|
462
|
+
"class": [bem$1v(), {
|
462
463
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
463
464
|
}]
|
464
465
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -471,7 +472,7 @@ var stdin_default$1D = defineComponent({
|
|
471
472
|
};
|
472
473
|
}
|
473
474
|
});
|
474
|
-
const ActionBar = withInstall(stdin_default$
|
475
|
+
const ActionBar = withInstall(stdin_default$1H);
|
475
476
|
function useExpose(apis) {
|
476
477
|
const instance2 = getCurrentInstance();
|
477
478
|
if (instance2) {
|
@@ -499,7 +500,7 @@ function useRoute() {
|
|
499
500
|
const vm = getCurrentInstance().proxy;
|
500
501
|
return () => route(vm);
|
501
502
|
}
|
502
|
-
const [name$
|
503
|
+
const [name$1z, bem$1u] = createNamespace("badge");
|
503
504
|
const badgeProps = {
|
504
505
|
dot: Boolean,
|
505
506
|
max: numericProp,
|
@@ -510,8 +511,8 @@ const badgeProps = {
|
|
510
511
|
showZero: truthProp,
|
511
512
|
position: makeStringProp("top-right")
|
512
513
|
};
|
513
|
-
var stdin_default$
|
514
|
-
name: name$
|
514
|
+
var stdin_default$1G = defineComponent({
|
515
|
+
name: name$1z,
|
515
516
|
props: badgeProps,
|
516
517
|
setup(props, {
|
517
518
|
slots
|
@@ -565,7 +566,7 @@ var stdin_default$1C = defineComponent({
|
|
565
566
|
const renderBadge = () => {
|
566
567
|
if (hasContent() || props.dot) {
|
567
568
|
return createVNode("div", {
|
568
|
-
"class": bem$
|
569
|
+
"class": bem$1u([props.position, {
|
569
570
|
dot: props.dot,
|
570
571
|
fixed: !!slots.default
|
571
572
|
}]),
|
@@ -579,7 +580,7 @@ var stdin_default$1C = defineComponent({
|
|
579
580
|
tag
|
580
581
|
} = props;
|
581
582
|
return createVNode(tag, {
|
582
|
-
"class": bem$
|
583
|
+
"class": bem$1u("wrapper")
|
583
584
|
}, {
|
584
585
|
default: () => [slots.default(), renderBadge()]
|
585
586
|
});
|
@@ -588,14 +589,14 @@ var stdin_default$1C = defineComponent({
|
|
588
589
|
};
|
589
590
|
}
|
590
591
|
});
|
591
|
-
const Badge = withInstall(stdin_default$
|
592
|
+
const Badge = withInstall(stdin_default$1G);
|
592
593
|
let globalZIndex = 2e3;
|
593
594
|
const useGlobalZIndex = () => ++globalZIndex;
|
594
595
|
const setGlobalZIndex = (val) => {
|
595
596
|
globalZIndex = val;
|
596
597
|
};
|
597
|
-
const [name$
|
598
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
598
|
+
const [name$1y, bem$1t] = createNamespace("config-provider");
|
599
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1y);
|
599
600
|
const configProviderProps = {
|
600
601
|
tag: makeStringProp("div"),
|
601
602
|
theme: makeStringProp("light"),
|
@@ -612,8 +613,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
612
613
|
});
|
613
614
|
return cssVars;
|
614
615
|
}
|
615
|
-
var stdin_default$
|
616
|
-
name: name$
|
616
|
+
var stdin_default$1F = defineComponent({
|
617
|
+
name: name$1y,
|
617
618
|
props: configProviderProps,
|
618
619
|
setup(props, {
|
619
620
|
slots
|
@@ -645,7 +646,7 @@ var stdin_default$1B = defineComponent({
|
|
645
646
|
}
|
646
647
|
});
|
647
648
|
return () => createVNode(props.tag, {
|
648
|
-
"class": bem$
|
649
|
+
"class": bem$1t(),
|
649
650
|
"style": style.value
|
650
651
|
}, {
|
651
652
|
default: () => {
|
@@ -655,7 +656,7 @@ var stdin_default$1B = defineComponent({
|
|
655
656
|
});
|
656
657
|
}
|
657
658
|
});
|
658
|
-
const [name$
|
659
|
+
const [name$1x, bem$1s] = createNamespace("icon");
|
659
660
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
660
661
|
const iconProps = {
|
661
662
|
dot: Boolean,
|
@@ -667,14 +668,14 @@ const iconProps = {
|
|
667
668
|
badgeProps: Object,
|
668
669
|
classPrefix: String
|
669
670
|
};
|
670
|
-
var stdin_default$
|
671
|
-
name: name$
|
671
|
+
var stdin_default$1E = defineComponent({
|
672
|
+
name: name$1x,
|
672
673
|
props: iconProps,
|
673
674
|
setup(props, {
|
674
675
|
slots
|
675
676
|
}) {
|
676
677
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
677
|
-
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
678
|
+
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1s());
|
678
679
|
return () => {
|
679
680
|
const {
|
680
681
|
tag,
|
@@ -698,7 +699,7 @@ var stdin_default$1A = defineComponent({
|
|
698
699
|
default: () => {
|
699
700
|
var _a;
|
700
701
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
|
701
|
-
"class": bem$
|
702
|
+
"class": bem$1s("image"),
|
702
703
|
"src": name2
|
703
704
|
}, null)];
|
704
705
|
}
|
@@ -706,13 +707,13 @@ var stdin_default$1A = defineComponent({
|
|
706
707
|
};
|
707
708
|
}
|
708
709
|
});
|
709
|
-
const Icon = withInstall(stdin_default$
|
710
|
-
const [name$
|
710
|
+
const Icon = withInstall(stdin_default$1E);
|
711
|
+
const [name$1w, bem$1r] = createNamespace("loading");
|
711
712
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
712
|
-
"class": bem$
|
713
|
+
"class": bem$1r("line", String(index + 1))
|
713
714
|
}, null));
|
714
715
|
const CircularIcon = createVNode("svg", {
|
715
|
-
"class": bem$
|
716
|
+
"class": bem$1r("circular"),
|
716
717
|
"viewBox": "25 25 50 50"
|
717
718
|
}, [createVNode("circle", {
|
718
719
|
"cx": "50",
|
@@ -728,8 +729,8 @@ const loadingProps = {
|
|
728
729
|
textSize: numericProp,
|
729
730
|
textColor: String
|
730
731
|
};
|
731
|
-
var stdin_default$
|
732
|
-
name: name$
|
732
|
+
var stdin_default$1D = defineComponent({
|
733
|
+
name: name$1w,
|
733
734
|
props: loadingProps,
|
734
735
|
setup(props, {
|
735
736
|
slots
|
@@ -740,7 +741,7 @@ var stdin_default$1z = defineComponent({
|
|
740
741
|
const renderIcon = () => {
|
741
742
|
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
742
743
|
return createVNode("span", {
|
743
|
-
"class": bem$
|
744
|
+
"class": bem$1r("spinner", props.type),
|
744
745
|
"style": spinnerStyle.value
|
745
746
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
746
747
|
};
|
@@ -748,7 +749,7 @@ var stdin_default$1z = defineComponent({
|
|
748
749
|
var _a;
|
749
750
|
if (slots.default) {
|
750
751
|
return createVNode("span", {
|
751
|
-
"class": bem$
|
752
|
+
"class": bem$1r("text"),
|
752
753
|
"style": {
|
753
754
|
fontSize: addUnit(props.textSize),
|
754
755
|
color: (_a = props.textColor) != null ? _a : props.color
|
@@ -762,7 +763,7 @@ var stdin_default$1z = defineComponent({
|
|
762
763
|
vertical
|
763
764
|
} = props;
|
764
765
|
return createVNode("div", {
|
765
|
-
"class": bem$
|
766
|
+
"class": bem$1r([type, {
|
766
767
|
vertical
|
767
768
|
}]),
|
768
769
|
"aria-live": "polite",
|
@@ -771,8 +772,8 @@ var stdin_default$1z = defineComponent({
|
|
771
772
|
};
|
772
773
|
}
|
773
774
|
});
|
774
|
-
const Loading = withInstall(stdin_default$
|
775
|
-
const [name$
|
775
|
+
const Loading = withInstall(stdin_default$1D);
|
776
|
+
const [name$1v, bem$1q] = createNamespace("button");
|
776
777
|
const buttonProps = extend({}, routeProps, {
|
777
778
|
tag: makeStringProp("button"),
|
778
779
|
text: String,
|
@@ -794,8 +795,8 @@ const buttonProps = extend({}, routeProps, {
|
|
794
795
|
loadingType: String,
|
795
796
|
iconPosition: makeStringProp("left")
|
796
797
|
});
|
797
|
-
var stdin_default$
|
798
|
-
name: name$
|
798
|
+
var stdin_default$1C = defineComponent({
|
799
|
+
name: name$1v,
|
799
800
|
props: buttonProps,
|
800
801
|
emits: ["click"],
|
801
802
|
setup(props, {
|
@@ -810,7 +811,7 @@ var stdin_default$1y = defineComponent({
|
|
810
811
|
return createVNode(Loading, {
|
811
812
|
"size": props.loadingSize,
|
812
813
|
"type": props.loadingType,
|
813
|
-
"class": bem$
|
814
|
+
"class": bem$1q("loading")
|
814
815
|
}, null);
|
815
816
|
};
|
816
817
|
const renderIcon = () => {
|
@@ -819,13 +820,13 @@ var stdin_default$1y = defineComponent({
|
|
819
820
|
}
|
820
821
|
if (slots.icon) {
|
821
822
|
return createVNode("div", {
|
822
|
-
"class": bem$
|
823
|
+
"class": bem$1q("icon")
|
823
824
|
}, [slots.icon()]);
|
824
825
|
}
|
825
826
|
if (props.icon) {
|
826
827
|
return createVNode(Icon, {
|
827
828
|
"name": props.icon,
|
828
|
-
"class": bem$
|
829
|
+
"class": bem$1q("icon"),
|
829
830
|
"classPrefix": props.iconPrefix
|
830
831
|
}, null);
|
831
832
|
}
|
@@ -839,7 +840,7 @@ var stdin_default$1y = defineComponent({
|
|
839
840
|
}
|
840
841
|
if (text) {
|
841
842
|
return createVNode("span", {
|
842
|
-
"class": bem$
|
843
|
+
"class": bem$1q("text")
|
843
844
|
}, [text]);
|
844
845
|
}
|
845
846
|
};
|
@@ -886,7 +887,7 @@ var stdin_default$1y = defineComponent({
|
|
886
887
|
nativeType,
|
887
888
|
iconPosition
|
888
889
|
} = props;
|
889
|
-
const classes = [bem$
|
890
|
+
const classes = [bem$1q([type, size, {
|
890
891
|
plain,
|
891
892
|
block,
|
892
893
|
round,
|
@@ -905,14 +906,14 @@ var stdin_default$1y = defineComponent({
|
|
905
906
|
"onClick": onClick
|
906
907
|
}, {
|
907
908
|
default: () => [createVNode("div", {
|
908
|
-
"class": bem$
|
909
|
+
"class": bem$1q("content")
|
909
910
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
910
911
|
});
|
911
912
|
};
|
912
913
|
}
|
913
914
|
});
|
914
|
-
const Button = withInstall(stdin_default$
|
915
|
-
const [name$
|
915
|
+
const Button = withInstall(stdin_default$1C);
|
916
|
+
const [name$1u, bem$1p] = createNamespace("action-bar-button");
|
916
917
|
const actionBarButtonProps = extend({}, routeProps, {
|
917
918
|
type: String,
|
918
919
|
text: String,
|
@@ -921,8 +922,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
921
922
|
loading: Boolean,
|
922
923
|
disabled: Boolean
|
923
924
|
});
|
924
|
-
var stdin_default$
|
925
|
-
name: name$
|
925
|
+
var stdin_default$1B = defineComponent({
|
926
|
+
name: name$1u,
|
926
927
|
props: actionBarButtonProps,
|
927
928
|
setup(props, {
|
928
929
|
slots
|
@@ -957,7 +958,7 @@ var stdin_default$1x = defineComponent({
|
|
957
958
|
disabled
|
958
959
|
} = props;
|
959
960
|
return createVNode(Button, {
|
960
|
-
"class": bem$
|
961
|
+
"class": bem$1p([type, {
|
961
962
|
last: isLast.value,
|
962
963
|
first: isFirst.value
|
963
964
|
}]),
|
@@ -974,8 +975,8 @@ var stdin_default$1x = defineComponent({
|
|
974
975
|
};
|
975
976
|
}
|
976
977
|
});
|
977
|
-
const ActionBarButton = withInstall(stdin_default$
|
978
|
-
const [name$
|
978
|
+
const ActionBarButton = withInstall(stdin_default$1B);
|
979
|
+
const [name$1t, bem$1o] = createNamespace("action-bar-icon");
|
979
980
|
const actionBarIconProps = extend({}, routeProps, {
|
980
981
|
dot: Boolean,
|
981
982
|
text: String,
|
@@ -986,8 +987,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
986
987
|
badgeProps: Object,
|
987
988
|
iconPrefix: String
|
988
989
|
});
|
989
|
-
var stdin_default$
|
990
|
-
name: name$
|
990
|
+
var stdin_default$1A = defineComponent({
|
991
|
+
name: name$1t,
|
991
992
|
props: actionBarIconProps,
|
992
993
|
setup(props, {
|
993
994
|
slots
|
@@ -1007,7 +1008,7 @@ var stdin_default$1w = defineComponent({
|
|
1007
1008
|
if (slots.icon) {
|
1008
1009
|
return createVNode(Badge, mergeProps({
|
1009
1010
|
"dot": dot,
|
1010
|
-
"class": bem$
|
1011
|
+
"class": bem$1o("icon"),
|
1011
1012
|
"content": badge
|
1012
1013
|
}, badgeProps2), {
|
1013
1014
|
default: slots.icon
|
@@ -1019,20 +1020,20 @@ var stdin_default$1w = defineComponent({
|
|
1019
1020
|
"name": icon,
|
1020
1021
|
"badge": badge,
|
1021
1022
|
"color": color,
|
1022
|
-
"class": [bem$
|
1023
|
+
"class": [bem$1o("icon"), iconClass],
|
1023
1024
|
"badgeProps": badgeProps2,
|
1024
1025
|
"classPrefix": iconPrefix
|
1025
1026
|
}, null);
|
1026
1027
|
};
|
1027
1028
|
return () => createVNode("div", {
|
1028
1029
|
"role": "button",
|
1029
|
-
"class": bem$
|
1030
|
+
"class": bem$1o(),
|
1030
1031
|
"tabindex": 0,
|
1031
1032
|
"onClick": route2
|
1032
1033
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1033
1034
|
}
|
1034
1035
|
});
|
1035
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1036
|
+
const ActionBarIcon = withInstall(stdin_default$1A);
|
1036
1037
|
const popupSharedProps = {
|
1037
1038
|
show: Boolean,
|
1038
1039
|
zIndex: numericProp,
|
@@ -1171,7 +1172,7 @@ function useLazyRender(show) {
|
|
1171
1172
|
);
|
1172
1173
|
return (render) => () => inited.value ? render() : null;
|
1173
1174
|
}
|
1174
|
-
const [name$
|
1175
|
+
const [name$1s, bem$1n] = createNamespace("overlay");
|
1175
1176
|
const overlayProps = {
|
1176
1177
|
show: Boolean,
|
1177
1178
|
zIndex: numericProp,
|
@@ -1181,8 +1182,8 @@ const overlayProps = {
|
|
1181
1182
|
lazyRender: truthProp,
|
1182
1183
|
customStyle: Object
|
1183
1184
|
};
|
1184
|
-
var stdin_default$
|
1185
|
-
name: name$
|
1185
|
+
var stdin_default$1z = defineComponent({
|
1186
|
+
name: name$1s,
|
1186
1187
|
props: overlayProps,
|
1187
1188
|
setup(props, {
|
1188
1189
|
slots
|
@@ -1203,7 +1204,7 @@ var stdin_default$1v = defineComponent({
|
|
1203
1204
|
return withDirectives(createVNode("div", {
|
1204
1205
|
"ref": root,
|
1205
1206
|
"style": style,
|
1206
|
-
"class": [bem$
|
1207
|
+
"class": [bem$1n(), props.className]
|
1207
1208
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
|
1208
1209
|
});
|
1209
1210
|
useEventListener("touchmove", onTouchMove, {
|
@@ -1217,7 +1218,7 @@ var stdin_default$1v = defineComponent({
|
|
1217
1218
|
});
|
1218
1219
|
}
|
1219
1220
|
});
|
1220
|
-
const Overlay = withInstall(stdin_default$
|
1221
|
+
const Overlay = withInstall(stdin_default$1z);
|
1221
1222
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1222
1223
|
round: Boolean,
|
1223
1224
|
position: makeStringProp("center"),
|
@@ -1230,9 +1231,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1230
1231
|
safeAreaInsetTop: Boolean,
|
1231
1232
|
safeAreaInsetBottom: Boolean
|
1232
1233
|
});
|
1233
|
-
const [name$
|
1234
|
-
var stdin_default$
|
1235
|
-
name: name$
|
1234
|
+
const [name$1r, bem$1m] = createNamespace("popup");
|
1235
|
+
var stdin_default$1y = defineComponent({
|
1236
|
+
name: name$1r,
|
1236
1237
|
inheritAttrs: false,
|
1237
1238
|
props: popupProps$2,
|
1238
1239
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1306,7 +1307,7 @@ var stdin_default$1u = defineComponent({
|
|
1306
1307
|
"role": "button",
|
1307
1308
|
"tabindex": 0,
|
1308
1309
|
"name": props.closeIcon,
|
1309
|
-
"class": [bem$
|
1310
|
+
"class": [bem$1m("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
1310
1311
|
"classPrefix": props.iconPrefix,
|
1311
1312
|
"onClick": onClickCloseIcon
|
1312
1313
|
}, null);
|
@@ -1328,7 +1329,7 @@ var stdin_default$1u = defineComponent({
|
|
1328
1329
|
"style": style.value,
|
1329
1330
|
"role": "dialog",
|
1330
1331
|
"tabindex": 0,
|
1331
|
-
"class": [bem$
|
1332
|
+
"class": [bem$1m({
|
1332
1333
|
round,
|
1333
1334
|
[position]: position
|
1334
1335
|
}), {
|
@@ -1409,8 +1410,8 @@ var stdin_default$1u = defineComponent({
|
|
1409
1410
|
};
|
1410
1411
|
}
|
1411
1412
|
});
|
1412
|
-
const Popup = withInstall(stdin_default$
|
1413
|
-
const [name$
|
1413
|
+
const Popup = withInstall(stdin_default$1y);
|
1414
|
+
const [name$1q, bem$1l] = createNamespace("action-sheet");
|
1414
1415
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1415
1416
|
title: String,
|
1416
1417
|
round: truthProp,
|
@@ -1424,8 +1425,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1424
1425
|
safeAreaInsetBottom: truthProp
|
1425
1426
|
});
|
1426
1427
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1427
|
-
var stdin_default$
|
1428
|
-
name: name$
|
1428
|
+
var stdin_default$1x = defineComponent({
|
1429
|
+
name: name$1q,
|
1429
1430
|
props: actionSheetProps,
|
1430
1431
|
emits: ["select", "cancel", "update:show"],
|
1431
1432
|
setup(props, {
|
@@ -1440,10 +1441,10 @@ var stdin_default$1t = defineComponent({
|
|
1440
1441
|
const renderHeader = () => {
|
1441
1442
|
if (props.title) {
|
1442
1443
|
return createVNode("div", {
|
1443
|
-
"class": bem$
|
1444
|
+
"class": bem$1l("header")
|
1444
1445
|
}, [props.title, props.closeable && createVNode(Icon, {
|
1445
1446
|
"name": props.closeIcon,
|
1446
|
-
"class": [bem$
|
1447
|
+
"class": [bem$1l("close"), HAPTICS_FEEDBACK],
|
1447
1448
|
"onClick": onCancel
|
1448
1449
|
}, null)]);
|
1449
1450
|
}
|
@@ -1451,10 +1452,10 @@ var stdin_default$1t = defineComponent({
|
|
1451
1452
|
const renderCancel = () => {
|
1452
1453
|
if (slots.cancel || props.cancelText) {
|
1453
1454
|
return [createVNode("div", {
|
1454
|
-
"class": bem$
|
1455
|
+
"class": bem$1l("gap")
|
1455
1456
|
}, null), createVNode("button", {
|
1456
1457
|
"type": "button",
|
1457
|
-
"class": bem$
|
1458
|
+
"class": bem$1l("cancel"),
|
1458
1459
|
"onClick": onCancel
|
1459
1460
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1460
1461
|
}
|
@@ -1462,7 +1463,7 @@ var stdin_default$1t = defineComponent({
|
|
1462
1463
|
const renderActionContent = (action, index) => {
|
1463
1464
|
if (action.loading) {
|
1464
1465
|
return createVNode(Loading, {
|
1465
|
-
"class": bem$
|
1466
|
+
"class": bem$1l("loading-icon")
|
1466
1467
|
}, null);
|
1467
1468
|
}
|
1468
1469
|
if (slots.action) {
|
@@ -1472,9 +1473,9 @@ var stdin_default$1t = defineComponent({
|
|
1472
1473
|
});
|
1473
1474
|
}
|
1474
1475
|
return [createVNode("span", {
|
1475
|
-
"class": bem$
|
1476
|
+
"class": bem$1l("name")
|
1476
1477
|
}, [action.name]), action.subname && createVNode("div", {
|
1477
|
-
"class": bem$
|
1478
|
+
"class": bem$1l("subname")
|
1478
1479
|
}, [action.subname])];
|
1479
1480
|
};
|
1480
1481
|
const renderAction = (action, index) => {
|
@@ -1502,7 +1503,7 @@ var stdin_default$1t = defineComponent({
|
|
1502
1503
|
"style": {
|
1503
1504
|
color
|
1504
1505
|
},
|
1505
|
-
"class": [bem$
|
1506
|
+
"class": [bem$1l("item", {
|
1506
1507
|
loading,
|
1507
1508
|
disabled
|
1508
1509
|
}), className],
|
@@ -1513,26 +1514,26 @@ var stdin_default$1t = defineComponent({
|
|
1513
1514
|
if (props.description || slots.description) {
|
1514
1515
|
const content = slots.description ? slots.description() : props.description;
|
1515
1516
|
return createVNode("div", {
|
1516
|
-
"class": bem$
|
1517
|
+
"class": bem$1l("description")
|
1517
1518
|
}, [content]);
|
1518
1519
|
}
|
1519
1520
|
};
|
1520
1521
|
return () => createVNode(Popup, mergeProps({
|
1521
|
-
"class": bem$
|
1522
|
+
"class": bem$1l(),
|
1522
1523
|
"position": "bottom",
|
1523
1524
|
"onUpdate:show": updateShow
|
1524
1525
|
}, pick(props, popupInheritKeys$2)), {
|
1525
1526
|
default: () => {
|
1526
1527
|
var _a;
|
1527
1528
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
1528
|
-
"class": bem$
|
1529
|
+
"class": bem$1l("content")
|
1529
1530
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1530
1531
|
}
|
1531
1532
|
});
|
1532
1533
|
}
|
1533
1534
|
});
|
1534
|
-
const ActionSheet = withInstall(stdin_default$
|
1535
|
-
const [name$
|
1535
|
+
const ActionSheet = withInstall(stdin_default$1x);
|
1536
|
+
const [name$1p, bem$1k, t$j] = createNamespace("picker");
|
1536
1537
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1537
1538
|
function getColumnsType(columns, fields) {
|
1538
1539
|
const firstColumn = columns[0];
|
@@ -1601,10 +1602,10 @@ function assignDefaultFields(fields) {
|
|
1601
1602
|
const DEFAULT_DURATION = 200;
|
1602
1603
|
const MOMENTUM_TIME = 300;
|
1603
1604
|
const MOMENTUM_DISTANCE = 15;
|
1604
|
-
const [name$
|
1605
|
-
const PICKER_KEY = Symbol(name$
|
1606
|
-
var stdin_default$
|
1607
|
-
name: name$
|
1605
|
+
const [name$1o, bem$1j] = createNamespace("picker-column");
|
1606
|
+
const PICKER_KEY = Symbol(name$1o);
|
1607
|
+
var stdin_default$1w = defineComponent({
|
1608
|
+
name: name$1o,
|
1608
1609
|
props: {
|
1609
1610
|
value: numericProp,
|
1610
1611
|
fields: makeRequiredProp(Object),
|
@@ -1648,8 +1649,9 @@ var stdin_default$1s = defineComponent({
|
|
1648
1649
|
}
|
1649
1650
|
currentOffset.value = offset;
|
1650
1651
|
};
|
1652
|
+
const isReadonly = () => props.readonly || !props.options.length;
|
1651
1653
|
const onClickOption = (index) => {
|
1652
|
-
if (moving ||
|
1654
|
+
if (moving || isReadonly()) {
|
1653
1655
|
return;
|
1654
1656
|
}
|
1655
1657
|
transitionEndTrigger = null;
|
@@ -1674,7 +1676,7 @@ var stdin_default$1s = defineComponent({
|
|
1674
1676
|
}
|
1675
1677
|
};
|
1676
1678
|
const onTouchStart = (event) => {
|
1677
|
-
if (
|
1679
|
+
if (isReadonly()) {
|
1678
1680
|
return;
|
1679
1681
|
}
|
1680
1682
|
touch.start(event);
|
@@ -1689,7 +1691,7 @@ var stdin_default$1s = defineComponent({
|
|
1689
1691
|
transitionEndTrigger = null;
|
1690
1692
|
};
|
1691
1693
|
const onTouchMove = (event) => {
|
1692
|
-
if (
|
1694
|
+
if (isReadonly()) {
|
1693
1695
|
return;
|
1694
1696
|
}
|
1695
1697
|
touch.move(event);
|
@@ -1705,7 +1707,7 @@ var stdin_default$1s = defineComponent({
|
|
1705
1707
|
}
|
1706
1708
|
};
|
1707
1709
|
const onTouchEnd = () => {
|
1708
|
-
if (
|
1710
|
+
if (isReadonly()) {
|
1709
1711
|
return;
|
1710
1712
|
}
|
1711
1713
|
const distance = currentOffset.value - momentumOffset;
|
@@ -1736,7 +1738,7 @@ var stdin_default$1s = defineComponent({
|
|
1736
1738
|
role: "button",
|
1737
1739
|
style: optionStyle,
|
1738
1740
|
tabindex: disabled ? -1 : 0,
|
1739
|
-
class: [bem$
|
1741
|
+
class: [bem$1j("item", {
|
1740
1742
|
disabled,
|
1741
1743
|
selected: value === props.value
|
1742
1744
|
}), option.className],
|
@@ -1764,7 +1766,7 @@ var stdin_default$1s = defineComponent({
|
|
1764
1766
|
});
|
1765
1767
|
return () => createVNode("div", {
|
1766
1768
|
"ref": root,
|
1767
|
-
"class": bem$
|
1769
|
+
"class": bem$1j(),
|
1768
1770
|
"onTouchstartPassive": onTouchStart,
|
1769
1771
|
"onTouchend": onTouchEnd,
|
1770
1772
|
"onTouchcancel": onTouchEnd
|
@@ -1775,12 +1777,12 @@ var stdin_default$1s = defineComponent({
|
|
1775
1777
|
transitionDuration: `${currentDuration.value}ms`,
|
1776
1778
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1777
1779
|
},
|
1778
|
-
"class": bem$
|
1780
|
+
"class": bem$1j("wrapper"),
|
1779
1781
|
"onTransitionend": stopMomentum
|
1780
1782
|
}, [renderOptions()])]);
|
1781
1783
|
}
|
1782
1784
|
});
|
1783
|
-
const [name$
|
1785
|
+
const [name$1n] = createNamespace("picker-toolbar");
|
1784
1786
|
const pickerToolbarProps = {
|
1785
1787
|
title: String,
|
1786
1788
|
cancelButtonText: String,
|
@@ -1788,8 +1790,8 @@ const pickerToolbarProps = {
|
|
1788
1790
|
};
|
1789
1791
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1790
1792
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1791
|
-
var stdin_default$
|
1792
|
-
name: name$
|
1793
|
+
var stdin_default$1v = defineComponent({
|
1794
|
+
name: name$1n,
|
1793
1795
|
props: pickerToolbarProps,
|
1794
1796
|
emits: ["confirm", "cancel"],
|
1795
1797
|
setup(props, {
|
@@ -1802,7 +1804,7 @@ var stdin_default$1r = defineComponent({
|
|
1802
1804
|
}
|
1803
1805
|
if (props.title) {
|
1804
1806
|
return createVNode("div", {
|
1805
|
-
"class": [bem$
|
1807
|
+
"class": [bem$1k("title"), "van-ellipsis"]
|
1806
1808
|
}, [props.title]);
|
1807
1809
|
}
|
1808
1810
|
};
|
@@ -1812,7 +1814,7 @@ var stdin_default$1r = defineComponent({
|
|
1812
1814
|
const text = props.cancelButtonText || t$j("cancel");
|
1813
1815
|
return createVNode("button", {
|
1814
1816
|
"type": "button",
|
1815
|
-
"class": [bem$
|
1817
|
+
"class": [bem$1k("cancel"), HAPTICS_FEEDBACK],
|
1816
1818
|
"onClick": onCancel
|
1817
1819
|
}, [slots.cancel ? slots.cancel() : text]);
|
1818
1820
|
};
|
@@ -1820,12 +1822,12 @@ var stdin_default$1r = defineComponent({
|
|
1820
1822
|
const text = props.confirmButtonText || t$j("confirm");
|
1821
1823
|
return createVNode("button", {
|
1822
1824
|
"type": "button",
|
1823
|
-
"class": [bem$
|
1825
|
+
"class": [bem$1k("confirm"), HAPTICS_FEEDBACK],
|
1824
1826
|
"onClick": onConfirm
|
1825
1827
|
}, [slots.confirm ? slots.confirm() : text]);
|
1826
1828
|
};
|
1827
1829
|
return () => createVNode("div", {
|
1828
|
-
"class": bem$
|
1830
|
+
"class": bem$1k("toolbar")
|
1829
1831
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1830
1832
|
}
|
1831
1833
|
});
|
@@ -1909,7 +1911,7 @@ function useVisibilityChange(target, onChange) {
|
|
1909
1911
|
onBeforeUnmount(unobserve);
|
1910
1912
|
onMountedOrActivated(observe);
|
1911
1913
|
}
|
1912
|
-
const [name$
|
1914
|
+
const [name$1m, bem$1i] = createNamespace("sticky");
|
1913
1915
|
const stickyProps = {
|
1914
1916
|
zIndex: numericProp,
|
1915
1917
|
position: makeStringProp("top"),
|
@@ -1917,8 +1919,8 @@ const stickyProps = {
|
|
1917
1919
|
offsetTop: makeNumericProp(0),
|
1918
1920
|
offsetBottom: makeNumericProp(0)
|
1919
1921
|
};
|
1920
|
-
var stdin_default$
|
1921
|
-
name: name$
|
1922
|
+
var stdin_default$1u = defineComponent({
|
1923
|
+
name: name$1m,
|
1922
1924
|
props: stickyProps,
|
1923
1925
|
emits: ["scroll", "change"],
|
1924
1926
|
setup(props, {
|
@@ -2013,7 +2015,7 @@ var stdin_default$1q = defineComponent({
|
|
2013
2015
|
"ref": root,
|
2014
2016
|
"style": rootStyle.value
|
2015
2017
|
}, [createVNode("div", {
|
2016
|
-
"class": bem$
|
2018
|
+
"class": bem$1i({
|
2017
2019
|
fixed: state.fixed
|
2018
2020
|
}),
|
2019
2021
|
"style": stickyStyle.value
|
@@ -2021,10 +2023,10 @@ var stdin_default$1q = defineComponent({
|
|
2021
2023
|
};
|
2022
2024
|
}
|
2023
2025
|
});
|
2024
|
-
const Sticky = withInstall(stdin_default$
|
2025
|
-
const [name$
|
2026
|
-
var stdin_default$
|
2027
|
-
name: name$
|
2026
|
+
const Sticky = withInstall(stdin_default$1u);
|
2027
|
+
const [name$1l, bem$1h] = createNamespace("tab");
|
2028
|
+
var stdin_default$1t = defineComponent({
|
2029
|
+
name: name$1l,
|
2028
2030
|
props: {
|
2029
2031
|
id: String,
|
2030
2032
|
dot: Boolean,
|
@@ -2073,7 +2075,7 @@ var stdin_default$1p = defineComponent({
|
|
2073
2075
|
});
|
2074
2076
|
const renderText = () => {
|
2075
2077
|
const Text2 = createVNode("span", {
|
2076
|
-
"class": bem$
|
2078
|
+
"class": bem$1h("text", {
|
2077
2079
|
ellipsis: !props.scrollable
|
2078
2080
|
})
|
2079
2081
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -2091,7 +2093,7 @@ var stdin_default$1p = defineComponent({
|
|
2091
2093
|
return () => createVNode("div", {
|
2092
2094
|
"id": props.id,
|
2093
2095
|
"role": "tab",
|
2094
|
-
"class": [bem$
|
2096
|
+
"class": [bem$1h([props.type, {
|
2095
2097
|
grow: props.scrollable && !props.shrink,
|
2096
2098
|
shrink: props.shrink,
|
2097
2099
|
active: props.isActive,
|
@@ -2105,7 +2107,7 @@ var stdin_default$1p = defineComponent({
|
|
2105
2107
|
}, [renderText()]);
|
2106
2108
|
}
|
2107
2109
|
});
|
2108
|
-
const [name$
|
2110
|
+
const [name$1k, bem$1g] = createNamespace("swipe");
|
2109
2111
|
const swipeProps = {
|
2110
2112
|
loop: truthProp,
|
2111
2113
|
width: numericProp,
|
@@ -2120,9 +2122,9 @@ const swipeProps = {
|
|
2120
2122
|
showIndicators: truthProp,
|
2121
2123
|
stopPropagation: truthProp
|
2122
2124
|
};
|
2123
|
-
const SWIPE_KEY = Symbol(name$
|
2124
|
-
var stdin_default$
|
2125
|
-
name: name$
|
2125
|
+
const SWIPE_KEY = Symbol(name$1k);
|
2126
|
+
var stdin_default$1s = defineComponent({
|
2127
|
+
name: name$1k,
|
2126
2128
|
props: swipeProps,
|
2127
2129
|
emits: ["change"],
|
2128
2130
|
setup(props, {
|
@@ -2384,7 +2386,7 @@ var stdin_default$1o = defineComponent({
|
|
2384
2386
|
} : void 0;
|
2385
2387
|
return createVNode("i", {
|
2386
2388
|
"style": style,
|
2387
|
-
"class": bem$
|
2389
|
+
"class": bem$1g("indicator", {
|
2388
2390
|
active
|
2389
2391
|
})
|
2390
2392
|
}, null);
|
@@ -2398,7 +2400,7 @@ var stdin_default$1o = defineComponent({
|
|
2398
2400
|
}
|
2399
2401
|
if (props.showIndicators && count.value > 1) {
|
2400
2402
|
return createVNode("div", {
|
2401
|
-
"class": bem$
|
2403
|
+
"class": bem$1g("indicators", {
|
2402
2404
|
vertical: props.vertical
|
2403
2405
|
})
|
2404
2406
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2440,11 +2442,11 @@ var stdin_default$1o = defineComponent({
|
|
2440
2442
|
var _a;
|
2441
2443
|
return createVNode("div", {
|
2442
2444
|
"ref": root,
|
2443
|
-
"class": bem$
|
2445
|
+
"class": bem$1g()
|
2444
2446
|
}, [createVNode("div", {
|
2445
2447
|
"ref": track,
|
2446
2448
|
"style": trackStyle.value,
|
2447
|
-
"class": bem$
|
2449
|
+
"class": bem$1g("track", {
|
2448
2450
|
vertical: props.vertical
|
2449
2451
|
}),
|
2450
2452
|
"onTouchstartPassive": onTouchStart,
|
@@ -2454,10 +2456,10 @@ var stdin_default$1o = defineComponent({
|
|
2454
2456
|
};
|
2455
2457
|
}
|
2456
2458
|
});
|
2457
|
-
const Swipe = withInstall(stdin_default$
|
2458
|
-
const [name$
|
2459
|
-
var stdin_default$
|
2460
|
-
name: name$
|
2459
|
+
const Swipe = withInstall(stdin_default$1s);
|
2460
|
+
const [name$1j, bem$1f] = createNamespace("tabs");
|
2461
|
+
var stdin_default$1r = defineComponent({
|
2462
|
+
name: name$1j,
|
2461
2463
|
props: {
|
2462
2464
|
count: makeRequiredProp(Number),
|
2463
2465
|
inited: Boolean,
|
@@ -2481,7 +2483,7 @@ var stdin_default$1n = defineComponent({
|
|
2481
2483
|
return createVNode(Swipe, {
|
2482
2484
|
"ref": swipeRef,
|
2483
2485
|
"loop": false,
|
2484
|
-
"class": bem$
|
2486
|
+
"class": bem$1f("track"),
|
2485
2487
|
"duration": +props.duration * 1e3,
|
2486
2488
|
"touchable": props.swipeable,
|
2487
2489
|
"lazyRender": props.lazyRender,
|
@@ -2509,13 +2511,13 @@ var stdin_default$1n = defineComponent({
|
|
2509
2511
|
swipeRef
|
2510
2512
|
});
|
2511
2513
|
return () => createVNode("div", {
|
2512
|
-
"class": bem$
|
2514
|
+
"class": bem$1f("content", {
|
2513
2515
|
animated: props.animated || props.swipeable
|
2514
2516
|
})
|
2515
2517
|
}, [renderChildren()]);
|
2516
2518
|
}
|
2517
2519
|
});
|
2518
|
-
const [name$
|
2520
|
+
const [name$1i, bem$1e] = createNamespace("tabs");
|
2519
2521
|
const tabsProps = {
|
2520
2522
|
type: makeStringProp("line"),
|
2521
2523
|
color: String,
|
@@ -2538,9 +2540,9 @@ const tabsProps = {
|
|
2538
2540
|
titleActiveColor: String,
|
2539
2541
|
titleInactiveColor: String
|
2540
2542
|
};
|
2541
|
-
const TABS_KEY = Symbol(name$
|
2542
|
-
var stdin_default$
|
2543
|
-
name: name$
|
2543
|
+
const TABS_KEY = Symbol(name$1i);
|
2544
|
+
var stdin_default$1q = defineComponent({
|
2545
|
+
name: name$1i,
|
2544
2546
|
props: tabsProps,
|
2545
2547
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2546
2548
|
setup(props, {
|
@@ -2729,7 +2731,7 @@ var stdin_default$1m = defineComponent({
|
|
2729
2731
|
setCurrentIndex(index);
|
2730
2732
|
}
|
2731
2733
|
};
|
2732
|
-
const renderNav = () => children.map((item, index) => createVNode(stdin_default$
|
2734
|
+
const renderNav = () => children.map((item, index) => createVNode(stdin_default$1t, mergeProps({
|
2733
2735
|
"key": item.id,
|
2734
2736
|
"id": `${id}-${index}`,
|
2735
2737
|
"ref": setTitleRefs(index),
|
@@ -2750,7 +2752,7 @@ var stdin_default$1m = defineComponent({
|
|
2750
2752
|
const renderLine = () => {
|
2751
2753
|
if (props.type === "line" && children.length) {
|
2752
2754
|
return createVNode("div", {
|
2753
|
-
"class": bem$
|
2755
|
+
"class": bem$1e("line"),
|
2754
2756
|
"style": state.lineStyle
|
2755
2757
|
}, null);
|
2756
2758
|
}
|
@@ -2764,13 +2766,13 @@ var stdin_default$1m = defineComponent({
|
|
2764
2766
|
} = props;
|
2765
2767
|
const Header = [createVNode("div", {
|
2766
2768
|
"ref": sticky ? void 0 : wrapRef,
|
2767
|
-
"class": [bem$
|
2769
|
+
"class": [bem$1e("wrap"), {
|
2768
2770
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2769
2771
|
}]
|
2770
2772
|
}, [createVNode("div", {
|
2771
2773
|
"ref": navRef,
|
2772
2774
|
"role": "tablist",
|
2773
|
-
"class": bem$
|
2775
|
+
"class": bem$1e("nav", [type, {
|
2774
2776
|
shrink: props.shrink,
|
2775
2777
|
complete: scrollable.value
|
2776
2778
|
}]),
|
@@ -2838,14 +2840,14 @@ var stdin_default$1m = defineComponent({
|
|
2838
2840
|
});
|
2839
2841
|
return () => createVNode("div", {
|
2840
2842
|
"ref": root,
|
2841
|
-
"class": bem$
|
2843
|
+
"class": bem$1e([props.type])
|
2842
2844
|
}, [props.sticky ? createVNode(Sticky, {
|
2843
2845
|
"container": root.value,
|
2844
2846
|
"offsetTop": offsetTopPx.value,
|
2845
2847
|
"onScroll": onStickyScroll
|
2846
2848
|
}, {
|
2847
2849
|
default: () => [renderHeader()]
|
2848
|
-
}) : renderHeader(), createVNode(stdin_default$
|
2850
|
+
}) : renderHeader(), createVNode(stdin_default$1r, {
|
2849
2851
|
"ref": contentRef,
|
2850
2852
|
"count": children.length,
|
2851
2853
|
"inited": state.inited,
|
@@ -2865,9 +2867,9 @@ var stdin_default$1m = defineComponent({
|
|
2865
2867
|
});
|
2866
2868
|
const TAB_STATUS_KEY = Symbol();
|
2867
2869
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
2868
|
-
const [name$
|
2869
|
-
var stdin_default$
|
2870
|
-
name: name$
|
2870
|
+
const [name$1h, bem$1d] = createNamespace("swipe-item");
|
2871
|
+
var stdin_default$1p = defineComponent({
|
2872
|
+
name: name$1h,
|
2871
2873
|
setup(props, {
|
2872
2874
|
slots
|
2873
2875
|
}) {
|
@@ -2932,14 +2934,14 @@ var stdin_default$1l = defineComponent({
|
|
2932
2934
|
return () => {
|
2933
2935
|
var _a;
|
2934
2936
|
return createVNode("div", {
|
2935
|
-
"class": bem$
|
2937
|
+
"class": bem$1d(),
|
2936
2938
|
"style": style.value
|
2937
2939
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
2938
2940
|
};
|
2939
2941
|
}
|
2940
2942
|
});
|
2941
|
-
const SwipeItem = withInstall(stdin_default$
|
2942
|
-
const [name$
|
2943
|
+
const SwipeItem = withInstall(stdin_default$1p);
|
2944
|
+
const [name$1g, bem$1c] = createNamespace("tab");
|
2943
2945
|
const tabProps = extend({}, routeProps, {
|
2944
2946
|
dot: Boolean,
|
2945
2947
|
name: numericProp,
|
@@ -2950,8 +2952,8 @@ const tabProps = extend({}, routeProps, {
|
|
2950
2952
|
titleStyle: [String, Object],
|
2951
2953
|
showZeroBadge: truthProp
|
2952
2954
|
});
|
2953
|
-
var stdin_default$
|
2954
|
-
name: name$
|
2955
|
+
var stdin_default$1o = defineComponent({
|
2956
|
+
name: name$1g,
|
2955
2957
|
props: tabProps,
|
2956
2958
|
setup(props, {
|
2957
2959
|
slots
|
@@ -3019,7 +3021,7 @@ var stdin_default$1k = defineComponent({
|
|
3019
3021
|
return createVNode(SwipeItem, {
|
3020
3022
|
"id": id,
|
3021
3023
|
"role": "tabpanel",
|
3022
|
-
"class": bem$
|
3024
|
+
"class": bem$1c("panel-wrapper", {
|
3023
3025
|
inactive: hasInactiveClass.value
|
3024
3026
|
}),
|
3025
3027
|
"tabindex": active.value ? 0 : -1,
|
@@ -3029,7 +3031,7 @@ var stdin_default$1k = defineComponent({
|
|
3029
3031
|
default: () => {
|
3030
3032
|
var _a2;
|
3031
3033
|
return [createVNode("div", {
|
3032
|
-
"class": bem$
|
3034
|
+
"class": bem$1c("panel")
|
3033
3035
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3034
3036
|
}
|
3035
3037
|
});
|
@@ -3042,22 +3044,22 @@ var stdin_default$1k = defineComponent({
|
|
3042
3044
|
return withDirectives(createVNode("div", {
|
3043
3045
|
"id": id,
|
3044
3046
|
"role": "tabpanel",
|
3045
|
-
"class": bem$
|
3047
|
+
"class": bem$1c("panel"),
|
3046
3048
|
"tabindex": show ? 0 : -1,
|
3047
3049
|
"aria-labelledby": label
|
3048
3050
|
}, [Content]), [[vShow, show]]);
|
3049
3051
|
};
|
3050
3052
|
}
|
3051
3053
|
});
|
3052
|
-
const Tab = withInstall(stdin_default$
|
3053
|
-
const Tabs = withInstall(stdin_default$
|
3054
|
-
const [name$
|
3055
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3054
|
+
const Tab = withInstall(stdin_default$1o);
|
3055
|
+
const Tabs = withInstall(stdin_default$1q);
|
3056
|
+
const [name$1f, bem$1b] = createNamespace("picker-group");
|
3057
|
+
const PICKER_GROUP_KEY = Symbol(name$1f);
|
3056
3058
|
const pickerGroupProps = extend({
|
3057
3059
|
tabs: makeArrayProp()
|
3058
3060
|
}, pickerToolbarProps);
|
3059
|
-
var stdin_default$
|
3060
|
-
name: name$
|
3061
|
+
var stdin_default$1n = defineComponent({
|
3062
|
+
name: name$1f,
|
3061
3063
|
props: pickerGroupProps,
|
3062
3064
|
emits: ["confirm", "cancel"],
|
3063
3065
|
setup(props, {
|
@@ -3077,18 +3079,18 @@ var stdin_default$1j = defineComponent({
|
|
3077
3079
|
var _a;
|
3078
3080
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3079
3081
|
return createVNode("div", {
|
3080
|
-
"class": bem$
|
3081
|
-
}, [createVNode(stdin_default$
|
3082
|
+
"class": bem$1b()
|
3083
|
+
}, [createVNode(stdin_default$1v, mergeProps(props, {
|
3082
3084
|
"onConfirm": onConfirm,
|
3083
3085
|
"onCancel": onCancel
|
3084
3086
|
}), null), createVNode(Tabs, {
|
3085
3087
|
"shrink": true,
|
3086
|
-
"class": bem$
|
3088
|
+
"class": bem$1b("tabs"),
|
3087
3089
|
"animated": true
|
3088
3090
|
}, {
|
3089
3091
|
default: () => [props.tabs.map((title, index) => createVNode(Tab, {
|
3090
3092
|
"title": title,
|
3091
|
-
"titleClass": bem$
|
3093
|
+
"titleClass": bem$1b("tab-title")
|
3092
3094
|
}, {
|
3093
3095
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3094
3096
|
}))]
|
@@ -3111,8 +3113,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3111
3113
|
toolbarPosition: makeStringProp("top"),
|
3112
3114
|
columnsFieldNames: Object
|
3113
3115
|
});
|
3114
|
-
var stdin_default$
|
3115
|
-
name: name$
|
3116
|
+
var stdin_default$1m = defineComponent({
|
3117
|
+
name: name$1p,
|
3116
3118
|
props: pickerProps,
|
3117
3119
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
3118
3120
|
setup(props, {
|
@@ -3179,11 +3181,13 @@ var stdin_default$1i = defineComponent({
|
|
3179
3181
|
const confirm = () => {
|
3180
3182
|
children.forEach((child) => child.stopMomentum());
|
3181
3183
|
const params = getEventParams();
|
3182
|
-
|
3184
|
+
nextTick(() => {
|
3185
|
+
emit("confirm", params);
|
3186
|
+
});
|
3183
3187
|
return params;
|
3184
3188
|
};
|
3185
3189
|
const cancel = () => emit("cancel", getEventParams());
|
3186
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
3190
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1w, {
|
3187
3191
|
"value": selectedValues.value[columnIndex],
|
3188
3192
|
"fields": fields.value,
|
3189
3193
|
"options": options,
|
@@ -3206,10 +3210,10 @@ var stdin_default$1i = defineComponent({
|
|
3206
3210
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3207
3211
|
};
|
3208
3212
|
return [createVNode("div", {
|
3209
|
-
"class": bem$
|
3213
|
+
"class": bem$1k("mask"),
|
3210
3214
|
"style": maskStyle
|
3211
3215
|
}, null), createVNode("div", {
|
3212
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3216
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1k("frame")],
|
3213
3217
|
"style": frameStyle
|
3214
3218
|
}, null)];
|
3215
3219
|
}
|
@@ -3221,13 +3225,13 @@ var stdin_default$1i = defineComponent({
|
|
3221
3225
|
};
|
3222
3226
|
return createVNode("div", {
|
3223
3227
|
"ref": columnsRef,
|
3224
|
-
"class": bem$
|
3228
|
+
"class": bem$1k("columns"),
|
3225
3229
|
"style": columnsStyle
|
3226
3230
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3227
3231
|
};
|
3228
3232
|
const renderToolbar = () => {
|
3229
3233
|
if (props.showToolbar && !parent) {
|
3230
|
-
return createVNode(stdin_default$
|
3234
|
+
return createVNode(stdin_default$1v, mergeProps(pick(props, pickerToolbarPropKeys), {
|
3231
3235
|
"onConfirm": confirm,
|
3232
3236
|
"onCancel": cancel
|
3233
3237
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3269,9 +3273,9 @@ var stdin_default$1i = defineComponent({
|
|
3269
3273
|
return () => {
|
3270
3274
|
var _a, _b;
|
3271
3275
|
return createVNode("div", {
|
3272
|
-
"class": bem$
|
3276
|
+
"class": bem$1k()
|
3273
3277
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
|
3274
|
-
"class": bem$
|
3278
|
+
"class": bem$1k("loading")
|
3275
3279
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3276
3280
|
};
|
3277
3281
|
}
|
@@ -3362,8 +3366,8 @@ function formatDataForCascade({
|
|
3362
3366
|
}
|
3363
3367
|
return options;
|
3364
3368
|
}
|
3365
|
-
const Picker = withInstall(stdin_default$
|
3366
|
-
const [name$
|
3369
|
+
const Picker = withInstall(stdin_default$1m);
|
3370
|
+
const [name$1e, bem$1a] = createNamespace("area");
|
3367
3371
|
const areaProps = extend({}, pickerSharedProps, {
|
3368
3372
|
modelValue: String,
|
3369
3373
|
columnsNum: makeNumericProp(3),
|
@@ -3373,8 +3377,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3373
3377
|
default: () => ({})
|
3374
3378
|
}
|
3375
3379
|
});
|
3376
|
-
var stdin_default$
|
3377
|
-
name: name$
|
3380
|
+
var stdin_default$1l = defineComponent({
|
3381
|
+
name: name$1e,
|
3378
3382
|
props: areaProps,
|
3379
3383
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3380
3384
|
setup(props, {
|
@@ -3421,7 +3425,7 @@ var stdin_default$1h = defineComponent({
|
|
3421
3425
|
"ref": picker,
|
3422
3426
|
"modelValue": codes.value,
|
3423
3427
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3424
|
-
"class": bem$
|
3428
|
+
"class": bem$1a(),
|
3425
3429
|
"columns": columns.value,
|
3426
3430
|
"onChange": onChange,
|
3427
3431
|
"onCancel": onCancel,
|
@@ -3429,8 +3433,8 @@ var stdin_default$1h = defineComponent({
|
|
3429
3433
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3430
3434
|
}
|
3431
3435
|
});
|
3432
|
-
const Area = withInstall(stdin_default$
|
3433
|
-
const [name$
|
3436
|
+
const Area = withInstall(stdin_default$1l);
|
3437
|
+
const [name$1d, bem$19] = createNamespace("cell");
|
3434
3438
|
const cellSharedProps = {
|
3435
3439
|
tag: makeStringProp("div"),
|
3436
3440
|
icon: String,
|
@@ -3454,8 +3458,8 @@ const cellSharedProps = {
|
|
3454
3458
|
}
|
3455
3459
|
};
|
3456
3460
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3457
|
-
var stdin_default$
|
3458
|
-
name: name$
|
3461
|
+
var stdin_default$1k = defineComponent({
|
3462
|
+
name: name$1d,
|
3459
3463
|
props: cellProps,
|
3460
3464
|
setup(props, {
|
3461
3465
|
slots
|
@@ -3465,14 +3469,14 @@ var stdin_default$1g = defineComponent({
|
|
3465
3469
|
const showLabel = slots.label || isDef(props.label);
|
3466
3470
|
if (showLabel) {
|
3467
3471
|
return createVNode("div", {
|
3468
|
-
"class": [bem$
|
3472
|
+
"class": [bem$19("label"), props.labelClass]
|
3469
3473
|
}, [slots.label ? slots.label() : props.label]);
|
3470
3474
|
}
|
3471
3475
|
};
|
3472
3476
|
const renderTitle = () => {
|
3473
3477
|
if (slots.title || isDef(props.title)) {
|
3474
3478
|
return createVNode("div", {
|
3475
|
-
"class": [bem$
|
3479
|
+
"class": [bem$19("title"), props.titleClass],
|
3476
3480
|
"style": props.titleStyle
|
3477
3481
|
}, [slots.title ? slots.title() : createVNode("span", null, [props.title]), renderLabel()]);
|
3478
3482
|
}
|
@@ -3482,7 +3486,7 @@ var stdin_default$1g = defineComponent({
|
|
3482
3486
|
const hasValue = slot || isDef(props.value);
|
3483
3487
|
if (hasValue) {
|
3484
3488
|
return createVNode("div", {
|
3485
|
-
"class": [bem$
|
3489
|
+
"class": [bem$19("value"), props.valueClass]
|
3486
3490
|
}, [slot ? slot() : createVNode("span", null, [props.value])]);
|
3487
3491
|
}
|
3488
3492
|
};
|
@@ -3493,7 +3497,7 @@ var stdin_default$1g = defineComponent({
|
|
3493
3497
|
if (props.icon) {
|
3494
3498
|
return createVNode(Icon, {
|
3495
3499
|
"name": props.icon,
|
3496
|
-
"class": bem$
|
3500
|
+
"class": bem$19("left-icon"),
|
3497
3501
|
"classPrefix": props.iconPrefix
|
3498
3502
|
}, null);
|
3499
3503
|
}
|
@@ -3506,7 +3510,7 @@ var stdin_default$1g = defineComponent({
|
|
3506
3510
|
const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
|
3507
3511
|
return createVNode(Icon, {
|
3508
3512
|
"name": name2,
|
3509
|
-
"class": bem$
|
3513
|
+
"class": bem$19("right-icon")
|
3510
3514
|
}, null);
|
3511
3515
|
}
|
3512
3516
|
};
|
@@ -3531,7 +3535,7 @@ var stdin_default$1g = defineComponent({
|
|
3531
3535
|
classes[size] = !!size;
|
3532
3536
|
}
|
3533
3537
|
return createVNode(tag, {
|
3534
|
-
"class": bem$
|
3538
|
+
"class": bem$19(classes),
|
3535
3539
|
"role": clickable ? "button" : void 0,
|
3536
3540
|
"tabindex": clickable ? 0 : void 0,
|
3537
3541
|
"onClick": route2
|
@@ -3544,8 +3548,8 @@ var stdin_default$1g = defineComponent({
|
|
3544
3548
|
};
|
3545
3549
|
}
|
3546
3550
|
});
|
3547
|
-
const Cell = withInstall(stdin_default$
|
3548
|
-
const [name$
|
3551
|
+
const Cell = withInstall(stdin_default$1k);
|
3552
|
+
const [name$1c, bem$18] = createNamespace("form");
|
3549
3553
|
const formProps = {
|
3550
3554
|
colon: Boolean,
|
3551
3555
|
disabled: Boolean,
|
@@ -3564,8 +3568,8 @@ const formProps = {
|
|
3564
3568
|
default: "onBlur"
|
3565
3569
|
}
|
3566
3570
|
};
|
3567
|
-
var stdin_default$
|
3568
|
-
name: name$
|
3571
|
+
var stdin_default$1j = defineComponent({
|
3572
|
+
name: name$1c,
|
3569
3573
|
props: formProps,
|
3570
3574
|
emits: ["submit", "failed"],
|
3571
3575
|
setup(props, {
|
@@ -3689,13 +3693,13 @@ var stdin_default$1f = defineComponent({
|
|
3689
3693
|
return () => {
|
3690
3694
|
var _a;
|
3691
3695
|
return createVNode("form", {
|
3692
|
-
"class": bem$
|
3696
|
+
"class": bem$18(),
|
3693
3697
|
"onSubmit": onSubmit
|
3694
3698
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3695
3699
|
};
|
3696
3700
|
}
|
3697
3701
|
});
|
3698
|
-
const Form = withInstall(stdin_default$
|
3702
|
+
const Form = withInstall(stdin_default$1j);
|
3699
3703
|
function isEmptyValue(value) {
|
3700
3704
|
if (Array.isArray(value)) {
|
3701
3705
|
return !value.length;
|
@@ -3784,7 +3788,7 @@ function getStringLength(str) {
|
|
3784
3788
|
function cutString(str, maxlength) {
|
3785
3789
|
return [...str].slice(0, maxlength).join("");
|
3786
3790
|
}
|
3787
|
-
const [name$
|
3791
|
+
const [name$1b, bem$17] = createNamespace("field");
|
3788
3792
|
const fieldSharedProps = {
|
3789
3793
|
id: String,
|
3790
3794
|
name: String,
|
@@ -3831,8 +3835,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3831
3835
|
default: null
|
3832
3836
|
}
|
3833
3837
|
});
|
3834
|
-
var stdin_default$
|
3835
|
-
name: name$
|
3838
|
+
var stdin_default$1i = defineComponent({
|
3839
|
+
name: name$1b,
|
3836
3840
|
props: fieldProps,
|
3837
3841
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
3838
3842
|
setup(props, {
|
@@ -4061,7 +4065,7 @@ var stdin_default$1e = defineComponent({
|
|
4061
4065
|
const getInputId = () => props.id || `${id}-input`;
|
4062
4066
|
const getValidationStatus = () => state.status;
|
4063
4067
|
const renderInput = () => {
|
4064
|
-
const controlClass = bem$
|
4068
|
+
const controlClass = bem$17("control", [getProp("inputAlign"), {
|
4065
4069
|
error: showError.value,
|
4066
4070
|
custom: !!slots.input,
|
4067
4071
|
"min-height": props.type === "textarea" && !props.autosize
|
@@ -4103,7 +4107,7 @@ var stdin_default$1e = defineComponent({
|
|
4103
4107
|
const leftIconSlot = slots["left-icon"];
|
4104
4108
|
if (props.leftIcon || leftIconSlot) {
|
4105
4109
|
return createVNode("div", {
|
4106
|
-
"class": bem$
|
4110
|
+
"class": bem$17("left-icon"),
|
4107
4111
|
"onClick": onClickLeftIcon
|
4108
4112
|
}, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
|
4109
4113
|
"name": props.leftIcon,
|
@@ -4115,7 +4119,7 @@ var stdin_default$1e = defineComponent({
|
|
4115
4119
|
const rightIconSlot = slots["right-icon"];
|
4116
4120
|
if (props.rightIcon || rightIconSlot) {
|
4117
4121
|
return createVNode("div", {
|
4118
|
-
"class": bem$
|
4122
|
+
"class": bem$17("right-icon"),
|
4119
4123
|
"onClick": onClickRightIcon
|
4120
4124
|
}, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
|
4121
4125
|
"name": props.rightIcon,
|
@@ -4127,9 +4131,9 @@ var stdin_default$1e = defineComponent({
|
|
4127
4131
|
if (props.showWordLimit && props.maxlength) {
|
4128
4132
|
const count = getStringLength(getModelValue());
|
4129
4133
|
return createVNode("div", {
|
4130
|
-
"class": bem$
|
4134
|
+
"class": bem$17("word-limit")
|
4131
4135
|
}, [createVNode("span", {
|
4132
|
-
"class": bem$
|
4136
|
+
"class": bem$17("word-num")
|
4133
4137
|
}, [count]), createTextVNode("/"), props.maxlength]);
|
4134
4138
|
}
|
4135
4139
|
};
|
@@ -4142,7 +4146,7 @@ var stdin_default$1e = defineComponent({
|
|
4142
4146
|
const slot = slots["error-message"];
|
4143
4147
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4144
4148
|
return createVNode("div", {
|
4145
|
-
"class": bem$
|
4149
|
+
"class": bem$17("error-message", errorMessageAlign)
|
4146
4150
|
}, [slot ? slot({
|
4147
4151
|
message
|
4148
4152
|
}) : message]);
|
@@ -4161,13 +4165,13 @@ var stdin_default$1e = defineComponent({
|
|
4161
4165
|
}
|
4162
4166
|
};
|
4163
4167
|
const renderFieldBody = () => [createVNode("div", {
|
4164
|
-
"class": bem$
|
4168
|
+
"class": bem$17("body")
|
4165
4169
|
}, [renderInput(), showClear.value && createVNode(Icon, {
|
4166
4170
|
"ref": clearIconRef,
|
4167
4171
|
"name": props.clearIcon,
|
4168
|
-
"class": bem$
|
4172
|
+
"class": bem$17("clear")
|
4169
4173
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
4170
|
-
"class": bem$
|
4174
|
+
"class": bem$17("button")
|
4171
4175
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4172
4176
|
useExpose({
|
4173
4177
|
blur,
|
@@ -4206,7 +4210,7 @@ var stdin_default$1e = defineComponent({
|
|
4206
4210
|
const renderTitle = () => labelAlign === "top" ? [LeftIcon, Label] : Label;
|
4207
4211
|
return createVNode(Cell, {
|
4208
4212
|
"size": props.size,
|
4209
|
-
"class": bem$
|
4213
|
+
"class": bem$17({
|
4210
4214
|
error: showError.value,
|
4211
4215
|
disabled,
|
4212
4216
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4216,8 +4220,8 @@ var stdin_default$1e = defineComponent({
|
|
4216
4220
|
"isLink": props.isLink,
|
4217
4221
|
"clickable": props.clickable,
|
4218
4222
|
"titleStyle": labelStyle.value,
|
4219
|
-
"valueClass": bem$
|
4220
|
-
"titleClass": [bem$
|
4223
|
+
"valueClass": bem$17("value"),
|
4224
|
+
"titleClass": [bem$17("label", [labelAlign, {
|
4221
4225
|
required: props.required
|
4222
4226
|
}]), props.labelClass],
|
4223
4227
|
"arrowDirection": props.arrowDirection
|
@@ -4230,7 +4234,7 @@ var stdin_default$1e = defineComponent({
|
|
4230
4234
|
};
|
4231
4235
|
}
|
4232
4236
|
});
|
4233
|
-
const Field = withInstall(stdin_default$
|
4237
|
+
const Field = withInstall(stdin_default$1i);
|
4234
4238
|
let lockCount = 0;
|
4235
4239
|
function lockClick(lock) {
|
4236
4240
|
if (lock) {
|
@@ -4245,7 +4249,7 @@ function lockClick(lock) {
|
|
4245
4249
|
}
|
4246
4250
|
}
|
4247
4251
|
}
|
4248
|
-
const [name$
|
4252
|
+
const [name$1a, bem$16] = createNamespace("toast");
|
4249
4253
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4250
4254
|
const toastProps = {
|
4251
4255
|
icon: String,
|
@@ -4268,8 +4272,8 @@ const toastProps = {
|
|
4268
4272
|
closeOnClick: Boolean,
|
4269
4273
|
closeOnClickOverlay: Boolean
|
4270
4274
|
};
|
4271
|
-
var stdin_default$
|
4272
|
-
name: name$
|
4275
|
+
var stdin_default$1h = defineComponent({
|
4276
|
+
name: name$1a,
|
4273
4277
|
props: toastProps,
|
4274
4278
|
emits: ["update:show"],
|
4275
4279
|
setup(props, {
|
@@ -4305,13 +4309,13 @@ var stdin_default$1d = defineComponent({
|
|
4305
4309
|
return createVNode(Icon, {
|
4306
4310
|
"name": icon || type,
|
4307
4311
|
"size": iconSize,
|
4308
|
-
"class": bem$
|
4312
|
+
"class": bem$16("icon"),
|
4309
4313
|
"classPrefix": iconPrefix
|
4310
4314
|
}, null);
|
4311
4315
|
}
|
4312
4316
|
if (type === "loading") {
|
4313
4317
|
return createVNode(Loading, {
|
4314
|
-
"class": bem$
|
4318
|
+
"class": bem$16("loading"),
|
4315
4319
|
"size": iconSize,
|
4316
4320
|
"type": loadingType
|
4317
4321
|
}, null);
|
@@ -4324,16 +4328,16 @@ var stdin_default$1d = defineComponent({
|
|
4324
4328
|
} = props;
|
4325
4329
|
if (slots.message) {
|
4326
4330
|
return createVNode("div", {
|
4327
|
-
"class": bem$
|
4331
|
+
"class": bem$16("text")
|
4328
4332
|
}, [slots.message()]);
|
4329
4333
|
}
|
4330
4334
|
if (isDef(message) && message !== "") {
|
4331
4335
|
return type === "html" ? createVNode("div", {
|
4332
4336
|
"key": 0,
|
4333
|
-
"class": bem$
|
4337
|
+
"class": bem$16("text"),
|
4334
4338
|
"innerHTML": String(message)
|
4335
4339
|
}, null) : createVNode("div", {
|
4336
|
-
"class": bem$
|
4340
|
+
"class": bem$16("text")
|
4337
4341
|
}, [message]);
|
4338
4342
|
}
|
4339
4343
|
};
|
@@ -4349,7 +4353,7 @@ var stdin_default$1d = defineComponent({
|
|
4349
4353
|
onMounted(toggleClickable);
|
4350
4354
|
onUnmounted(toggleClickable);
|
4351
4355
|
return () => createVNode(Popup, mergeProps({
|
4352
|
-
"class": [bem$
|
4356
|
+
"class": [bem$16([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
4353
4357
|
[props.type]: !props.icon
|
4354
4358
|
}]), props.className],
|
4355
4359
|
"lockScroll": false,
|
@@ -4450,7 +4454,7 @@ function createInstance() {
|
|
4450
4454
|
onClosed,
|
4451
4455
|
"onUpdate:show": toggle
|
4452
4456
|
};
|
4453
|
-
return createVNode(stdin_default$
|
4457
|
+
return createVNode(stdin_default$1h, mergeProps(state, attrs), null);
|
4454
4458
|
};
|
4455
4459
|
watch(message, (val) => {
|
4456
4460
|
state.message = val;
|
@@ -4520,8 +4524,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4520
4524
|
const allowMultipleToast = (value = true) => {
|
4521
4525
|
allowMultiple = value;
|
4522
4526
|
};
|
4523
|
-
const Toast = withInstall(stdin_default$
|
4524
|
-
const [name$
|
4527
|
+
const Toast = withInstall(stdin_default$1h);
|
4528
|
+
const [name$19, bem$15] = createNamespace("switch");
|
4525
4529
|
const switchProps = {
|
4526
4530
|
size: numericProp,
|
4527
4531
|
loading: Boolean,
|
@@ -4538,8 +4542,8 @@ const switchProps = {
|
|
4538
4542
|
default: false
|
4539
4543
|
}
|
4540
4544
|
};
|
4541
|
-
var stdin_default$
|
4542
|
-
name: name$
|
4545
|
+
var stdin_default$1g = defineComponent({
|
4546
|
+
name: name$19,
|
4543
4547
|
props: switchProps,
|
4544
4548
|
emits: ["change", "update:modelValue"],
|
4545
4549
|
setup(props, {
|
@@ -4558,7 +4562,7 @@ var stdin_default$1c = defineComponent({
|
|
4558
4562
|
if (props.loading) {
|
4559
4563
|
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
4560
4564
|
return createVNode(Loading, {
|
4561
|
-
"class": bem$
|
4565
|
+
"class": bem$15("loading"),
|
4562
4566
|
"color": color
|
4563
4567
|
}, null);
|
4564
4568
|
}
|
@@ -4583,7 +4587,7 @@ var stdin_default$1c = defineComponent({
|
|
4583
4587
|
};
|
4584
4588
|
return createVNode("div", {
|
4585
4589
|
"role": "switch",
|
4586
|
-
"class": bem$
|
4590
|
+
"class": bem$15({
|
4587
4591
|
on: checked,
|
4588
4592
|
loading,
|
4589
4593
|
disabled
|
@@ -4593,16 +4597,16 @@ var stdin_default$1c = defineComponent({
|
|
4593
4597
|
"aria-checked": checked,
|
4594
4598
|
"onClick": onClick
|
4595
4599
|
}, [createVNode("div", {
|
4596
|
-
"class": bem$
|
4600
|
+
"class": bem$15("node")
|
4597
4601
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4598
4602
|
};
|
4599
4603
|
}
|
4600
4604
|
});
|
4601
|
-
const Switch = withInstall(stdin_default$
|
4602
|
-
const [name$
|
4605
|
+
const Switch = withInstall(stdin_default$1g);
|
4606
|
+
const [name$18, bem$14] = createNamespace("address-edit-detail");
|
4603
4607
|
const t$i = createNamespace("address-edit")[2];
|
4604
|
-
var stdin_default$
|
4605
|
-
name: name$
|
4608
|
+
var stdin_default$1f = defineComponent({
|
4609
|
+
name: name$18,
|
4606
4610
|
props: {
|
4607
4611
|
show: Boolean,
|
4608
4612
|
rows: numericProp,
|
@@ -4636,7 +4640,7 @@ var stdin_default$1b = defineComponent({
|
|
4636
4640
|
"icon": "location-o",
|
4637
4641
|
"title": express.name,
|
4638
4642
|
"label": express.address,
|
4639
|
-
"class": bem$
|
4643
|
+
"class": bem$14("search-item"),
|
4640
4644
|
"border": false,
|
4641
4645
|
"onClick": () => onSelect(express)
|
4642
4646
|
}, null));
|
@@ -4650,7 +4654,7 @@ var stdin_default$1b = defineComponent({
|
|
4650
4654
|
"autosize": true,
|
4651
4655
|
"clearable": true,
|
4652
4656
|
"ref": field,
|
4653
|
-
"class": bem$
|
4657
|
+
"class": bem$14(),
|
4654
4658
|
"rows": props.rows,
|
4655
4659
|
"type": "textarea",
|
4656
4660
|
"rules": props.rules,
|
@@ -4667,7 +4671,7 @@ var stdin_default$1b = defineComponent({
|
|
4667
4671
|
};
|
4668
4672
|
}
|
4669
4673
|
});
|
4670
|
-
const [name$
|
4674
|
+
const [name$17, bem$13, t$h] = createNamespace("address-edit");
|
4671
4675
|
const DEFAULT_DATA = {
|
4672
4676
|
name: "",
|
4673
4677
|
tel: "",
|
@@ -4707,8 +4711,8 @@ const addressEditProps = {
|
|
4707
4711
|
default: isMobile
|
4708
4712
|
}
|
4709
4713
|
};
|
4710
|
-
var stdin_default$
|
4711
|
-
name: name$
|
4714
|
+
var stdin_default$1e = defineComponent({
|
4715
|
+
name: name$17,
|
4712
4716
|
props: addressEditProps,
|
4713
4717
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
4714
4718
|
setup(props, {
|
@@ -4819,7 +4823,7 @@ var stdin_default$1a = defineComponent({
|
|
4819
4823
|
return withDirectives(createVNode(Cell, {
|
4820
4824
|
"center": true,
|
4821
4825
|
"title": t$h("defaultAddress"),
|
4822
|
-
"class": bem
|
4826
|
+
"class": bem$13("default")
|
4823
4827
|
}, slots2), [[vShow, !hideBottomFields.value]]);
|
4824
4828
|
}
|
4825
4829
|
};
|
@@ -4845,13 +4849,13 @@ var stdin_default$1a = defineComponent({
|
|
4845
4849
|
disableArea
|
4846
4850
|
} = props;
|
4847
4851
|
return createVNode(Form, {
|
4848
|
-
"class": bem
|
4852
|
+
"class": bem$13(),
|
4849
4853
|
"onSubmit": onSave
|
4850
4854
|
}, {
|
4851
4855
|
default: () => {
|
4852
4856
|
var _a;
|
4853
4857
|
return [createVNode("div", {
|
4854
|
-
"class": bem
|
4858
|
+
"class": bem$13("fields")
|
4855
4859
|
}, [createVNode(Field, {
|
4856
4860
|
"modelValue": data.name,
|
4857
4861
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
@@ -4882,7 +4886,7 @@ var stdin_default$1a = defineComponent({
|
|
4882
4886
|
emit("clickArea");
|
4883
4887
|
showAreaPopup.value = !disableArea;
|
4884
4888
|
}
|
4885
|
-
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$
|
4889
|
+
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$1f, {
|
4886
4890
|
"show": props.showDetail,
|
4887
4891
|
"rows": props.detailRows,
|
4888
4892
|
"rules": rules.value.addressDetail,
|
@@ -4896,19 +4900,19 @@ var stdin_default$1a = defineComponent({
|
|
4896
4900
|
"onInput": onChangeDetail,
|
4897
4901
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
4898
4902
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
4899
|
-
"class": bem
|
4903
|
+
"class": bem$13("buttons")
|
4900
4904
|
}, [createVNode(Button, {
|
4901
4905
|
"block": true,
|
4902
4906
|
"round": true,
|
4903
4907
|
"type": "primary",
|
4904
4908
|
"text": props.saveButtonText || t$h("save"),
|
4905
|
-
"class": bem
|
4909
|
+
"class": bem$13("button"),
|
4906
4910
|
"loading": props.isSaving,
|
4907
4911
|
"nativeType": "submit"
|
4908
4912
|
}, null), props.showDelete && createVNode(Button, {
|
4909
4913
|
"block": true,
|
4910
4914
|
"round": true,
|
4911
|
-
"class": bem
|
4915
|
+
"class": bem$13("button"),
|
4912
4916
|
"loading": props.isDeleting,
|
4913
4917
|
"text": props.deleteButtonText || t$h("delete"),
|
4914
4918
|
"onClick": onDelete
|
@@ -4938,8 +4942,8 @@ var stdin_default$1a = defineComponent({
|
|
4938
4942
|
};
|
4939
4943
|
}
|
4940
4944
|
});
|
4941
|
-
const AddressEdit = withInstall(stdin_default$
|
4942
|
-
const [name$
|
4945
|
+
const AddressEdit = withInstall(stdin_default$1e);
|
4946
|
+
const [name$16, bem$12] = createNamespace("radio-group");
|
4943
4947
|
const radioGroupProps = {
|
4944
4948
|
disabled: Boolean,
|
4945
4949
|
iconSize: numericProp,
|
@@ -4947,9 +4951,9 @@ const radioGroupProps = {
|
|
4947
4951
|
modelValue: unknownProp,
|
4948
4952
|
checkedColor: String
|
4949
4953
|
};
|
4950
|
-
const RADIO_KEY = Symbol(name$
|
4951
|
-
var stdin_default$
|
4952
|
-
name: name$
|
4954
|
+
const RADIO_KEY = Symbol(name$16);
|
4955
|
+
var stdin_default$1d = defineComponent({
|
4956
|
+
name: name$16,
|
4953
4957
|
props: radioGroupProps,
|
4954
4958
|
emits: ["change", "update:modelValue"],
|
4955
4959
|
setup(props, {
|
@@ -4969,14 +4973,14 @@ var stdin_default$19 = defineComponent({
|
|
4969
4973
|
return () => {
|
4970
4974
|
var _a;
|
4971
4975
|
return createVNode("div", {
|
4972
|
-
"class": bem$
|
4976
|
+
"class": bem$12([props.direction]),
|
4973
4977
|
"role": "radiogroup"
|
4974
4978
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
4975
4979
|
};
|
4976
4980
|
}
|
4977
4981
|
});
|
4978
|
-
const RadioGroup = withInstall(stdin_default$
|
4979
|
-
const [name$
|
4982
|
+
const RadioGroup = withInstall(stdin_default$1d);
|
4983
|
+
const [name$15, bem$11] = createNamespace("tag");
|
4980
4984
|
const tagProps = {
|
4981
4985
|
size: String,
|
4982
4986
|
mark: Boolean,
|
@@ -4988,8 +4992,8 @@ const tagProps = {
|
|
4988
4992
|
textColor: String,
|
4989
4993
|
closeable: Boolean
|
4990
4994
|
};
|
4991
|
-
var stdin_default$
|
4992
|
-
name: name$
|
4995
|
+
var stdin_default$1c = defineComponent({
|
4996
|
+
name: name$15,
|
4993
4997
|
props: tagProps,
|
4994
4998
|
emits: ["close"],
|
4995
4999
|
setup(props, {
|
@@ -5032,12 +5036,12 @@ var stdin_default$18 = defineComponent({
|
|
5032
5036
|
}
|
5033
5037
|
const CloseIcon = closeable && createVNode(Icon, {
|
5034
5038
|
"name": "cross",
|
5035
|
-
"class": [bem$
|
5039
|
+
"class": [bem$11("close"), HAPTICS_FEEDBACK],
|
5036
5040
|
"onClick": onClose
|
5037
5041
|
}, null);
|
5038
5042
|
return createVNode("span", {
|
5039
5043
|
"style": getStyle(),
|
5040
|
-
"class": bem$
|
5044
|
+
"class": bem$11([classes, type])
|
5041
5045
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5042
5046
|
};
|
5043
5047
|
return () => createVNode(Transition, {
|
@@ -5047,7 +5051,7 @@ var stdin_default$18 = defineComponent({
|
|
5047
5051
|
});
|
5048
5052
|
}
|
5049
5053
|
});
|
5050
|
-
const Tag = withInstall(stdin_default$
|
5054
|
+
const Tag = withInstall(stdin_default$1c);
|
5051
5055
|
const checkerProps = {
|
5052
5056
|
name: unknownProp,
|
5053
5057
|
shape: makeStringProp("round"),
|
@@ -5058,7 +5062,7 @@ const checkerProps = {
|
|
5058
5062
|
labelPosition: String,
|
5059
5063
|
labelDisabled: Boolean
|
5060
5064
|
};
|
5061
|
-
var stdin_default$
|
5065
|
+
var stdin_default$1b = defineComponent({
|
5062
5066
|
props: extend({}, checkerProps, {
|
5063
5067
|
bem: makeRequiredProp(Function),
|
5064
5068
|
role: String,
|
@@ -5148,9 +5152,9 @@ var stdin_default$17 = defineComponent({
|
|
5148
5152
|
}
|
5149
5153
|
});
|
5150
5154
|
const radioProps = checkerProps;
|
5151
|
-
const [name$
|
5152
|
-
var stdin_default$
|
5153
|
-
name: name$
|
5155
|
+
const [name$14, bem$10] = createNamespace("radio");
|
5156
|
+
var stdin_default$1a = defineComponent({
|
5157
|
+
name: name$14,
|
5154
5158
|
props: checkerProps,
|
5155
5159
|
emits: ["update:modelValue"],
|
5156
5160
|
setup(props, {
|
@@ -5171,8 +5175,8 @@ var stdin_default$16 = defineComponent({
|
|
5171
5175
|
emit("update:modelValue", props.name);
|
5172
5176
|
}
|
5173
5177
|
};
|
5174
|
-
return () => createVNode(stdin_default$
|
5175
|
-
"bem": bem$
|
5178
|
+
return () => createVNode(stdin_default$1b, mergeProps({
|
5179
|
+
"bem": bem$10,
|
5176
5180
|
"role": "radio",
|
5177
5181
|
"parent": parent,
|
5178
5182
|
"checked": checked(),
|
@@ -5180,10 +5184,10 @@ var stdin_default$16 = defineComponent({
|
|
5180
5184
|
}, props), pick(slots, ["default", "icon"]));
|
5181
5185
|
}
|
5182
5186
|
});
|
5183
|
-
const Radio = withInstall(stdin_default$
|
5184
|
-
const [name
|
5185
|
-
var stdin_default$
|
5186
|
-
name: name
|
5187
|
+
const Radio = withInstall(stdin_default$1a);
|
5188
|
+
const [name$13, bem$$] = createNamespace("address-item");
|
5189
|
+
var stdin_default$19 = defineComponent({
|
5190
|
+
name: name$13,
|
5187
5191
|
props: {
|
5188
5192
|
address: makeRequiredProp(Object),
|
5189
5193
|
disabled: Boolean,
|
@@ -5203,7 +5207,7 @@ var stdin_default$15 = defineComponent({
|
|
5203
5207
|
};
|
5204
5208
|
const renderRightIcon = () => createVNode(Icon, {
|
5205
5209
|
"name": "edit",
|
5206
|
-
"class": bem
|
5210
|
+
"class": bem$$("edit"),
|
5207
5211
|
"onClick": (event) => {
|
5208
5212
|
event.stopPropagation();
|
5209
5213
|
emit("edit");
|
@@ -5218,7 +5222,7 @@ var stdin_default$15 = defineComponent({
|
|
5218
5222
|
return createVNode(Tag, {
|
5219
5223
|
"type": "primary",
|
5220
5224
|
"round": true,
|
5221
|
-
"class": bem
|
5225
|
+
"class": bem$$("tag")
|
5222
5226
|
}, {
|
5223
5227
|
default: () => [props.defaultTagText]
|
5224
5228
|
});
|
@@ -5231,9 +5235,9 @@ var stdin_default$15 = defineComponent({
|
|
5231
5235
|
switchable
|
5232
5236
|
} = props;
|
5233
5237
|
const Info = [createVNode("div", {
|
5234
|
-
"class": bem
|
5238
|
+
"class": bem$$("name")
|
5235
5239
|
}, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
|
5236
|
-
"class": bem
|
5240
|
+
"class": bem$$("address")
|
5237
5241
|
}, [address.address])];
|
5238
5242
|
if (switchable && !disabled) {
|
5239
5243
|
return createVNode(Radio, {
|
@@ -5251,13 +5255,13 @@ var stdin_default$15 = defineComponent({
|
|
5251
5255
|
disabled
|
5252
5256
|
} = props;
|
5253
5257
|
return createVNode("div", {
|
5254
|
-
"class": bem
|
5258
|
+
"class": bem$$({
|
5255
5259
|
disabled
|
5256
5260
|
}),
|
5257
5261
|
"onClick": onClick
|
5258
5262
|
}, [createVNode(Cell, {
|
5259
5263
|
"border": false,
|
5260
|
-
"titleClass": bem
|
5264
|
+
"titleClass": bem$$("title")
|
5261
5265
|
}, {
|
5262
5266
|
title: renderContent,
|
5263
5267
|
"right-icon": renderRightIcon
|
@@ -5267,7 +5271,7 @@ var stdin_default$15 = defineComponent({
|
|
5267
5271
|
};
|
5268
5272
|
}
|
5269
5273
|
});
|
5270
|
-
const [name$
|
5274
|
+
const [name$12, bem$_, t$g] = createNamespace("address-list");
|
5271
5275
|
const addressListProps = {
|
5272
5276
|
list: makeArrayProp(),
|
5273
5277
|
modelValue: numericProp,
|
@@ -5277,8 +5281,8 @@ const addressListProps = {
|
|
5277
5281
|
addButtonText: String,
|
5278
5282
|
defaultTagText: String
|
5279
5283
|
};
|
5280
|
-
var stdin_default$
|
5281
|
-
name: name$
|
5284
|
+
var stdin_default$18 = defineComponent({
|
5285
|
+
name: name$12,
|
5282
5286
|
props: addressListProps,
|
5283
5287
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5284
5288
|
setup(props, {
|
@@ -5294,7 +5298,7 @@ var stdin_default$14 = defineComponent({
|
|
5294
5298
|
emit("update:modelValue", item.id);
|
5295
5299
|
}
|
5296
5300
|
};
|
5297
|
-
return createVNode(stdin_default$
|
5301
|
+
return createVNode(stdin_default$19, {
|
5298
5302
|
"key": item.id,
|
5299
5303
|
"address": item,
|
5300
5304
|
"disabled": disabled,
|
@@ -5314,13 +5318,13 @@ var stdin_default$14 = defineComponent({
|
|
5314
5318
|
}
|
5315
5319
|
};
|
5316
5320
|
const renderBottom = () => createVNode("div", {
|
5317
|
-
"class": [bem$
|
5321
|
+
"class": [bem$_("bottom"), "van-safe-area-bottom"]
|
5318
5322
|
}, [createVNode(Button, {
|
5319
5323
|
"round": true,
|
5320
5324
|
"block": true,
|
5321
5325
|
"type": "primary",
|
5322
5326
|
"text": props.addButtonText || t$g("add"),
|
5323
|
-
"class": bem$
|
5327
|
+
"class": bem$_("add"),
|
5324
5328
|
"onClick": () => emit("add")
|
5325
5329
|
}, null)]);
|
5326
5330
|
return () => {
|
@@ -5328,10 +5332,10 @@ var stdin_default$14 = defineComponent({
|
|
5328
5332
|
const List2 = renderList(props.list);
|
5329
5333
|
const DisabledList = renderList(props.disabledList, true);
|
5330
5334
|
const DisabledText = props.disabledText && createVNode("div", {
|
5331
|
-
"class": bem$
|
5335
|
+
"class": bem$_("disabled-text")
|
5332
5336
|
}, [props.disabledText]);
|
5333
5337
|
return createVNode("div", {
|
5334
|
-
"class": bem$
|
5338
|
+
"class": bem$_()
|
5335
5339
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
|
5336
5340
|
"modelValue": props.modelValue
|
5337
5341
|
}, {
|
@@ -5340,8 +5344,8 @@ var stdin_default$14 = defineComponent({
|
|
5340
5344
|
};
|
5341
5345
|
}
|
5342
5346
|
});
|
5343
|
-
const AddressList = withInstall(stdin_default$
|
5344
|
-
const [name$
|
5347
|
+
const AddressList = withInstall(stdin_default$18);
|
5348
|
+
const [name$11, bem$Z, t$f] = createNamespace("calendar");
|
5345
5349
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5346
5350
|
function compareMonth(date1, date2) {
|
5347
5351
|
const year1 = date1.getFullYear();
|
@@ -5422,9 +5426,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
5422
5426
|
}
|
5423
5427
|
return value;
|
5424
5428
|
});
|
5425
|
-
const [name$
|
5426
|
-
var stdin_default$
|
5427
|
-
name: name$
|
5429
|
+
const [name$10] = createNamespace("calendar-day");
|
5430
|
+
var stdin_default$17 = defineComponent({
|
5431
|
+
name: name$10,
|
5428
5432
|
props: {
|
5429
5433
|
item: makeRequiredProp(Object),
|
5430
5434
|
color: String,
|
@@ -5486,7 +5490,7 @@ var stdin_default$13 = defineComponent({
|
|
5486
5490
|
} = props.item;
|
5487
5491
|
if (topInfo || slots["top-info"]) {
|
5488
5492
|
return createVNode("div", {
|
5489
|
-
"class": bem$
|
5493
|
+
"class": bem$Z("top-info")
|
5490
5494
|
}, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
|
5491
5495
|
}
|
5492
5496
|
};
|
@@ -5496,7 +5500,7 @@ var stdin_default$13 = defineComponent({
|
|
5496
5500
|
} = props.item;
|
5497
5501
|
if (bottomInfo || slots["bottom-info"]) {
|
5498
5502
|
return createVNode("div", {
|
5499
|
-
"class": bem$
|
5503
|
+
"class": bem$Z("bottom-info")
|
5500
5504
|
}, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
|
5501
5505
|
}
|
5502
5506
|
};
|
@@ -5513,7 +5517,7 @@ var stdin_default$13 = defineComponent({
|
|
5513
5517
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
5514
5518
|
if (type === "selected") {
|
5515
5519
|
return createVNode("div", {
|
5516
|
-
"class": bem$
|
5520
|
+
"class": bem$Z("selected-day"),
|
5517
5521
|
"style": {
|
5518
5522
|
width: rowHeight,
|
5519
5523
|
height: rowHeight,
|
@@ -5530,21 +5534,21 @@ var stdin_default$13 = defineComponent({
|
|
5530
5534
|
} = props.item;
|
5531
5535
|
if (type === "placeholder") {
|
5532
5536
|
return createVNode("div", {
|
5533
|
-
"class": bem$
|
5537
|
+
"class": bem$Z("day"),
|
5534
5538
|
"style": style.value
|
5535
5539
|
}, null);
|
5536
5540
|
}
|
5537
5541
|
return createVNode("div", {
|
5538
5542
|
"role": "gridcell",
|
5539
5543
|
"style": style.value,
|
5540
|
-
"class": [bem$
|
5544
|
+
"class": [bem$Z("day", type), className],
|
5541
5545
|
"tabindex": type === "disabled" ? void 0 : -1,
|
5542
5546
|
"onClick": onClick
|
5543
5547
|
}, [renderContent()]);
|
5544
5548
|
};
|
5545
5549
|
}
|
5546
5550
|
});
|
5547
|
-
const [name
|
5551
|
+
const [name$$] = createNamespace("calendar-month");
|
5548
5552
|
const calendarMonthProps = {
|
5549
5553
|
date: makeRequiredProp(Date),
|
5550
5554
|
type: String,
|
@@ -5561,8 +5565,8 @@ const calendarMonthProps = {
|
|
5561
5565
|
showMonthTitle: Boolean,
|
5562
5566
|
firstDayOfWeek: Number
|
5563
5567
|
};
|
5564
|
-
var stdin_default$
|
5565
|
-
name: name
|
5568
|
+
var stdin_default$16 = defineComponent({
|
5569
|
+
name: name$$,
|
5566
5570
|
props: calendarMonthProps,
|
5567
5571
|
emits: ["click"],
|
5568
5572
|
setup(props, {
|
@@ -5667,14 +5671,14 @@ var stdin_default$12 = defineComponent({
|
|
5667
5671
|
const renderTitle = () => {
|
5668
5672
|
if (props.showMonthTitle) {
|
5669
5673
|
return createVNode("div", {
|
5670
|
-
"class": bem$
|
5674
|
+
"class": bem$Z("month-title")
|
5671
5675
|
}, [title.value]);
|
5672
5676
|
}
|
5673
5677
|
};
|
5674
5678
|
const renderMark = () => {
|
5675
5679
|
if (props.showMark && shouldRender.value) {
|
5676
5680
|
return createVNode("div", {
|
5677
|
-
"class": bem$
|
5681
|
+
"class": bem$Z("month-mark")
|
5678
5682
|
}, [props.date.getMonth() + 1]);
|
5679
5683
|
}
|
5680
5684
|
};
|
@@ -5714,7 +5718,7 @@ var stdin_default$12 = defineComponent({
|
|
5714
5718
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
5715
5719
|
}
|
5716
5720
|
};
|
5717
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
5721
|
+
const renderDay = (item, index) => createVNode(stdin_default$17, {
|
5718
5722
|
"item": item,
|
5719
5723
|
"index": index,
|
5720
5724
|
"color": props.color,
|
@@ -5725,7 +5729,7 @@ var stdin_default$12 = defineComponent({
|
|
5725
5729
|
const renderDays = () => createVNode("div", {
|
5726
5730
|
"ref": daysRef,
|
5727
5731
|
"role": "grid",
|
5728
|
-
"class": bem$
|
5732
|
+
"class": bem$Z("days")
|
5729
5733
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
5730
5734
|
useExpose({
|
5731
5735
|
getTitle,
|
@@ -5735,14 +5739,14 @@ var stdin_default$12 = defineComponent({
|
|
5735
5739
|
disabledDays
|
5736
5740
|
});
|
5737
5741
|
return () => createVNode("div", {
|
5738
|
-
"class": bem$
|
5742
|
+
"class": bem$Z("month"),
|
5739
5743
|
"ref": monthRef
|
5740
5744
|
}, [renderTitle(), renderDays()]);
|
5741
5745
|
}
|
5742
5746
|
});
|
5743
|
-
const [name$
|
5744
|
-
var stdin_default$
|
5745
|
-
name: name$
|
5747
|
+
const [name$_] = createNamespace("calendar-header");
|
5748
|
+
var stdin_default$15 = defineComponent({
|
5749
|
+
name: name$_,
|
5746
5750
|
props: {
|
5747
5751
|
date: Date,
|
5748
5752
|
title: String,
|
@@ -5761,7 +5765,7 @@ var stdin_default$11 = defineComponent({
|
|
5761
5765
|
const text = props.title || t$f("title");
|
5762
5766
|
const title = slots.title ? slots.title() : text;
|
5763
5767
|
return createVNode("div", {
|
5764
|
-
"class": bem$
|
5768
|
+
"class": bem$Z("header-title")
|
5765
5769
|
}, [title]);
|
5766
5770
|
}
|
5767
5771
|
};
|
@@ -5773,7 +5777,7 @@ var stdin_default$11 = defineComponent({
|
|
5773
5777
|
text: props.subtitle
|
5774
5778
|
}) : props.subtitle;
|
5775
5779
|
return createVNode("div", {
|
5776
|
-
"class": bem$
|
5780
|
+
"class": bem$Z("header-subtitle"),
|
5777
5781
|
"onClick": onClickSubtitle
|
5778
5782
|
}, [title]);
|
5779
5783
|
}
|
@@ -5785,13 +5789,13 @@ var stdin_default$11 = defineComponent({
|
|
5785
5789
|
const weekdays = t$f("weekdays");
|
5786
5790
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
5787
5791
|
return createVNode("div", {
|
5788
|
-
"class": bem$
|
5792
|
+
"class": bem$Z("weekdays")
|
5789
5793
|
}, [renderWeekDays2.map((text) => createVNode("span", {
|
5790
|
-
"class": bem$
|
5794
|
+
"class": bem$Z("weekday")
|
5791
5795
|
}, [text]))]);
|
5792
5796
|
};
|
5793
5797
|
return () => createVNode("div", {
|
5794
|
-
"class": bem$
|
5798
|
+
"class": bem$Z("header")
|
5795
5799
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
5796
5800
|
}
|
5797
5801
|
});
|
@@ -5842,8 +5846,8 @@ const calendarProps = {
|
|
5842
5846
|
validator: (val) => val >= 0 && val <= 6
|
5843
5847
|
}
|
5844
5848
|
};
|
5845
|
-
var stdin_default$
|
5846
|
-
name: name$
|
5849
|
+
var stdin_default$14 = defineComponent({
|
5850
|
+
name: name$11,
|
5847
5851
|
props: calendarProps,
|
5848
5852
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
5849
5853
|
setup(props, {
|
@@ -6106,7 +6110,7 @@ var stdin_default$10 = defineComponent({
|
|
6106
6110
|
const updateShow = (value) => emit("update:show", value);
|
6107
6111
|
const renderMonth = (date, index) => {
|
6108
6112
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
6109
|
-
return createVNode(stdin_default$
|
6113
|
+
return createVNode(stdin_default$16, mergeProps({
|
6110
6114
|
"ref": setMonthRefs(index),
|
6111
6115
|
"date": date,
|
6112
6116
|
"currentDate": currentDate.value,
|
@@ -6129,7 +6133,7 @@ var stdin_default$10 = defineComponent({
|
|
6129
6133
|
"block": true,
|
6130
6134
|
"type": "primary",
|
6131
6135
|
"color": props.color,
|
6132
|
-
"class": bem$
|
6136
|
+
"class": bem$Z("confirm"),
|
6133
6137
|
"disabled": disabled,
|
6134
6138
|
"nativeType": "button",
|
6135
6139
|
"onClick": onConfirm
|
@@ -6141,13 +6145,13 @@ var stdin_default$10 = defineComponent({
|
|
6141
6145
|
}
|
6142
6146
|
};
|
6143
6147
|
const renderFooter = () => createVNode("div", {
|
6144
|
-
"class": [bem$
|
6148
|
+
"class": [bem$Z("footer"), {
|
6145
6149
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
6146
6150
|
}]
|
6147
6151
|
}, [renderFooterButton()]);
|
6148
6152
|
const renderCalendar = () => createVNode("div", {
|
6149
|
-
"class": bem$
|
6150
|
-
}, [createVNode(stdin_default$
|
6153
|
+
"class": bem$Z()
|
6154
|
+
}, [createVNode(stdin_default$15, {
|
6151
6155
|
"date": subtitle.value.date,
|
6152
6156
|
"title": props.title,
|
6153
6157
|
"subtitle": subtitle.value.text,
|
@@ -6157,7 +6161,7 @@ var stdin_default$10 = defineComponent({
|
|
6157
6161
|
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6158
6162
|
}, pick(slots, ["title", "subtitle"])), createVNode("div", {
|
6159
6163
|
"ref": bodyRef,
|
6160
|
-
"class": bem$
|
6164
|
+
"class": bem$Z("body"),
|
6161
6165
|
"onScroll": onScroll
|
6162
6166
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6163
6167
|
watch(() => props.show, init);
|
@@ -6176,7 +6180,7 @@ var stdin_default$10 = defineComponent({
|
|
6176
6180
|
if (props.poppable) {
|
6177
6181
|
return createVNode(Popup, {
|
6178
6182
|
"show": props.show,
|
6179
|
-
"class": bem$
|
6183
|
+
"class": bem$Z("popup"),
|
6180
6184
|
"round": props.round,
|
6181
6185
|
"position": props.position,
|
6182
6186
|
"closeable": props.showTitle || props.showSubtitle,
|
@@ -6193,8 +6197,8 @@ var stdin_default$10 = defineComponent({
|
|
6193
6197
|
};
|
6194
6198
|
}
|
6195
6199
|
});
|
6196
|
-
const Calendar = withInstall(stdin_default$
|
6197
|
-
const [name$
|
6200
|
+
const Calendar = withInstall(stdin_default$14);
|
6201
|
+
const [name$Z, bem$Y] = createNamespace("image");
|
6198
6202
|
const imageProps = {
|
6199
6203
|
src: String,
|
6200
6204
|
alt: String,
|
@@ -6213,8 +6217,8 @@ const imageProps = {
|
|
6213
6217
|
showLoading: truthProp,
|
6214
6218
|
loadingIcon: makeStringProp("photo")
|
6215
6219
|
};
|
6216
|
-
var stdin_default
|
6217
|
-
name: name$
|
6220
|
+
var stdin_default$13 = defineComponent({
|
6221
|
+
name: name$Z,
|
6218
6222
|
props: imageProps,
|
6219
6223
|
emits: ["load", "error"],
|
6220
6224
|
setup(props, {
|
@@ -6265,13 +6269,13 @@ var stdin_default$$ = defineComponent({
|
|
6265
6269
|
const renderPlaceholder = () => {
|
6266
6270
|
if (loading.value && props.showLoading) {
|
6267
6271
|
return createVNode("div", {
|
6268
|
-
"class": bem$
|
6269
|
-
}, [renderIcon(props.loadingIcon, bem$
|
6272
|
+
"class": bem$Y("loading")
|
6273
|
+
}, [renderIcon(props.loadingIcon, bem$Y("loading-icon"), slots.loading)]);
|
6270
6274
|
}
|
6271
6275
|
if (error.value && props.showError) {
|
6272
6276
|
return createVNode("div", {
|
6273
|
-
"class": bem$
|
6274
|
-
}, [renderIcon(props.errorIcon, bem$
|
6277
|
+
"class": bem$Y("error")
|
6278
|
+
}, [renderIcon(props.errorIcon, bem$Y("error-icon"), slots.error)]);
|
6275
6279
|
}
|
6276
6280
|
};
|
6277
6281
|
const renderImage = () => {
|
@@ -6280,7 +6284,7 @@ var stdin_default$$ = defineComponent({
|
|
6280
6284
|
}
|
6281
6285
|
const attrs = {
|
6282
6286
|
alt: props.alt,
|
6283
|
-
class: bem$
|
6287
|
+
class: bem$Y("img"),
|
6284
6288
|
style: {
|
6285
6289
|
objectFit: props.fit,
|
6286
6290
|
objectPosition: props.position
|
@@ -6329,7 +6333,7 @@ var stdin_default$$ = defineComponent({
|
|
6329
6333
|
return () => {
|
6330
6334
|
var _a;
|
6331
6335
|
return createVNode("div", {
|
6332
|
-
"class": bem$
|
6336
|
+
"class": bem$Y({
|
6333
6337
|
round: props.round,
|
6334
6338
|
block: props.block
|
6335
6339
|
}),
|
@@ -6338,8 +6342,8 @@ var stdin_default$$ = defineComponent({
|
|
6338
6342
|
};
|
6339
6343
|
}
|
6340
6344
|
});
|
6341
|
-
const Image$1 = withInstall(stdin_default
|
6342
|
-
const [name$
|
6345
|
+
const Image$1 = withInstall(stdin_default$13);
|
6346
|
+
const [name$Y, bem$X] = createNamespace("card");
|
6343
6347
|
const cardProps = {
|
6344
6348
|
tag: String,
|
6345
6349
|
num: numericProp,
|
@@ -6353,8 +6357,8 @@ const cardProps = {
|
|
6353
6357
|
thumbLink: String,
|
6354
6358
|
originPrice: numericProp
|
6355
6359
|
};
|
6356
|
-
var stdin_default$
|
6357
|
-
name: name$
|
6360
|
+
var stdin_default$12 = defineComponent({
|
6361
|
+
name: name$Y,
|
6358
6362
|
props: cardProps,
|
6359
6363
|
emits: ["clickThumb"],
|
6360
6364
|
setup(props, {
|
@@ -6367,14 +6371,14 @@ var stdin_default$_ = defineComponent({
|
|
6367
6371
|
}
|
6368
6372
|
if (props.title) {
|
6369
6373
|
return createVNode("div", {
|
6370
|
-
"class": [bem$
|
6374
|
+
"class": [bem$X("title"), "van-multi-ellipsis--l2"]
|
6371
6375
|
}, [props.title]);
|
6372
6376
|
}
|
6373
6377
|
};
|
6374
6378
|
const renderThumbTag = () => {
|
6375
6379
|
if (slots.tag || props.tag) {
|
6376
6380
|
return createVNode("div", {
|
6377
|
-
"class": bem$
|
6381
|
+
"class": bem$X("tag")
|
6378
6382
|
}, [slots.tag ? slots.tag() : createVNode(Tag, {
|
6379
6383
|
"mark": true,
|
6380
6384
|
"type": "primary"
|
@@ -6399,7 +6403,7 @@ var stdin_default$_ = defineComponent({
|
|
6399
6403
|
if (slots.thumb || props.thumb) {
|
6400
6404
|
return createVNode("a", {
|
6401
6405
|
"href": props.thumbLink,
|
6402
|
-
"class": bem$
|
6406
|
+
"class": bem$X("thumb"),
|
6403
6407
|
"onClick": (event) => emit("clickThumb", event)
|
6404
6408
|
}, [renderThumbImage(), renderThumbTag()]);
|
6405
6409
|
}
|
@@ -6410,18 +6414,18 @@ var stdin_default$_ = defineComponent({
|
|
6410
6414
|
}
|
6411
6415
|
if (props.desc) {
|
6412
6416
|
return createVNode("div", {
|
6413
|
-
"class": [bem$
|
6417
|
+
"class": [bem$X("desc"), "van-ellipsis"]
|
6414
6418
|
}, [props.desc]);
|
6415
6419
|
}
|
6416
6420
|
};
|
6417
6421
|
const renderPriceText = () => {
|
6418
6422
|
const priceArr = props.price.toString().split(".");
|
6419
6423
|
return createVNode("div", null, [createVNode("span", {
|
6420
|
-
"class": bem$
|
6424
|
+
"class": bem$X("price-currency")
|
6421
6425
|
}, [props.currency]), createVNode("span", {
|
6422
|
-
"class": bem$
|
6426
|
+
"class": bem$X("price-integer")
|
6423
6427
|
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
6424
|
-
"class": bem$
|
6428
|
+
"class": bem$X("price-decimal")
|
6425
6429
|
}, [priceArr[1]])]);
|
6426
6430
|
};
|
6427
6431
|
return () => {
|
@@ -6431,34 +6435,34 @@ var stdin_default$_ = defineComponent({
|
|
6431
6435
|
const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
|
6432
6436
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
6433
6437
|
const Price = showPrice && createVNode("div", {
|
6434
|
-
"class": bem$
|
6438
|
+
"class": bem$X("price")
|
6435
6439
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
6436
6440
|
const OriginPrice = showOriginPrice && createVNode("div", {
|
6437
|
-
"class": bem$
|
6441
|
+
"class": bem$X("origin-price")
|
6438
6442
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
|
6439
6443
|
const Num = showNum && createVNode("div", {
|
6440
|
-
"class": bem$
|
6444
|
+
"class": bem$X("num")
|
6441
6445
|
}, [slots.num ? slots.num() : `x${props.num}`]);
|
6442
6446
|
const Footer = slots.footer && createVNode("div", {
|
6443
|
-
"class": bem$
|
6447
|
+
"class": bem$X("footer")
|
6444
6448
|
}, [slots.footer()]);
|
6445
6449
|
const Bottom = showBottom && createVNode("div", {
|
6446
|
-
"class": bem$
|
6450
|
+
"class": bem$X("bottom")
|
6447
6451
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
6448
6452
|
return createVNode("div", {
|
6449
|
-
"class": bem$
|
6453
|
+
"class": bem$X()
|
6450
6454
|
}, [createVNode("div", {
|
6451
|
-
"class": bem$
|
6455
|
+
"class": bem$X("header")
|
6452
6456
|
}, [renderThumb(), createVNode("div", {
|
6453
|
-
"class": bem$
|
6457
|
+
"class": bem$X("content", {
|
6454
6458
|
centered: props.centered
|
6455
6459
|
})
|
6456
6460
|
}, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
6457
6461
|
};
|
6458
6462
|
}
|
6459
6463
|
});
|
6460
|
-
const Card = withInstall(stdin_default$
|
6461
|
-
const [name$
|
6464
|
+
const Card = withInstall(stdin_default$12);
|
6465
|
+
const [name$X, bem$W, t$e] = createNamespace("cascader");
|
6462
6466
|
const cascaderProps = {
|
6463
6467
|
title: String,
|
6464
6468
|
options: makeArrayProp(),
|
@@ -6471,8 +6475,8 @@ const cascaderProps = {
|
|
6471
6475
|
placeholder: String,
|
6472
6476
|
activeColor: String
|
6473
6477
|
};
|
6474
|
-
var stdin_default$
|
6475
|
-
name: name$
|
6478
|
+
var stdin_default$11 = defineComponent({
|
6479
|
+
name: name$X,
|
6476
6480
|
props: cascaderProps,
|
6477
6481
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
6478
6482
|
setup(props, {
|
@@ -6580,12 +6584,12 @@ var stdin_default$Z = defineComponent({
|
|
6580
6584
|
title
|
6581
6585
|
}) => emit("clickTab", name2, title);
|
6582
6586
|
const renderHeader = () => props.showHeader ? createVNode("div", {
|
6583
|
-
"class": bem$
|
6587
|
+
"class": bem$W("header")
|
6584
6588
|
}, [createVNode("h2", {
|
6585
|
-
"class": bem$
|
6589
|
+
"class": bem$W("title")
|
6586
6590
|
}, [slots.title ? slots.title() : props.title]), props.closeable ? createVNode(Icon, {
|
6587
6591
|
"name": props.closeIcon,
|
6588
|
-
"class": [bem$
|
6592
|
+
"class": [bem$W("close-icon"), HAPTICS_FEEDBACK],
|
6589
6593
|
"onClick": onClose
|
6590
6594
|
}, null) : null]) : null;
|
6591
6595
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -6600,7 +6604,7 @@ var stdin_default$Z = defineComponent({
|
|
6600
6604
|
}) : createVNode("span", null, [option[textKey]]);
|
6601
6605
|
return createVNode("li", {
|
6602
6606
|
"role": "menuitemradio",
|
6603
|
-
"class": [bem$
|
6607
|
+
"class": [bem$W("option", {
|
6604
6608
|
selected,
|
6605
6609
|
disabled
|
6606
6610
|
}), option.className],
|
@@ -6613,12 +6617,12 @@ var stdin_default$Z = defineComponent({
|
|
6613
6617
|
"onClick": () => onSelect(option, tabIndex)
|
6614
6618
|
}, [Text2, selected ? createVNode(Icon, {
|
6615
6619
|
"name": "success",
|
6616
|
-
"class": bem$
|
6620
|
+
"class": bem$W("selected-icon")
|
6617
6621
|
}, null) : null]);
|
6618
6622
|
};
|
6619
6623
|
const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
|
6620
6624
|
"role": "menu",
|
6621
|
-
"class": bem$
|
6625
|
+
"class": bem$W("options")
|
6622
6626
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
6623
6627
|
const renderTab = (tab, tabIndex) => {
|
6624
6628
|
const {
|
@@ -6629,7 +6633,7 @@ var stdin_default$Z = defineComponent({
|
|
6629
6633
|
const title = selected ? selected[textKey] : placeholder;
|
6630
6634
|
return createVNode(Tab, {
|
6631
6635
|
"title": title,
|
6632
|
-
"titleClass": bem$
|
6636
|
+
"titleClass": bem$W("tab", {
|
6633
6637
|
unselected: !selected
|
6634
6638
|
})
|
6635
6639
|
}, {
|
@@ -6648,7 +6652,7 @@ var stdin_default$Z = defineComponent({
|
|
6648
6652
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6649
6653
|
"shrink": true,
|
6650
6654
|
"animated": true,
|
6651
|
-
"class": bem$
|
6655
|
+
"class": bem$W("tabs"),
|
6652
6656
|
"color": props.activeColor,
|
6653
6657
|
"swipeable": props.swipeable,
|
6654
6658
|
"onClickTab": onClickTab
|
@@ -6672,19 +6676,19 @@ var stdin_default$Z = defineComponent({
|
|
6672
6676
|
updateTabs();
|
6673
6677
|
});
|
6674
6678
|
return () => createVNode("div", {
|
6675
|
-
"class": bem$
|
6679
|
+
"class": bem$W()
|
6676
6680
|
}, [renderHeader(), renderTabs()]);
|
6677
6681
|
}
|
6678
6682
|
});
|
6679
|
-
const Cascader = withInstall(stdin_default$
|
6680
|
-
const [name$
|
6683
|
+
const Cascader = withInstall(stdin_default$11);
|
6684
|
+
const [name$W, bem$V] = createNamespace("cell-group");
|
6681
6685
|
const cellGroupProps = {
|
6682
6686
|
title: String,
|
6683
6687
|
inset: Boolean,
|
6684
6688
|
border: truthProp
|
6685
6689
|
};
|
6686
|
-
var stdin_default$
|
6687
|
-
name: name$
|
6690
|
+
var stdin_default$10 = defineComponent({
|
6691
|
+
name: name$W,
|
6688
6692
|
inheritAttrs: false,
|
6689
6693
|
props: cellGroupProps,
|
6690
6694
|
setup(props, {
|
@@ -6694,7 +6698,7 @@ var stdin_default$Y = defineComponent({
|
|
6694
6698
|
const renderGroup = () => {
|
6695
6699
|
var _a;
|
6696
6700
|
return createVNode("div", mergeProps({
|
6697
|
-
"class": [bem$
|
6701
|
+
"class": [bem$V({
|
6698
6702
|
inset: props.inset
|
6699
6703
|
}), {
|
6700
6704
|
[BORDER_TOP_BOTTOM]: props.border && !props.inset
|
@@ -6702,7 +6706,7 @@ var stdin_default$Y = defineComponent({
|
|
6702
6706
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6703
6707
|
};
|
6704
6708
|
const renderTitle = () => createVNode("div", {
|
6705
|
-
"class": bem$
|
6709
|
+
"class": bem$V("title", {
|
6706
6710
|
inset: props.inset
|
6707
6711
|
})
|
6708
6712
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -6714,8 +6718,8 @@ var stdin_default$Y = defineComponent({
|
|
6714
6718
|
};
|
6715
6719
|
}
|
6716
6720
|
});
|
6717
|
-
const CellGroup = withInstall(stdin_default$
|
6718
|
-
const [name$
|
6721
|
+
const CellGroup = withInstall(stdin_default$10);
|
6722
|
+
const [name$V, bem$U] = createNamespace("checkbox-group");
|
6719
6723
|
const checkboxGroupProps = {
|
6720
6724
|
max: numericProp,
|
6721
6725
|
disabled: Boolean,
|
@@ -6724,9 +6728,9 @@ const checkboxGroupProps = {
|
|
6724
6728
|
modelValue: makeArrayProp(),
|
6725
6729
|
checkedColor: String
|
6726
6730
|
};
|
6727
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
6728
|
-
var stdin_default
|
6729
|
-
name: name$
|
6731
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$V);
|
6732
|
+
var stdin_default$$ = defineComponent({
|
6733
|
+
name: name$V,
|
6730
6734
|
props: checkboxGroupProps,
|
6731
6735
|
emits: ["change", "update:modelValue"],
|
6732
6736
|
setup(props, {
|
@@ -6772,17 +6776,17 @@ var stdin_default$X = defineComponent({
|
|
6772
6776
|
return () => {
|
6773
6777
|
var _a;
|
6774
6778
|
return createVNode("div", {
|
6775
|
-
"class": bem$
|
6779
|
+
"class": bem$U([props.direction])
|
6776
6780
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6777
6781
|
};
|
6778
6782
|
}
|
6779
6783
|
});
|
6780
|
-
const [name$
|
6784
|
+
const [name$U, bem$T] = createNamespace("checkbox");
|
6781
6785
|
const checkboxProps = extend({}, checkerProps, {
|
6782
6786
|
bindGroup: truthProp
|
6783
6787
|
});
|
6784
|
-
var stdin_default$
|
6785
|
-
name: name$
|
6788
|
+
var stdin_default$_ = defineComponent({
|
6789
|
+
name: name$U,
|
6786
6790
|
props: checkboxProps,
|
6787
6791
|
emits: ["change", "update:modelValue"],
|
6788
6792
|
setup(props, {
|
@@ -6839,8 +6843,8 @@ var stdin_default$W = defineComponent({
|
|
6839
6843
|
checked
|
6840
6844
|
});
|
6841
6845
|
useCustomFieldValue(() => props.modelValue);
|
6842
|
-
return () => createVNode(stdin_default$
|
6843
|
-
"bem": bem$
|
6846
|
+
return () => createVNode(stdin_default$1b, mergeProps({
|
6847
|
+
"bem": bem$T,
|
6844
6848
|
"role": "checkbox",
|
6845
6849
|
"parent": parent,
|
6846
6850
|
"checked": checked.value,
|
@@ -6848,9 +6852,9 @@ var stdin_default$W = defineComponent({
|
|
6848
6852
|
}, props), pick(slots, ["default", "icon"]));
|
6849
6853
|
}
|
6850
6854
|
});
|
6851
|
-
const Checkbox = withInstall(stdin_default$
|
6852
|
-
const CheckboxGroup = withInstall(stdin_default
|
6853
|
-
const [name$
|
6855
|
+
const Checkbox = withInstall(stdin_default$_);
|
6856
|
+
const CheckboxGroup = withInstall(stdin_default$$);
|
6857
|
+
const [name$T, bem$S] = createNamespace("circle");
|
6854
6858
|
let uid = 0;
|
6855
6859
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
6856
6860
|
function getPath(clockwise, viewBoxSize) {
|
@@ -6871,8 +6875,8 @@ const circleProps = {
|
|
6871
6875
|
strokeLinecap: String,
|
6872
6876
|
startPosition: makeStringProp("top")
|
6873
6877
|
};
|
6874
|
-
var stdin_default$
|
6875
|
-
name: name$
|
6878
|
+
var stdin_default$Z = defineComponent({
|
6879
|
+
name: name$T,
|
6876
6880
|
props: circleProps,
|
6877
6881
|
emits: ["update:currentRate"],
|
6878
6882
|
setup(props, {
|
@@ -6940,7 +6944,7 @@ var stdin_default$V = defineComponent({
|
|
6940
6944
|
return createVNode("path", {
|
6941
6945
|
"d": path.value,
|
6942
6946
|
"style": style,
|
6943
|
-
"class": bem$
|
6947
|
+
"class": bem$S("hover"),
|
6944
6948
|
"stroke": color
|
6945
6949
|
}, null);
|
6946
6950
|
};
|
@@ -6951,7 +6955,7 @@ var stdin_default$V = defineComponent({
|
|
6951
6955
|
strokeWidth: `${props.strokeWidth}px`
|
6952
6956
|
};
|
6953
6957
|
return createVNode("path", {
|
6954
|
-
"class": bem$
|
6958
|
+
"class": bem$S("layer"),
|
6955
6959
|
"style": style,
|
6956
6960
|
"d": path.value
|
6957
6961
|
}, null);
|
@@ -6982,12 +6986,12 @@ var stdin_default$V = defineComponent({
|
|
6982
6986
|
}
|
6983
6987
|
if (props.text) {
|
6984
6988
|
return createVNode("div", {
|
6985
|
-
"class": bem$
|
6989
|
+
"class": bem$S("text")
|
6986
6990
|
}, [props.text]);
|
6987
6991
|
}
|
6988
6992
|
};
|
6989
6993
|
return () => createVNode("div", {
|
6990
|
-
"class": bem$
|
6994
|
+
"class": bem$S(),
|
6991
6995
|
"style": getSizeStyle(props.size)
|
6992
6996
|
}, [createVNode("svg", {
|
6993
6997
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -6995,9 +6999,9 @@ var stdin_default$V = defineComponent({
|
|
6995
6999
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
6996
7000
|
}
|
6997
7001
|
});
|
6998
|
-
const Circle = withInstall(stdin_default$
|
6999
|
-
const [name$
|
7000
|
-
const ROW_KEY = Symbol(name$
|
7002
|
+
const Circle = withInstall(stdin_default$Z);
|
7003
|
+
const [name$S, bem$R] = createNamespace("row");
|
7004
|
+
const ROW_KEY = Symbol(name$S);
|
7001
7005
|
const rowProps = {
|
7002
7006
|
tag: makeStringProp("div"),
|
7003
7007
|
wrap: truthProp,
|
@@ -7005,8 +7009,8 @@ const rowProps = {
|
|
7005
7009
|
gutter: makeNumericProp(0),
|
7006
7010
|
justify: String
|
7007
7011
|
};
|
7008
|
-
var stdin_default$
|
7009
|
-
name: name$
|
7012
|
+
var stdin_default$Y = defineComponent({
|
7013
|
+
name: name$S,
|
7010
7014
|
props: rowProps,
|
7011
7015
|
setup(props, {
|
7012
7016
|
slots
|
@@ -7065,7 +7069,7 @@ var stdin_default$U = defineComponent({
|
|
7065
7069
|
justify
|
7066
7070
|
} = props;
|
7067
7071
|
return createVNode(tag, {
|
7068
|
-
"class": bem$
|
7072
|
+
"class": bem$R({
|
7069
7073
|
[`align-${align}`]: align,
|
7070
7074
|
[`justify-${justify}`]: justify,
|
7071
7075
|
nowrap: !wrap
|
@@ -7079,14 +7083,14 @@ var stdin_default$U = defineComponent({
|
|
7079
7083
|
};
|
7080
7084
|
}
|
7081
7085
|
});
|
7082
|
-
const [name$
|
7086
|
+
const [name$R, bem$Q] = createNamespace("col");
|
7083
7087
|
const colProps = {
|
7084
7088
|
tag: makeStringProp("div"),
|
7085
7089
|
span: makeNumericProp(0),
|
7086
7090
|
offset: numericProp
|
7087
7091
|
};
|
7088
|
-
var stdin_default$
|
7089
|
-
name: name$
|
7092
|
+
var stdin_default$X = defineComponent({
|
7093
|
+
name: name$R,
|
7090
7094
|
props: colProps,
|
7091
7095
|
setup(props, {
|
7092
7096
|
slots
|
@@ -7121,7 +7125,7 @@ var stdin_default$T = defineComponent({
|
|
7121
7125
|
} = props;
|
7122
7126
|
return createVNode(tag, {
|
7123
7127
|
"style": style.value,
|
7124
|
-
"class": bem$
|
7128
|
+
"class": bem$Q({
|
7125
7129
|
[span]: span,
|
7126
7130
|
[`offset-${offset}`]: offset
|
7127
7131
|
})
|
@@ -7134,9 +7138,9 @@ var stdin_default$T = defineComponent({
|
|
7134
7138
|
};
|
7135
7139
|
}
|
7136
7140
|
});
|
7137
|
-
const Col = withInstall(stdin_default$
|
7138
|
-
const [name$
|
7139
|
-
const COLLAPSE_KEY = Symbol(name$
|
7141
|
+
const Col = withInstall(stdin_default$X);
|
7142
|
+
const [name$Q, bem$P] = createNamespace("collapse");
|
7143
|
+
const COLLAPSE_KEY = Symbol(name$Q);
|
7140
7144
|
const collapseProps = {
|
7141
7145
|
border: truthProp,
|
7142
7146
|
accordion: Boolean,
|
@@ -7156,8 +7160,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7156
7160
|
}
|
7157
7161
|
return true;
|
7158
7162
|
}
|
7159
|
-
var stdin_default$
|
7160
|
-
name: name$
|
7163
|
+
var stdin_default$W = defineComponent({
|
7164
|
+
name: name$Q,
|
7161
7165
|
props: collapseProps,
|
7162
7166
|
emits: ["change", "update:modelValue"],
|
7163
7167
|
setup(props, {
|
@@ -7227,15 +7231,15 @@ var stdin_default$S = defineComponent({
|
|
7227
7231
|
return () => {
|
7228
7232
|
var _a;
|
7229
7233
|
return createVNode("div", {
|
7230
|
-
"class": [bem$
|
7234
|
+
"class": [bem$P(), {
|
7231
7235
|
[BORDER_TOP_BOTTOM]: props.border
|
7232
7236
|
}]
|
7233
7237
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7234
7238
|
};
|
7235
7239
|
}
|
7236
7240
|
});
|
7237
|
-
const Collapse = withInstall(stdin_default$
|
7238
|
-
const [name$
|
7241
|
+
const Collapse = withInstall(stdin_default$W);
|
7242
|
+
const [name$P, bem$O] = createNamespace("collapse-item");
|
7239
7243
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
7240
7244
|
const collapseItemProps = extend({}, cellSharedProps, {
|
7241
7245
|
name: numericProp,
|
@@ -7244,8 +7248,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7244
7248
|
readonly: Boolean,
|
7245
7249
|
lazyRender: truthProp
|
7246
7250
|
});
|
7247
|
-
var stdin_default$
|
7248
|
-
name: name$
|
7251
|
+
var stdin_default$V = defineComponent({
|
7252
|
+
name: name$P,
|
7249
7253
|
props: collapseItemProps,
|
7250
7254
|
setup(props, {
|
7251
7255
|
slots
|
@@ -7327,7 +7331,7 @@ var stdin_default$R = defineComponent({
|
|
7327
7331
|
}
|
7328
7332
|
return createVNode(Cell, mergeProps({
|
7329
7333
|
"role": "button",
|
7330
|
-
"class": bem$
|
7334
|
+
"class": bem$O("title", {
|
7331
7335
|
disabled,
|
7332
7336
|
expanded: expanded.value,
|
7333
7337
|
borderless: !border
|
@@ -7340,11 +7344,11 @@ var stdin_default$R = defineComponent({
|
|
7340
7344
|
var _a;
|
7341
7345
|
return withDirectives(createVNode("div", {
|
7342
7346
|
"ref": wrapperRef,
|
7343
|
-
"class": bem$
|
7347
|
+
"class": bem$O("wrapper"),
|
7344
7348
|
"onTransitionend": onTransitionEnd
|
7345
7349
|
}, [createVNode("div", {
|
7346
7350
|
"ref": contentRef,
|
7347
|
-
"class": bem$
|
7351
|
+
"class": bem$O("content")
|
7348
7352
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
|
7349
7353
|
});
|
7350
7354
|
useExpose({
|
@@ -7353,15 +7357,15 @@ var stdin_default$R = defineComponent({
|
|
7353
7357
|
itemName: name2
|
7354
7358
|
});
|
7355
7359
|
return () => createVNode("div", {
|
7356
|
-
"class": [bem$
|
7360
|
+
"class": [bem$O({
|
7357
7361
|
border: index.value && props.border
|
7358
7362
|
})]
|
7359
7363
|
}, [renderTitle(), renderContent()]);
|
7360
7364
|
}
|
7361
7365
|
});
|
7362
|
-
const CollapseItem = withInstall(stdin_default$
|
7363
|
-
const ConfigProvider = withInstall(stdin_default$
|
7364
|
-
const [name$
|
7366
|
+
const CollapseItem = withInstall(stdin_default$V);
|
7367
|
+
const ConfigProvider = withInstall(stdin_default$1F);
|
7368
|
+
const [name$O, bem$N, t$d] = createNamespace("contact-card");
|
7365
7369
|
const contactCardProps = {
|
7366
7370
|
tel: String,
|
7367
7371
|
name: String,
|
@@ -7369,8 +7373,8 @@ const contactCardProps = {
|
|
7369
7373
|
addText: String,
|
7370
7374
|
editable: truthProp
|
7371
7375
|
};
|
7372
|
-
var stdin_default$
|
7373
|
-
name: name$
|
7376
|
+
var stdin_default$U = defineComponent({
|
7377
|
+
name: name$O,
|
7374
7378
|
props: contactCardProps,
|
7375
7379
|
emits: ["click"],
|
7376
7380
|
setup(props, {
|
@@ -7390,18 +7394,18 @@ var stdin_default$Q = defineComponent({
|
|
7390
7394
|
return () => createVNode(Cell, {
|
7391
7395
|
"center": true,
|
7392
7396
|
"icon": props.type === "edit" ? "contact" : "add-square",
|
7393
|
-
"class": bem$
|
7397
|
+
"class": bem$N([props.type]),
|
7394
7398
|
"border": false,
|
7395
7399
|
"isLink": props.editable,
|
7396
|
-
"titleClass": bem$
|
7400
|
+
"titleClass": bem$N("title"),
|
7397
7401
|
"onClick": onClick
|
7398
7402
|
}, {
|
7399
7403
|
title: renderContent
|
7400
7404
|
});
|
7401
7405
|
}
|
7402
7406
|
});
|
7403
|
-
const ContactCard = withInstall(stdin_default$
|
7404
|
-
const [name$
|
7407
|
+
const ContactCard = withInstall(stdin_default$U);
|
7408
|
+
const [name$N, bem$M, t$c] = createNamespace("contact-edit");
|
7405
7409
|
const DEFAULT_CONTACT = {
|
7406
7410
|
tel: "",
|
7407
7411
|
name: ""
|
@@ -7421,8 +7425,8 @@ const contactEditProps = {
|
|
7421
7425
|
default: isMobile
|
7422
7426
|
}
|
7423
7427
|
};
|
7424
|
-
var stdin_default$
|
7425
|
-
name: name$
|
7428
|
+
var stdin_default$T = defineComponent({
|
7429
|
+
name: name$N,
|
7426
7430
|
props: contactEditProps,
|
7427
7431
|
emits: ["save", "delete", "changeDefault"],
|
7428
7432
|
setup(props, {
|
@@ -7436,20 +7440,20 @@ var stdin_default$P = defineComponent({
|
|
7436
7440
|
};
|
7437
7441
|
const onDelete = () => emit("delete", contact);
|
7438
7442
|
const renderButtons = () => createVNode("div", {
|
7439
|
-
"class": bem$
|
7443
|
+
"class": bem$M("buttons")
|
7440
7444
|
}, [createVNode(Button, {
|
7441
7445
|
"block": true,
|
7442
7446
|
"round": true,
|
7443
7447
|
"type": "primary",
|
7444
7448
|
"text": t$c("save"),
|
7445
|
-
"class": bem$
|
7449
|
+
"class": bem$M("button"),
|
7446
7450
|
"loading": props.isSaving,
|
7447
7451
|
"nativeType": "submit"
|
7448
7452
|
}, null), props.isEdit && createVNode(Button, {
|
7449
7453
|
"block": true,
|
7450
7454
|
"round": true,
|
7451
7455
|
"text": t$c("delete"),
|
7452
|
-
"class": bem$
|
7456
|
+
"class": bem$M("button"),
|
7453
7457
|
"loading": props.isDeleting,
|
7454
7458
|
"onClick": onDelete
|
7455
7459
|
}, null)]);
|
@@ -7462,7 +7466,7 @@ var stdin_default$P = defineComponent({
|
|
7462
7466
|
if (props.showSetDefault) {
|
7463
7467
|
return createVNode(Cell, {
|
7464
7468
|
"title": props.setDefaultLabel,
|
7465
|
-
"class": bem$
|
7469
|
+
"class": bem$M("switch-cell"),
|
7466
7470
|
"border": false
|
7467
7471
|
}, {
|
7468
7472
|
"right-icon": renderSwitch
|
@@ -7471,11 +7475,11 @@ var stdin_default$P = defineComponent({
|
|
7471
7475
|
};
|
7472
7476
|
watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
7473
7477
|
return () => createVNode(Form, {
|
7474
|
-
"class": bem$
|
7478
|
+
"class": bem$M(),
|
7475
7479
|
"onSubmit": onSave
|
7476
7480
|
}, {
|
7477
7481
|
default: () => [createVNode("div", {
|
7478
|
-
"class": bem$
|
7482
|
+
"class": bem$M("fields")
|
7479
7483
|
}, [createVNode(Field, {
|
7480
7484
|
"modelValue": contact.name,
|
7481
7485
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -7502,16 +7506,16 @@ var stdin_default$P = defineComponent({
|
|
7502
7506
|
});
|
7503
7507
|
}
|
7504
7508
|
});
|
7505
|
-
const ContactEdit = withInstall(stdin_default$
|
7506
|
-
const [name$
|
7509
|
+
const ContactEdit = withInstall(stdin_default$T);
|
7510
|
+
const [name$M, bem$L, t$b] = createNamespace("contact-list");
|
7507
7511
|
const contactListProps = {
|
7508
7512
|
list: Array,
|
7509
7513
|
addText: String,
|
7510
7514
|
modelValue: unknownProp,
|
7511
7515
|
defaultTagText: String
|
7512
7516
|
};
|
7513
|
-
var stdin_default$
|
7514
|
-
name: name$
|
7517
|
+
var stdin_default$S = defineComponent({
|
7518
|
+
name: name$M,
|
7515
7519
|
props: contactListProps,
|
7516
7520
|
emits: ["add", "edit", "select", "update:modelValue"],
|
7517
7521
|
setup(props, {
|
@@ -7523,13 +7527,13 @@ var stdin_default$O = defineComponent({
|
|
7523
7527
|
emit("select", item, index);
|
7524
7528
|
};
|
7525
7529
|
const renderRightIcon = () => createVNode(Radio, {
|
7526
|
-
"class": bem$
|
7530
|
+
"class": bem$L("radio"),
|
7527
7531
|
"name": item.id,
|
7528
7532
|
"iconSize": 16
|
7529
7533
|
}, null);
|
7530
7534
|
const renderEditIcon = () => createVNode(Icon, {
|
7531
7535
|
"name": "edit",
|
7532
|
-
"class": bem$
|
7536
|
+
"class": bem$L("edit"),
|
7533
7537
|
"onClick": (event) => {
|
7534
7538
|
event.stopPropagation();
|
7535
7539
|
emit("edit", item, index);
|
@@ -7541,7 +7545,7 @@ var stdin_default$O = defineComponent({
|
|
7541
7545
|
nodes.push(createVNode(Tag, {
|
7542
7546
|
"type": "primary",
|
7543
7547
|
"round": true,
|
7544
|
-
"class": bem$
|
7548
|
+
"class": bem$L("item-tag")
|
7545
7549
|
}, {
|
7546
7550
|
default: () => [props.defaultTagText]
|
7547
7551
|
}));
|
@@ -7552,8 +7556,8 @@ var stdin_default$O = defineComponent({
|
|
7552
7556
|
"key": item.id,
|
7553
7557
|
"isLink": true,
|
7554
7558
|
"center": true,
|
7555
|
-
"class": bem$
|
7556
|
-
"titleClass": bem$
|
7559
|
+
"class": bem$L("item"),
|
7560
|
+
"titleClass": bem$L("item-title"),
|
7557
7561
|
"onClick": onClick
|
7558
7562
|
}, {
|
7559
7563
|
icon: renderEditIcon,
|
@@ -7562,25 +7566,25 @@ var stdin_default$O = defineComponent({
|
|
7562
7566
|
});
|
7563
7567
|
};
|
7564
7568
|
return () => createVNode("div", {
|
7565
|
-
"class": bem$
|
7569
|
+
"class": bem$L()
|
7566
7570
|
}, [createVNode(RadioGroup, {
|
7567
7571
|
"modelValue": props.modelValue,
|
7568
|
-
"class": bem$
|
7572
|
+
"class": bem$L("group")
|
7569
7573
|
}, {
|
7570
7574
|
default: () => [props.list && props.list.map(renderItem)]
|
7571
7575
|
}), createVNode("div", {
|
7572
|
-
"class": [bem$
|
7576
|
+
"class": [bem$L("bottom"), "van-safe-area-bottom"]
|
7573
7577
|
}, [createVNode(Button, {
|
7574
7578
|
"round": true,
|
7575
7579
|
"block": true,
|
7576
7580
|
"type": "primary",
|
7577
|
-
"class": bem$
|
7581
|
+
"class": bem$L("add"),
|
7578
7582
|
"text": props.addText || t$b("addContact"),
|
7579
7583
|
"onClick": () => emit("add")
|
7580
7584
|
}, null)])]);
|
7581
7585
|
}
|
7582
7586
|
});
|
7583
|
-
const ContactList = withInstall(stdin_default$
|
7587
|
+
const ContactList = withInstall(stdin_default$S);
|
7584
7588
|
function parseFormat(format2, currentTime) {
|
7585
7589
|
const { days } = currentTime;
|
7586
7590
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -7616,15 +7620,15 @@ function parseFormat(format2, currentTime) {
|
|
7616
7620
|
}
|
7617
7621
|
return format2;
|
7618
7622
|
}
|
7619
|
-
const [name$
|
7623
|
+
const [name$L, bem$K] = createNamespace("count-down");
|
7620
7624
|
const countDownProps = {
|
7621
7625
|
time: makeNumericProp(0),
|
7622
7626
|
format: makeStringProp("HH:mm:ss"),
|
7623
7627
|
autoStart: truthProp,
|
7624
7628
|
millisecond: Boolean
|
7625
7629
|
};
|
7626
|
-
var stdin_default$
|
7627
|
-
name: name$
|
7630
|
+
var stdin_default$R = defineComponent({
|
7631
|
+
name: name$L,
|
7628
7632
|
props: countDownProps,
|
7629
7633
|
emits: ["change", "finish"],
|
7630
7634
|
setup(props, {
|
@@ -7659,11 +7663,11 @@ var stdin_default$N = defineComponent({
|
|
7659
7663
|
});
|
7660
7664
|
return () => createVNode("div", {
|
7661
7665
|
"role": "timer",
|
7662
|
-
"class": bem$
|
7666
|
+
"class": bem$K()
|
7663
7667
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
7664
7668
|
}
|
7665
7669
|
});
|
7666
|
-
const CountDown = withInstall(stdin_default$
|
7670
|
+
const CountDown = withInstall(stdin_default$R);
|
7667
7671
|
function getDate(timeStamp) {
|
7668
7672
|
const date = new Date(timeStamp * 1e3);
|
7669
7673
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -7672,9 +7676,9 @@ function getDate(timeStamp) {
|
|
7672
7676
|
}
|
7673
7677
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
7674
7678
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
7675
|
-
const [name$
|
7676
|
-
var stdin_default$
|
7677
|
-
name: name$
|
7679
|
+
const [name$K, bem$J, t$a] = createNamespace("coupon");
|
7680
|
+
var stdin_default$Q = defineComponent({
|
7681
|
+
name: name$K,
|
7678
7682
|
props: {
|
7679
7683
|
chosen: Boolean,
|
7680
7684
|
coupon: makeRequiredProp(Object),
|
@@ -7718,34 +7722,34 @@ var stdin_default$M = defineComponent({
|
|
7718
7722
|
} = props;
|
7719
7723
|
const description = disabled && coupon.reason || coupon.description;
|
7720
7724
|
return createVNode("div", {
|
7721
|
-
"class": bem$
|
7725
|
+
"class": bem$J({
|
7722
7726
|
disabled
|
7723
7727
|
})
|
7724
7728
|
}, [createVNode("div", {
|
7725
|
-
"class": bem$
|
7729
|
+
"class": bem$J("content")
|
7726
7730
|
}, [createVNode("div", {
|
7727
|
-
"class": bem$
|
7731
|
+
"class": bem$J("head")
|
7728
7732
|
}, [createVNode("h2", {
|
7729
|
-
"class": bem$
|
7733
|
+
"class": bem$J("amount")
|
7730
7734
|
}, [faceAmount.value]), createVNode("p", {
|
7731
|
-
"class": bem$
|
7735
|
+
"class": bem$J("condition")
|
7732
7736
|
}, [coupon.condition || conditionMessage.value])]), createVNode("div", {
|
7733
|
-
"class": bem$
|
7737
|
+
"class": bem$J("body")
|
7734
7738
|
}, [createVNode("p", {
|
7735
|
-
"class": bem$
|
7739
|
+
"class": bem$J("name")
|
7736
7740
|
}, [coupon.name]), createVNode("p", {
|
7737
|
-
"class": bem$
|
7741
|
+
"class": bem$J("valid")
|
7738
7742
|
}, [validPeriod.value]), !disabled && createVNode(Checkbox, {
|
7739
|
-
"class": bem$
|
7743
|
+
"class": bem$J("corner"),
|
7740
7744
|
"modelValue": chosen
|
7741
7745
|
}, null)])]), description && createVNode("p", {
|
7742
|
-
"class": bem$
|
7746
|
+
"class": bem$J("description")
|
7743
7747
|
}, [description])]);
|
7744
7748
|
};
|
7745
7749
|
}
|
7746
7750
|
});
|
7747
|
-
const Coupon = withInstall(stdin_default$
|
7748
|
-
const [name$
|
7751
|
+
const Coupon = withInstall(stdin_default$Q);
|
7752
|
+
const [name$J, bem$I, t$9] = createNamespace("coupon-cell");
|
7749
7753
|
const couponCellProps = {
|
7750
7754
|
title: String,
|
7751
7755
|
border: truthProp,
|
@@ -7773,34 +7777,34 @@ function formatValue({
|
|
7773
7777
|
}
|
7774
7778
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
7775
7779
|
}
|
7776
|
-
var stdin_default$
|
7777
|
-
name: name$
|
7780
|
+
var stdin_default$P = defineComponent({
|
7781
|
+
name: name$J,
|
7778
7782
|
props: couponCellProps,
|
7779
7783
|
setup(props) {
|
7780
7784
|
return () => {
|
7781
7785
|
const selected = props.coupons[+props.chosenCoupon];
|
7782
7786
|
return createVNode(Cell, {
|
7783
|
-
"class": bem$
|
7787
|
+
"class": bem$I(),
|
7784
7788
|
"value": formatValue(props),
|
7785
7789
|
"title": props.title || t$9("title"),
|
7786
7790
|
"border": props.border,
|
7787
7791
|
"isLink": props.editable,
|
7788
|
-
"valueClass": bem$
|
7792
|
+
"valueClass": bem$I("value", {
|
7789
7793
|
selected
|
7790
7794
|
})
|
7791
7795
|
}, null);
|
7792
7796
|
};
|
7793
7797
|
}
|
7794
7798
|
});
|
7795
|
-
const CouponCell = withInstall(stdin_default$
|
7796
|
-
const [name$
|
7799
|
+
const CouponCell = withInstall(stdin_default$P);
|
7800
|
+
const [name$I, bem$H] = createNamespace("empty");
|
7797
7801
|
const emptyProps = {
|
7798
7802
|
image: makeStringProp("default"),
|
7799
7803
|
imageSize: [Number, String, Array],
|
7800
7804
|
description: String
|
7801
7805
|
};
|
7802
|
-
var stdin_default$
|
7803
|
-
name: name$
|
7806
|
+
var stdin_default$O = defineComponent({
|
7807
|
+
name: name$I,
|
7804
7808
|
props: emptyProps,
|
7805
7809
|
setup(props, {
|
7806
7810
|
slots
|
@@ -7809,14 +7813,14 @@ var stdin_default$K = defineComponent({
|
|
7809
7813
|
const description = slots.description ? slots.description() : props.description;
|
7810
7814
|
if (description) {
|
7811
7815
|
return createVNode("p", {
|
7812
|
-
"class": bem$
|
7816
|
+
"class": bem$H("description")
|
7813
7817
|
}, [description]);
|
7814
7818
|
}
|
7815
7819
|
};
|
7816
7820
|
const renderBottom = () => {
|
7817
7821
|
if (slots.default) {
|
7818
7822
|
return createVNode("div", {
|
7819
|
-
"class": bem$
|
7823
|
+
"class": bem$H("bottom")
|
7820
7824
|
}, [slots.default()]);
|
7821
7825
|
}
|
7822
7826
|
};
|
@@ -8101,15 +8105,15 @@ var stdin_default$K = defineComponent({
|
|
8101
8105
|
}, null);
|
8102
8106
|
};
|
8103
8107
|
return () => createVNode("div", {
|
8104
|
-
"class": bem$
|
8108
|
+
"class": bem$H()
|
8105
8109
|
}, [createVNode("div", {
|
8106
|
-
"class": bem$
|
8110
|
+
"class": bem$H("image"),
|
8107
8111
|
"style": getSizeStyle(props.imageSize)
|
8108
8112
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8109
8113
|
}
|
8110
8114
|
});
|
8111
|
-
const Empty = withInstall(stdin_default$
|
8112
|
-
const [name$
|
8115
|
+
const Empty = withInstall(stdin_default$O);
|
8116
|
+
const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
8113
8117
|
const couponListProps = {
|
8114
8118
|
code: makeStringProp(""),
|
8115
8119
|
coupons: makeArrayProp(),
|
@@ -8130,8 +8134,8 @@ const couponListProps = {
|
|
8130
8134
|
exchangeButtonLoading: Boolean,
|
8131
8135
|
exchangeButtonDisabled: Boolean
|
8132
8136
|
};
|
8133
|
-
var stdin_default$
|
8134
|
-
name: name$
|
8137
|
+
var stdin_default$N = defineComponent({
|
8138
|
+
name: name$H,
|
8135
8139
|
props: couponListProps,
|
8136
8140
|
emits: ["change", "exchange", "update:code"],
|
8137
8141
|
setup(props, {
|
@@ -8167,26 +8171,26 @@ var stdin_default$J = defineComponent({
|
|
8167
8171
|
"image": props.emptyImage
|
8168
8172
|
}, {
|
8169
8173
|
default: () => [createVNode("p", {
|
8170
|
-
"class": bem$
|
8174
|
+
"class": bem$G("empty-tip")
|
8171
8175
|
}, [t$8("noCoupon")])]
|
8172
8176
|
});
|
8173
8177
|
const renderExchangeBar = () => {
|
8174
8178
|
if (props.showExchangeBar) {
|
8175
8179
|
return createVNode("div", {
|
8176
8180
|
"ref": barRef,
|
8177
|
-
"class": bem$
|
8181
|
+
"class": bem$G("exchange-bar")
|
8178
8182
|
}, [createVNode(Field, {
|
8179
8183
|
"modelValue": currentCode.value,
|
8180
8184
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8181
8185
|
"clearable": true,
|
8182
8186
|
"border": false,
|
8183
|
-
"class": bem$
|
8187
|
+
"class": bem$G("field"),
|
8184
8188
|
"placeholder": props.inputPlaceholder || t$8("placeholder"),
|
8185
8189
|
"maxlength": "20"
|
8186
8190
|
}, null), createVNode(Button, {
|
8187
8191
|
"plain": true,
|
8188
8192
|
"type": "primary",
|
8189
|
-
"class": bem$
|
8193
|
+
"class": bem$G("exchange"),
|
8190
8194
|
"text": props.exchangeButtonText || t$8("exchange"),
|
8191
8195
|
"loading": props.exchangeButtonLoading,
|
8192
8196
|
"disabled": buttonDisabled.value,
|
@@ -8206,7 +8210,7 @@ var stdin_default$J = defineComponent({
|
|
8206
8210
|
default: () => {
|
8207
8211
|
var _a;
|
8208
8212
|
return [createVNode("div", {
|
8209
|
-
"class": bem$
|
8213
|
+
"class": bem$G("list", {
|
8210
8214
|
"with-bottom": props.showCloseButton
|
8211
8215
|
}),
|
8212
8216
|
"style": {
|
@@ -8235,7 +8239,7 @@ var stdin_default$J = defineComponent({
|
|
8235
8239
|
default: () => {
|
8236
8240
|
var _a;
|
8237
8241
|
return [createVNode("div", {
|
8238
|
-
"class": bem$
|
8242
|
+
"class": bem$G("list", {
|
8239
8243
|
"with-bottom": props.showCloseButton
|
8240
8244
|
}),
|
8241
8245
|
"style": {
|
@@ -8262,28 +8266,28 @@ var stdin_default$J = defineComponent({
|
|
8262
8266
|
});
|
8263
8267
|
return () => createVNode("div", {
|
8264
8268
|
"ref": root,
|
8265
|
-
"class": bem$
|
8269
|
+
"class": bem$G()
|
8266
8270
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
8267
8271
|
"active": activeTab.value,
|
8268
8272
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
8269
|
-
"class": bem$
|
8273
|
+
"class": bem$G("tab")
|
8270
8274
|
}, {
|
8271
8275
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
8272
8276
|
}), createVNode("div", {
|
8273
|
-
"class": bem$
|
8277
|
+
"class": bem$G("bottom")
|
8274
8278
|
}, [withDirectives(createVNode(Button, {
|
8275
8279
|
"round": true,
|
8276
8280
|
"block": true,
|
8277
8281
|
"type": "primary",
|
8278
|
-
"class": bem$
|
8282
|
+
"class": bem$G("close"),
|
8279
8283
|
"text": props.closeButtonText || t$8("close"),
|
8280
8284
|
"onClick": () => emit("change", -1)
|
8281
8285
|
}, null), [[vShow, props.showCloseButton]])])]);
|
8282
8286
|
}
|
8283
8287
|
});
|
8284
|
-
const CouponList = withInstall(stdin_default$
|
8288
|
+
const CouponList = withInstall(stdin_default$N);
|
8285
8289
|
const currentYear = new Date().getFullYear();
|
8286
|
-
const [name$
|
8290
|
+
const [name$G] = createNamespace("date-picker");
|
8287
8291
|
const datePickerProps = extend({}, sharedProps, {
|
8288
8292
|
columnsType: {
|
8289
8293
|
type: Array,
|
@@ -8300,8 +8304,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
8300
8304
|
validator: isDate
|
8301
8305
|
}
|
8302
8306
|
});
|
8303
|
-
var stdin_default$
|
8304
|
-
name: name$
|
8307
|
+
var stdin_default$M = defineComponent({
|
8308
|
+
name: name$G,
|
8305
8309
|
props: datePickerProps,
|
8306
8310
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
8307
8311
|
setup(props, {
|
@@ -8359,7 +8363,10 @@ var stdin_default$I = defineComponent({
|
|
8359
8363
|
case "day":
|
8360
8364
|
return genDayOptions();
|
8361
8365
|
default:
|
8362
|
-
|
8366
|
+
if (process.env.NODE_ENV !== "production") {
|
8367
|
+
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
8368
|
+
}
|
8369
|
+
return [];
|
8363
8370
|
}
|
8364
8371
|
}));
|
8365
8372
|
watch(currentValues, (newValues) => {
|
@@ -8388,8 +8395,8 @@ var stdin_default$I = defineComponent({
|
|
8388
8395
|
}, pick(props, pickerInheritKeys)), slots);
|
8389
8396
|
}
|
8390
8397
|
});
|
8391
|
-
const DatePicker = withInstall(stdin_default$
|
8392
|
-
const [name$
|
8398
|
+
const DatePicker = withInstall(stdin_default$M);
|
8399
|
+
const [name$F, bem$F, t$7] = createNamespace("dialog");
|
8393
8400
|
const dialogProps = extend({}, popupSharedProps, {
|
8394
8401
|
title: String,
|
8395
8402
|
theme: String,
|
@@ -8412,8 +8419,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8412
8419
|
closeOnClickOverlay: Boolean
|
8413
8420
|
});
|
8414
8421
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8415
|
-
var stdin_default$
|
8416
|
-
name: name$
|
8422
|
+
var stdin_default$L = defineComponent({
|
8423
|
+
name: name$F,
|
8417
8424
|
props: dialogProps,
|
8418
8425
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8419
8426
|
setup(props, {
|
@@ -8470,7 +8477,7 @@ var stdin_default$H = defineComponent({
|
|
8470
8477
|
const title = slots.title ? slots.title() : props.title;
|
8471
8478
|
if (title) {
|
8472
8479
|
return createVNode("div", {
|
8473
|
-
"class": bem$
|
8480
|
+
"class": bem$F("header", {
|
8474
8481
|
isolated: !props.message && !slots.default
|
8475
8482
|
})
|
8476
8483
|
}, [title]);
|
@@ -8482,7 +8489,7 @@ var stdin_default$H = defineComponent({
|
|
8482
8489
|
allowHtml,
|
8483
8490
|
messageAlign
|
8484
8491
|
} = props;
|
8485
|
-
const classNames = bem$
|
8492
|
+
const classNames = bem$F("message", {
|
8486
8493
|
"has-title": hasTitle,
|
8487
8494
|
[messageAlign]: messageAlign
|
8488
8495
|
});
|
@@ -8500,7 +8507,7 @@ var stdin_default$H = defineComponent({
|
|
8500
8507
|
const renderContent = () => {
|
8501
8508
|
if (slots.default) {
|
8502
8509
|
return createVNode("div", {
|
8503
|
-
"class": bem$
|
8510
|
+
"class": bem$F("content")
|
8504
8511
|
}, [slots.default()]);
|
8505
8512
|
}
|
8506
8513
|
const {
|
@@ -8512,18 +8519,18 @@ var stdin_default$H = defineComponent({
|
|
8512
8519
|
const hasTitle = !!(title || slots.title);
|
8513
8520
|
return createVNode("div", {
|
8514
8521
|
"key": allowHtml ? 1 : 0,
|
8515
|
-
"class": bem$
|
8522
|
+
"class": bem$F("content", {
|
8516
8523
|
isolated: !hasTitle
|
8517
8524
|
})
|
8518
8525
|
}, [renderMessage(hasTitle)]);
|
8519
8526
|
}
|
8520
8527
|
};
|
8521
8528
|
const renderButtons = () => createVNode("div", {
|
8522
|
-
"class": [BORDER_TOP, bem$
|
8529
|
+
"class": [BORDER_TOP, bem$F("footer")]
|
8523
8530
|
}, [props.showCancelButton && createVNode(Button, {
|
8524
8531
|
"size": "large",
|
8525
8532
|
"text": props.cancelButtonText || t$7("cancel"),
|
8526
|
-
"class": bem$
|
8533
|
+
"class": bem$F("cancel"),
|
8527
8534
|
"style": {
|
8528
8535
|
color: props.cancelButtonColor
|
8529
8536
|
},
|
@@ -8533,7 +8540,7 @@ var stdin_default$H = defineComponent({
|
|
8533
8540
|
}, null), props.showConfirmButton && createVNode(Button, {
|
8534
8541
|
"size": "large",
|
8535
8542
|
"text": props.confirmButtonText || t$7("confirm"),
|
8536
|
-
"class": [bem$
|
8543
|
+
"class": [bem$F("confirm"), {
|
8537
8544
|
[BORDER_LEFT]: props.showCancelButton
|
8538
8545
|
}],
|
8539
8546
|
"style": {
|
@@ -8544,12 +8551,12 @@ var stdin_default$H = defineComponent({
|
|
8544
8551
|
"onClick": onConfirm
|
8545
8552
|
}, null)]);
|
8546
8553
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
8547
|
-
"class": bem$
|
8554
|
+
"class": bem$F("footer")
|
8548
8555
|
}, {
|
8549
8556
|
default: () => [props.showCancelButton && createVNode(ActionBarButton, {
|
8550
8557
|
"type": "warning",
|
8551
8558
|
"text": props.cancelButtonText || t$7("cancel"),
|
8552
|
-
"class": bem$
|
8559
|
+
"class": bem$F("cancel"),
|
8553
8560
|
"color": props.cancelButtonColor,
|
8554
8561
|
"loading": loading.cancel,
|
8555
8562
|
"disabled": props.cancelButtonDisabled,
|
@@ -8557,7 +8564,7 @@ var stdin_default$H = defineComponent({
|
|
8557
8564
|
}, null), props.showConfirmButton && createVNode(ActionBarButton, {
|
8558
8565
|
"type": "danger",
|
8559
8566
|
"text": props.confirmButtonText || t$7("confirm"),
|
8560
|
-
"class": bem$
|
8567
|
+
"class": bem$F("confirm"),
|
8561
8568
|
"color": props.confirmButtonColor,
|
8562
8569
|
"loading": loading.confirm,
|
8563
8570
|
"disabled": props.confirmButtonDisabled,
|
@@ -8581,7 +8588,7 @@ var stdin_default$H = defineComponent({
|
|
8581
8588
|
return createVNode(Popup, mergeProps({
|
8582
8589
|
"ref": root,
|
8583
8590
|
"role": "dialog",
|
8584
|
-
"class": [bem$
|
8591
|
+
"class": [bem$F([theme]), className],
|
8585
8592
|
"style": {
|
8586
8593
|
width: addUnit(width)
|
8587
8594
|
},
|
@@ -8631,7 +8638,7 @@ function initInstance$2() {
|
|
8631
8638
|
state,
|
8632
8639
|
toggle
|
8633
8640
|
} = usePopupState();
|
8634
|
-
return () => createVNode(stdin_default$
|
8641
|
+
return () => createVNode(stdin_default$L, mergeProps(state, {
|
8635
8642
|
"onUpdate:show": toggle
|
8636
8643
|
}), null);
|
8637
8644
|
}
|
@@ -8669,15 +8676,15 @@ const closeDialog = () => {
|
|
8669
8676
|
instance$2.toggle(false);
|
8670
8677
|
}
|
8671
8678
|
};
|
8672
|
-
const Dialog = withInstall(stdin_default$
|
8673
|
-
const [name$
|
8679
|
+
const Dialog = withInstall(stdin_default$L);
|
8680
|
+
const [name$E, bem$E] = createNamespace("divider");
|
8674
8681
|
const dividerProps = {
|
8675
8682
|
dashed: Boolean,
|
8676
8683
|
hairline: truthProp,
|
8677
8684
|
contentPosition: makeStringProp("center")
|
8678
8685
|
};
|
8679
|
-
var stdin_default$
|
8680
|
-
name: name$
|
8686
|
+
var stdin_default$K = defineComponent({
|
8687
|
+
name: name$E,
|
8681
8688
|
props: dividerProps,
|
8682
8689
|
setup(props, {
|
8683
8690
|
slots
|
@@ -8686,7 +8693,7 @@ var stdin_default$G = defineComponent({
|
|
8686
8693
|
var _a;
|
8687
8694
|
return createVNode("div", {
|
8688
8695
|
"role": "separator",
|
8689
|
-
"class": bem$
|
8696
|
+
"class": bem$E({
|
8690
8697
|
dashed: props.dashed,
|
8691
8698
|
hairline: props.hairline,
|
8692
8699
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -8695,8 +8702,8 @@ var stdin_default$G = defineComponent({
|
|
8695
8702
|
};
|
8696
8703
|
}
|
8697
8704
|
});
|
8698
|
-
const Divider = withInstall(stdin_default$
|
8699
|
-
const [name$
|
8705
|
+
const Divider = withInstall(stdin_default$K);
|
8706
|
+
const [name$D, bem$D] = createNamespace("dropdown-menu");
|
8700
8707
|
const dropdownMenuProps = {
|
8701
8708
|
overlay: truthProp,
|
8702
8709
|
zIndex: numericProp,
|
@@ -8706,9 +8713,9 @@ const dropdownMenuProps = {
|
|
8706
8713
|
closeOnClickOutside: truthProp,
|
8707
8714
|
closeOnClickOverlay: truthProp
|
8708
8715
|
};
|
8709
|
-
const DROPDOWN_KEY = Symbol(name$
|
8710
|
-
var stdin_default$
|
8711
|
-
name: name$
|
8716
|
+
const DROPDOWN_KEY = Symbol(name$D);
|
8717
|
+
var stdin_default$J = defineComponent({
|
8718
|
+
name: name$D,
|
8712
8719
|
props: dropdownMenuProps,
|
8713
8720
|
setup(props, {
|
8714
8721
|
slots
|
@@ -8776,7 +8783,7 @@ var stdin_default$F = defineComponent({
|
|
8776
8783
|
"id": `${id}-${index}`,
|
8777
8784
|
"role": "button",
|
8778
8785
|
"tabindex": disabled ? void 0 : 0,
|
8779
|
-
"class": [bem$
|
8786
|
+
"class": [bem$D("item", {
|
8780
8787
|
disabled
|
8781
8788
|
}), {
|
8782
8789
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -8787,7 +8794,7 @@ var stdin_default$F = defineComponent({
|
|
8787
8794
|
}
|
8788
8795
|
}
|
8789
8796
|
}, [createVNode("span", {
|
8790
|
-
"class": [bem$
|
8797
|
+
"class": [bem$D("title", {
|
8791
8798
|
down: showPopup === (props.direction === "down"),
|
8792
8799
|
active: showPopup
|
8793
8800
|
}), titleClass],
|
@@ -8812,18 +8819,18 @@ var stdin_default$F = defineComponent({
|
|
8812
8819
|
var _a;
|
8813
8820
|
return createVNode("div", {
|
8814
8821
|
"ref": root,
|
8815
|
-
"class": bem$
|
8822
|
+
"class": bem$D()
|
8816
8823
|
}, [createVNode("div", {
|
8817
8824
|
"ref": barRef,
|
8818
8825
|
"style": barStyle.value,
|
8819
|
-
"class": bem$
|
8826
|
+
"class": bem$D("bar", {
|
8820
8827
|
opened: opened.value
|
8821
8828
|
})
|
8822
8829
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8823
8830
|
};
|
8824
8831
|
}
|
8825
8832
|
});
|
8826
|
-
const [name$
|
8833
|
+
const [name$C, bem$C] = createNamespace("dropdown-item");
|
8827
8834
|
const dropdownItemProps = {
|
8828
8835
|
title: String,
|
8829
8836
|
options: makeArrayProp(),
|
@@ -8833,8 +8840,8 @@ const dropdownItemProps = {
|
|
8833
8840
|
modelValue: unknownProp,
|
8834
8841
|
titleClass: unknownProp
|
8835
8842
|
};
|
8836
|
-
var stdin_default$
|
8837
|
-
name: name$
|
8843
|
+
var stdin_default$I = defineComponent({
|
8844
|
+
name: name$C,
|
8838
8845
|
props: dropdownItemProps,
|
8839
8846
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8840
8847
|
setup(props, {
|
@@ -8904,7 +8911,7 @@ var stdin_default$E = defineComponent({
|
|
8904
8911
|
const renderIcon = () => {
|
8905
8912
|
if (active) {
|
8906
8913
|
return createVNode(Icon, {
|
8907
|
-
"class": bem$
|
8914
|
+
"class": bem$C("icon"),
|
8908
8915
|
"color": activeColor,
|
8909
8916
|
"name": "success"
|
8910
8917
|
}, null);
|
@@ -8915,7 +8922,7 @@ var stdin_default$E = defineComponent({
|
|
8915
8922
|
"key": option.value,
|
8916
8923
|
"icon": option.icon,
|
8917
8924
|
"title": option.text,
|
8918
|
-
"class": bem$
|
8925
|
+
"class": bem$C("option", {
|
8919
8926
|
active
|
8920
8927
|
}),
|
8921
8928
|
"style": {
|
@@ -8947,13 +8954,13 @@ var stdin_default$E = defineComponent({
|
|
8947
8954
|
}
|
8948
8955
|
return withDirectives(createVNode("div", {
|
8949
8956
|
"style": style,
|
8950
|
-
"class": bem$
|
8957
|
+
"class": bem$C([direction]),
|
8951
8958
|
"onClick": onClickWrapper
|
8952
8959
|
}, [createVNode(Popup, {
|
8953
8960
|
"show": state.showPopup,
|
8954
8961
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8955
8962
|
"role": "menu",
|
8956
|
-
"class": bem$
|
8963
|
+
"class": bem$C("content"),
|
8957
8964
|
"overlay": overlay,
|
8958
8965
|
"position": direction === "down" ? "top" : "bottom",
|
8959
8966
|
"duration": state.transition ? duration : 0,
|
@@ -8991,9 +8998,9 @@ var stdin_default$E = defineComponent({
|
|
8991
8998
|
};
|
8992
8999
|
}
|
8993
9000
|
});
|
8994
|
-
const DropdownItem = withInstall(stdin_default$
|
8995
|
-
const DropdownMenu = withInstall(stdin_default$
|
8996
|
-
const [name$
|
9001
|
+
const DropdownItem = withInstall(stdin_default$I);
|
9002
|
+
const DropdownMenu = withInstall(stdin_default$J);
|
9003
|
+
const [name$B, bem$B] = createNamespace("grid");
|
8997
9004
|
const gridProps = {
|
8998
9005
|
square: Boolean,
|
8999
9006
|
center: truthProp,
|
@@ -9005,9 +9012,9 @@ const gridProps = {
|
|
9005
9012
|
clickable: Boolean,
|
9006
9013
|
columnNum: makeNumericProp(4)
|
9007
9014
|
};
|
9008
|
-
const GRID_KEY = Symbol(name$
|
9009
|
-
var stdin_default$
|
9010
|
-
name: name$
|
9015
|
+
const GRID_KEY = Symbol(name$B);
|
9016
|
+
var stdin_default$H = defineComponent({
|
9017
|
+
name: name$B,
|
9011
9018
|
props: gridProps,
|
9012
9019
|
setup(props, {
|
9013
9020
|
slots
|
@@ -9024,15 +9031,15 @@ var stdin_default$D = defineComponent({
|
|
9024
9031
|
"style": {
|
9025
9032
|
paddingLeft: addUnit(props.gutter)
|
9026
9033
|
},
|
9027
|
-
"class": [bem$
|
9034
|
+
"class": [bem$B(), {
|
9028
9035
|
[BORDER_TOP]: props.border && !props.gutter
|
9029
9036
|
}]
|
9030
9037
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9031
9038
|
};
|
9032
9039
|
}
|
9033
9040
|
});
|
9034
|
-
const Grid = withInstall(stdin_default$
|
9035
|
-
const [name$
|
9041
|
+
const Grid = withInstall(stdin_default$H);
|
9042
|
+
const [name$A, bem$A] = createNamespace("grid-item");
|
9036
9043
|
const gridItemProps = extend({}, routeProps, {
|
9037
9044
|
dot: Boolean,
|
9038
9045
|
text: String,
|
@@ -9042,8 +9049,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
9042
9049
|
iconPrefix: String,
|
9043
9050
|
badgeProps: Object
|
9044
9051
|
});
|
9045
|
-
var stdin_default$
|
9046
|
-
name: name$
|
9052
|
+
var stdin_default$G = defineComponent({
|
9053
|
+
name: name$A,
|
9047
9054
|
props: gridItemProps,
|
9048
9055
|
setup(props, {
|
9049
9056
|
slots
|
@@ -9109,7 +9116,7 @@ var stdin_default$C = defineComponent({
|
|
9109
9116
|
"name": props.icon,
|
9110
9117
|
"size": parent.props.iconSize,
|
9111
9118
|
"badge": props.badge,
|
9112
|
-
"class": bem$
|
9119
|
+
"class": bem$A("icon"),
|
9113
9120
|
"color": props.iconColor,
|
9114
9121
|
"badgeProps": props.badgeProps,
|
9115
9122
|
"classPrefix": props.iconPrefix
|
@@ -9122,7 +9129,7 @@ var stdin_default$C = defineComponent({
|
|
9122
9129
|
}
|
9123
9130
|
if (props.text) {
|
9124
9131
|
return createVNode("span", {
|
9125
|
-
"class": bem$
|
9132
|
+
"class": bem$A("text")
|
9126
9133
|
}, [props.text]);
|
9127
9134
|
}
|
9128
9135
|
};
|
@@ -9142,7 +9149,7 @@ var stdin_default$C = defineComponent({
|
|
9142
9149
|
direction,
|
9143
9150
|
clickable
|
9144
9151
|
} = parent.props;
|
9145
|
-
const classes = [bem$
|
9152
|
+
const classes = [bem$A("content", [direction, {
|
9146
9153
|
center,
|
9147
9154
|
square,
|
9148
9155
|
reverse,
|
@@ -9152,7 +9159,7 @@ var stdin_default$C = defineComponent({
|
|
9152
9159
|
[BORDER]: border
|
9153
9160
|
}];
|
9154
9161
|
return createVNode("div", {
|
9155
|
-
"class": [bem$
|
9162
|
+
"class": [bem$A({
|
9156
9163
|
square
|
9157
9164
|
})],
|
9158
9165
|
"style": rootStyle.value
|
@@ -9166,10 +9173,10 @@ var stdin_default$C = defineComponent({
|
|
9166
9173
|
};
|
9167
9174
|
}
|
9168
9175
|
});
|
9169
|
-
const GridItem = withInstall(stdin_default$
|
9176
|
+
const GridItem = withInstall(stdin_default$G);
|
9170
9177
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9171
|
-
const bem$
|
9172
|
-
var stdin_default$
|
9178
|
+
const bem$z = createNamespace("image-preview")[1];
|
9179
|
+
var stdin_default$F = defineComponent({
|
9173
9180
|
props: {
|
9174
9181
|
src: String,
|
9175
9182
|
show: Boolean,
|
@@ -9179,7 +9186,7 @@ var stdin_default$B = defineComponent({
|
|
9179
9186
|
rootWidth: makeRequiredProp(Number),
|
9180
9187
|
rootHeight: makeRequiredProp(Number)
|
9181
9188
|
},
|
9182
|
-
emits: ["scale", "close"],
|
9189
|
+
emits: ["scale", "close", "longPress"],
|
9183
9190
|
setup(props, {
|
9184
9191
|
emit,
|
9185
9192
|
slots
|
@@ -9326,16 +9333,20 @@ var stdin_default$B = defineComponent({
|
|
9326
9333
|
const deltaTime = Date.now() - touchStartTime;
|
9327
9334
|
const TAP_TIME = 250;
|
9328
9335
|
const TAP_OFFSET = 5;
|
9329
|
-
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET
|
9330
|
-
if (
|
9331
|
-
|
9332
|
-
|
9333
|
-
toggleScale();
|
9334
|
-
} else {
|
9335
|
-
doubleTapTimer = setTimeout(() => {
|
9336
|
-
emit("close");
|
9336
|
+
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
|
9337
|
+
if (deltaTime < TAP_TIME) {
|
9338
|
+
if (doubleTapTimer) {
|
9339
|
+
clearTimeout(doubleTapTimer);
|
9337
9340
|
doubleTapTimer = null;
|
9338
|
-
|
9341
|
+
toggleScale();
|
9342
|
+
} else {
|
9343
|
+
doubleTapTimer = setTimeout(() => {
|
9344
|
+
emit("close");
|
9345
|
+
doubleTapTimer = null;
|
9346
|
+
}, TAP_TIME);
|
9347
|
+
}
|
9348
|
+
} else if (deltaTime > LONG_PRESS_START_TIME) {
|
9349
|
+
emit("longPress");
|
9339
9350
|
}
|
9340
9351
|
}
|
9341
9352
|
};
|
@@ -9395,19 +9406,19 @@ var stdin_default$B = defineComponent({
|
|
9395
9406
|
};
|
9396
9407
|
return createVNode(SwipeItem, {
|
9397
9408
|
"ref": swipeItem,
|
9398
|
-
"class": bem$
|
9409
|
+
"class": bem$z("swipe-item"),
|
9399
9410
|
"onTouchstartPassive": onTouchStart,
|
9400
9411
|
"onTouchend": onTouchEnd,
|
9401
9412
|
"onTouchcancel": onTouchEnd
|
9402
9413
|
}, {
|
9403
9414
|
default: () => [slots.image ? createVNode("div", {
|
9404
|
-
"class": bem$
|
9415
|
+
"class": bem$z("image-wrap")
|
9405
9416
|
}, [slots.image({
|
9406
9417
|
src: props.src
|
9407
9418
|
})]) : createVNode(Image$1, {
|
9408
9419
|
"src": props.src,
|
9409
9420
|
"fit": "contain",
|
9410
|
-
"class": bem$
|
9421
|
+
"class": bem$z("image", {
|
9411
9422
|
vertical: vertical.value
|
9412
9423
|
}),
|
9413
9424
|
"style": imageStyle.value,
|
@@ -9417,7 +9428,7 @@ var stdin_default$B = defineComponent({
|
|
9417
9428
|
};
|
9418
9429
|
}
|
9419
9430
|
});
|
9420
|
-
const [name$
|
9431
|
+
const [name$z, bem$y] = createNamespace("image-preview");
|
9421
9432
|
const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
9422
9433
|
const imagePreviewProps = {
|
9423
9434
|
show: Boolean,
|
@@ -9440,10 +9451,10 @@ const imagePreviewProps = {
|
|
9440
9451
|
closeOnPopstate: truthProp,
|
9441
9452
|
closeIconPosition: makeStringProp("top-right")
|
9442
9453
|
};
|
9443
|
-
var stdin_default$
|
9444
|
-
name: name$
|
9454
|
+
var stdin_default$E = defineComponent({
|
9455
|
+
name: name$z,
|
9445
9456
|
props: imagePreviewProps,
|
9446
|
-
emits: ["scale", "close", "closed", "change", "update:show"],
|
9457
|
+
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
9447
9458
|
setup(props, {
|
9448
9459
|
emit,
|
9449
9460
|
slots
|
@@ -9479,7 +9490,7 @@ var stdin_default$A = defineComponent({
|
|
9479
9490
|
const renderIndex = () => {
|
9480
9491
|
if (props.showIndex) {
|
9481
9492
|
return createVNode("div", {
|
9482
|
-
"class": bem$
|
9493
|
+
"class": bem$y("index")
|
9483
9494
|
}, [slots.index ? slots.index({
|
9484
9495
|
index: state.active
|
9485
9496
|
}) : `${state.active + 1} / ${props.images.length}`]);
|
@@ -9488,7 +9499,7 @@ var stdin_default$A = defineComponent({
|
|
9488
9499
|
const renderCover = () => {
|
9489
9500
|
if (slots.cover) {
|
9490
9501
|
return createVNode("div", {
|
9491
|
-
"class": bem$
|
9502
|
+
"class": bem$y("cover")
|
9492
9503
|
}, [slots.cover()]);
|
9493
9504
|
}
|
9494
9505
|
};
|
@@ -9496,14 +9507,14 @@ var stdin_default$A = defineComponent({
|
|
9496
9507
|
"ref": swipeRef,
|
9497
9508
|
"lazyRender": true,
|
9498
9509
|
"loop": props.loop,
|
9499
|
-
"class": bem$
|
9510
|
+
"class": bem$y("swipe"),
|
9500
9511
|
"duration": props.swipeDuration,
|
9501
9512
|
"initialSwipe": props.startPosition,
|
9502
9513
|
"showIndicators": props.showIndicators,
|
9503
9514
|
"indicatorColor": "white",
|
9504
9515
|
"onChange": setActive
|
9505
9516
|
}, {
|
9506
|
-
default: () => [props.images.map((image) => createVNode(stdin_default$
|
9517
|
+
default: () => [props.images.map((image, index) => createVNode(stdin_default$F, {
|
9507
9518
|
"src": image,
|
9508
9519
|
"show": props.show,
|
9509
9520
|
"active": state.active,
|
@@ -9512,7 +9523,10 @@ var stdin_default$A = defineComponent({
|
|
9512
9523
|
"rootWidth": state.rootWidth,
|
9513
9524
|
"rootHeight": state.rootHeight,
|
9514
9525
|
"onScale": emitScale,
|
9515
|
-
"onClose": emitClose
|
9526
|
+
"onClose": emitClose,
|
9527
|
+
"onLongPress": () => emit("longPress", {
|
9528
|
+
index
|
9529
|
+
})
|
9516
9530
|
}, {
|
9517
9531
|
image: slots.image
|
9518
9532
|
}))]
|
@@ -9522,7 +9536,7 @@ var stdin_default$A = defineComponent({
|
|
9522
9536
|
return createVNode(Icon, {
|
9523
9537
|
"role": "button",
|
9524
9538
|
"name": props.closeIcon,
|
9525
|
-
"class": [bem$
|
9539
|
+
"class": [bem$y("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
9526
9540
|
"onClick": emitClose
|
9527
9541
|
}, null);
|
9528
9542
|
}
|
@@ -9559,8 +9573,8 @@ var stdin_default$A = defineComponent({
|
|
9559
9573
|
}
|
9560
9574
|
});
|
9561
9575
|
return () => createVNode(Popup, mergeProps({
|
9562
|
-
"class": [bem$
|
9563
|
-
"overlayClass": [bem$
|
9576
|
+
"class": [bem$y(), props.className],
|
9577
|
+
"overlayClass": [bem$y("overlay"), props.overlayClass],
|
9564
9578
|
"onClosed": onClosed,
|
9565
9579
|
"onUpdate:show": updateShow
|
9566
9580
|
}, pick(props, popupProps$1)), {
|
@@ -9604,7 +9618,7 @@ function initInstance$1() {
|
|
9604
9618
|
const onClosed = () => {
|
9605
9619
|
state.images = [];
|
9606
9620
|
};
|
9607
|
-
return () => createVNode(stdin_default$
|
9621
|
+
return () => createVNode(stdin_default$E, mergeProps(state, {
|
9608
9622
|
"onClosed": onClosed,
|
9609
9623
|
"onUpdate:show": toggle
|
9610
9624
|
}), null);
|
@@ -9625,13 +9639,13 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
9625
9639
|
instance$1.open(extend({}, defaultConfig, options));
|
9626
9640
|
return instance$1;
|
9627
9641
|
};
|
9628
|
-
const ImagePreview = withInstall(stdin_default$
|
9642
|
+
const ImagePreview = withInstall(stdin_default$E);
|
9629
9643
|
function genAlphabet() {
|
9630
9644
|
const charCodeOfA = "A".charCodeAt(0);
|
9631
9645
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
9632
9646
|
return indexList;
|
9633
9647
|
}
|
9634
|
-
const [name$
|
9648
|
+
const [name$y, bem$x] = createNamespace("index-bar");
|
9635
9649
|
const indexBarProps = {
|
9636
9650
|
sticky: truthProp,
|
9637
9651
|
zIndex: numericProp,
|
@@ -9643,9 +9657,9 @@ const indexBarProps = {
|
|
9643
9657
|
default: genAlphabet
|
9644
9658
|
}
|
9645
9659
|
};
|
9646
|
-
const INDEX_BAR_KEY = Symbol(name$
|
9647
|
-
var stdin_default$
|
9648
|
-
name: name$
|
9660
|
+
const INDEX_BAR_KEY = Symbol(name$y);
|
9661
|
+
var stdin_default$D = defineComponent({
|
9662
|
+
name: name$y,
|
9649
9663
|
props: indexBarProps,
|
9650
9664
|
emits: ["select", "change"],
|
9651
9665
|
setup(props, {
|
@@ -9757,7 +9771,7 @@ var stdin_default$z = defineComponent({
|
|
9757
9771
|
const renderIndexes = () => props.indexList.map((index) => {
|
9758
9772
|
const active = index === activeAnchor.value;
|
9759
9773
|
return createVNode("span", {
|
9760
|
-
"class": bem$
|
9774
|
+
"class": bem$x("index", {
|
9761
9775
|
active
|
9762
9776
|
}),
|
9763
9777
|
"style": active ? highlightStyle.value : void 0,
|
@@ -9818,7 +9832,7 @@ var stdin_default$z = defineComponent({
|
|
9818
9832
|
};
|
9819
9833
|
const renderSidebar = () => createVNode("div", {
|
9820
9834
|
"ref": sidebar,
|
9821
|
-
"class": bem$
|
9835
|
+
"class": bem$x("sidebar"),
|
9822
9836
|
"style": sidebarStyle.value,
|
9823
9837
|
"onClick": onClickSidebar,
|
9824
9838
|
"onTouchstartPassive": touch.start
|
@@ -9833,7 +9847,7 @@ var stdin_default$z = defineComponent({
|
|
9833
9847
|
var _a;
|
9834
9848
|
return createVNode("div", {
|
9835
9849
|
"ref": root,
|
9836
|
-
"class": bem$
|
9850
|
+
"class": bem$x()
|
9837
9851
|
}, [props.teleport ? createVNode(Teleport, {
|
9838
9852
|
"to": props.teleport
|
9839
9853
|
}, {
|
@@ -9842,12 +9856,12 @@ var stdin_default$z = defineComponent({
|
|
9842
9856
|
};
|
9843
9857
|
}
|
9844
9858
|
});
|
9845
|
-
const [name$
|
9859
|
+
const [name$x, bem$w] = createNamespace("index-anchor");
|
9846
9860
|
const indexAnchorProps = {
|
9847
9861
|
index: numericProp
|
9848
9862
|
};
|
9849
|
-
var stdin_default$
|
9850
|
-
name: name$
|
9863
|
+
var stdin_default$C = defineComponent({
|
9864
|
+
name: name$x,
|
9851
9865
|
props: indexAnchorProps,
|
9852
9866
|
setup(props, {
|
9853
9867
|
slots
|
@@ -9910,7 +9924,7 @@ var stdin_default$y = defineComponent({
|
|
9910
9924
|
}
|
9911
9925
|
}, [createVNode("div", {
|
9912
9926
|
"style": anchorStyle.value,
|
9913
|
-
"class": [bem$
|
9927
|
+
"class": [bem$w({
|
9914
9928
|
sticky
|
9915
9929
|
}), {
|
9916
9930
|
[BORDER_BOTTOM]: sticky
|
@@ -9919,9 +9933,9 @@ var stdin_default$y = defineComponent({
|
|
9919
9933
|
};
|
9920
9934
|
}
|
9921
9935
|
});
|
9922
|
-
const IndexAnchor = withInstall(stdin_default$
|
9923
|
-
const IndexBar = withInstall(stdin_default$
|
9924
|
-
const [name$
|
9936
|
+
const IndexAnchor = withInstall(stdin_default$C);
|
9937
|
+
const IndexBar = withInstall(stdin_default$D);
|
9938
|
+
const [name$w, bem$v, t$6] = createNamespace("list");
|
9925
9939
|
const listProps = {
|
9926
9940
|
error: Boolean,
|
9927
9941
|
offset: makeNumericProp(300),
|
@@ -9933,8 +9947,8 @@ const listProps = {
|
|
9933
9947
|
finishedText: String,
|
9934
9948
|
immediateCheck: truthProp
|
9935
9949
|
};
|
9936
|
-
var stdin_default$
|
9937
|
-
name: name$
|
9950
|
+
var stdin_default$B = defineComponent({
|
9951
|
+
name: name$w,
|
9938
9952
|
props: listProps,
|
9939
9953
|
emits: ["load", "update:error", "update:loading"],
|
9940
9954
|
setup(props, {
|
@@ -9978,7 +9992,7 @@ var stdin_default$x = defineComponent({
|
|
9978
9992
|
const text = slots.finished ? slots.finished() : props.finishedText;
|
9979
9993
|
if (text) {
|
9980
9994
|
return createVNode("div", {
|
9981
|
-
"class": bem$
|
9995
|
+
"class": bem$v("finished-text")
|
9982
9996
|
}, [text]);
|
9983
9997
|
}
|
9984
9998
|
}
|
@@ -9993,7 +10007,7 @@ var stdin_default$x = defineComponent({
|
|
9993
10007
|
if (text) {
|
9994
10008
|
return createVNode("div", {
|
9995
10009
|
"role": "button",
|
9996
|
-
"class": bem$
|
10010
|
+
"class": bem$v("error-text"),
|
9997
10011
|
"tabindex": 0,
|
9998
10012
|
"onClick": clickErrorText
|
9999
10013
|
}, [text]);
|
@@ -10003,9 +10017,9 @@ var stdin_default$x = defineComponent({
|
|
10003
10017
|
const renderLoading = () => {
|
10004
10018
|
if (loading.value && !props.finished) {
|
10005
10019
|
return createVNode("div", {
|
10006
|
-
"class": bem$
|
10020
|
+
"class": bem$v("loading")
|
10007
10021
|
}, [slots.loading ? slots.loading() : createVNode(Loading, {
|
10008
|
-
"class": bem$
|
10022
|
+
"class": bem$v("loading-icon")
|
10009
10023
|
}, {
|
10010
10024
|
default: () => [props.loadingText || t$6("loading")]
|
10011
10025
|
})]);
|
@@ -10039,19 +10053,19 @@ var stdin_default$x = defineComponent({
|
|
10039
10053
|
const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
10040
10054
|
const Placeholder = createVNode("div", {
|
10041
10055
|
"ref": placeholder,
|
10042
|
-
"class": bem$
|
10056
|
+
"class": bem$v("placeholder")
|
10043
10057
|
}, null);
|
10044
10058
|
return createVNode("div", {
|
10045
10059
|
"ref": root,
|
10046
10060
|
"role": "feed",
|
10047
|
-
"class": bem$
|
10061
|
+
"class": bem$v(),
|
10048
10062
|
"aria-busy": loading.value
|
10049
10063
|
}, [props.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === "up" ? Content : Placeholder]);
|
10050
10064
|
};
|
10051
10065
|
}
|
10052
10066
|
});
|
10053
|
-
const List = withInstall(stdin_default$
|
10054
|
-
const [name$
|
10067
|
+
const List = withInstall(stdin_default$B);
|
10068
|
+
const [name$v, bem$u] = createNamespace("nav-bar");
|
10055
10069
|
const navBarProps = {
|
10056
10070
|
title: String,
|
10057
10071
|
fixed: Boolean,
|
@@ -10064,8 +10078,8 @@ const navBarProps = {
|
|
10064
10078
|
safeAreaInsetTop: Boolean,
|
10065
10079
|
clickable: truthProp
|
10066
10080
|
};
|
10067
|
-
var stdin_default$
|
10068
|
-
name: name$
|
10081
|
+
var stdin_default$A = defineComponent({
|
10082
|
+
name: name$v,
|
10069
10083
|
props: navBarProps,
|
10070
10084
|
emits: ["clickLeft", "clickRight"],
|
10071
10085
|
setup(props, {
|
@@ -10073,7 +10087,7 @@ var stdin_default$w = defineComponent({
|
|
10073
10087
|
slots
|
10074
10088
|
}) {
|
10075
10089
|
const navBarRef = ref();
|
10076
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
10090
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$u);
|
10077
10091
|
const onClickLeft = (event) => emit("clickLeft", event);
|
10078
10092
|
const onClickRight = (event) => emit("clickRight", event);
|
10079
10093
|
const renderLeft = () => {
|
@@ -10081,10 +10095,10 @@ var stdin_default$w = defineComponent({
|
|
10081
10095
|
return slots.left();
|
10082
10096
|
}
|
10083
10097
|
return [props.leftArrow && createVNode(Icon, {
|
10084
|
-
"class": bem$
|
10098
|
+
"class": bem$u("arrow"),
|
10085
10099
|
"name": "arrow-left"
|
10086
10100
|
}, null), props.leftText && createVNode("span", {
|
10087
|
-
"class": bem$
|
10101
|
+
"class": bem$u("text")
|
10088
10102
|
}, [props.leftText])];
|
10089
10103
|
};
|
10090
10104
|
const renderRight = () => {
|
@@ -10092,7 +10106,7 @@ var stdin_default$w = defineComponent({
|
|
10092
10106
|
return slots.right();
|
10093
10107
|
}
|
10094
10108
|
return createVNode("span", {
|
10095
|
-
"class": bem$
|
10109
|
+
"class": bem$u("text")
|
10096
10110
|
}, [props.rightText]);
|
10097
10111
|
};
|
10098
10112
|
const renderNavBar = () => {
|
@@ -10108,21 +10122,21 @@ var stdin_default$w = defineComponent({
|
|
10108
10122
|
return createVNode("div", {
|
10109
10123
|
"ref": navBarRef,
|
10110
10124
|
"style": style,
|
10111
|
-
"class": [bem$
|
10125
|
+
"class": [bem$u({
|
10112
10126
|
fixed
|
10113
10127
|
}), {
|
10114
10128
|
[BORDER_BOTTOM]: border,
|
10115
10129
|
"van-safe-area-top": props.safeAreaInsetTop
|
10116
10130
|
}]
|
10117
10131
|
}, [createVNode("div", {
|
10118
|
-
"class": bem$
|
10132
|
+
"class": bem$u("content")
|
10119
10133
|
}, [hasLeft && createVNode("div", {
|
10120
|
-
"class": [bem$
|
10134
|
+
"class": [bem$u("left"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10121
10135
|
"onClick": onClickLeft
|
10122
10136
|
}, [renderLeft()]), createVNode("div", {
|
10123
|
-
"class": [bem$
|
10137
|
+
"class": [bem$u("title"), "van-ellipsis"]
|
10124
10138
|
}, [slots.title ? slots.title() : title]), hasRight && createVNode("div", {
|
10125
|
-
"class": [bem$
|
10139
|
+
"class": [bem$u("right"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10126
10140
|
"onClick": onClickRight
|
10127
10141
|
}, [renderRight()])])]);
|
10128
10142
|
};
|
@@ -10134,8 +10148,8 @@ var stdin_default$w = defineComponent({
|
|
10134
10148
|
};
|
10135
10149
|
}
|
10136
10150
|
});
|
10137
|
-
const NavBar = withInstall(stdin_default$
|
10138
|
-
const [name$
|
10151
|
+
const NavBar = withInstall(stdin_default$A);
|
10152
|
+
const [name$u, bem$t] = createNamespace("notice-bar");
|
10139
10153
|
const noticeBarProps = {
|
10140
10154
|
text: String,
|
10141
10155
|
mode: String,
|
@@ -10150,8 +10164,8 @@ const noticeBarProps = {
|
|
10150
10164
|
default: null
|
10151
10165
|
}
|
10152
10166
|
};
|
10153
|
-
var stdin_default$
|
10154
|
-
name: name$
|
10167
|
+
var stdin_default$z = defineComponent({
|
10168
|
+
name: name$u,
|
10155
10169
|
props: noticeBarProps,
|
10156
10170
|
emits: ["close", "replay"],
|
10157
10171
|
setup(props, {
|
@@ -10174,7 +10188,7 @@ var stdin_default$v = defineComponent({
|
|
10174
10188
|
}
|
10175
10189
|
if (props.leftIcon) {
|
10176
10190
|
return createVNode(Icon, {
|
10177
|
-
"class": bem$
|
10191
|
+
"class": bem$t("left-icon"),
|
10178
10192
|
"name": props.leftIcon
|
10179
10193
|
}, null);
|
10180
10194
|
}
|
@@ -10201,7 +10215,7 @@ var stdin_default$v = defineComponent({
|
|
10201
10215
|
if (name2) {
|
10202
10216
|
return createVNode(Icon, {
|
10203
10217
|
"name": name2,
|
10204
|
-
"class": bem$
|
10218
|
+
"class": bem$t("right-icon"),
|
10205
10219
|
"onClick": onClickRightIcon
|
10206
10220
|
}, null);
|
10207
10221
|
}
|
@@ -10226,11 +10240,11 @@ var stdin_default$v = defineComponent({
|
|
10226
10240
|
return createVNode("div", {
|
10227
10241
|
"ref": wrapRef,
|
10228
10242
|
"role": "marquee",
|
10229
|
-
"class": bem$
|
10243
|
+
"class": bem$t("wrap")
|
10230
10244
|
}, [createVNode("div", {
|
10231
10245
|
"ref": contentRef,
|
10232
10246
|
"style": style,
|
10233
|
-
"class": [bem$
|
10247
|
+
"class": [bem$t("content"), {
|
10234
10248
|
"van-ellipsis": ellipsis
|
10235
10249
|
}],
|
10236
10250
|
"onTransitionend": onTransitionEnd
|
@@ -10279,7 +10293,7 @@ var stdin_default$v = defineComponent({
|
|
10279
10293
|
} = props;
|
10280
10294
|
return withDirectives(createVNode("div", {
|
10281
10295
|
"role": "alert",
|
10282
|
-
"class": bem$
|
10296
|
+
"class": bem$t({
|
10283
10297
|
wrapable
|
10284
10298
|
}),
|
10285
10299
|
"style": {
|
@@ -10290,8 +10304,8 @@ var stdin_default$v = defineComponent({
|
|
10290
10304
|
};
|
10291
10305
|
}
|
10292
10306
|
});
|
10293
|
-
const NoticeBar = withInstall(stdin_default$
|
10294
|
-
const [name$
|
10307
|
+
const NoticeBar = withInstall(stdin_default$z);
|
10308
|
+
const [name$t, bem$s] = createNamespace("notify");
|
10295
10309
|
const notifyProps = extend({}, popupSharedProps, {
|
10296
10310
|
type: makeStringProp("danger"),
|
10297
10311
|
color: String,
|
@@ -10301,8 +10315,8 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
10301
10315
|
background: String,
|
10302
10316
|
lockScroll: Boolean
|
10303
10317
|
});
|
10304
|
-
var stdin_default$
|
10305
|
-
name: name$
|
10318
|
+
var stdin_default$y = defineComponent({
|
10319
|
+
name: name$t,
|
10306
10320
|
props: notifyProps,
|
10307
10321
|
emits: ["update:show"],
|
10308
10322
|
setup(props, {
|
@@ -10312,7 +10326,7 @@ var stdin_default$u = defineComponent({
|
|
10312
10326
|
const updateShow = (show) => emit("update:show", show);
|
10313
10327
|
return () => createVNode(Popup, {
|
10314
10328
|
"show": props.show,
|
10315
|
-
"class": [bem$
|
10329
|
+
"class": [bem$s([props.type]), props.className],
|
10316
10330
|
"style": {
|
10317
10331
|
color: props.color,
|
10318
10332
|
background: props.background
|
@@ -10342,7 +10356,7 @@ function initInstance() {
|
|
10342
10356
|
state,
|
10343
10357
|
toggle
|
10344
10358
|
} = usePopupState();
|
10345
|
-
return () => createVNode(stdin_default$
|
10359
|
+
return () => createVNode(stdin_default$y, mergeProps(state, {
|
10346
10360
|
"onUpdate:show": toggle
|
10347
10361
|
}), null);
|
10348
10362
|
}
|
@@ -10386,24 +10400,24 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
10386
10400
|
const resetNotifyDefaultOptions = () => {
|
10387
10401
|
currentOptions = getDefaultOptions();
|
10388
10402
|
};
|
10389
|
-
const Notify = withInstall(stdin_default$
|
10390
|
-
const [name$
|
10403
|
+
const Notify = withInstall(stdin_default$y);
|
10404
|
+
const [name$s, bem$r] = createNamespace("key");
|
10391
10405
|
const CollapseIcon = createVNode("svg", {
|
10392
|
-
"class": bem$
|
10406
|
+
"class": bem$r("collapse-icon"),
|
10393
10407
|
"viewBox": "0 0 30 24"
|
10394
10408
|
}, [createVNode("path", {
|
10395
10409
|
"d": "M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",
|
10396
10410
|
"fill": "currentColor"
|
10397
10411
|
}, null)]);
|
10398
10412
|
const DeleteIcon = createVNode("svg", {
|
10399
|
-
"class": bem$
|
10413
|
+
"class": bem$r("delete-icon"),
|
10400
10414
|
"viewBox": "0 0 32 22"
|
10401
10415
|
}, [createVNode("path", {
|
10402
10416
|
"d": "M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",
|
10403
10417
|
"fill": "currentColor"
|
10404
10418
|
}, null)]);
|
10405
|
-
var stdin_default$
|
10406
|
-
name: name$
|
10419
|
+
var stdin_default$x = defineComponent({
|
10420
|
+
name: name$s,
|
10407
10421
|
props: {
|
10408
10422
|
type: String,
|
10409
10423
|
text: numericProp,
|
@@ -10441,7 +10455,7 @@ var stdin_default$t = defineComponent({
|
|
10441
10455
|
const renderContent = () => {
|
10442
10456
|
if (props.loading) {
|
10443
10457
|
return createVNode(Loading, {
|
10444
|
-
"class": bem$
|
10458
|
+
"class": bem$r("loading-icon")
|
10445
10459
|
}, null);
|
10446
10460
|
}
|
10447
10461
|
const text = slots.default ? slots.default() : props.text;
|
@@ -10455,7 +10469,7 @@ var stdin_default$t = defineComponent({
|
|
10455
10469
|
}
|
10456
10470
|
};
|
10457
10471
|
return () => createVNode("div", {
|
10458
|
-
"class": bem$
|
10472
|
+
"class": bem$r("wrapper", {
|
10459
10473
|
wider: props.wider
|
10460
10474
|
}),
|
10461
10475
|
"onTouchstartPassive": onTouchStart,
|
@@ -10465,7 +10479,7 @@ var stdin_default$t = defineComponent({
|
|
10465
10479
|
}, [createVNode("div", {
|
10466
10480
|
"role": "button",
|
10467
10481
|
"tabindex": 0,
|
10468
|
-
"class": bem$
|
10482
|
+
"class": bem$r([props.color, {
|
10469
10483
|
large: props.large,
|
10470
10484
|
active: active.value,
|
10471
10485
|
delete: props.type === "delete"
|
@@ -10473,7 +10487,7 @@ var stdin_default$t = defineComponent({
|
|
10473
10487
|
}, [renderContent()])]);
|
10474
10488
|
}
|
10475
10489
|
});
|
10476
|
-
const [name$
|
10490
|
+
const [name$r, bem$q] = createNamespace("number-keyboard");
|
10477
10491
|
const numberKeyboardProps = {
|
10478
10492
|
show: Boolean,
|
10479
10493
|
title: String,
|
@@ -10505,8 +10519,8 @@ function shuffle(array) {
|
|
10505
10519
|
}
|
10506
10520
|
return array;
|
10507
10521
|
}
|
10508
|
-
var stdin_default$
|
10509
|
-
name: name$
|
10522
|
+
var stdin_default$w = defineComponent({
|
10523
|
+
name: name$r,
|
10510
10524
|
props: numberKeyboardProps,
|
10511
10525
|
emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
|
10512
10526
|
setup(props, {
|
@@ -10603,14 +10617,14 @@ var stdin_default$s = defineComponent({
|
|
10603
10617
|
return;
|
10604
10618
|
}
|
10605
10619
|
return createVNode("div", {
|
10606
|
-
"class": bem$
|
10620
|
+
"class": bem$q("header")
|
10607
10621
|
}, [leftSlot && createVNode("span", {
|
10608
|
-
"class": bem$
|
10622
|
+
"class": bem$q("title-left")
|
10609
10623
|
}, [leftSlot()]), title && createVNode("h2", {
|
10610
|
-
"class": bem$
|
10624
|
+
"class": bem$q("title")
|
10611
10625
|
}, [title]), showClose && createVNode("button", {
|
10612
10626
|
"type": "button",
|
10613
|
-
"class": [bem$
|
10627
|
+
"class": [bem$q("close"), HAPTICS_FEEDBACK],
|
10614
10628
|
"onClick": onClose
|
10615
10629
|
}, [closeButtonText])]);
|
10616
10630
|
};
|
@@ -10622,7 +10636,7 @@ var stdin_default$s = defineComponent({
|
|
10622
10636
|
if (key.type === "extra") {
|
10623
10637
|
keySlots.default = slots["extra-key"];
|
10624
10638
|
}
|
10625
|
-
return createVNode(stdin_default$
|
10639
|
+
return createVNode(stdin_default$x, {
|
10626
10640
|
"key": key.text,
|
10627
10641
|
"text": key.text,
|
10628
10642
|
"type": key.type,
|
@@ -10634,15 +10648,15 @@ var stdin_default$s = defineComponent({
|
|
10634
10648
|
const renderSidebar = () => {
|
10635
10649
|
if (props.theme === "custom") {
|
10636
10650
|
return createVNode("div", {
|
10637
|
-
"class": bem$
|
10638
|
-
}, [props.showDeleteKey && createVNode(stdin_default$
|
10651
|
+
"class": bem$q("sidebar")
|
10652
|
+
}, [props.showDeleteKey && createVNode(stdin_default$x, {
|
10639
10653
|
"large": true,
|
10640
10654
|
"text": props.deleteButtonText,
|
10641
10655
|
"type": "delete",
|
10642
10656
|
"onPress": onPress
|
10643
10657
|
}, {
|
10644
10658
|
delete: slots.delete
|
10645
|
-
}), createVNode(stdin_default$
|
10659
|
+
}), createVNode(stdin_default$x, {
|
10646
10660
|
"large": true,
|
10647
10661
|
"text": props.closeButtonText,
|
10648
10662
|
"type": "close",
|
@@ -10670,16 +10684,16 @@ var stdin_default$s = defineComponent({
|
|
10670
10684
|
default: () => [withDirectives(createVNode("div", {
|
10671
10685
|
"ref": root,
|
10672
10686
|
"style": getZIndexStyle(props.zIndex),
|
10673
|
-
"class": bem$
|
10687
|
+
"class": bem$q({
|
10674
10688
|
unfit: !props.safeAreaInsetBottom,
|
10675
10689
|
"with-title": !!Title
|
10676
10690
|
}),
|
10677
10691
|
"onAnimationend": onAnimationEnd,
|
10678
10692
|
"onTouchstartPassive": stopPropagation
|
10679
10693
|
}, [Title, createVNode("div", {
|
10680
|
-
"class": bem$
|
10694
|
+
"class": bem$q("body")
|
10681
10695
|
}, [createVNode("div", {
|
10682
|
-
"class": bem$
|
10696
|
+
"class": bem$q("keys")
|
10683
10697
|
}, [renderKeys()]), renderSidebar()])]), [[vShow, props.show]])]
|
10684
10698
|
});
|
10685
10699
|
if (props.teleport) {
|
@@ -10693,8 +10707,8 @@ var stdin_default$s = defineComponent({
|
|
10693
10707
|
};
|
10694
10708
|
}
|
10695
10709
|
});
|
10696
|
-
const NumberKeyboard = withInstall(stdin_default$
|
10697
|
-
const [name$
|
10710
|
+
const NumberKeyboard = withInstall(stdin_default$w);
|
10711
|
+
const [name$q, bem$p, t$5] = createNamespace("pagination");
|
10698
10712
|
const makePage = (number, text, active) => ({
|
10699
10713
|
number,
|
10700
10714
|
text,
|
@@ -10711,8 +10725,8 @@ const paginationProps = {
|
|
10711
10725
|
itemsPerPage: makeNumericProp(10),
|
10712
10726
|
forceEllipses: Boolean
|
10713
10727
|
};
|
10714
|
-
var stdin_default$
|
10715
|
-
name: name$
|
10728
|
+
var stdin_default$v = defineComponent({
|
10729
|
+
name: name$q,
|
10716
10730
|
props: paginationProps,
|
10717
10731
|
emits: ["change", "update:modelValue"],
|
10718
10732
|
setup(props, {
|
@@ -10774,7 +10788,7 @@ var stdin_default$r = defineComponent({
|
|
10774
10788
|
};
|
10775
10789
|
watchEffect(() => updateModelValue(props.modelValue));
|
10776
10790
|
const renderDesc = () => createVNode("li", {
|
10777
|
-
"class": bem$
|
10791
|
+
"class": bem$p("page-desc")
|
10778
10792
|
}, [slots.pageDesc ? slots.pageDesc() : `${props.modelValue}/${count.value}`]);
|
10779
10793
|
const renderPrevButton = () => {
|
10780
10794
|
const {
|
@@ -10784,7 +10798,7 @@ var stdin_default$r = defineComponent({
|
|
10784
10798
|
const slot = slots["prev-text"];
|
10785
10799
|
const disabled = modelValue === 1;
|
10786
10800
|
return createVNode("li", {
|
10787
|
-
"class": [bem$
|
10801
|
+
"class": [bem$p("item", {
|
10788
10802
|
disabled,
|
10789
10803
|
border: mode === "simple",
|
10790
10804
|
prev: true
|
@@ -10803,7 +10817,7 @@ var stdin_default$r = defineComponent({
|
|
10803
10817
|
const slot = slots["next-text"];
|
10804
10818
|
const disabled = modelValue === count.value;
|
10805
10819
|
return createVNode("li", {
|
10806
|
-
"class": [bem$
|
10820
|
+
"class": [bem$p("item", {
|
10807
10821
|
disabled,
|
10808
10822
|
border: mode === "simple",
|
10809
10823
|
next: true
|
@@ -10815,7 +10829,7 @@ var stdin_default$r = defineComponent({
|
|
10815
10829
|
}, [slot ? slot() : props.nextText || t$5("next")])]);
|
10816
10830
|
};
|
10817
10831
|
const renderPages = () => pages.value.map((page) => createVNode("li", {
|
10818
|
-
"class": [bem$
|
10832
|
+
"class": [bem$p("item", {
|
10819
10833
|
active: page.active,
|
10820
10834
|
page: true
|
10821
10835
|
}), BORDER_SURROUND]
|
@@ -10826,14 +10840,14 @@ var stdin_default$r = defineComponent({
|
|
10826
10840
|
}, [slots.page ? slots.page(page) : page.text])]));
|
10827
10841
|
return () => createVNode("nav", {
|
10828
10842
|
"role": "navigation",
|
10829
|
-
"class": bem$
|
10843
|
+
"class": bem$p()
|
10830
10844
|
}, [createVNode("ul", {
|
10831
|
-
"class": bem$
|
10845
|
+
"class": bem$p("items")
|
10832
10846
|
}, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
|
10833
10847
|
}
|
10834
10848
|
});
|
10835
|
-
const Pagination = withInstall(stdin_default$
|
10836
|
-
const [name$
|
10849
|
+
const Pagination = withInstall(stdin_default$v);
|
10850
|
+
const [name$p, bem$o] = createNamespace("password-input");
|
10837
10851
|
const passwordInputProps = {
|
10838
10852
|
info: String,
|
10839
10853
|
mask: truthProp,
|
@@ -10843,8 +10857,8 @@ const passwordInputProps = {
|
|
10843
10857
|
focused: Boolean,
|
10844
10858
|
errorInfo: String
|
10845
10859
|
};
|
10846
|
-
var stdin_default$
|
10847
|
-
name: name$
|
10860
|
+
var stdin_default$u = defineComponent({
|
10861
|
+
name: name$p,
|
10848
10862
|
props: passwordInputProps,
|
10849
10863
|
emits: ["focus"],
|
10850
10864
|
setup(props, {
|
@@ -10876,7 +10890,7 @@ var stdin_default$q = defineComponent({
|
|
10876
10890
|
Points.push(createVNode("li", {
|
10877
10891
|
"class": [{
|
10878
10892
|
[BORDER_LEFT]: showBorder
|
10879
|
-
}, bem$
|
10893
|
+
}, bem$o("item", {
|
10880
10894
|
focus: showCursor
|
10881
10895
|
})],
|
10882
10896
|
"style": style
|
@@ -10885,7 +10899,7 @@ var stdin_default$q = defineComponent({
|
|
10885
10899
|
visibility: char ? "visible" : "hidden"
|
10886
10900
|
}
|
10887
10901
|
}, null) : char, showCursor && createVNode("div", {
|
10888
|
-
"class": bem$
|
10902
|
+
"class": bem$o("cursor")
|
10889
10903
|
}, null)]));
|
10890
10904
|
}
|
10891
10905
|
return Points;
|
@@ -10893,22 +10907,36 @@ var stdin_default$q = defineComponent({
|
|
10893
10907
|
return () => {
|
10894
10908
|
const info = props.errorInfo || props.info;
|
10895
10909
|
return createVNode("div", {
|
10896
|
-
"class": bem$
|
10910
|
+
"class": bem$o()
|
10897
10911
|
}, [createVNode("ul", {
|
10898
|
-
"class": [bem$
|
10912
|
+
"class": [bem$o("security"), {
|
10899
10913
|
[BORDER_SURROUND]: !props.gutter
|
10900
10914
|
}],
|
10901
10915
|
"onTouchstartPassive": onTouchStart
|
10902
10916
|
}, [renderPoints()]), info && createVNode("div", {
|
10903
|
-
"class": bem$
|
10917
|
+
"class": bem$o(props.errorInfo ? "error-info" : "info")
|
10904
10918
|
}, [info])]);
|
10905
10919
|
};
|
10906
10920
|
}
|
10907
10921
|
});
|
10908
|
-
const PasswordInput = withInstall(stdin_default$
|
10909
|
-
const PickerGroup = withInstall(stdin_default$
|
10910
|
-
const
|
10911
|
-
const
|
10922
|
+
const PasswordInput = withInstall(stdin_default$u);
|
10923
|
+
const PickerGroup = withInstall(stdin_default$1n);
|
10924
|
+
const useSyncPropRef = (getProp, setProp) => {
|
10925
|
+
const propRef = ref(getProp());
|
10926
|
+
watch(getProp, (value) => {
|
10927
|
+
if (value !== propRef.value) {
|
10928
|
+
propRef.value = value;
|
10929
|
+
}
|
10930
|
+
});
|
10931
|
+
watch(propRef, (value) => {
|
10932
|
+
if (value !== getProp()) {
|
10933
|
+
setProp(value);
|
10934
|
+
}
|
10935
|
+
});
|
10936
|
+
return propRef;
|
10937
|
+
};
|
10938
|
+
const [name$o, bem$n] = createNamespace("popover");
|
10939
|
+
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
10912
10940
|
const popoverProps = {
|
10913
10941
|
show: Boolean,
|
10914
10942
|
theme: makeStringProp("light"),
|
@@ -10933,8 +10961,8 @@ const popoverProps = {
|
|
10933
10961
|
default: "body"
|
10934
10962
|
}
|
10935
10963
|
};
|
10936
|
-
var stdin_default$
|
10937
|
-
name: name$
|
10964
|
+
var stdin_default$t = defineComponent({
|
10965
|
+
name: name$o,
|
10938
10966
|
props: popoverProps,
|
10939
10967
|
emits: ["select", "touchstart", "update:show"],
|
10940
10968
|
setup(props, {
|
@@ -10946,6 +10974,7 @@ var stdin_default$p = defineComponent({
|
|
10946
10974
|
const popupRef = ref();
|
10947
10975
|
const wrapperRef = ref();
|
10948
10976
|
const popoverRef = ref();
|
10977
|
+
const show = useSyncPropRef(() => props.show, (value) => emit("update:show", value));
|
10949
10978
|
const getPopoverOptions = () => ({
|
10950
10979
|
placement: props.placement,
|
10951
10980
|
modifiers: [{
|
@@ -10968,7 +10997,7 @@ var stdin_default$p = defineComponent({
|
|
10968
10997
|
};
|
10969
10998
|
const updateLocation = () => {
|
10970
10999
|
nextTick(() => {
|
10971
|
-
if (!
|
11000
|
+
if (!show.value) {
|
10972
11001
|
return;
|
10973
11002
|
}
|
10974
11003
|
if (!popper) {
|
@@ -10978,10 +11007,12 @@ var stdin_default$p = defineComponent({
|
|
10978
11007
|
}
|
10979
11008
|
});
|
10980
11009
|
};
|
10981
|
-
const updateShow = (value) =>
|
11010
|
+
const updateShow = (value) => {
|
11011
|
+
show.value = value;
|
11012
|
+
};
|
10982
11013
|
const onClickWrapper = () => {
|
10983
11014
|
if (props.trigger === "click") {
|
10984
|
-
|
11015
|
+
show.value = !show.value;
|
10985
11016
|
}
|
10986
11017
|
};
|
10987
11018
|
const onClickAction = (action, index) => {
|
@@ -10990,12 +11021,12 @@ var stdin_default$p = defineComponent({
|
|
10990
11021
|
}
|
10991
11022
|
emit("select", action, index);
|
10992
11023
|
if (props.closeOnClickAction) {
|
10993
|
-
|
11024
|
+
show.value = false;
|
10994
11025
|
}
|
10995
11026
|
};
|
10996
11027
|
const onClickAway = () => {
|
10997
|
-
if (
|
10998
|
-
|
11028
|
+
if (show.value && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
|
11029
|
+
show.value = false;
|
10999
11030
|
}
|
11000
11031
|
};
|
11001
11032
|
const renderActionContent = (action, index) => {
|
@@ -11008,9 +11039,9 @@ var stdin_default$p = defineComponent({
|
|
11008
11039
|
return [action.icon && createVNode(Icon, {
|
11009
11040
|
"name": action.icon,
|
11010
11041
|
"classPrefix": props.iconPrefix,
|
11011
|
-
"class": bem$
|
11042
|
+
"class": bem$n("action-icon")
|
11012
11043
|
}, null), createVNode("div", {
|
11013
|
-
"class": [bem$
|
11044
|
+
"class": [bem$n("action-text"), BORDER_BOTTOM]
|
11014
11045
|
}, [action.text])];
|
11015
11046
|
};
|
11016
11047
|
const renderAction = (action, index) => {
|
@@ -11022,7 +11053,7 @@ var stdin_default$p = defineComponent({
|
|
11022
11053
|
} = action;
|
11023
11054
|
return createVNode("div", {
|
11024
11055
|
"role": "menuitem",
|
11025
|
-
"class": [bem$
|
11056
|
+
"class": [bem$n("action", {
|
11026
11057
|
disabled,
|
11027
11058
|
"with-icon": icon
|
11028
11059
|
}), className],
|
@@ -11047,7 +11078,7 @@ var stdin_default$p = defineComponent({
|
|
11047
11078
|
popper = null;
|
11048
11079
|
}
|
11049
11080
|
});
|
11050
|
-
watch(() => [
|
11081
|
+
watch(() => [show.value, props.offset, props.placement], updateLocation);
|
11051
11082
|
useClickAway([wrapperRef, popupRef], onClickAway, {
|
11052
11083
|
eventName: "touchstart"
|
11053
11084
|
});
|
@@ -11055,28 +11086,29 @@ var stdin_default$p = defineComponent({
|
|
11055
11086
|
var _a;
|
11056
11087
|
return createVNode(Fragment, null, [createVNode("span", {
|
11057
11088
|
"ref": wrapperRef,
|
11058
|
-
"class": bem$
|
11089
|
+
"class": bem$n("wrapper"),
|
11059
11090
|
"onClick": onClickWrapper
|
11060
11091
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Popup, mergeProps({
|
11061
11092
|
"ref": popoverRef,
|
11062
|
-
"
|
11093
|
+
"show": show.value,
|
11094
|
+
"class": bem$n([props.theme]),
|
11063
11095
|
"position": "",
|
11064
11096
|
"transition": "van-popover-zoom",
|
11065
11097
|
"lockScroll": false,
|
11066
11098
|
"onUpdate:show": updateShow
|
11067
11099
|
}, attrs, pick(props, popupProps)), {
|
11068
11100
|
default: () => [props.showArrow && createVNode("div", {
|
11069
|
-
"class": bem$
|
11101
|
+
"class": bem$n("arrow")
|
11070
11102
|
}, null), createVNode("div", {
|
11071
11103
|
"role": "menu",
|
11072
|
-
"class": bem$
|
11104
|
+
"class": bem$n("content")
|
11073
11105
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
11074
11106
|
})]);
|
11075
11107
|
};
|
11076
11108
|
}
|
11077
11109
|
});
|
11078
|
-
const Popover = withInstall(stdin_default$
|
11079
|
-
const [name$
|
11110
|
+
const Popover = withInstall(stdin_default$t);
|
11111
|
+
const [name$n, bem$m] = createNamespace("progress");
|
11080
11112
|
const progressProps = {
|
11081
11113
|
color: String,
|
11082
11114
|
inactive: Boolean,
|
@@ -11092,8 +11124,8 @@ const progressProps = {
|
|
11092
11124
|
validator: (value) => value >= 0 && value <= 100
|
11093
11125
|
}
|
11094
11126
|
};
|
11095
|
-
var stdin_default$
|
11096
|
-
name: name$
|
11127
|
+
var stdin_default$s = defineComponent({
|
11128
|
+
name: name$n,
|
11097
11129
|
props: progressProps,
|
11098
11130
|
setup(props) {
|
11099
11131
|
const background = computed(() => props.inactive ? void 0 : props.color);
|
@@ -11114,7 +11146,7 @@ var stdin_default$o = defineComponent({
|
|
11114
11146
|
};
|
11115
11147
|
return createVNode("span", {
|
11116
11148
|
"style": style,
|
11117
|
-
"class": bem$
|
11149
|
+
"class": bem$m("pivot", {
|
11118
11150
|
inactive: props.inactive
|
11119
11151
|
})
|
11120
11152
|
}, [text]);
|
@@ -11135,10 +11167,10 @@ var stdin_default$o = defineComponent({
|
|
11135
11167
|
background: background.value
|
11136
11168
|
};
|
11137
11169
|
return createVNode("div", {
|
11138
|
-
"class": bem$
|
11170
|
+
"class": bem$m(),
|
11139
11171
|
"style": rootStyle
|
11140
11172
|
}, [createVNode("span", {
|
11141
|
-
"class": bem$
|
11173
|
+
"class": bem$m("portion", {
|
11142
11174
|
inactive: props.inactive
|
11143
11175
|
}),
|
11144
11176
|
"style": portionStyle
|
@@ -11146,8 +11178,8 @@ var stdin_default$o = defineComponent({
|
|
11146
11178
|
};
|
11147
11179
|
}
|
11148
11180
|
});
|
11149
|
-
const Progress = withInstall(stdin_default$
|
11150
|
-
const [name$
|
11181
|
+
const Progress = withInstall(stdin_default$s);
|
11182
|
+
const [name$m, bem$l, t$4] = createNamespace("pull-refresh");
|
11151
11183
|
const DEFAULT_HEAD_HEIGHT = 50;
|
11152
11184
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
11153
11185
|
const pullRefreshProps = {
|
@@ -11162,8 +11194,8 @@ const pullRefreshProps = {
|
|
11162
11194
|
successDuration: makeNumericProp(500),
|
11163
11195
|
animationDuration: makeNumericProp(300)
|
11164
11196
|
};
|
11165
|
-
var stdin_default$
|
11166
|
-
name: name$
|
11197
|
+
var stdin_default$r = defineComponent({
|
11198
|
+
name: name$m,
|
11167
11199
|
props: pullRefreshProps,
|
11168
11200
|
emits: ["change", "refresh", "update:modelValue"],
|
11169
11201
|
setup(props, {
|
@@ -11238,12 +11270,12 @@ var stdin_default$n = defineComponent({
|
|
11238
11270
|
const nodes = [];
|
11239
11271
|
if (TEXT_STATUS.includes(status)) {
|
11240
11272
|
nodes.push(createVNode("div", {
|
11241
|
-
"class": bem$
|
11273
|
+
"class": bem$l("text")
|
11242
11274
|
}, [getStatusText()]));
|
11243
11275
|
}
|
11244
11276
|
if (status === "loading") {
|
11245
11277
|
nodes.push(createVNode(Loading, {
|
11246
|
-
"class": bem$
|
11278
|
+
"class": bem$l("loading")
|
11247
11279
|
}, {
|
11248
11280
|
default: getStatusText
|
11249
11281
|
}));
|
@@ -11316,23 +11348,23 @@ var stdin_default$n = defineComponent({
|
|
11316
11348
|
};
|
11317
11349
|
return createVNode("div", {
|
11318
11350
|
"ref": root,
|
11319
|
-
"class": bem$
|
11351
|
+
"class": bem$l()
|
11320
11352
|
}, [createVNode("div", {
|
11321
11353
|
"ref": track,
|
11322
|
-
"class": bem$
|
11354
|
+
"class": bem$l("track"),
|
11323
11355
|
"style": trackStyle,
|
11324
11356
|
"onTouchstartPassive": onTouchStart,
|
11325
11357
|
"onTouchend": onTouchEnd,
|
11326
11358
|
"onTouchcancel": onTouchEnd
|
11327
11359
|
}, [createVNode("div", {
|
11328
|
-
"class": bem$
|
11360
|
+
"class": bem$l("head"),
|
11329
11361
|
"style": getHeadStyle()
|
11330
11362
|
}, [renderStatus()]), (_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
11331
11363
|
};
|
11332
11364
|
}
|
11333
11365
|
});
|
11334
|
-
const PullRefresh = withInstall(stdin_default$
|
11335
|
-
const [name$
|
11366
|
+
const PullRefresh = withInstall(stdin_default$r);
|
11367
|
+
const [name$l, bem$k] = createNamespace("rate");
|
11336
11368
|
function getRateStatus(value, index, allowHalf, readonly) {
|
11337
11369
|
if (value >= index) {
|
11338
11370
|
return {
|
@@ -11374,8 +11406,8 @@ const rateProps = {
|
|
11374
11406
|
modelValue: makeNumberProp(0),
|
11375
11407
|
disabledColor: String
|
11376
11408
|
};
|
11377
|
-
var stdin_default$
|
11378
|
-
name: name$
|
11409
|
+
var stdin_default$q = defineComponent({
|
11410
|
+
name: name$l,
|
11379
11411
|
props: rateProps,
|
11380
11412
|
emits: ["change", "update:modelValue"],
|
11381
11413
|
setup(props, {
|
@@ -11494,7 +11526,7 @@ var stdin_default$m = defineComponent({
|
|
11494
11526
|
"ref": setItemRefs(index),
|
11495
11527
|
"role": "radio",
|
11496
11528
|
"style": style,
|
11497
|
-
"class": bem$
|
11529
|
+
"class": bem$k("item"),
|
11498
11530
|
"tabindex": disabled ? void 0 : 0,
|
11499
11531
|
"aria-setsize": count,
|
11500
11532
|
"aria-posinset": score,
|
@@ -11503,7 +11535,7 @@ var stdin_default$m = defineComponent({
|
|
11503
11535
|
}, [createVNode(Icon, {
|
11504
11536
|
"size": size,
|
11505
11537
|
"name": isFull ? icon : voidIcon,
|
11506
|
-
"class": bem$
|
11538
|
+
"class": bem$k("icon", {
|
11507
11539
|
disabled,
|
11508
11540
|
full: isFull
|
11509
11541
|
}),
|
@@ -11515,7 +11547,7 @@ var stdin_default$m = defineComponent({
|
|
11515
11547
|
width: item.value + "em"
|
11516
11548
|
},
|
11517
11549
|
"name": isVoid ? voidIcon : icon,
|
11518
|
-
"class": bem$
|
11550
|
+
"class": bem$k("icon", ["half", {
|
11519
11551
|
disabled,
|
11520
11552
|
full: !isVoid
|
11521
11553
|
}]),
|
@@ -11530,7 +11562,7 @@ var stdin_default$m = defineComponent({
|
|
11530
11562
|
return () => createVNode("div", {
|
11531
11563
|
"ref": groupRef,
|
11532
11564
|
"role": "radiogroup",
|
11533
|
-
"class": bem$
|
11565
|
+
"class": bem$k({
|
11534
11566
|
readonly: props.readonly,
|
11535
11567
|
disabled: props.disabled
|
11536
11568
|
}),
|
@@ -11541,9 +11573,9 @@ var stdin_default$m = defineComponent({
|
|
11541
11573
|
}, [list.value.map(renderStar)]);
|
11542
11574
|
}
|
11543
11575
|
});
|
11544
|
-
const Rate = withInstall(stdin_default$
|
11545
|
-
const Row = withInstall(stdin_default$
|
11546
|
-
const [name$
|
11576
|
+
const Rate = withInstall(stdin_default$q);
|
11577
|
+
const Row = withInstall(stdin_default$Y);
|
11578
|
+
const [name$k, bem$j, t$3] = createNamespace("search");
|
11547
11579
|
const searchProps = extend({}, fieldSharedProps, {
|
11548
11580
|
label: String,
|
11549
11581
|
shape: makeStringProp("square"),
|
@@ -11553,8 +11585,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
11553
11585
|
background: String,
|
11554
11586
|
showAction: Boolean
|
11555
11587
|
});
|
11556
|
-
var stdin_default$
|
11557
|
-
name: name$
|
11588
|
+
var stdin_default$p = defineComponent({
|
11589
|
+
name: name$k,
|
11558
11590
|
props: searchProps,
|
11559
11591
|
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
11560
11592
|
setup(props, {
|
@@ -11581,7 +11613,7 @@ var stdin_default$l = defineComponent({
|
|
11581
11613
|
const renderLabel = () => {
|
11582
11614
|
if (slots.label || props.label) {
|
11583
11615
|
return createVNode("label", {
|
11584
|
-
"class": bem$
|
11616
|
+
"class": bem$j("label"),
|
11585
11617
|
"for": getInputId()
|
11586
11618
|
}, [slots.label ? slots.label() : props.label]);
|
11587
11619
|
}
|
@@ -11590,7 +11622,7 @@ var stdin_default$l = defineComponent({
|
|
11590
11622
|
if (props.showAction) {
|
11591
11623
|
const text = props.actionText || t$3("cancel");
|
11592
11624
|
return createVNode("div", {
|
11593
|
-
"class": bem$
|
11625
|
+
"class": bem$j("action"),
|
11594
11626
|
"role": "button",
|
11595
11627
|
"tabindex": 0,
|
11596
11628
|
"onClick": onCancel
|
@@ -11620,7 +11652,7 @@ var stdin_default$l = defineComponent({
|
|
11620
11652
|
return createVNode(Field, mergeProps({
|
11621
11653
|
"ref": filedRef,
|
11622
11654
|
"type": "search",
|
11623
|
-
"class": bem$
|
11655
|
+
"class": bem$j("field"),
|
11624
11656
|
"border": false,
|
11625
11657
|
"onBlur": onBlur,
|
11626
11658
|
"onFocus": onFocus,
|
@@ -11639,19 +11671,19 @@ var stdin_default$l = defineComponent({
|
|
11639
11671
|
return () => {
|
11640
11672
|
var _a;
|
11641
11673
|
return createVNode("div", {
|
11642
|
-
"class": bem$
|
11674
|
+
"class": bem$j({
|
11643
11675
|
"show-action": props.showAction
|
11644
11676
|
}),
|
11645
11677
|
"style": {
|
11646
11678
|
background: props.background
|
11647
11679
|
}
|
11648
11680
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), createVNode("div", {
|
11649
|
-
"class": bem$
|
11681
|
+
"class": bem$j("content", props.shape)
|
11650
11682
|
}, [renderLabel(), renderField()]), renderAction()]);
|
11651
11683
|
};
|
11652
11684
|
}
|
11653
11685
|
});
|
11654
|
-
const Search = withInstall(stdin_default$
|
11686
|
+
const Search = withInstall(stdin_default$p);
|
11655
11687
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
11656
11688
|
const iconMap = {
|
11657
11689
|
qq: "qq",
|
@@ -11663,7 +11695,7 @@ const iconMap = {
|
|
11663
11695
|
"weapp-qrcode": "miniprogram-o",
|
11664
11696
|
"wechat-moments": "wechat-moments"
|
11665
11697
|
};
|
11666
|
-
const [name$
|
11698
|
+
const [name$j, bem$i, t$2] = createNamespace("share-sheet");
|
11667
11699
|
const shareSheetProps = extend({}, popupSharedProps, {
|
11668
11700
|
title: String,
|
11669
11701
|
round: truthProp,
|
@@ -11673,8 +11705,8 @@ const shareSheetProps = extend({}, popupSharedProps, {
|
|
11673
11705
|
closeOnPopstate: truthProp,
|
11674
11706
|
safeAreaInsetBottom: truthProp
|
11675
11707
|
});
|
11676
|
-
var stdin_default$
|
11677
|
-
name: name$
|
11708
|
+
var stdin_default$o = defineComponent({
|
11709
|
+
name: name$j,
|
11678
11710
|
props: shareSheetProps,
|
11679
11711
|
emits: ["cancel", "select", "update:show"],
|
11680
11712
|
setup(props, {
|
@@ -11692,25 +11724,25 @@ var stdin_default$k = defineComponent({
|
|
11692
11724
|
const description = slots.description ? slots.description() : props.description;
|
11693
11725
|
if (title || description) {
|
11694
11726
|
return createVNode("div", {
|
11695
|
-
"class": bem$
|
11727
|
+
"class": bem$i("header")
|
11696
11728
|
}, [title && createVNode("h2", {
|
11697
|
-
"class": bem$
|
11729
|
+
"class": bem$i("title")
|
11698
11730
|
}, [title]), description && createVNode("span", {
|
11699
|
-
"class": bem$
|
11731
|
+
"class": bem$i("description")
|
11700
11732
|
}, [description])]);
|
11701
11733
|
}
|
11702
11734
|
};
|
11703
11735
|
const renderIcon = (icon) => {
|
11704
11736
|
if (iconMap[icon]) {
|
11705
11737
|
return createVNode("div", {
|
11706
|
-
"class": bem$
|
11738
|
+
"class": bem$i("icon", [icon])
|
11707
11739
|
}, [createVNode(Icon, {
|
11708
11740
|
"name": iconMap[icon] || icon
|
11709
11741
|
}, null)]);
|
11710
11742
|
}
|
11711
11743
|
return createVNode("img", {
|
11712
11744
|
"src": icon,
|
11713
|
-
"class": bem$
|
11745
|
+
"class": bem$i("image-icon")
|
11714
11746
|
}, null);
|
11715
11747
|
};
|
11716
11748
|
const renderOption = (option, index) => {
|
@@ -11723,16 +11755,16 @@ var stdin_default$k = defineComponent({
|
|
11723
11755
|
return createVNode("div", {
|
11724
11756
|
"role": "button",
|
11725
11757
|
"tabindex": 0,
|
11726
|
-
"class": [bem$
|
11758
|
+
"class": [bem$i("option"), className, HAPTICS_FEEDBACK],
|
11727
11759
|
"onClick": () => onSelect(option, index)
|
11728
11760
|
}, [renderIcon(icon), name2 && createVNode("span", {
|
11729
|
-
"class": bem$
|
11761
|
+
"class": bem$i("name")
|
11730
11762
|
}, [name2]), description && createVNode("span", {
|
11731
|
-
"class": bem$
|
11763
|
+
"class": bem$i("option-description")
|
11732
11764
|
}, [description])]);
|
11733
11765
|
};
|
11734
11766
|
const renderOptions = (options, border) => createVNode("div", {
|
11735
|
-
"class": bem$
|
11767
|
+
"class": bem$i("options", {
|
11736
11768
|
border
|
11737
11769
|
})
|
11738
11770
|
}, [options.map(renderOption)]);
|
@@ -11751,13 +11783,13 @@ var stdin_default$k = defineComponent({
|
|
11751
11783
|
if (slots.cancel || cancelText) {
|
11752
11784
|
return createVNode("button", {
|
11753
11785
|
"type": "button",
|
11754
|
-
"class": bem$
|
11786
|
+
"class": bem$i("cancel"),
|
11755
11787
|
"onClick": onCancel
|
11756
11788
|
}, [slots.cancel ? slots.cancel() : cancelText]);
|
11757
11789
|
}
|
11758
11790
|
};
|
11759
11791
|
return () => createVNode(Popup, mergeProps({
|
11760
|
-
"class": bem$
|
11792
|
+
"class": bem$i(),
|
11761
11793
|
"position": "bottom",
|
11762
11794
|
"onUpdate:show": updateShow
|
11763
11795
|
}, pick(props, popupInheritKeys)), {
|
@@ -11765,14 +11797,14 @@ var stdin_default$k = defineComponent({
|
|
11765
11797
|
});
|
11766
11798
|
}
|
11767
11799
|
});
|
11768
|
-
const ShareSheet = withInstall(stdin_default$
|
11769
|
-
const [name$
|
11770
|
-
const SIDEBAR_KEY = Symbol(name$
|
11800
|
+
const ShareSheet = withInstall(stdin_default$o);
|
11801
|
+
const [name$i, bem$h] = createNamespace("sidebar");
|
11802
|
+
const SIDEBAR_KEY = Symbol(name$i);
|
11771
11803
|
const sidebarProps = {
|
11772
11804
|
modelValue: makeNumericProp(0)
|
11773
11805
|
};
|
11774
|
-
var stdin_default$
|
11775
|
-
name: name$
|
11806
|
+
var stdin_default$n = defineComponent({
|
11807
|
+
name: name$i,
|
11776
11808
|
props: sidebarProps,
|
11777
11809
|
emits: ["change", "update:modelValue"],
|
11778
11810
|
setup(props, {
|
@@ -11797,13 +11829,13 @@ var stdin_default$j = defineComponent({
|
|
11797
11829
|
var _a;
|
11798
11830
|
return createVNode("div", {
|
11799
11831
|
"role": "tablist",
|
11800
|
-
"class": bem$
|
11832
|
+
"class": bem$h()
|
11801
11833
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
11802
11834
|
};
|
11803
11835
|
}
|
11804
11836
|
});
|
11805
|
-
const Sidebar = withInstall(stdin_default$
|
11806
|
-
const [name$
|
11837
|
+
const Sidebar = withInstall(stdin_default$n);
|
11838
|
+
const [name$h, bem$g] = createNamespace("sidebar-item");
|
11807
11839
|
const sidebarItemProps = extend({}, routeProps, {
|
11808
11840
|
dot: Boolean,
|
11809
11841
|
title: String,
|
@@ -11811,8 +11843,8 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
11811
11843
|
disabled: Boolean,
|
11812
11844
|
badgeProps: Object
|
11813
11845
|
});
|
11814
|
-
var stdin_default$
|
11815
|
-
name: name$
|
11846
|
+
var stdin_default$m = defineComponent({
|
11847
|
+
name: name$h,
|
11816
11848
|
props: sidebarItemProps,
|
11817
11849
|
emits: ["click"],
|
11818
11850
|
setup(props, {
|
@@ -11848,7 +11880,7 @@ var stdin_default$i = defineComponent({
|
|
11848
11880
|
const selected = index.value === parent.getActive();
|
11849
11881
|
return createVNode("div", {
|
11850
11882
|
"role": "tab",
|
11851
|
-
"class": bem$
|
11883
|
+
"class": bem$g({
|
11852
11884
|
select: selected,
|
11853
11885
|
disabled
|
11854
11886
|
}),
|
@@ -11857,7 +11889,7 @@ var stdin_default$i = defineComponent({
|
|
11857
11889
|
"onClick": onClick
|
11858
11890
|
}, [createVNode(Badge, mergeProps({
|
11859
11891
|
"dot": dot,
|
11860
|
-
"class": bem$
|
11892
|
+
"class": bem$g("text"),
|
11861
11893
|
"content": badge
|
11862
11894
|
}, props.badgeProps), {
|
11863
11895
|
default: () => [slots.title ? slots.title() : title]
|
@@ -11865,27 +11897,83 @@ var stdin_default$i = defineComponent({
|
|
11865
11897
|
};
|
11866
11898
|
}
|
11867
11899
|
});
|
11868
|
-
const SidebarItem = withInstall(stdin_default$
|
11869
|
-
const [name$
|
11900
|
+
const SidebarItem = withInstall(stdin_default$m);
|
11901
|
+
const [name$g, bem$f] = createNamespace("skeleton-title");
|
11902
|
+
const skeletonTitleProps = {
|
11903
|
+
round: Boolean,
|
11904
|
+
titleWidth: numericProp
|
11905
|
+
};
|
11906
|
+
var stdin_default$l = defineComponent({
|
11907
|
+
name: name$g,
|
11908
|
+
props: skeletonTitleProps,
|
11909
|
+
setup(props) {
|
11910
|
+
return () => createVNode("h3", {
|
11911
|
+
"class": bem$f([{
|
11912
|
+
round: props.round
|
11913
|
+
}]),
|
11914
|
+
"style": {
|
11915
|
+
width: addUnit(props.titleWidth)
|
11916
|
+
}
|
11917
|
+
}, null);
|
11918
|
+
}
|
11919
|
+
});
|
11920
|
+
const [name$f, bem$e] = createNamespace("skeleton-avatar");
|
11921
|
+
const skeletonAvatarProps = {
|
11922
|
+
avatarSize: numericProp,
|
11923
|
+
avatarShape: makeStringProp("round")
|
11924
|
+
};
|
11925
|
+
var stdin_default$k = defineComponent({
|
11926
|
+
name: name$f,
|
11927
|
+
props: skeletonAvatarProps,
|
11928
|
+
setup(props) {
|
11929
|
+
return () => createVNode("div", {
|
11930
|
+
"class": bem$e([props.avatarShape]),
|
11931
|
+
"style": getSizeStyle(props.avatarSize)
|
11932
|
+
}, null);
|
11933
|
+
}
|
11934
|
+
});
|
11870
11935
|
const DEFAULT_ROW_WIDTH = "100%";
|
11936
|
+
const skeletonParagraphProps = {
|
11937
|
+
round: Boolean,
|
11938
|
+
rowWidth: {
|
11939
|
+
type: numericProp,
|
11940
|
+
default: DEFAULT_ROW_WIDTH
|
11941
|
+
}
|
11942
|
+
};
|
11943
|
+
const [name$e, bem$d] = createNamespace("skeleton-paragraph");
|
11944
|
+
var stdin_default$j = defineComponent({
|
11945
|
+
name: name$e,
|
11946
|
+
props: skeletonParagraphProps,
|
11947
|
+
setup(props) {
|
11948
|
+
return () => createVNode("div", {
|
11949
|
+
"class": bem$d([{
|
11950
|
+
round: props.round
|
11951
|
+
}]),
|
11952
|
+
"style": {
|
11953
|
+
width: props.rowWidth
|
11954
|
+
}
|
11955
|
+
}, null);
|
11956
|
+
}
|
11957
|
+
});
|
11958
|
+
const [name$d, bem$c] = createNamespace("skeleton");
|
11871
11959
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
11872
11960
|
const skeletonProps = {
|
11873
11961
|
row: makeNumericProp(0),
|
11874
|
-
title: Boolean,
|
11875
11962
|
round: Boolean,
|
11963
|
+
title: Boolean,
|
11964
|
+
titleWidth: numericProp,
|
11876
11965
|
avatar: Boolean,
|
11877
|
-
loading: truthProp,
|
11878
|
-
animate: truthProp,
|
11879
11966
|
avatarSize: numericProp,
|
11880
|
-
titleWidth: numericProp,
|
11881
11967
|
avatarShape: makeStringProp("round"),
|
11968
|
+
loading: truthProp,
|
11969
|
+
animate: truthProp,
|
11882
11970
|
rowWidth: {
|
11883
11971
|
type: [Number, String, Array],
|
11884
11972
|
default: DEFAULT_ROW_WIDTH
|
11885
11973
|
}
|
11886
11974
|
};
|
11887
|
-
var stdin_default$
|
11888
|
-
name: name$
|
11975
|
+
var stdin_default$i = defineComponent({
|
11976
|
+
name: name$d,
|
11889
11977
|
inheritAttrs: false,
|
11890
11978
|
props: skeletonProps,
|
11891
11979
|
setup(props, {
|
@@ -11894,19 +11982,17 @@ var stdin_default$h = defineComponent({
|
|
11894
11982
|
}) {
|
11895
11983
|
const renderAvatar = () => {
|
11896
11984
|
if (props.avatar) {
|
11897
|
-
return createVNode(
|
11898
|
-
"
|
11899
|
-
"
|
11985
|
+
return createVNode(stdin_default$k, {
|
11986
|
+
"avatarShape": props.avatarShape,
|
11987
|
+
"avatarSize": props.avatarSize
|
11900
11988
|
}, null);
|
11901
11989
|
}
|
11902
11990
|
};
|
11903
11991
|
const renderTitle = () => {
|
11904
11992
|
if (props.title) {
|
11905
|
-
return createVNode(
|
11906
|
-
"
|
11907
|
-
"
|
11908
|
-
width: addUnit(props.titleWidth)
|
11909
|
-
}
|
11993
|
+
return createVNode(stdin_default$l, {
|
11994
|
+
"round": props.round,
|
11995
|
+
"titleWidth": props.titleWidth
|
11910
11996
|
}, null);
|
11911
11997
|
}
|
11912
11998
|
};
|
@@ -11922,29 +12008,56 @@ var stdin_default$h = defineComponent({
|
|
11922
12008
|
}
|
11923
12009
|
return rowWidth;
|
11924
12010
|
};
|
11925
|
-
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode(
|
11926
|
-
"
|
11927
|
-
"
|
11928
|
-
|
11929
|
-
}
|
12011
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode(stdin_default$j, {
|
12012
|
+
"key": i,
|
12013
|
+
"round": props.round,
|
12014
|
+
"rowWidth": addUnit(getRowWidth(i))
|
11930
12015
|
}, null));
|
12016
|
+
const renderContents = () => {
|
12017
|
+
if (slots.template) {
|
12018
|
+
return slots.template();
|
12019
|
+
}
|
12020
|
+
return createVNode(Fragment, null, [renderAvatar(), createVNode("div", {
|
12021
|
+
"class": bem$c("content")
|
12022
|
+
}, [renderTitle(), renderRows()])]);
|
12023
|
+
};
|
11931
12024
|
return () => {
|
11932
12025
|
var _a;
|
11933
12026
|
if (!props.loading) {
|
11934
12027
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
11935
12028
|
}
|
11936
12029
|
return createVNode("div", mergeProps({
|
11937
|
-
"class": bem$
|
12030
|
+
"class": bem$c({
|
11938
12031
|
animate: props.animate,
|
11939
12032
|
round: props.round
|
11940
12033
|
})
|
11941
|
-
}, attrs), [
|
11942
|
-
"class": bem$b("content")
|
11943
|
-
}, [renderTitle(), renderRows()])]);
|
12034
|
+
}, attrs), [renderContents()]);
|
11944
12035
|
};
|
11945
12036
|
}
|
11946
12037
|
});
|
11947
|
-
const
|
12038
|
+
const [name$c, bem$b] = createNamespace("skeleton-image");
|
12039
|
+
const skeletonImageProps = {
|
12040
|
+
imageSize: numericProp,
|
12041
|
+
imageShape: makeStringProp("square")
|
12042
|
+
};
|
12043
|
+
var stdin_default$h = defineComponent({
|
12044
|
+
name: name$c,
|
12045
|
+
props: skeletonImageProps,
|
12046
|
+
setup(props) {
|
12047
|
+
return () => createVNode("div", {
|
12048
|
+
"class": bem$b([props.imageShape]),
|
12049
|
+
"style": getSizeStyle(props.imageSize)
|
12050
|
+
}, [createVNode(Icon, {
|
12051
|
+
"name": "photo",
|
12052
|
+
"class": bem$b("icon")
|
12053
|
+
}, null)]);
|
12054
|
+
}
|
12055
|
+
});
|
12056
|
+
const SkeletonImage = withInstall(stdin_default$h);
|
12057
|
+
const SkeletonTitle = withInstall(stdin_default$l);
|
12058
|
+
const SkeletonAvatar = withInstall(stdin_default$k);
|
12059
|
+
const SkeletonParagraph = withInstall(stdin_default$j);
|
12060
|
+
const Skeleton = withInstall(stdin_default$i);
|
11948
12061
|
const [name$b, bem$a] = createNamespace("slider");
|
11949
12062
|
const sliderProps = {
|
11950
12063
|
min: makeNumericProp(0),
|
@@ -12441,7 +12554,6 @@ var stdin_default$d = defineComponent({
|
|
12441
12554
|
const Step = withInstall(stdin_default$d);
|
12442
12555
|
const [name$7, bem$6] = createNamespace("stepper");
|
12443
12556
|
const LONG_PRESS_INTERVAL = 200;
|
12444
|
-
const LONG_PRESS_START_TIME = 600;
|
12445
12557
|
const isEqual = (value1, value2) => String(value1) === String(value2);
|
12446
12558
|
const stepperProps = {
|
12447
12559
|
min: makeNumericProp(1),
|
@@ -13164,7 +13276,10 @@ var stdin_default$7 = defineComponent({
|
|
13164
13276
|
case "second":
|
13165
13277
|
return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
|
13166
13278
|
default:
|
13167
|
-
|
13279
|
+
if (process.env.NODE_ENV !== "production") {
|
13280
|
+
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
13281
|
+
}
|
13282
|
+
return [];
|
13168
13283
|
}
|
13169
13284
|
}));
|
13170
13285
|
watch(currentValues, (newValues) => {
|
@@ -13646,7 +13761,7 @@ var stdin_default$4 = defineComponent({
|
|
13646
13761
|
};
|
13647
13762
|
const onClickUpload = (event) => emit("clickUpload", event);
|
13648
13763
|
const renderUpload = () => {
|
13649
|
-
if (props.modelValue.length >= props.maxCount
|
13764
|
+
if (props.modelValue.length >= props.maxCount) {
|
13650
13765
|
return;
|
13651
13766
|
}
|
13652
13767
|
const Input = props.readonly ? null : createVNode("input", {
|
@@ -13665,7 +13780,7 @@ var stdin_default$4 = defineComponent({
|
|
13665
13780
|
"onClick": onClickUpload
|
13666
13781
|
}, [slots.default(), Input]);
|
13667
13782
|
}
|
13668
|
-
return createVNode("div", {
|
13783
|
+
return withDirectives(createVNode("div", {
|
13669
13784
|
"class": bem("upload", {
|
13670
13785
|
readonly: props.readonly
|
13671
13786
|
}),
|
@@ -13676,7 +13791,7 @@ var stdin_default$4 = defineComponent({
|
|
13676
13791
|
"class": bem("upload-icon")
|
13677
13792
|
}, null), props.uploadText && createVNode("span", {
|
13678
13793
|
"class": bem("upload-text")
|
13679
|
-
}, [props.uploadText]), Input]);
|
13794
|
+
}, [props.uploadText]), Input]), [[vShow, props.showUpload]]);
|
13680
13795
|
};
|
13681
13796
|
const chooseFile = () => {
|
13682
13797
|
if (inputRef.value && !props.disabled) {
|
@@ -14489,15 +14604,14 @@ var stdin_default$1 = (lazyManager) => ({
|
|
14489
14604
|
default: "img"
|
14490
14605
|
}
|
14491
14606
|
},
|
14492
|
-
render(
|
14493
|
-
|
14607
|
+
render() {
|
14608
|
+
var _a, _b;
|
14609
|
+
return h(
|
14494
14610
|
this.tag,
|
14495
14611
|
{
|
14496
|
-
|
14497
|
-
src: this.renderSrc
|
14498
|
-
}
|
14612
|
+
src: this.renderSrc
|
14499
14613
|
},
|
14500
|
-
this.$slots.default
|
14614
|
+
(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
|
14501
14615
|
);
|
14502
14616
|
},
|
14503
14617
|
data() {
|
@@ -14599,7 +14713,7 @@ const Lazyload = {
|
|
14599
14713
|
});
|
14600
14714
|
}
|
14601
14715
|
};
|
14602
|
-
const version = "4.0.0-rc.
|
14716
|
+
const version = "4.0.0-rc.7";
|
14603
14717
|
function install(app) {
|
14604
14718
|
const components = [
|
14605
14719
|
ActionBar,
|
@@ -14773,6 +14887,10 @@ export {
|
|
14773
14887
|
Sidebar,
|
14774
14888
|
SidebarItem,
|
14775
14889
|
Skeleton,
|
14890
|
+
SkeletonAvatar,
|
14891
|
+
SkeletonImage,
|
14892
|
+
SkeletonParagraph,
|
14893
|
+
SkeletonTitle,
|
14776
14894
|
Slider,
|
14777
14895
|
Space,
|
14778
14896
|
Step,
|
@@ -14878,7 +14996,11 @@ export {
|
|
14878
14996
|
showToast,
|
14879
14997
|
sidebarItemProps,
|
14880
14998
|
sidebarProps,
|
14999
|
+
skeletonAvatarProps,
|
15000
|
+
skeletonImageProps,
|
15001
|
+
skeletonParagraphProps,
|
14881
15002
|
skeletonProps,
|
15003
|
+
skeletonTitleProps,
|
14882
15004
|
sliderProps,
|
14883
15005
|
spaceProps,
|
14884
15006
|
stepperProps,
|