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