vant 4.0.0-rc.5 → 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/calendar/Calendar.mjs +10 -3
- package/es/calendar/CalendarHeader.d.ts +2 -0
- package/es/calendar/CalendarHeader.mjs +5 -1
- package/es/cell/Cell.d.ts +17 -0
- package/es/cell/Cell.mjs +11 -4
- package/es/cell/index.d.ts +9 -0
- package/es/collapse-item/CollapseItem.d.ts +13 -0
- package/es/collapse-item/index.d.ts +9 -0
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/coupon/index.css +1 -1
- package/es/coupon-list/index.css +1 -1
- package/es/date-picker/DatePicker.mjs +4 -1
- package/es/field/Field.d.ts +13 -0
- package/es/field/index.d.ts +9 -0
- package/es/image-preview/ImagePreview.d.ts +2 -1
- package/es/image-preview/ImagePreview.mjs +9 -4
- package/es/image-preview/ImagePreviewItem.d.ts +2 -1
- package/es/image-preview/ImagePreviewItem.mjs +22 -13
- package/es/image-preview/index.css +1 -1
- 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/swipe/Swipe.mjs +1 -1
- package/es/time-picker/TimePicker.mjs +4 -1
- package/es/toast/Toast.d.ts +4 -1
- package/es/toast/Toast.mjs +2 -1
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +3 -1
- package/es/toast/types.d.ts +2 -0
- 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/calendar/Calendar.js +10 -3
- package/lib/calendar/CalendarHeader.d.ts +2 -0
- package/lib/calendar/CalendarHeader.js +5 -1
- package/lib/cell/Cell.d.ts +17 -0
- package/lib/cell/Cell.js +10 -3
- package/lib/cell/index.d.ts +9 -0
- package/lib/collapse-item/CollapseItem.d.ts +13 -0
- package/lib/collapse-item/index.d.ts +9 -0
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/coupon/index.css +1 -1
- package/lib/coupon-list/index.css +1 -1
- package/lib/date-picker/DatePicker.js +4 -1
- package/lib/field/Field.d.ts +13 -0
- package/lib/field/index.d.ts +9 -0
- package/lib/image-preview/ImagePreview.d.ts +2 -1
- package/lib/image-preview/ImagePreview.js +9 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
- package/lib/image-preview/ImagePreviewItem.js +21 -12
- package/lib/image-preview/index.css +1 -1
- 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/swipe/Swipe.js +1 -1
- package/lib/time-picker/TimePicker.js +4 -1
- package/lib/toast/Toast.d.ts +4 -1
- package/lib/toast/Toast.js +2 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +3 -1
- package/lib/toast/types.d.ts +2 -0
- 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 +936 -788
- package/lib/vant.es.js +936 -788
- package/lib/vant.js +930 -788
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -12150
- package/package.json +1 -1
- package/changelog.generated.md +0 -71
package/lib/vant.es.js
CHANGED
@@ -235,7 +235,7 @@ function deepAssign(to, from) {
|
|
235
235
|
});
|
236
236
|
return to;
|
237
237
|
}
|
238
|
-
var stdin_default$
|
238
|
+
var stdin_default$1J = {
|
239
239
|
name: "\u59D3\u540D",
|
240
240
|
tel: "\u7535\u8BDD",
|
241
241
|
save: "\u4FDD\u5B58",
|
@@ -298,7 +298,7 @@ var stdin_default$1F = {
|
|
298
298
|
};
|
299
299
|
const lang = ref("zh-CN");
|
300
300
|
const messages = reactive({
|
301
|
-
"zh-CN": stdin_default$
|
301
|
+
"zh-CN": stdin_default$1J
|
302
302
|
});
|
303
303
|
const Locale = {
|
304
304
|
messages() {
|
@@ -312,11 +312,11 @@ const Locale = {
|
|
312
312
|
deepAssign(messages, newMessages);
|
313
313
|
}
|
314
314
|
};
|
315
|
-
var stdin_default$
|
315
|
+
var stdin_default$1I = Locale;
|
316
316
|
function createTranslate(name2) {
|
317
317
|
const prefix = camelize(name2) + ".";
|
318
318
|
return (path, ...args) => {
|
319
|
-
const messages2 = stdin_default$
|
319
|
+
const messages2 = stdin_default$1I.messages();
|
320
320
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
321
321
|
return isFunction(message) ? message(...args) : message;
|
322
322
|
};
|
@@ -366,6 +366,7 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
|
366
366
|
const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
367
367
|
const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
368
368
|
const FORM_KEY = Symbol("van-form");
|
369
|
+
const LONG_PRESS_START_TIME = 500;
|
369
370
|
function callInterceptor(interceptor, {
|
370
371
|
args = [],
|
371
372
|
done,
|
@@ -436,20 +437,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
436
437
|
}
|
437
438
|
}, [renderContent()]);
|
438
439
|
}
|
439
|
-
const [name$
|
440
|
-
const ACTION_BAR_KEY = Symbol(name$
|
440
|
+
const [name$1A, bem$1v] = createNamespace("action-bar");
|
441
|
+
const ACTION_BAR_KEY = Symbol(name$1A);
|
441
442
|
const actionBarProps = {
|
442
443
|
placeholder: Boolean,
|
443
444
|
safeAreaInsetBottom: truthProp
|
444
445
|
};
|
445
|
-
var stdin_default$
|
446
|
-
name: name$
|
446
|
+
var stdin_default$1H = defineComponent({
|
447
|
+
name: name$1A,
|
447
448
|
props: actionBarProps,
|
448
449
|
setup(props, {
|
449
450
|
slots
|
450
451
|
}) {
|
451
452
|
const root = ref();
|
452
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
453
|
+
const renderPlaceholder = usePlaceholder(root, bem$1v);
|
453
454
|
const {
|
454
455
|
linkChildren
|
455
456
|
} = useChildren(ACTION_BAR_KEY);
|
@@ -458,7 +459,7 @@ var stdin_default$1D = defineComponent({
|
|
458
459
|
var _a;
|
459
460
|
return createVNode("div", {
|
460
461
|
"ref": root,
|
461
|
-
"class": [bem$
|
462
|
+
"class": [bem$1v(), {
|
462
463
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
463
464
|
}]
|
464
465
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -471,7 +472,7 @@ var stdin_default$1D = defineComponent({
|
|
471
472
|
};
|
472
473
|
}
|
473
474
|
});
|
474
|
-
const ActionBar = withInstall(stdin_default$
|
475
|
+
const ActionBar = withInstall(stdin_default$1H);
|
475
476
|
function useExpose(apis) {
|
476
477
|
const instance2 = getCurrentInstance();
|
477
478
|
if (instance2) {
|
@@ -499,7 +500,7 @@ function useRoute() {
|
|
499
500
|
const vm = getCurrentInstance().proxy;
|
500
501
|
return () => route(vm);
|
501
502
|
}
|
502
|
-
const [name$
|
503
|
+
const [name$1z, bem$1u] = createNamespace("badge");
|
503
504
|
const badgeProps = {
|
504
505
|
dot: Boolean,
|
505
506
|
max: numericProp,
|
@@ -510,8 +511,8 @@ const badgeProps = {
|
|
510
511
|
showZero: truthProp,
|
511
512
|
position: makeStringProp("top-right")
|
512
513
|
};
|
513
|
-
var stdin_default$
|
514
|
-
name: name$
|
514
|
+
var stdin_default$1G = defineComponent({
|
515
|
+
name: name$1z,
|
515
516
|
props: badgeProps,
|
516
517
|
setup(props, {
|
517
518
|
slots
|
@@ -565,7 +566,7 @@ var stdin_default$1C = defineComponent({
|
|
565
566
|
const renderBadge = () => {
|
566
567
|
if (hasContent() || props.dot) {
|
567
568
|
return createVNode("div", {
|
568
|
-
"class": bem$
|
569
|
+
"class": bem$1u([props.position, {
|
569
570
|
dot: props.dot,
|
570
571
|
fixed: !!slots.default
|
571
572
|
}]),
|
@@ -579,7 +580,7 @@ var stdin_default$1C = defineComponent({
|
|
579
580
|
tag
|
580
581
|
} = props;
|
581
582
|
return createVNode(tag, {
|
582
|
-
"class": bem$
|
583
|
+
"class": bem$1u("wrapper")
|
583
584
|
}, {
|
584
585
|
default: () => [slots.default(), renderBadge()]
|
585
586
|
});
|
@@ -588,14 +589,14 @@ var stdin_default$1C = defineComponent({
|
|
588
589
|
};
|
589
590
|
}
|
590
591
|
});
|
591
|
-
const Badge = withInstall(stdin_default$
|
592
|
+
const Badge = withInstall(stdin_default$1G);
|
592
593
|
let globalZIndex = 2e3;
|
593
594
|
const useGlobalZIndex = () => ++globalZIndex;
|
594
595
|
const setGlobalZIndex = (val) => {
|
595
596
|
globalZIndex = val;
|
596
597
|
};
|
597
|
-
const [name$
|
598
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
598
|
+
const [name$1y, bem$1t] = createNamespace("config-provider");
|
599
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1y);
|
599
600
|
const configProviderProps = {
|
600
601
|
tag: makeStringProp("div"),
|
601
602
|
theme: makeStringProp("light"),
|
@@ -612,8 +613,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
612
613
|
});
|
613
614
|
return cssVars;
|
614
615
|
}
|
615
|
-
var stdin_default$
|
616
|
-
name: name$
|
616
|
+
var stdin_default$1F = defineComponent({
|
617
|
+
name: name$1y,
|
617
618
|
props: configProviderProps,
|
618
619
|
setup(props, {
|
619
620
|
slots
|
@@ -645,7 +646,7 @@ var stdin_default$1B = defineComponent({
|
|
645
646
|
}
|
646
647
|
});
|
647
648
|
return () => createVNode(props.tag, {
|
648
|
-
"class": bem$
|
649
|
+
"class": bem$1t(),
|
649
650
|
"style": style.value
|
650
651
|
}, {
|
651
652
|
default: () => {
|
@@ -655,7 +656,7 @@ var stdin_default$1B = defineComponent({
|
|
655
656
|
});
|
656
657
|
}
|
657
658
|
});
|
658
|
-
const [name$
|
659
|
+
const [name$1x, bem$1s] = createNamespace("icon");
|
659
660
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
660
661
|
const iconProps = {
|
661
662
|
dot: Boolean,
|
@@ -667,14 +668,14 @@ const iconProps = {
|
|
667
668
|
badgeProps: Object,
|
668
669
|
classPrefix: String
|
669
670
|
};
|
670
|
-
var stdin_default$
|
671
|
-
name: name$
|
671
|
+
var stdin_default$1E = defineComponent({
|
672
|
+
name: name$1x,
|
672
673
|
props: iconProps,
|
673
674
|
setup(props, {
|
674
675
|
slots
|
675
676
|
}) {
|
676
677
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
677
|
-
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
678
|
+
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1s());
|
678
679
|
return () => {
|
679
680
|
const {
|
680
681
|
tag,
|
@@ -698,7 +699,7 @@ var stdin_default$1A = defineComponent({
|
|
698
699
|
default: () => {
|
699
700
|
var _a;
|
700
701
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
|
701
|
-
"class": bem$
|
702
|
+
"class": bem$1s("image"),
|
702
703
|
"src": name2
|
703
704
|
}, null)];
|
704
705
|
}
|
@@ -706,13 +707,13 @@ var stdin_default$1A = defineComponent({
|
|
706
707
|
};
|
707
708
|
}
|
708
709
|
});
|
709
|
-
const Icon = withInstall(stdin_default$
|
710
|
-
const [name$
|
710
|
+
const Icon = withInstall(stdin_default$1E);
|
711
|
+
const [name$1w, bem$1r] = createNamespace("loading");
|
711
712
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
712
|
-
"class": bem$
|
713
|
+
"class": bem$1r("line", String(index + 1))
|
713
714
|
}, null));
|
714
715
|
const CircularIcon = createVNode("svg", {
|
715
|
-
"class": bem$
|
716
|
+
"class": bem$1r("circular"),
|
716
717
|
"viewBox": "25 25 50 50"
|
717
718
|
}, [createVNode("circle", {
|
718
719
|
"cx": "50",
|
@@ -728,8 +729,8 @@ const loadingProps = {
|
|
728
729
|
textSize: numericProp,
|
729
730
|
textColor: String
|
730
731
|
};
|
731
|
-
var stdin_default$
|
732
|
-
name: name$
|
732
|
+
var stdin_default$1D = defineComponent({
|
733
|
+
name: name$1w,
|
733
734
|
props: loadingProps,
|
734
735
|
setup(props, {
|
735
736
|
slots
|
@@ -740,7 +741,7 @@ var stdin_default$1z = defineComponent({
|
|
740
741
|
const renderIcon = () => {
|
741
742
|
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
742
743
|
return createVNode("span", {
|
743
|
-
"class": bem$
|
744
|
+
"class": bem$1r("spinner", props.type),
|
744
745
|
"style": spinnerStyle.value
|
745
746
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
746
747
|
};
|
@@ -748,7 +749,7 @@ var stdin_default$1z = defineComponent({
|
|
748
749
|
var _a;
|
749
750
|
if (slots.default) {
|
750
751
|
return createVNode("span", {
|
751
|
-
"class": bem$
|
752
|
+
"class": bem$1r("text"),
|
752
753
|
"style": {
|
753
754
|
fontSize: addUnit(props.textSize),
|
754
755
|
color: (_a = props.textColor) != null ? _a : props.color
|
@@ -762,7 +763,7 @@ var stdin_default$1z = defineComponent({
|
|
762
763
|
vertical
|
763
764
|
} = props;
|
764
765
|
return createVNode("div", {
|
765
|
-
"class": bem$
|
766
|
+
"class": bem$1r([type, {
|
766
767
|
vertical
|
767
768
|
}]),
|
768
769
|
"aria-live": "polite",
|
@@ -771,8 +772,8 @@ var stdin_default$1z = defineComponent({
|
|
771
772
|
};
|
772
773
|
}
|
773
774
|
});
|
774
|
-
const Loading = withInstall(stdin_default$
|
775
|
-
const [name$
|
775
|
+
const Loading = withInstall(stdin_default$1D);
|
776
|
+
const [name$1v, bem$1q] = createNamespace("button");
|
776
777
|
const buttonProps = extend({}, routeProps, {
|
777
778
|
tag: makeStringProp("button"),
|
778
779
|
text: String,
|
@@ -794,8 +795,8 @@ const buttonProps = extend({}, routeProps, {
|
|
794
795
|
loadingType: String,
|
795
796
|
iconPosition: makeStringProp("left")
|
796
797
|
});
|
797
|
-
var stdin_default$
|
798
|
-
name: name$
|
798
|
+
var stdin_default$1C = defineComponent({
|
799
|
+
name: name$1v,
|
799
800
|
props: buttonProps,
|
800
801
|
emits: ["click"],
|
801
802
|
setup(props, {
|
@@ -810,7 +811,7 @@ var stdin_default$1y = defineComponent({
|
|
810
811
|
return createVNode(Loading, {
|
811
812
|
"size": props.loadingSize,
|
812
813
|
"type": props.loadingType,
|
813
|
-
"class": bem$
|
814
|
+
"class": bem$1q("loading")
|
814
815
|
}, null);
|
815
816
|
};
|
816
817
|
const renderIcon = () => {
|
@@ -819,13 +820,13 @@ var stdin_default$1y = defineComponent({
|
|
819
820
|
}
|
820
821
|
if (slots.icon) {
|
821
822
|
return createVNode("div", {
|
822
|
-
"class": bem$
|
823
|
+
"class": bem$1q("icon")
|
823
824
|
}, [slots.icon()]);
|
824
825
|
}
|
825
826
|
if (props.icon) {
|
826
827
|
return createVNode(Icon, {
|
827
828
|
"name": props.icon,
|
828
|
-
"class": bem$
|
829
|
+
"class": bem$1q("icon"),
|
829
830
|
"classPrefix": props.iconPrefix
|
830
831
|
}, null);
|
831
832
|
}
|
@@ -839,7 +840,7 @@ var stdin_default$1y = defineComponent({
|
|
839
840
|
}
|
840
841
|
if (text) {
|
841
842
|
return createVNode("span", {
|
842
|
-
"class": bem$
|
843
|
+
"class": bem$1q("text")
|
843
844
|
}, [text]);
|
844
845
|
}
|
845
846
|
};
|
@@ -886,7 +887,7 @@ var stdin_default$1y = defineComponent({
|
|
886
887
|
nativeType,
|
887
888
|
iconPosition
|
888
889
|
} = props;
|
889
|
-
const classes = [bem$
|
890
|
+
const classes = [bem$1q([type, size, {
|
890
891
|
plain,
|
891
892
|
block,
|
892
893
|
round,
|
@@ -905,14 +906,14 @@ var stdin_default$1y = defineComponent({
|
|
905
906
|
"onClick": onClick
|
906
907
|
}, {
|
907
908
|
default: () => [createVNode("div", {
|
908
|
-
"class": bem$
|
909
|
+
"class": bem$1q("content")
|
909
910
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
910
911
|
});
|
911
912
|
};
|
912
913
|
}
|
913
914
|
});
|
914
|
-
const Button = withInstall(stdin_default$
|
915
|
-
const [name$
|
915
|
+
const Button = withInstall(stdin_default$1C);
|
916
|
+
const [name$1u, bem$1p] = createNamespace("action-bar-button");
|
916
917
|
const actionBarButtonProps = extend({}, routeProps, {
|
917
918
|
type: String,
|
918
919
|
text: String,
|
@@ -921,8 +922,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
921
922
|
loading: Boolean,
|
922
923
|
disabled: Boolean
|
923
924
|
});
|
924
|
-
var stdin_default$
|
925
|
-
name: name$
|
925
|
+
var stdin_default$1B = defineComponent({
|
926
|
+
name: name$1u,
|
926
927
|
props: actionBarButtonProps,
|
927
928
|
setup(props, {
|
928
929
|
slots
|
@@ -957,7 +958,7 @@ var stdin_default$1x = defineComponent({
|
|
957
958
|
disabled
|
958
959
|
} = props;
|
959
960
|
return createVNode(Button, {
|
960
|
-
"class": bem$
|
961
|
+
"class": bem$1p([type, {
|
961
962
|
last: isLast.value,
|
962
963
|
first: isFirst.value
|
963
964
|
}]),
|
@@ -974,8 +975,8 @@ var stdin_default$1x = defineComponent({
|
|
974
975
|
};
|
975
976
|
}
|
976
977
|
});
|
977
|
-
const ActionBarButton = withInstall(stdin_default$
|
978
|
-
const [name$
|
978
|
+
const ActionBarButton = withInstall(stdin_default$1B);
|
979
|
+
const [name$1t, bem$1o] = createNamespace("action-bar-icon");
|
979
980
|
const actionBarIconProps = extend({}, routeProps, {
|
980
981
|
dot: Boolean,
|
981
982
|
text: String,
|
@@ -986,8 +987,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
986
987
|
badgeProps: Object,
|
987
988
|
iconPrefix: String
|
988
989
|
});
|
989
|
-
var stdin_default$
|
990
|
-
name: name$
|
990
|
+
var stdin_default$1A = defineComponent({
|
991
|
+
name: name$1t,
|
991
992
|
props: actionBarIconProps,
|
992
993
|
setup(props, {
|
993
994
|
slots
|
@@ -1007,7 +1008,7 @@ var stdin_default$1w = defineComponent({
|
|
1007
1008
|
if (slots.icon) {
|
1008
1009
|
return createVNode(Badge, mergeProps({
|
1009
1010
|
"dot": dot,
|
1010
|
-
"class": bem$
|
1011
|
+
"class": bem$1o("icon"),
|
1011
1012
|
"content": badge
|
1012
1013
|
}, badgeProps2), {
|
1013
1014
|
default: slots.icon
|
@@ -1019,20 +1020,20 @@ var stdin_default$1w = defineComponent({
|
|
1019
1020
|
"name": icon,
|
1020
1021
|
"badge": badge,
|
1021
1022
|
"color": color,
|
1022
|
-
"class": [bem$
|
1023
|
+
"class": [bem$1o("icon"), iconClass],
|
1023
1024
|
"badgeProps": badgeProps2,
|
1024
1025
|
"classPrefix": iconPrefix
|
1025
1026
|
}, null);
|
1026
1027
|
};
|
1027
1028
|
return () => createVNode("div", {
|
1028
1029
|
"role": "button",
|
1029
|
-
"class": bem$
|
1030
|
+
"class": bem$1o(),
|
1030
1031
|
"tabindex": 0,
|
1031
1032
|
"onClick": route2
|
1032
1033
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1033
1034
|
}
|
1034
1035
|
});
|
1035
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1036
|
+
const ActionBarIcon = withInstall(stdin_default$1A);
|
1036
1037
|
const popupSharedProps = {
|
1037
1038
|
show: Boolean,
|
1038
1039
|
zIndex: numericProp,
|
@@ -1171,7 +1172,7 @@ function useLazyRender(show) {
|
|
1171
1172
|
);
|
1172
1173
|
return (render) => () => inited.value ? render() : null;
|
1173
1174
|
}
|
1174
|
-
const [name$
|
1175
|
+
const [name$1s, bem$1n] = createNamespace("overlay");
|
1175
1176
|
const overlayProps = {
|
1176
1177
|
show: Boolean,
|
1177
1178
|
zIndex: numericProp,
|
@@ -1181,8 +1182,8 @@ const overlayProps = {
|
|
1181
1182
|
lazyRender: truthProp,
|
1182
1183
|
customStyle: Object
|
1183
1184
|
};
|
1184
|
-
var stdin_default$
|
1185
|
-
name: name$
|
1185
|
+
var stdin_default$1z = defineComponent({
|
1186
|
+
name: name$1s,
|
1186
1187
|
props: overlayProps,
|
1187
1188
|
setup(props, {
|
1188
1189
|
slots
|
@@ -1203,7 +1204,7 @@ var stdin_default$1v = defineComponent({
|
|
1203
1204
|
return withDirectives(createVNode("div", {
|
1204
1205
|
"ref": root,
|
1205
1206
|
"style": style,
|
1206
|
-
"class": [bem$
|
1207
|
+
"class": [bem$1n(), props.className]
|
1207
1208
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props.show]]);
|
1208
1209
|
});
|
1209
1210
|
useEventListener("touchmove", onTouchMove, {
|
@@ -1217,7 +1218,7 @@ var stdin_default$1v = defineComponent({
|
|
1217
1218
|
});
|
1218
1219
|
}
|
1219
1220
|
});
|
1220
|
-
const Overlay = withInstall(stdin_default$
|
1221
|
+
const Overlay = withInstall(stdin_default$1z);
|
1221
1222
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1222
1223
|
round: Boolean,
|
1223
1224
|
position: makeStringProp("center"),
|
@@ -1230,9 +1231,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1230
1231
|
safeAreaInsetTop: Boolean,
|
1231
1232
|
safeAreaInsetBottom: Boolean
|
1232
1233
|
});
|
1233
|
-
const [name$
|
1234
|
-
var stdin_default$
|
1235
|
-
name: name$
|
1234
|
+
const [name$1r, bem$1m] = createNamespace("popup");
|
1235
|
+
var stdin_default$1y = defineComponent({
|
1236
|
+
name: name$1r,
|
1236
1237
|
inheritAttrs: false,
|
1237
1238
|
props: popupProps$2,
|
1238
1239
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1306,7 +1307,7 @@ var stdin_default$1u = defineComponent({
|
|
1306
1307
|
"role": "button",
|
1307
1308
|
"tabindex": 0,
|
1308
1309
|
"name": props.closeIcon,
|
1309
|
-
"class": [bem$
|
1310
|
+
"class": [bem$1m("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
1310
1311
|
"classPrefix": props.iconPrefix,
|
1311
1312
|
"onClick": onClickCloseIcon
|
1312
1313
|
}, null);
|
@@ -1328,7 +1329,7 @@ var stdin_default$1u = defineComponent({
|
|
1328
1329
|
"style": style.value,
|
1329
1330
|
"role": "dialog",
|
1330
1331
|
"tabindex": 0,
|
1331
|
-
"class": [bem$
|
1332
|
+
"class": [bem$1m({
|
1332
1333
|
round,
|
1333
1334
|
[position]: position
|
1334
1335
|
}), {
|
@@ -1409,8 +1410,8 @@ var stdin_default$1u = defineComponent({
|
|
1409
1410
|
};
|
1410
1411
|
}
|
1411
1412
|
});
|
1412
|
-
const Popup = withInstall(stdin_default$
|
1413
|
-
const [name$
|
1413
|
+
const Popup = withInstall(stdin_default$1y);
|
1414
|
+
const [name$1q, bem$1l] = createNamespace("action-sheet");
|
1414
1415
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1415
1416
|
title: String,
|
1416
1417
|
round: truthProp,
|
@@ -1424,8 +1425,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1424
1425
|
safeAreaInsetBottom: truthProp
|
1425
1426
|
});
|
1426
1427
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1427
|
-
var stdin_default$
|
1428
|
-
name: name$
|
1428
|
+
var stdin_default$1x = defineComponent({
|
1429
|
+
name: name$1q,
|
1429
1430
|
props: actionSheetProps,
|
1430
1431
|
emits: ["select", "cancel", "update:show"],
|
1431
1432
|
setup(props, {
|
@@ -1440,10 +1441,10 @@ var stdin_default$1t = defineComponent({
|
|
1440
1441
|
const renderHeader = () => {
|
1441
1442
|
if (props.title) {
|
1442
1443
|
return createVNode("div", {
|
1443
|
-
"class": bem$
|
1444
|
+
"class": bem$1l("header")
|
1444
1445
|
}, [props.title, props.closeable && createVNode(Icon, {
|
1445
1446
|
"name": props.closeIcon,
|
1446
|
-
"class": [bem$
|
1447
|
+
"class": [bem$1l("close"), HAPTICS_FEEDBACK],
|
1447
1448
|
"onClick": onCancel
|
1448
1449
|
}, null)]);
|
1449
1450
|
}
|
@@ -1451,10 +1452,10 @@ var stdin_default$1t = defineComponent({
|
|
1451
1452
|
const renderCancel = () => {
|
1452
1453
|
if (slots.cancel || props.cancelText) {
|
1453
1454
|
return [createVNode("div", {
|
1454
|
-
"class": bem$
|
1455
|
+
"class": bem$1l("gap")
|
1455
1456
|
}, null), createVNode("button", {
|
1456
1457
|
"type": "button",
|
1457
|
-
"class": bem$
|
1458
|
+
"class": bem$1l("cancel"),
|
1458
1459
|
"onClick": onCancel
|
1459
1460
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1460
1461
|
}
|
@@ -1462,7 +1463,7 @@ var stdin_default$1t = defineComponent({
|
|
1462
1463
|
const renderActionContent = (action, index) => {
|
1463
1464
|
if (action.loading) {
|
1464
1465
|
return createVNode(Loading, {
|
1465
|
-
"class": bem$
|
1466
|
+
"class": bem$1l("loading-icon")
|
1466
1467
|
}, null);
|
1467
1468
|
}
|
1468
1469
|
if (slots.action) {
|
@@ -1472,9 +1473,9 @@ var stdin_default$1t = defineComponent({
|
|
1472
1473
|
});
|
1473
1474
|
}
|
1474
1475
|
return [createVNode("span", {
|
1475
|
-
"class": bem$
|
1476
|
+
"class": bem$1l("name")
|
1476
1477
|
}, [action.name]), action.subname && createVNode("div", {
|
1477
|
-
"class": bem$
|
1478
|
+
"class": bem$1l("subname")
|
1478
1479
|
}, [action.subname])];
|
1479
1480
|
};
|
1480
1481
|
const renderAction = (action, index) => {
|
@@ -1502,7 +1503,7 @@ var stdin_default$1t = defineComponent({
|
|
1502
1503
|
"style": {
|
1503
1504
|
color
|
1504
1505
|
},
|
1505
|
-
"class": [bem$
|
1506
|
+
"class": [bem$1l("item", {
|
1506
1507
|
loading,
|
1507
1508
|
disabled
|
1508
1509
|
}), className],
|
@@ -1513,26 +1514,26 @@ var stdin_default$1t = defineComponent({
|
|
1513
1514
|
if (props.description || slots.description) {
|
1514
1515
|
const content = slots.description ? slots.description() : props.description;
|
1515
1516
|
return createVNode("div", {
|
1516
|
-
"class": bem$
|
1517
|
+
"class": bem$1l("description")
|
1517
1518
|
}, [content]);
|
1518
1519
|
}
|
1519
1520
|
};
|
1520
1521
|
return () => createVNode(Popup, mergeProps({
|
1521
|
-
"class": bem$
|
1522
|
+
"class": bem$1l(),
|
1522
1523
|
"position": "bottom",
|
1523
1524
|
"onUpdate:show": updateShow
|
1524
1525
|
}, pick(props, popupInheritKeys$2)), {
|
1525
1526
|
default: () => {
|
1526
1527
|
var _a;
|
1527
1528
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
1528
|
-
"class": bem$
|
1529
|
+
"class": bem$1l("content")
|
1529
1530
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1530
1531
|
}
|
1531
1532
|
});
|
1532
1533
|
}
|
1533
1534
|
});
|
1534
|
-
const ActionSheet = withInstall(stdin_default$
|
1535
|
-
const [name$
|
1535
|
+
const ActionSheet = withInstall(stdin_default$1x);
|
1536
|
+
const [name$1p, bem$1k, t$j] = createNamespace("picker");
|
1536
1537
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1537
1538
|
function getColumnsType(columns, fields) {
|
1538
1539
|
const firstColumn = columns[0];
|
@@ -1601,10 +1602,10 @@ function assignDefaultFields(fields) {
|
|
1601
1602
|
const DEFAULT_DURATION = 200;
|
1602
1603
|
const MOMENTUM_TIME = 300;
|
1603
1604
|
const MOMENTUM_DISTANCE = 15;
|
1604
|
-
const [name$
|
1605
|
-
const PICKER_KEY = Symbol(name$
|
1606
|
-
var stdin_default$
|
1607
|
-
name: name$
|
1605
|
+
const [name$1o, bem$1j] = createNamespace("picker-column");
|
1606
|
+
const PICKER_KEY = Symbol(name$1o);
|
1607
|
+
var stdin_default$1w = defineComponent({
|
1608
|
+
name: name$1o,
|
1608
1609
|
props: {
|
1609
1610
|
value: numericProp,
|
1610
1611
|
fields: makeRequiredProp(Object),
|
@@ -1648,8 +1649,9 @@ var stdin_default$1s = defineComponent({
|
|
1648
1649
|
}
|
1649
1650
|
currentOffset.value = offset;
|
1650
1651
|
};
|
1652
|
+
const isReadonly = () => props.readonly || !props.options.length;
|
1651
1653
|
const onClickOption = (index) => {
|
1652
|
-
if (moving ||
|
1654
|
+
if (moving || isReadonly()) {
|
1653
1655
|
return;
|
1654
1656
|
}
|
1655
1657
|
transitionEndTrigger = null;
|
@@ -1674,7 +1676,7 @@ var stdin_default$1s = defineComponent({
|
|
1674
1676
|
}
|
1675
1677
|
};
|
1676
1678
|
const onTouchStart = (event) => {
|
1677
|
-
if (
|
1679
|
+
if (isReadonly()) {
|
1678
1680
|
return;
|
1679
1681
|
}
|
1680
1682
|
touch.start(event);
|
@@ -1689,7 +1691,7 @@ var stdin_default$1s = defineComponent({
|
|
1689
1691
|
transitionEndTrigger = null;
|
1690
1692
|
};
|
1691
1693
|
const onTouchMove = (event) => {
|
1692
|
-
if (
|
1694
|
+
if (isReadonly()) {
|
1693
1695
|
return;
|
1694
1696
|
}
|
1695
1697
|
touch.move(event);
|
@@ -1705,7 +1707,7 @@ var stdin_default$1s = defineComponent({
|
|
1705
1707
|
}
|
1706
1708
|
};
|
1707
1709
|
const onTouchEnd = () => {
|
1708
|
-
if (
|
1710
|
+
if (isReadonly()) {
|
1709
1711
|
return;
|
1710
1712
|
}
|
1711
1713
|
const distance = currentOffset.value - momentumOffset;
|
@@ -1736,7 +1738,7 @@ var stdin_default$1s = defineComponent({
|
|
1736
1738
|
role: "button",
|
1737
1739
|
style: optionStyle,
|
1738
1740
|
tabindex: disabled ? -1 : 0,
|
1739
|
-
class: [bem$
|
1741
|
+
class: [bem$1j("item", {
|
1740
1742
|
disabled,
|
1741
1743
|
selected: value === props.value
|
1742
1744
|
}), option.className],
|
@@ -1764,7 +1766,7 @@ var stdin_default$1s = defineComponent({
|
|
1764
1766
|
});
|
1765
1767
|
return () => createVNode("div", {
|
1766
1768
|
"ref": root,
|
1767
|
-
"class": bem$
|
1769
|
+
"class": bem$1j(),
|
1768
1770
|
"onTouchstartPassive": onTouchStart,
|
1769
1771
|
"onTouchend": onTouchEnd,
|
1770
1772
|
"onTouchcancel": onTouchEnd
|
@@ -1775,12 +1777,12 @@ var stdin_default$1s = defineComponent({
|
|
1775
1777
|
transitionDuration: `${currentDuration.value}ms`,
|
1776
1778
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1777
1779
|
},
|
1778
|
-
"class": bem$
|
1780
|
+
"class": bem$1j("wrapper"),
|
1779
1781
|
"onTransitionend": stopMomentum
|
1780
1782
|
}, [renderOptions()])]);
|
1781
1783
|
}
|
1782
1784
|
});
|
1783
|
-
const [name$
|
1785
|
+
const [name$1n] = createNamespace("picker-toolbar");
|
1784
1786
|
const pickerToolbarProps = {
|
1785
1787
|
title: String,
|
1786
1788
|
cancelButtonText: String,
|
@@ -1788,8 +1790,8 @@ const pickerToolbarProps = {
|
|
1788
1790
|
};
|
1789
1791
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1790
1792
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1791
|
-
var stdin_default$
|
1792
|
-
name: name$
|
1793
|
+
var stdin_default$1v = defineComponent({
|
1794
|
+
name: name$1n,
|
1793
1795
|
props: pickerToolbarProps,
|
1794
1796
|
emits: ["confirm", "cancel"],
|
1795
1797
|
setup(props, {
|
@@ -1802,7 +1804,7 @@ var stdin_default$1r = defineComponent({
|
|
1802
1804
|
}
|
1803
1805
|
if (props.title) {
|
1804
1806
|
return createVNode("div", {
|
1805
|
-
"class": [bem$
|
1807
|
+
"class": [bem$1k("title"), "van-ellipsis"]
|
1806
1808
|
}, [props.title]);
|
1807
1809
|
}
|
1808
1810
|
};
|
@@ -1812,7 +1814,7 @@ var stdin_default$1r = defineComponent({
|
|
1812
1814
|
const text = props.cancelButtonText || t$j("cancel");
|
1813
1815
|
return createVNode("button", {
|
1814
1816
|
"type": "button",
|
1815
|
-
"class": [bem$
|
1817
|
+
"class": [bem$1k("cancel"), HAPTICS_FEEDBACK],
|
1816
1818
|
"onClick": onCancel
|
1817
1819
|
}, [slots.cancel ? slots.cancel() : text]);
|
1818
1820
|
};
|
@@ -1820,12 +1822,12 @@ var stdin_default$1r = defineComponent({
|
|
1820
1822
|
const text = props.confirmButtonText || t$j("confirm");
|
1821
1823
|
return createVNode("button", {
|
1822
1824
|
"type": "button",
|
1823
|
-
"class": [bem$
|
1825
|
+
"class": [bem$1k("confirm"), HAPTICS_FEEDBACK],
|
1824
1826
|
"onClick": onConfirm
|
1825
1827
|
}, [slots.confirm ? slots.confirm() : text]);
|
1826
1828
|
};
|
1827
1829
|
return () => createVNode("div", {
|
1828
|
-
"class": bem$
|
1830
|
+
"class": bem$1k("toolbar")
|
1829
1831
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1830
1832
|
}
|
1831
1833
|
});
|
@@ -1909,7 +1911,7 @@ function useVisibilityChange(target, onChange) {
|
|
1909
1911
|
onBeforeUnmount(unobserve);
|
1910
1912
|
onMountedOrActivated(observe);
|
1911
1913
|
}
|
1912
|
-
const [name$
|
1914
|
+
const [name$1m, bem$1i] = createNamespace("sticky");
|
1913
1915
|
const stickyProps = {
|
1914
1916
|
zIndex: numericProp,
|
1915
1917
|
position: makeStringProp("top"),
|
@@ -1917,8 +1919,8 @@ const stickyProps = {
|
|
1917
1919
|
offsetTop: makeNumericProp(0),
|
1918
1920
|
offsetBottom: makeNumericProp(0)
|
1919
1921
|
};
|
1920
|
-
var stdin_default$
|
1921
|
-
name: name$
|
1922
|
+
var stdin_default$1u = defineComponent({
|
1923
|
+
name: name$1m,
|
1922
1924
|
props: stickyProps,
|
1923
1925
|
emits: ["scroll", "change"],
|
1924
1926
|
setup(props, {
|
@@ -2013,7 +2015,7 @@ var stdin_default$1q = defineComponent({
|
|
2013
2015
|
"ref": root,
|
2014
2016
|
"style": rootStyle.value
|
2015
2017
|
}, [createVNode("div", {
|
2016
|
-
"class": bem$
|
2018
|
+
"class": bem$1i({
|
2017
2019
|
fixed: state.fixed
|
2018
2020
|
}),
|
2019
2021
|
"style": stickyStyle.value
|
@@ -2021,10 +2023,10 @@ var stdin_default$1q = defineComponent({
|
|
2021
2023
|
};
|
2022
2024
|
}
|
2023
2025
|
});
|
2024
|
-
const Sticky = withInstall(stdin_default$
|
2025
|
-
const [name$
|
2026
|
-
var stdin_default$
|
2027
|
-
name: name$
|
2026
|
+
const Sticky = withInstall(stdin_default$1u);
|
2027
|
+
const [name$1l, bem$1h] = createNamespace("tab");
|
2028
|
+
var stdin_default$1t = defineComponent({
|
2029
|
+
name: name$1l,
|
2028
2030
|
props: {
|
2029
2031
|
id: String,
|
2030
2032
|
dot: Boolean,
|
@@ -2073,7 +2075,7 @@ var stdin_default$1p = defineComponent({
|
|
2073
2075
|
});
|
2074
2076
|
const renderText = () => {
|
2075
2077
|
const Text2 = createVNode("span", {
|
2076
|
-
"class": bem$
|
2078
|
+
"class": bem$1h("text", {
|
2077
2079
|
ellipsis: !props.scrollable
|
2078
2080
|
})
|
2079
2081
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -2091,7 +2093,7 @@ var stdin_default$1p = defineComponent({
|
|
2091
2093
|
return () => createVNode("div", {
|
2092
2094
|
"id": props.id,
|
2093
2095
|
"role": "tab",
|
2094
|
-
"class": [bem$
|
2096
|
+
"class": [bem$1h([props.type, {
|
2095
2097
|
grow: props.scrollable && !props.shrink,
|
2096
2098
|
shrink: props.shrink,
|
2097
2099
|
active: props.isActive,
|
@@ -2105,7 +2107,7 @@ var stdin_default$1p = defineComponent({
|
|
2105
2107
|
}, [renderText()]);
|
2106
2108
|
}
|
2107
2109
|
});
|
2108
|
-
const [name$
|
2110
|
+
const [name$1k, bem$1g] = createNamespace("swipe");
|
2109
2111
|
const swipeProps = {
|
2110
2112
|
loop: truthProp,
|
2111
2113
|
width: numericProp,
|
@@ -2120,9 +2122,9 @@ const swipeProps = {
|
|
2120
2122
|
showIndicators: truthProp,
|
2121
2123
|
stopPropagation: truthProp
|
2122
2124
|
};
|
2123
|
-
const SWIPE_KEY = Symbol(name$
|
2124
|
-
var stdin_default$
|
2125
|
-
name: name$
|
2125
|
+
const SWIPE_KEY = Symbol(name$1k);
|
2126
|
+
var stdin_default$1s = defineComponent({
|
2127
|
+
name: name$1k,
|
2126
2128
|
props: swipeProps,
|
2127
2129
|
emits: ["change"],
|
2128
2130
|
setup(props, {
|
@@ -2154,7 +2156,7 @@ var stdin_default$1o = defineComponent({
|
|
2154
2156
|
}
|
2155
2157
|
return 0;
|
2156
2158
|
});
|
2157
|
-
const maxCount = computed(() => Math.ceil(Math.abs(minOffset.value) / size.value));
|
2159
|
+
const maxCount = computed(() => size.value ? Math.ceil(Math.abs(minOffset.value) / size.value) : count.value);
|
2158
2160
|
const trackSize = computed(() => count.value * size.value);
|
2159
2161
|
const activeIndicator = computed(() => (state.active + count.value) % count.value);
|
2160
2162
|
const isCorrectDirection = computed(() => {
|
@@ -2384,7 +2386,7 @@ var stdin_default$1o = defineComponent({
|
|
2384
2386
|
} : void 0;
|
2385
2387
|
return createVNode("i", {
|
2386
2388
|
"style": style,
|
2387
|
-
"class": bem$
|
2389
|
+
"class": bem$1g("indicator", {
|
2388
2390
|
active
|
2389
2391
|
})
|
2390
2392
|
}, null);
|
@@ -2398,7 +2400,7 @@ var stdin_default$1o = defineComponent({
|
|
2398
2400
|
}
|
2399
2401
|
if (props.showIndicators && count.value > 1) {
|
2400
2402
|
return createVNode("div", {
|
2401
|
-
"class": bem$
|
2403
|
+
"class": bem$1g("indicators", {
|
2402
2404
|
vertical: props.vertical
|
2403
2405
|
})
|
2404
2406
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2440,11 +2442,11 @@ var stdin_default$1o = defineComponent({
|
|
2440
2442
|
var _a;
|
2441
2443
|
return createVNode("div", {
|
2442
2444
|
"ref": root,
|
2443
|
-
"class": bem$
|
2445
|
+
"class": bem$1g()
|
2444
2446
|
}, [createVNode("div", {
|
2445
2447
|
"ref": track,
|
2446
2448
|
"style": trackStyle.value,
|
2447
|
-
"class": bem$
|
2449
|
+
"class": bem$1g("track", {
|
2448
2450
|
vertical: props.vertical
|
2449
2451
|
}),
|
2450
2452
|
"onTouchstartPassive": onTouchStart,
|
@@ -2454,10 +2456,10 @@ var stdin_default$1o = defineComponent({
|
|
2454
2456
|
};
|
2455
2457
|
}
|
2456
2458
|
});
|
2457
|
-
const Swipe = withInstall(stdin_default$
|
2458
|
-
const [name$
|
2459
|
-
var stdin_default$
|
2460
|
-
name: name$
|
2459
|
+
const Swipe = withInstall(stdin_default$1s);
|
2460
|
+
const [name$1j, bem$1f] = createNamespace("tabs");
|
2461
|
+
var stdin_default$1r = defineComponent({
|
2462
|
+
name: name$1j,
|
2461
2463
|
props: {
|
2462
2464
|
count: makeRequiredProp(Number),
|
2463
2465
|
inited: Boolean,
|
@@ -2481,7 +2483,7 @@ var stdin_default$1n = defineComponent({
|
|
2481
2483
|
return createVNode(Swipe, {
|
2482
2484
|
"ref": swipeRef,
|
2483
2485
|
"loop": false,
|
2484
|
-
"class": bem$
|
2486
|
+
"class": bem$1f("track"),
|
2485
2487
|
"duration": +props.duration * 1e3,
|
2486
2488
|
"touchable": props.swipeable,
|
2487
2489
|
"lazyRender": props.lazyRender,
|
@@ -2509,13 +2511,13 @@ var stdin_default$1n = defineComponent({
|
|
2509
2511
|
swipeRef
|
2510
2512
|
});
|
2511
2513
|
return () => createVNode("div", {
|
2512
|
-
"class": bem$
|
2514
|
+
"class": bem$1f("content", {
|
2513
2515
|
animated: props.animated || props.swipeable
|
2514
2516
|
})
|
2515
2517
|
}, [renderChildren()]);
|
2516
2518
|
}
|
2517
2519
|
});
|
2518
|
-
const [name$
|
2520
|
+
const [name$1i, bem$1e] = createNamespace("tabs");
|
2519
2521
|
const tabsProps = {
|
2520
2522
|
type: makeStringProp("line"),
|
2521
2523
|
color: String,
|
@@ -2538,9 +2540,9 @@ const tabsProps = {
|
|
2538
2540
|
titleActiveColor: String,
|
2539
2541
|
titleInactiveColor: String
|
2540
2542
|
};
|
2541
|
-
const TABS_KEY = Symbol(name$
|
2542
|
-
var stdin_default$
|
2543
|
-
name: name$
|
2543
|
+
const TABS_KEY = Symbol(name$1i);
|
2544
|
+
var stdin_default$1q = defineComponent({
|
2545
|
+
name: name$1i,
|
2544
2546
|
props: tabsProps,
|
2545
2547
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2546
2548
|
setup(props, {
|
@@ -2729,7 +2731,7 @@ var stdin_default$1m = defineComponent({
|
|
2729
2731
|
setCurrentIndex(index);
|
2730
2732
|
}
|
2731
2733
|
};
|
2732
|
-
const renderNav = () => children.map((item, index) => createVNode(stdin_default$
|
2734
|
+
const renderNav = () => children.map((item, index) => createVNode(stdin_default$1t, mergeProps({
|
2733
2735
|
"key": item.id,
|
2734
2736
|
"id": `${id}-${index}`,
|
2735
2737
|
"ref": setTitleRefs(index),
|
@@ -2750,7 +2752,7 @@ var stdin_default$1m = defineComponent({
|
|
2750
2752
|
const renderLine = () => {
|
2751
2753
|
if (props.type === "line" && children.length) {
|
2752
2754
|
return createVNode("div", {
|
2753
|
-
"class": bem$
|
2755
|
+
"class": bem$1e("line"),
|
2754
2756
|
"style": state.lineStyle
|
2755
2757
|
}, null);
|
2756
2758
|
}
|
@@ -2764,13 +2766,13 @@ var stdin_default$1m = defineComponent({
|
|
2764
2766
|
} = props;
|
2765
2767
|
const Header = [createVNode("div", {
|
2766
2768
|
"ref": sticky ? void 0 : wrapRef,
|
2767
|
-
"class": [bem$
|
2769
|
+
"class": [bem$1e("wrap"), {
|
2768
2770
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2769
2771
|
}]
|
2770
2772
|
}, [createVNode("div", {
|
2771
2773
|
"ref": navRef,
|
2772
2774
|
"role": "tablist",
|
2773
|
-
"class": bem$
|
2775
|
+
"class": bem$1e("nav", [type, {
|
2774
2776
|
shrink: props.shrink,
|
2775
2777
|
complete: scrollable.value
|
2776
2778
|
}]),
|
@@ -2838,14 +2840,14 @@ var stdin_default$1m = defineComponent({
|
|
2838
2840
|
});
|
2839
2841
|
return () => createVNode("div", {
|
2840
2842
|
"ref": root,
|
2841
|
-
"class": bem$
|
2843
|
+
"class": bem$1e([props.type])
|
2842
2844
|
}, [props.sticky ? createVNode(Sticky, {
|
2843
2845
|
"container": root.value,
|
2844
2846
|
"offsetTop": offsetTopPx.value,
|
2845
2847
|
"onScroll": onStickyScroll
|
2846
2848
|
}, {
|
2847
2849
|
default: () => [renderHeader()]
|
2848
|
-
}) : renderHeader(), createVNode(stdin_default$
|
2850
|
+
}) : renderHeader(), createVNode(stdin_default$1r, {
|
2849
2851
|
"ref": contentRef,
|
2850
2852
|
"count": children.length,
|
2851
2853
|
"inited": state.inited,
|
@@ -2865,9 +2867,9 @@ var stdin_default$1m = defineComponent({
|
|
2865
2867
|
});
|
2866
2868
|
const TAB_STATUS_KEY = Symbol();
|
2867
2869
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
2868
|
-
const [name$
|
2869
|
-
var stdin_default$
|
2870
|
-
name: name$
|
2870
|
+
const [name$1h, bem$1d] = createNamespace("swipe-item");
|
2871
|
+
var stdin_default$1p = defineComponent({
|
2872
|
+
name: name$1h,
|
2871
2873
|
setup(props, {
|
2872
2874
|
slots
|
2873
2875
|
}) {
|
@@ -2932,14 +2934,14 @@ var stdin_default$1l = defineComponent({
|
|
2932
2934
|
return () => {
|
2933
2935
|
var _a;
|
2934
2936
|
return createVNode("div", {
|
2935
|
-
"class": bem$
|
2937
|
+
"class": bem$1d(),
|
2936
2938
|
"style": style.value
|
2937
2939
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
2938
2940
|
};
|
2939
2941
|
}
|
2940
2942
|
});
|
2941
|
-
const SwipeItem = withInstall(stdin_default$
|
2942
|
-
const [name$
|
2943
|
+
const SwipeItem = withInstall(stdin_default$1p);
|
2944
|
+
const [name$1g, bem$1c] = createNamespace("tab");
|
2943
2945
|
const tabProps = extend({}, routeProps, {
|
2944
2946
|
dot: Boolean,
|
2945
2947
|
name: numericProp,
|
@@ -2950,8 +2952,8 @@ const tabProps = extend({}, routeProps, {
|
|
2950
2952
|
titleStyle: [String, Object],
|
2951
2953
|
showZeroBadge: truthProp
|
2952
2954
|
});
|
2953
|
-
var stdin_default$
|
2954
|
-
name: name$
|
2955
|
+
var stdin_default$1o = defineComponent({
|
2956
|
+
name: name$1g,
|
2955
2957
|
props: tabProps,
|
2956
2958
|
setup(props, {
|
2957
2959
|
slots
|
@@ -3019,7 +3021,7 @@ var stdin_default$1k = defineComponent({
|
|
3019
3021
|
return createVNode(SwipeItem, {
|
3020
3022
|
"id": id,
|
3021
3023
|
"role": "tabpanel",
|
3022
|
-
"class": bem$
|
3024
|
+
"class": bem$1c("panel-wrapper", {
|
3023
3025
|
inactive: hasInactiveClass.value
|
3024
3026
|
}),
|
3025
3027
|
"tabindex": active.value ? 0 : -1,
|
@@ -3029,7 +3031,7 @@ var stdin_default$1k = defineComponent({
|
|
3029
3031
|
default: () => {
|
3030
3032
|
var _a2;
|
3031
3033
|
return [createVNode("div", {
|
3032
|
-
"class": bem$
|
3034
|
+
"class": bem$1c("panel")
|
3033
3035
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3034
3036
|
}
|
3035
3037
|
});
|
@@ -3042,22 +3044,22 @@ var stdin_default$1k = defineComponent({
|
|
3042
3044
|
return withDirectives(createVNode("div", {
|
3043
3045
|
"id": id,
|
3044
3046
|
"role": "tabpanel",
|
3045
|
-
"class": bem$
|
3047
|
+
"class": bem$1c("panel"),
|
3046
3048
|
"tabindex": show ? 0 : -1,
|
3047
3049
|
"aria-labelledby": label
|
3048
3050
|
}, [Content]), [[vShow, show]]);
|
3049
3051
|
};
|
3050
3052
|
}
|
3051
3053
|
});
|
3052
|
-
const Tab = withInstall(stdin_default$
|
3053
|
-
const Tabs = withInstall(stdin_default$
|
3054
|
-
const [name$
|
3055
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3054
|
+
const Tab = withInstall(stdin_default$1o);
|
3055
|
+
const Tabs = withInstall(stdin_default$1q);
|
3056
|
+
const [name$1f, bem$1b] = createNamespace("picker-group");
|
3057
|
+
const PICKER_GROUP_KEY = Symbol(name$1f);
|
3056
3058
|
const pickerGroupProps = extend({
|
3057
3059
|
tabs: makeArrayProp()
|
3058
3060
|
}, pickerToolbarProps);
|
3059
|
-
var stdin_default$
|
3060
|
-
name: name$
|
3061
|
+
var stdin_default$1n = defineComponent({
|
3062
|
+
name: name$1f,
|
3061
3063
|
props: pickerGroupProps,
|
3062
3064
|
emits: ["confirm", "cancel"],
|
3063
3065
|
setup(props, {
|
@@ -3077,18 +3079,18 @@ var stdin_default$1j = defineComponent({
|
|
3077
3079
|
var _a;
|
3078
3080
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3079
3081
|
return createVNode("div", {
|
3080
|
-
"class": bem$
|
3081
|
-
}, [createVNode(stdin_default$
|
3082
|
+
"class": bem$1b()
|
3083
|
+
}, [createVNode(stdin_default$1v, mergeProps(props, {
|
3082
3084
|
"onConfirm": onConfirm,
|
3083
3085
|
"onCancel": onCancel
|
3084
3086
|
}), null), createVNode(Tabs, {
|
3085
3087
|
"shrink": true,
|
3086
|
-
"class": bem$
|
3088
|
+
"class": bem$1b("tabs"),
|
3087
3089
|
"animated": true
|
3088
3090
|
}, {
|
3089
3091
|
default: () => [props.tabs.map((title, index) => createVNode(Tab, {
|
3090
3092
|
"title": title,
|
3091
|
-
"titleClass": bem$
|
3093
|
+
"titleClass": bem$1b("tab-title")
|
3092
3094
|
}, {
|
3093
3095
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3094
3096
|
}))]
|
@@ -3111,8 +3113,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3111
3113
|
toolbarPosition: makeStringProp("top"),
|
3112
3114
|
columnsFieldNames: Object
|
3113
3115
|
});
|
3114
|
-
var stdin_default$
|
3115
|
-
name: name$
|
3116
|
+
var stdin_default$1m = defineComponent({
|
3117
|
+
name: name$1p,
|
3116
3118
|
props: pickerProps,
|
3117
3119
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
3118
3120
|
setup(props, {
|
@@ -3179,11 +3181,13 @@ var stdin_default$1i = defineComponent({
|
|
3179
3181
|
const confirm = () => {
|
3180
3182
|
children.forEach((child) => child.stopMomentum());
|
3181
3183
|
const params = getEventParams();
|
3182
|
-
|
3184
|
+
nextTick(() => {
|
3185
|
+
emit("confirm", params);
|
3186
|
+
});
|
3183
3187
|
return params;
|
3184
3188
|
};
|
3185
3189
|
const cancel = () => emit("cancel", getEventParams());
|
3186
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
3190
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1w, {
|
3187
3191
|
"value": selectedValues.value[columnIndex],
|
3188
3192
|
"fields": fields.value,
|
3189
3193
|
"options": options,
|
@@ -3206,10 +3210,10 @@ var stdin_default$1i = defineComponent({
|
|
3206
3210
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3207
3211
|
};
|
3208
3212
|
return [createVNode("div", {
|
3209
|
-
"class": bem$
|
3213
|
+
"class": bem$1k("mask"),
|
3210
3214
|
"style": maskStyle
|
3211
3215
|
}, null), createVNode("div", {
|
3212
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3216
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1k("frame")],
|
3213
3217
|
"style": frameStyle
|
3214
3218
|
}, null)];
|
3215
3219
|
}
|
@@ -3221,13 +3225,13 @@ var stdin_default$1i = defineComponent({
|
|
3221
3225
|
};
|
3222
3226
|
return createVNode("div", {
|
3223
3227
|
"ref": columnsRef,
|
3224
|
-
"class": bem$
|
3228
|
+
"class": bem$1k("columns"),
|
3225
3229
|
"style": columnsStyle
|
3226
3230
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3227
3231
|
};
|
3228
3232
|
const renderToolbar = () => {
|
3229
3233
|
if (props.showToolbar && !parent) {
|
3230
|
-
return createVNode(stdin_default$
|
3234
|
+
return createVNode(stdin_default$1v, mergeProps(pick(props, pickerToolbarPropKeys), {
|
3231
3235
|
"onConfirm": confirm,
|
3232
3236
|
"onCancel": cancel
|
3233
3237
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3269,9 +3273,9 @@ var stdin_default$1i = defineComponent({
|
|
3269
3273
|
return () => {
|
3270
3274
|
var _a, _b;
|
3271
3275
|
return createVNode("div", {
|
3272
|
-
"class": bem$
|
3276
|
+
"class": bem$1k()
|
3273
3277
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? createVNode(Loading, {
|
3274
|
-
"class": bem$
|
3278
|
+
"class": bem$1k("loading")
|
3275
3279
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3276
3280
|
};
|
3277
3281
|
}
|
@@ -3362,8 +3366,8 @@ function formatDataForCascade({
|
|
3362
3366
|
}
|
3363
3367
|
return options;
|
3364
3368
|
}
|
3365
|
-
const Picker = withInstall(stdin_default$
|
3366
|
-
const [name$
|
3369
|
+
const Picker = withInstall(stdin_default$1m);
|
3370
|
+
const [name$1e, bem$1a] = createNamespace("area");
|
3367
3371
|
const areaProps = extend({}, pickerSharedProps, {
|
3368
3372
|
modelValue: String,
|
3369
3373
|
columnsNum: makeNumericProp(3),
|
@@ -3373,8 +3377,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3373
3377
|
default: () => ({})
|
3374
3378
|
}
|
3375
3379
|
});
|
3376
|
-
var stdin_default$
|
3377
|
-
name: name$
|
3380
|
+
var stdin_default$1l = defineComponent({
|
3381
|
+
name: name$1e,
|
3378
3382
|
props: areaProps,
|
3379
3383
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3380
3384
|
setup(props, {
|
@@ -3421,7 +3425,7 @@ var stdin_default$1h = defineComponent({
|
|
3421
3425
|
"ref": picker,
|
3422
3426
|
"modelValue": codes.value,
|
3423
3427
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3424
|
-
"class": bem$
|
3428
|
+
"class": bem$1a(),
|
3425
3429
|
"columns": columns.value,
|
3426
3430
|
"onChange": onChange,
|
3427
3431
|
"onCancel": onCancel,
|
@@ -3429,9 +3433,10 @@ var stdin_default$1h = defineComponent({
|
|
3429
3433
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3430
3434
|
}
|
3431
3435
|
});
|
3432
|
-
const Area = withInstall(stdin_default$
|
3433
|
-
const [name$
|
3436
|
+
const Area = withInstall(stdin_default$1l);
|
3437
|
+
const [name$1d, bem$19] = createNamespace("cell");
|
3434
3438
|
const cellSharedProps = {
|
3439
|
+
tag: makeStringProp("div"),
|
3435
3440
|
icon: String,
|
3436
3441
|
size: String,
|
3437
3442
|
title: numericProp,
|
@@ -3453,8 +3458,8 @@ const cellSharedProps = {
|
|
3453
3458
|
}
|
3454
3459
|
};
|
3455
3460
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3456
|
-
var stdin_default$
|
3457
|
-
name: name$
|
3461
|
+
var stdin_default$1k = defineComponent({
|
3462
|
+
name: name$1d,
|
3458
3463
|
props: cellProps,
|
3459
3464
|
setup(props, {
|
3460
3465
|
slots
|
@@ -3464,14 +3469,14 @@ var stdin_default$1g = defineComponent({
|
|
3464
3469
|
const showLabel = slots.label || isDef(props.label);
|
3465
3470
|
if (showLabel) {
|
3466
3471
|
return createVNode("div", {
|
3467
|
-
"class": [bem$
|
3472
|
+
"class": [bem$19("label"), props.labelClass]
|
3468
3473
|
}, [slots.label ? slots.label() : props.label]);
|
3469
3474
|
}
|
3470
3475
|
};
|
3471
3476
|
const renderTitle = () => {
|
3472
3477
|
if (slots.title || isDef(props.title)) {
|
3473
3478
|
return createVNode("div", {
|
3474
|
-
"class": [bem$
|
3479
|
+
"class": [bem$19("title"), props.titleClass],
|
3475
3480
|
"style": props.titleStyle
|
3476
3481
|
}, [slots.title ? slots.title() : createVNode("span", null, [props.title]), renderLabel()]);
|
3477
3482
|
}
|
@@ -3481,7 +3486,7 @@ var stdin_default$1g = defineComponent({
|
|
3481
3486
|
const hasValue = slot || isDef(props.value);
|
3482
3487
|
if (hasValue) {
|
3483
3488
|
return createVNode("div", {
|
3484
|
-
"class": [bem$
|
3489
|
+
"class": [bem$19("value"), props.valueClass]
|
3485
3490
|
}, [slot ? slot() : createVNode("span", null, [props.value])]);
|
3486
3491
|
}
|
3487
3492
|
};
|
@@ -3492,7 +3497,7 @@ var stdin_default$1g = defineComponent({
|
|
3492
3497
|
if (props.icon) {
|
3493
3498
|
return createVNode(Icon, {
|
3494
3499
|
"name": props.icon,
|
3495
|
-
"class": bem$
|
3500
|
+
"class": bem$19("left-icon"),
|
3496
3501
|
"classPrefix": props.iconPrefix
|
3497
3502
|
}, null);
|
3498
3503
|
}
|
@@ -3505,13 +3510,14 @@ var stdin_default$1g = defineComponent({
|
|
3505
3510
|
const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
|
3506
3511
|
return createVNode(Icon, {
|
3507
3512
|
"name": name2,
|
3508
|
-
"class": bem$
|
3513
|
+
"class": bem$19("right-icon")
|
3509
3514
|
}, null);
|
3510
3515
|
}
|
3511
3516
|
};
|
3512
3517
|
return () => {
|
3513
|
-
var _a
|
3518
|
+
var _a;
|
3514
3519
|
const {
|
3520
|
+
tag,
|
3515
3521
|
size,
|
3516
3522
|
center,
|
3517
3523
|
border,
|
@@ -3528,17 +3534,22 @@ var stdin_default$1g = defineComponent({
|
|
3528
3534
|
if (size) {
|
3529
3535
|
classes[size] = !!size;
|
3530
3536
|
}
|
3531
|
-
return createVNode(
|
3532
|
-
"class": bem$
|
3537
|
+
return createVNode(tag, {
|
3538
|
+
"class": bem$19(classes),
|
3533
3539
|
"role": clickable ? "button" : void 0,
|
3534
3540
|
"tabindex": clickable ? 0 : void 0,
|
3535
3541
|
"onClick": route2
|
3536
|
-
},
|
3542
|
+
}, {
|
3543
|
+
default: () => {
|
3544
|
+
var _a2;
|
3545
|
+
return [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_a2 = slots.extra) == null ? void 0 : _a2.call(slots)];
|
3546
|
+
}
|
3547
|
+
});
|
3537
3548
|
};
|
3538
3549
|
}
|
3539
3550
|
});
|
3540
|
-
const Cell = withInstall(stdin_default$
|
3541
|
-
const [name$
|
3551
|
+
const Cell = withInstall(stdin_default$1k);
|
3552
|
+
const [name$1c, bem$18] = createNamespace("form");
|
3542
3553
|
const formProps = {
|
3543
3554
|
colon: Boolean,
|
3544
3555
|
disabled: Boolean,
|
@@ -3557,8 +3568,8 @@ const formProps = {
|
|
3557
3568
|
default: "onBlur"
|
3558
3569
|
}
|
3559
3570
|
};
|
3560
|
-
var stdin_default$
|
3561
|
-
name: name$
|
3571
|
+
var stdin_default$1j = defineComponent({
|
3572
|
+
name: name$1c,
|
3562
3573
|
props: formProps,
|
3563
3574
|
emits: ["submit", "failed"],
|
3564
3575
|
setup(props, {
|
@@ -3682,13 +3693,13 @@ var stdin_default$1f = defineComponent({
|
|
3682
3693
|
return () => {
|
3683
3694
|
var _a;
|
3684
3695
|
return createVNode("form", {
|
3685
|
-
"class": bem$
|
3696
|
+
"class": bem$18(),
|
3686
3697
|
"onSubmit": onSubmit
|
3687
3698
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3688
3699
|
};
|
3689
3700
|
}
|
3690
3701
|
});
|
3691
|
-
const Form = withInstall(stdin_default$
|
3702
|
+
const Form = withInstall(stdin_default$1j);
|
3692
3703
|
function isEmptyValue(value) {
|
3693
3704
|
if (Array.isArray(value)) {
|
3694
3705
|
return !value.length;
|
@@ -3777,7 +3788,7 @@ function getStringLength(str) {
|
|
3777
3788
|
function cutString(str, maxlength) {
|
3778
3789
|
return [...str].slice(0, maxlength).join("");
|
3779
3790
|
}
|
3780
|
-
const [name$
|
3791
|
+
const [name$1b, bem$17] = createNamespace("field");
|
3781
3792
|
const fieldSharedProps = {
|
3782
3793
|
id: String,
|
3783
3794
|
name: String,
|
@@ -3824,8 +3835,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3824
3835
|
default: null
|
3825
3836
|
}
|
3826
3837
|
});
|
3827
|
-
var stdin_default$
|
3828
|
-
name: name$
|
3838
|
+
var stdin_default$1i = defineComponent({
|
3839
|
+
name: name$1b,
|
3829
3840
|
props: fieldProps,
|
3830
3841
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
3831
3842
|
setup(props, {
|
@@ -4054,7 +4065,7 @@ var stdin_default$1e = defineComponent({
|
|
4054
4065
|
const getInputId = () => props.id || `${id}-input`;
|
4055
4066
|
const getValidationStatus = () => state.status;
|
4056
4067
|
const renderInput = () => {
|
4057
|
-
const controlClass = bem$
|
4068
|
+
const controlClass = bem$17("control", [getProp("inputAlign"), {
|
4058
4069
|
error: showError.value,
|
4059
4070
|
custom: !!slots.input,
|
4060
4071
|
"min-height": props.type === "textarea" && !props.autosize
|
@@ -4096,7 +4107,7 @@ var stdin_default$1e = defineComponent({
|
|
4096
4107
|
const leftIconSlot = slots["left-icon"];
|
4097
4108
|
if (props.leftIcon || leftIconSlot) {
|
4098
4109
|
return createVNode("div", {
|
4099
|
-
"class": bem$
|
4110
|
+
"class": bem$17("left-icon"),
|
4100
4111
|
"onClick": onClickLeftIcon
|
4101
4112
|
}, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
|
4102
4113
|
"name": props.leftIcon,
|
@@ -4108,7 +4119,7 @@ var stdin_default$1e = defineComponent({
|
|
4108
4119
|
const rightIconSlot = slots["right-icon"];
|
4109
4120
|
if (props.rightIcon || rightIconSlot) {
|
4110
4121
|
return createVNode("div", {
|
4111
|
-
"class": bem$
|
4122
|
+
"class": bem$17("right-icon"),
|
4112
4123
|
"onClick": onClickRightIcon
|
4113
4124
|
}, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
|
4114
4125
|
"name": props.rightIcon,
|
@@ -4120,9 +4131,9 @@ var stdin_default$1e = defineComponent({
|
|
4120
4131
|
if (props.showWordLimit && props.maxlength) {
|
4121
4132
|
const count = getStringLength(getModelValue());
|
4122
4133
|
return createVNode("div", {
|
4123
|
-
"class": bem$
|
4134
|
+
"class": bem$17("word-limit")
|
4124
4135
|
}, [createVNode("span", {
|
4125
|
-
"class": bem$
|
4136
|
+
"class": bem$17("word-num")
|
4126
4137
|
}, [count]), createTextVNode("/"), props.maxlength]);
|
4127
4138
|
}
|
4128
4139
|
};
|
@@ -4135,7 +4146,7 @@ var stdin_default$1e = defineComponent({
|
|
4135
4146
|
const slot = slots["error-message"];
|
4136
4147
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4137
4148
|
return createVNode("div", {
|
4138
|
-
"class": bem$
|
4149
|
+
"class": bem$17("error-message", errorMessageAlign)
|
4139
4150
|
}, [slot ? slot({
|
4140
4151
|
message
|
4141
4152
|
}) : message]);
|
@@ -4154,13 +4165,13 @@ var stdin_default$1e = defineComponent({
|
|
4154
4165
|
}
|
4155
4166
|
};
|
4156
4167
|
const renderFieldBody = () => [createVNode("div", {
|
4157
|
-
"class": bem$
|
4168
|
+
"class": bem$17("body")
|
4158
4169
|
}, [renderInput(), showClear.value && createVNode(Icon, {
|
4159
4170
|
"ref": clearIconRef,
|
4160
4171
|
"name": props.clearIcon,
|
4161
|
-
"class": bem$
|
4172
|
+
"class": bem$17("clear")
|
4162
4173
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
4163
|
-
"class": bem$
|
4174
|
+
"class": bem$17("button")
|
4164
4175
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4165
4176
|
useExpose({
|
4166
4177
|
blur,
|
@@ -4199,7 +4210,7 @@ var stdin_default$1e = defineComponent({
|
|
4199
4210
|
const renderTitle = () => labelAlign === "top" ? [LeftIcon, Label] : Label;
|
4200
4211
|
return createVNode(Cell, {
|
4201
4212
|
"size": props.size,
|
4202
|
-
"class": bem$
|
4213
|
+
"class": bem$17({
|
4203
4214
|
error: showError.value,
|
4204
4215
|
disabled,
|
4205
4216
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4209,8 +4220,8 @@ var stdin_default$1e = defineComponent({
|
|
4209
4220
|
"isLink": props.isLink,
|
4210
4221
|
"clickable": props.clickable,
|
4211
4222
|
"titleStyle": labelStyle.value,
|
4212
|
-
"valueClass": bem$
|
4213
|
-
"titleClass": [bem$
|
4223
|
+
"valueClass": bem$17("value"),
|
4224
|
+
"titleClass": [bem$17("label", [labelAlign, {
|
4214
4225
|
required: props.required
|
4215
4226
|
}]), props.labelClass],
|
4216
4227
|
"arrowDirection": props.arrowDirection
|
@@ -4223,7 +4234,7 @@ var stdin_default$1e = defineComponent({
|
|
4223
4234
|
};
|
4224
4235
|
}
|
4225
4236
|
});
|
4226
|
-
const Field = withInstall(stdin_default$
|
4237
|
+
const Field = withInstall(stdin_default$1i);
|
4227
4238
|
let lockCount = 0;
|
4228
4239
|
function lockClick(lock) {
|
4229
4240
|
if (lock) {
|
@@ -4238,7 +4249,7 @@ function lockClick(lock) {
|
|
4238
4249
|
}
|
4239
4250
|
}
|
4240
4251
|
}
|
4241
|
-
const [name$
|
4252
|
+
const [name$1a, bem$16] = createNamespace("toast");
|
4242
4253
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4243
4254
|
const toastProps = {
|
4244
4255
|
icon: String,
|
@@ -4250,6 +4261,7 @@ const toastProps = {
|
|
4250
4261
|
duration: makeNumberProp(2e3),
|
4251
4262
|
position: makeStringProp("middle"),
|
4252
4263
|
teleport: [String, Object],
|
4264
|
+
wordBreak: String,
|
4253
4265
|
className: unknownProp,
|
4254
4266
|
iconPrefix: String,
|
4255
4267
|
transition: makeStringProp("van-fade"),
|
@@ -4260,8 +4272,8 @@ const toastProps = {
|
|
4260
4272
|
closeOnClick: Boolean,
|
4261
4273
|
closeOnClickOverlay: Boolean
|
4262
4274
|
};
|
4263
|
-
var stdin_default$
|
4264
|
-
name: name$
|
4275
|
+
var stdin_default$1h = defineComponent({
|
4276
|
+
name: name$1a,
|
4265
4277
|
props: toastProps,
|
4266
4278
|
emits: ["update:show"],
|
4267
4279
|
setup(props, {
|
@@ -4297,13 +4309,13 @@ var stdin_default$1d = defineComponent({
|
|
4297
4309
|
return createVNode(Icon, {
|
4298
4310
|
"name": icon || type,
|
4299
4311
|
"size": iconSize,
|
4300
|
-
"class": bem$
|
4312
|
+
"class": bem$16("icon"),
|
4301
4313
|
"classPrefix": iconPrefix
|
4302
4314
|
}, null);
|
4303
4315
|
}
|
4304
4316
|
if (type === "loading") {
|
4305
4317
|
return createVNode(Loading, {
|
4306
|
-
"class": bem$
|
4318
|
+
"class": bem$16("loading"),
|
4307
4319
|
"size": iconSize,
|
4308
4320
|
"type": loadingType
|
4309
4321
|
}, null);
|
@@ -4316,16 +4328,16 @@ var stdin_default$1d = defineComponent({
|
|
4316
4328
|
} = props;
|
4317
4329
|
if (slots.message) {
|
4318
4330
|
return createVNode("div", {
|
4319
|
-
"class": bem$
|
4331
|
+
"class": bem$16("text")
|
4320
4332
|
}, [slots.message()]);
|
4321
4333
|
}
|
4322
4334
|
if (isDef(message) && message !== "") {
|
4323
4335
|
return type === "html" ? createVNode("div", {
|
4324
4336
|
"key": 0,
|
4325
|
-
"class": bem$
|
4337
|
+
"class": bem$16("text"),
|
4326
4338
|
"innerHTML": String(message)
|
4327
4339
|
}, null) : createVNode("div", {
|
4328
|
-
"class": bem$
|
4340
|
+
"class": bem$16("text")
|
4329
4341
|
}, [message]);
|
4330
4342
|
}
|
4331
4343
|
};
|
@@ -4341,7 +4353,7 @@ var stdin_default$1d = defineComponent({
|
|
4341
4353
|
onMounted(toggleClickable);
|
4342
4354
|
onUnmounted(toggleClickable);
|
4343
4355
|
return () => createVNode(Popup, mergeProps({
|
4344
|
-
"class": [bem$
|
4356
|
+
"class": [bem$16([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
4345
4357
|
[props.type]: !props.icon
|
4346
4358
|
}]), props.className],
|
4347
4359
|
"lockScroll": false,
|
@@ -4442,7 +4454,7 @@ function createInstance() {
|
|
4442
4454
|
onClosed,
|
4443
4455
|
"onUpdate:show": toggle
|
4444
4456
|
};
|
4445
|
-
return createVNode(stdin_default$
|
4457
|
+
return createVNode(stdin_default$1h, mergeProps(state, attrs), null);
|
4446
4458
|
};
|
4447
4459
|
watch(message, (val) => {
|
4448
4460
|
state.message = val;
|
@@ -4512,8 +4524,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4512
4524
|
const allowMultipleToast = (value = true) => {
|
4513
4525
|
allowMultiple = value;
|
4514
4526
|
};
|
4515
|
-
const Toast = withInstall(stdin_default$
|
4516
|
-
const [name$
|
4527
|
+
const Toast = withInstall(stdin_default$1h);
|
4528
|
+
const [name$19, bem$15] = createNamespace("switch");
|
4517
4529
|
const switchProps = {
|
4518
4530
|
size: numericProp,
|
4519
4531
|
loading: Boolean,
|
@@ -4530,8 +4542,8 @@ const switchProps = {
|
|
4530
4542
|
default: false
|
4531
4543
|
}
|
4532
4544
|
};
|
4533
|
-
var stdin_default$
|
4534
|
-
name: name$
|
4545
|
+
var stdin_default$1g = defineComponent({
|
4546
|
+
name: name$19,
|
4535
4547
|
props: switchProps,
|
4536
4548
|
emits: ["change", "update:modelValue"],
|
4537
4549
|
setup(props, {
|
@@ -4550,7 +4562,7 @@ var stdin_default$1c = defineComponent({
|
|
4550
4562
|
if (props.loading) {
|
4551
4563
|
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
4552
4564
|
return createVNode(Loading, {
|
4553
|
-
"class": bem$
|
4565
|
+
"class": bem$15("loading"),
|
4554
4566
|
"color": color
|
4555
4567
|
}, null);
|
4556
4568
|
}
|
@@ -4575,7 +4587,7 @@ var stdin_default$1c = defineComponent({
|
|
4575
4587
|
};
|
4576
4588
|
return createVNode("div", {
|
4577
4589
|
"role": "switch",
|
4578
|
-
"class": bem$
|
4590
|
+
"class": bem$15({
|
4579
4591
|
on: checked,
|
4580
4592
|
loading,
|
4581
4593
|
disabled
|
@@ -4585,16 +4597,16 @@ var stdin_default$1c = defineComponent({
|
|
4585
4597
|
"aria-checked": checked,
|
4586
4598
|
"onClick": onClick
|
4587
4599
|
}, [createVNode("div", {
|
4588
|
-
"class": bem$
|
4600
|
+
"class": bem$15("node")
|
4589
4601
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4590
4602
|
};
|
4591
4603
|
}
|
4592
4604
|
});
|
4593
|
-
const Switch = withInstall(stdin_default$
|
4594
|
-
const [name$
|
4605
|
+
const Switch = withInstall(stdin_default$1g);
|
4606
|
+
const [name$18, bem$14] = createNamespace("address-edit-detail");
|
4595
4607
|
const t$i = createNamespace("address-edit")[2];
|
4596
|
-
var stdin_default$
|
4597
|
-
name: name$
|
4608
|
+
var stdin_default$1f = defineComponent({
|
4609
|
+
name: name$18,
|
4598
4610
|
props: {
|
4599
4611
|
show: Boolean,
|
4600
4612
|
rows: numericProp,
|
@@ -4628,7 +4640,7 @@ var stdin_default$1b = defineComponent({
|
|
4628
4640
|
"icon": "location-o",
|
4629
4641
|
"title": express.name,
|
4630
4642
|
"label": express.address,
|
4631
|
-
"class": bem$
|
4643
|
+
"class": bem$14("search-item"),
|
4632
4644
|
"border": false,
|
4633
4645
|
"onClick": () => onSelect(express)
|
4634
4646
|
}, null));
|
@@ -4642,7 +4654,7 @@ var stdin_default$1b = defineComponent({
|
|
4642
4654
|
"autosize": true,
|
4643
4655
|
"clearable": true,
|
4644
4656
|
"ref": field,
|
4645
|
-
"class": bem$
|
4657
|
+
"class": bem$14(),
|
4646
4658
|
"rows": props.rows,
|
4647
4659
|
"type": "textarea",
|
4648
4660
|
"rules": props.rules,
|
@@ -4659,7 +4671,7 @@ var stdin_default$1b = defineComponent({
|
|
4659
4671
|
};
|
4660
4672
|
}
|
4661
4673
|
});
|
4662
|
-
const [name$
|
4674
|
+
const [name$17, bem$13, t$h] = createNamespace("address-edit");
|
4663
4675
|
const DEFAULT_DATA = {
|
4664
4676
|
name: "",
|
4665
4677
|
tel: "",
|
@@ -4699,8 +4711,8 @@ const addressEditProps = {
|
|
4699
4711
|
default: isMobile
|
4700
4712
|
}
|
4701
4713
|
};
|
4702
|
-
var stdin_default$
|
4703
|
-
name: name$
|
4714
|
+
var stdin_default$1e = defineComponent({
|
4715
|
+
name: name$17,
|
4704
4716
|
props: addressEditProps,
|
4705
4717
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
4706
4718
|
setup(props, {
|
@@ -4811,7 +4823,7 @@ var stdin_default$1a = defineComponent({
|
|
4811
4823
|
return withDirectives(createVNode(Cell, {
|
4812
4824
|
"center": true,
|
4813
4825
|
"title": t$h("defaultAddress"),
|
4814
|
-
"class": bem
|
4826
|
+
"class": bem$13("default")
|
4815
4827
|
}, slots2), [[vShow, !hideBottomFields.value]]);
|
4816
4828
|
}
|
4817
4829
|
};
|
@@ -4837,13 +4849,13 @@ var stdin_default$1a = defineComponent({
|
|
4837
4849
|
disableArea
|
4838
4850
|
} = props;
|
4839
4851
|
return createVNode(Form, {
|
4840
|
-
"class": bem
|
4852
|
+
"class": bem$13(),
|
4841
4853
|
"onSubmit": onSave
|
4842
4854
|
}, {
|
4843
4855
|
default: () => {
|
4844
4856
|
var _a;
|
4845
4857
|
return [createVNode("div", {
|
4846
|
-
"class": bem
|
4858
|
+
"class": bem$13("fields")
|
4847
4859
|
}, [createVNode(Field, {
|
4848
4860
|
"modelValue": data.name,
|
4849
4861
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
@@ -4874,7 +4886,7 @@ var stdin_default$1a = defineComponent({
|
|
4874
4886
|
emit("clickArea");
|
4875
4887
|
showAreaPopup.value = !disableArea;
|
4876
4888
|
}
|
4877
|
-
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$
|
4889
|
+
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$1f, {
|
4878
4890
|
"show": props.showDetail,
|
4879
4891
|
"rows": props.detailRows,
|
4880
4892
|
"rules": rules.value.addressDetail,
|
@@ -4888,19 +4900,19 @@ var stdin_default$1a = defineComponent({
|
|
4888
4900
|
"onInput": onChangeDetail,
|
4889
4901
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
4890
4902
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
4891
|
-
"class": bem
|
4903
|
+
"class": bem$13("buttons")
|
4892
4904
|
}, [createVNode(Button, {
|
4893
4905
|
"block": true,
|
4894
4906
|
"round": true,
|
4895
4907
|
"type": "primary",
|
4896
4908
|
"text": props.saveButtonText || t$h("save"),
|
4897
|
-
"class": bem
|
4909
|
+
"class": bem$13("button"),
|
4898
4910
|
"loading": props.isSaving,
|
4899
4911
|
"nativeType": "submit"
|
4900
4912
|
}, null), props.showDelete && createVNode(Button, {
|
4901
4913
|
"block": true,
|
4902
4914
|
"round": true,
|
4903
|
-
"class": bem
|
4915
|
+
"class": bem$13("button"),
|
4904
4916
|
"loading": props.isDeleting,
|
4905
4917
|
"text": props.deleteButtonText || t$h("delete"),
|
4906
4918
|
"onClick": onDelete
|
@@ -4930,8 +4942,8 @@ var stdin_default$1a = defineComponent({
|
|
4930
4942
|
};
|
4931
4943
|
}
|
4932
4944
|
});
|
4933
|
-
const AddressEdit = withInstall(stdin_default$
|
4934
|
-
const [name$
|
4945
|
+
const AddressEdit = withInstall(stdin_default$1e);
|
4946
|
+
const [name$16, bem$12] = createNamespace("radio-group");
|
4935
4947
|
const radioGroupProps = {
|
4936
4948
|
disabled: Boolean,
|
4937
4949
|
iconSize: numericProp,
|
@@ -4939,9 +4951,9 @@ const radioGroupProps = {
|
|
4939
4951
|
modelValue: unknownProp,
|
4940
4952
|
checkedColor: String
|
4941
4953
|
};
|
4942
|
-
const RADIO_KEY = Symbol(name$
|
4943
|
-
var stdin_default$
|
4944
|
-
name: name$
|
4954
|
+
const RADIO_KEY = Symbol(name$16);
|
4955
|
+
var stdin_default$1d = defineComponent({
|
4956
|
+
name: name$16,
|
4945
4957
|
props: radioGroupProps,
|
4946
4958
|
emits: ["change", "update:modelValue"],
|
4947
4959
|
setup(props, {
|
@@ -4961,14 +4973,14 @@ var stdin_default$19 = defineComponent({
|
|
4961
4973
|
return () => {
|
4962
4974
|
var _a;
|
4963
4975
|
return createVNode("div", {
|
4964
|
-
"class": bem$
|
4976
|
+
"class": bem$12([props.direction]),
|
4965
4977
|
"role": "radiogroup"
|
4966
4978
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
4967
4979
|
};
|
4968
4980
|
}
|
4969
4981
|
});
|
4970
|
-
const RadioGroup = withInstall(stdin_default$
|
4971
|
-
const [name$
|
4982
|
+
const RadioGroup = withInstall(stdin_default$1d);
|
4983
|
+
const [name$15, bem$11] = createNamespace("tag");
|
4972
4984
|
const tagProps = {
|
4973
4985
|
size: String,
|
4974
4986
|
mark: Boolean,
|
@@ -4980,8 +4992,8 @@ const tagProps = {
|
|
4980
4992
|
textColor: String,
|
4981
4993
|
closeable: Boolean
|
4982
4994
|
};
|
4983
|
-
var stdin_default$
|
4984
|
-
name: name$
|
4995
|
+
var stdin_default$1c = defineComponent({
|
4996
|
+
name: name$15,
|
4985
4997
|
props: tagProps,
|
4986
4998
|
emits: ["close"],
|
4987
4999
|
setup(props, {
|
@@ -5024,12 +5036,12 @@ var stdin_default$18 = defineComponent({
|
|
5024
5036
|
}
|
5025
5037
|
const CloseIcon = closeable && createVNode(Icon, {
|
5026
5038
|
"name": "cross",
|
5027
|
-
"class": [bem$
|
5039
|
+
"class": [bem$11("close"), HAPTICS_FEEDBACK],
|
5028
5040
|
"onClick": onClose
|
5029
5041
|
}, null);
|
5030
5042
|
return createVNode("span", {
|
5031
5043
|
"style": getStyle(),
|
5032
|
-
"class": bem$
|
5044
|
+
"class": bem$11([classes, type])
|
5033
5045
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5034
5046
|
};
|
5035
5047
|
return () => createVNode(Transition, {
|
@@ -5039,7 +5051,7 @@ var stdin_default$18 = defineComponent({
|
|
5039
5051
|
});
|
5040
5052
|
}
|
5041
5053
|
});
|
5042
|
-
const Tag = withInstall(stdin_default$
|
5054
|
+
const Tag = withInstall(stdin_default$1c);
|
5043
5055
|
const checkerProps = {
|
5044
5056
|
name: unknownProp,
|
5045
5057
|
shape: makeStringProp("round"),
|
@@ -5050,7 +5062,7 @@ const checkerProps = {
|
|
5050
5062
|
labelPosition: String,
|
5051
5063
|
labelDisabled: Boolean
|
5052
5064
|
};
|
5053
|
-
var stdin_default$
|
5065
|
+
var stdin_default$1b = defineComponent({
|
5054
5066
|
props: extend({}, checkerProps, {
|
5055
5067
|
bem: makeRequiredProp(Function),
|
5056
5068
|
role: String,
|
@@ -5140,9 +5152,9 @@ var stdin_default$17 = defineComponent({
|
|
5140
5152
|
}
|
5141
5153
|
});
|
5142
5154
|
const radioProps = checkerProps;
|
5143
|
-
const [name$
|
5144
|
-
var stdin_default$
|
5145
|
-
name: name$
|
5155
|
+
const [name$14, bem$10] = createNamespace("radio");
|
5156
|
+
var stdin_default$1a = defineComponent({
|
5157
|
+
name: name$14,
|
5146
5158
|
props: checkerProps,
|
5147
5159
|
emits: ["update:modelValue"],
|
5148
5160
|
setup(props, {
|
@@ -5163,8 +5175,8 @@ var stdin_default$16 = defineComponent({
|
|
5163
5175
|
emit("update:modelValue", props.name);
|
5164
5176
|
}
|
5165
5177
|
};
|
5166
|
-
return () => createVNode(stdin_default$
|
5167
|
-
"bem": bem$
|
5178
|
+
return () => createVNode(stdin_default$1b, mergeProps({
|
5179
|
+
"bem": bem$10,
|
5168
5180
|
"role": "radio",
|
5169
5181
|
"parent": parent,
|
5170
5182
|
"checked": checked(),
|
@@ -5172,10 +5184,10 @@ var stdin_default$16 = defineComponent({
|
|
5172
5184
|
}, props), pick(slots, ["default", "icon"]));
|
5173
5185
|
}
|
5174
5186
|
});
|
5175
|
-
const Radio = withInstall(stdin_default$
|
5176
|
-
const [name
|
5177
|
-
var stdin_default$
|
5178
|
-
name: name
|
5187
|
+
const Radio = withInstall(stdin_default$1a);
|
5188
|
+
const [name$13, bem$$] = createNamespace("address-item");
|
5189
|
+
var stdin_default$19 = defineComponent({
|
5190
|
+
name: name$13,
|
5179
5191
|
props: {
|
5180
5192
|
address: makeRequiredProp(Object),
|
5181
5193
|
disabled: Boolean,
|
@@ -5195,7 +5207,7 @@ var stdin_default$15 = defineComponent({
|
|
5195
5207
|
};
|
5196
5208
|
const renderRightIcon = () => createVNode(Icon, {
|
5197
5209
|
"name": "edit",
|
5198
|
-
"class": bem
|
5210
|
+
"class": bem$$("edit"),
|
5199
5211
|
"onClick": (event) => {
|
5200
5212
|
event.stopPropagation();
|
5201
5213
|
emit("edit");
|
@@ -5210,7 +5222,7 @@ var stdin_default$15 = defineComponent({
|
|
5210
5222
|
return createVNode(Tag, {
|
5211
5223
|
"type": "primary",
|
5212
5224
|
"round": true,
|
5213
|
-
"class": bem
|
5225
|
+
"class": bem$$("tag")
|
5214
5226
|
}, {
|
5215
5227
|
default: () => [props.defaultTagText]
|
5216
5228
|
});
|
@@ -5223,9 +5235,9 @@ var stdin_default$15 = defineComponent({
|
|
5223
5235
|
switchable
|
5224
5236
|
} = props;
|
5225
5237
|
const Info = [createVNode("div", {
|
5226
|
-
"class": bem
|
5238
|
+
"class": bem$$("name")
|
5227
5239
|
}, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
|
5228
|
-
"class": bem
|
5240
|
+
"class": bem$$("address")
|
5229
5241
|
}, [address.address])];
|
5230
5242
|
if (switchable && !disabled) {
|
5231
5243
|
return createVNode(Radio, {
|
@@ -5243,13 +5255,13 @@ var stdin_default$15 = defineComponent({
|
|
5243
5255
|
disabled
|
5244
5256
|
} = props;
|
5245
5257
|
return createVNode("div", {
|
5246
|
-
"class": bem
|
5258
|
+
"class": bem$$({
|
5247
5259
|
disabled
|
5248
5260
|
}),
|
5249
5261
|
"onClick": onClick
|
5250
5262
|
}, [createVNode(Cell, {
|
5251
5263
|
"border": false,
|
5252
|
-
"titleClass": bem
|
5264
|
+
"titleClass": bem$$("title")
|
5253
5265
|
}, {
|
5254
5266
|
title: renderContent,
|
5255
5267
|
"right-icon": renderRightIcon
|
@@ -5259,7 +5271,7 @@ var stdin_default$15 = defineComponent({
|
|
5259
5271
|
};
|
5260
5272
|
}
|
5261
5273
|
});
|
5262
|
-
const [name$
|
5274
|
+
const [name$12, bem$_, t$g] = createNamespace("address-list");
|
5263
5275
|
const addressListProps = {
|
5264
5276
|
list: makeArrayProp(),
|
5265
5277
|
modelValue: numericProp,
|
@@ -5269,8 +5281,8 @@ const addressListProps = {
|
|
5269
5281
|
addButtonText: String,
|
5270
5282
|
defaultTagText: String
|
5271
5283
|
};
|
5272
|
-
var stdin_default$
|
5273
|
-
name: name$
|
5284
|
+
var stdin_default$18 = defineComponent({
|
5285
|
+
name: name$12,
|
5274
5286
|
props: addressListProps,
|
5275
5287
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5276
5288
|
setup(props, {
|
@@ -5286,7 +5298,7 @@ var stdin_default$14 = defineComponent({
|
|
5286
5298
|
emit("update:modelValue", item.id);
|
5287
5299
|
}
|
5288
5300
|
};
|
5289
|
-
return createVNode(stdin_default$
|
5301
|
+
return createVNode(stdin_default$19, {
|
5290
5302
|
"key": item.id,
|
5291
5303
|
"address": item,
|
5292
5304
|
"disabled": disabled,
|
@@ -5306,13 +5318,13 @@ var stdin_default$14 = defineComponent({
|
|
5306
5318
|
}
|
5307
5319
|
};
|
5308
5320
|
const renderBottom = () => createVNode("div", {
|
5309
|
-
"class": [bem$
|
5321
|
+
"class": [bem$_("bottom"), "van-safe-area-bottom"]
|
5310
5322
|
}, [createVNode(Button, {
|
5311
5323
|
"round": true,
|
5312
5324
|
"block": true,
|
5313
5325
|
"type": "primary",
|
5314
5326
|
"text": props.addButtonText || t$g("add"),
|
5315
|
-
"class": bem$
|
5327
|
+
"class": bem$_("add"),
|
5316
5328
|
"onClick": () => emit("add")
|
5317
5329
|
}, null)]);
|
5318
5330
|
return () => {
|
@@ -5320,10 +5332,10 @@ var stdin_default$14 = defineComponent({
|
|
5320
5332
|
const List2 = renderList(props.list);
|
5321
5333
|
const DisabledList = renderList(props.disabledList, true);
|
5322
5334
|
const DisabledText = props.disabledText && createVNode("div", {
|
5323
|
-
"class": bem$
|
5335
|
+
"class": bem$_("disabled-text")
|
5324
5336
|
}, [props.disabledText]);
|
5325
5337
|
return createVNode("div", {
|
5326
|
-
"class": bem$
|
5338
|
+
"class": bem$_()
|
5327
5339
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
|
5328
5340
|
"modelValue": props.modelValue
|
5329
5341
|
}, {
|
@@ -5332,8 +5344,8 @@ var stdin_default$14 = defineComponent({
|
|
5332
5344
|
};
|
5333
5345
|
}
|
5334
5346
|
});
|
5335
|
-
const AddressList = withInstall(stdin_default$
|
5336
|
-
const [name$
|
5347
|
+
const AddressList = withInstall(stdin_default$18);
|
5348
|
+
const [name$11, bem$Z, t$f] = createNamespace("calendar");
|
5337
5349
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5338
5350
|
function compareMonth(date1, date2) {
|
5339
5351
|
const year1 = date1.getFullYear();
|
@@ -5414,9 +5426,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
5414
5426
|
}
|
5415
5427
|
return value;
|
5416
5428
|
});
|
5417
|
-
const [name$
|
5418
|
-
var stdin_default$
|
5419
|
-
name: name$
|
5429
|
+
const [name$10] = createNamespace("calendar-day");
|
5430
|
+
var stdin_default$17 = defineComponent({
|
5431
|
+
name: name$10,
|
5420
5432
|
props: {
|
5421
5433
|
item: makeRequiredProp(Object),
|
5422
5434
|
color: String,
|
@@ -5478,7 +5490,7 @@ var stdin_default$13 = defineComponent({
|
|
5478
5490
|
} = props.item;
|
5479
5491
|
if (topInfo || slots["top-info"]) {
|
5480
5492
|
return createVNode("div", {
|
5481
|
-
"class": bem$
|
5493
|
+
"class": bem$Z("top-info")
|
5482
5494
|
}, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
|
5483
5495
|
}
|
5484
5496
|
};
|
@@ -5488,7 +5500,7 @@ var stdin_default$13 = defineComponent({
|
|
5488
5500
|
} = props.item;
|
5489
5501
|
if (bottomInfo || slots["bottom-info"]) {
|
5490
5502
|
return createVNode("div", {
|
5491
|
-
"class": bem$
|
5503
|
+
"class": bem$Z("bottom-info")
|
5492
5504
|
}, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
|
5493
5505
|
}
|
5494
5506
|
};
|
@@ -5505,7 +5517,7 @@ var stdin_default$13 = defineComponent({
|
|
5505
5517
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
5506
5518
|
if (type === "selected") {
|
5507
5519
|
return createVNode("div", {
|
5508
|
-
"class": bem$
|
5520
|
+
"class": bem$Z("selected-day"),
|
5509
5521
|
"style": {
|
5510
5522
|
width: rowHeight,
|
5511
5523
|
height: rowHeight,
|
@@ -5522,21 +5534,21 @@ var stdin_default$13 = defineComponent({
|
|
5522
5534
|
} = props.item;
|
5523
5535
|
if (type === "placeholder") {
|
5524
5536
|
return createVNode("div", {
|
5525
|
-
"class": bem$
|
5537
|
+
"class": bem$Z("day"),
|
5526
5538
|
"style": style.value
|
5527
5539
|
}, null);
|
5528
5540
|
}
|
5529
5541
|
return createVNode("div", {
|
5530
5542
|
"role": "gridcell",
|
5531
5543
|
"style": style.value,
|
5532
|
-
"class": [bem$
|
5544
|
+
"class": [bem$Z("day", type), className],
|
5533
5545
|
"tabindex": type === "disabled" ? void 0 : -1,
|
5534
5546
|
"onClick": onClick
|
5535
5547
|
}, [renderContent()]);
|
5536
5548
|
};
|
5537
5549
|
}
|
5538
5550
|
});
|
5539
|
-
const [name
|
5551
|
+
const [name$$] = createNamespace("calendar-month");
|
5540
5552
|
const calendarMonthProps = {
|
5541
5553
|
date: makeRequiredProp(Date),
|
5542
5554
|
type: String,
|
@@ -5553,8 +5565,8 @@ const calendarMonthProps = {
|
|
5553
5565
|
showMonthTitle: Boolean,
|
5554
5566
|
firstDayOfWeek: Number
|
5555
5567
|
};
|
5556
|
-
var stdin_default$
|
5557
|
-
name: name
|
5568
|
+
var stdin_default$16 = defineComponent({
|
5569
|
+
name: name$$,
|
5558
5570
|
props: calendarMonthProps,
|
5559
5571
|
emits: ["click"],
|
5560
5572
|
setup(props, {
|
@@ -5659,14 +5671,14 @@ var stdin_default$12 = defineComponent({
|
|
5659
5671
|
const renderTitle = () => {
|
5660
5672
|
if (props.showMonthTitle) {
|
5661
5673
|
return createVNode("div", {
|
5662
|
-
"class": bem$
|
5674
|
+
"class": bem$Z("month-title")
|
5663
5675
|
}, [title.value]);
|
5664
5676
|
}
|
5665
5677
|
};
|
5666
5678
|
const renderMark = () => {
|
5667
5679
|
if (props.showMark && shouldRender.value) {
|
5668
5680
|
return createVNode("div", {
|
5669
|
-
"class": bem$
|
5681
|
+
"class": bem$Z("month-mark")
|
5670
5682
|
}, [props.date.getMonth() + 1]);
|
5671
5683
|
}
|
5672
5684
|
};
|
@@ -5706,7 +5718,7 @@ var stdin_default$12 = defineComponent({
|
|
5706
5718
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
5707
5719
|
}
|
5708
5720
|
};
|
5709
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
5721
|
+
const renderDay = (item, index) => createVNode(stdin_default$17, {
|
5710
5722
|
"item": item,
|
5711
5723
|
"index": index,
|
5712
5724
|
"color": props.color,
|
@@ -5717,7 +5729,7 @@ var stdin_default$12 = defineComponent({
|
|
5717
5729
|
const renderDays = () => createVNode("div", {
|
5718
5730
|
"ref": daysRef,
|
5719
5731
|
"role": "grid",
|
5720
|
-
"class": bem$
|
5732
|
+
"class": bem$Z("days")
|
5721
5733
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
5722
5734
|
useExpose({
|
5723
5735
|
getTitle,
|
@@ -5727,15 +5739,16 @@ var stdin_default$12 = defineComponent({
|
|
5727
5739
|
disabledDays
|
5728
5740
|
});
|
5729
5741
|
return () => createVNode("div", {
|
5730
|
-
"class": bem$
|
5742
|
+
"class": bem$Z("month"),
|
5731
5743
|
"ref": monthRef
|
5732
5744
|
}, [renderTitle(), renderDays()]);
|
5733
5745
|
}
|
5734
5746
|
});
|
5735
|
-
const [name$
|
5736
|
-
var stdin_default$
|
5737
|
-
name: name$
|
5747
|
+
const [name$_] = createNamespace("calendar-header");
|
5748
|
+
var stdin_default$15 = defineComponent({
|
5749
|
+
name: name$_,
|
5738
5750
|
props: {
|
5751
|
+
date: Date,
|
5739
5752
|
title: String,
|
5740
5753
|
subtitle: String,
|
5741
5754
|
showTitle: Boolean,
|
@@ -5752,16 +5765,19 @@ var stdin_default$11 = defineComponent({
|
|
5752
5765
|
const text = props.title || t$f("title");
|
5753
5766
|
const title = slots.title ? slots.title() : text;
|
5754
5767
|
return createVNode("div", {
|
5755
|
-
"class": bem$
|
5768
|
+
"class": bem$Z("header-title")
|
5756
5769
|
}, [title]);
|
5757
5770
|
}
|
5758
5771
|
};
|
5759
5772
|
const onClickSubtitle = (event) => emit("clickSubtitle", event);
|
5760
5773
|
const renderSubtitle = () => {
|
5761
5774
|
if (props.showSubtitle) {
|
5762
|
-
const title = slots.subtitle ? slots.subtitle(
|
5775
|
+
const title = slots.subtitle ? slots.subtitle({
|
5776
|
+
date: props.date,
|
5777
|
+
text: props.subtitle
|
5778
|
+
}) : props.subtitle;
|
5763
5779
|
return createVNode("div", {
|
5764
|
-
"class": bem$
|
5780
|
+
"class": bem$Z("header-subtitle"),
|
5765
5781
|
"onClick": onClickSubtitle
|
5766
5782
|
}, [title]);
|
5767
5783
|
}
|
@@ -5773,13 +5789,13 @@ var stdin_default$11 = defineComponent({
|
|
5773
5789
|
const weekdays = t$f("weekdays");
|
5774
5790
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
5775
5791
|
return createVNode("div", {
|
5776
|
-
"class": bem$
|
5792
|
+
"class": bem$Z("weekdays")
|
5777
5793
|
}, [renderWeekDays2.map((text) => createVNode("span", {
|
5778
|
-
"class": bem$
|
5794
|
+
"class": bem$Z("weekday")
|
5779
5795
|
}, [text]))]);
|
5780
5796
|
};
|
5781
5797
|
return () => createVNode("div", {
|
5782
|
-
"class": bem$
|
5798
|
+
"class": bem$Z("header")
|
5783
5799
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
5784
5800
|
}
|
5785
5801
|
});
|
@@ -5830,8 +5846,8 @@ const calendarProps = {
|
|
5830
5846
|
validator: (val) => val >= 0 && val <= 6
|
5831
5847
|
}
|
5832
5848
|
};
|
5833
|
-
var stdin_default$
|
5834
|
-
name: name$
|
5849
|
+
var stdin_default$14 = defineComponent({
|
5850
|
+
name: name$11,
|
5835
5851
|
props: calendarProps,
|
5836
5852
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
5837
5853
|
setup(props, {
|
@@ -5879,7 +5895,10 @@ var stdin_default$10 = defineComponent({
|
|
5879
5895
|
};
|
5880
5896
|
let bodyHeight;
|
5881
5897
|
const bodyRef = ref();
|
5882
|
-
const subtitle = ref(
|
5898
|
+
const subtitle = ref({
|
5899
|
+
text: "",
|
5900
|
+
date: void 0
|
5901
|
+
});
|
5883
5902
|
const currentDate = ref(getInitialDate());
|
5884
5903
|
const [monthRefs, setMonthRefs] = useRefs();
|
5885
5904
|
const dayOffset = computed(() => props.firstDayOfWeek ? +props.firstDayOfWeek % 7 : 0);
|
@@ -5940,7 +5959,10 @@ var stdin_default$10 = defineComponent({
|
|
5940
5959
|
monthRefs.value[index].setVisible(visible);
|
5941
5960
|
});
|
5942
5961
|
if (currentMonth) {
|
5943
|
-
subtitle.value =
|
5962
|
+
subtitle.value = {
|
5963
|
+
text: currentMonth.getTitle(),
|
5964
|
+
date: currentMonth.date
|
5965
|
+
};
|
5944
5966
|
}
|
5945
5967
|
};
|
5946
5968
|
const scrollToDate = (targetDate) => {
|
@@ -6088,7 +6110,7 @@ var stdin_default$10 = defineComponent({
|
|
6088
6110
|
const updateShow = (value) => emit("update:show", value);
|
6089
6111
|
const renderMonth = (date, index) => {
|
6090
6112
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
6091
|
-
return createVNode(stdin_default$
|
6113
|
+
return createVNode(stdin_default$16, mergeProps({
|
6092
6114
|
"ref": setMonthRefs(index),
|
6093
6115
|
"date": date,
|
6094
6116
|
"currentDate": currentDate.value,
|
@@ -6111,7 +6133,7 @@ var stdin_default$10 = defineComponent({
|
|
6111
6133
|
"block": true,
|
6112
6134
|
"type": "primary",
|
6113
6135
|
"color": props.color,
|
6114
|
-
"class": bem$
|
6136
|
+
"class": bem$Z("confirm"),
|
6115
6137
|
"disabled": disabled,
|
6116
6138
|
"nativeType": "button",
|
6117
6139
|
"onClick": onConfirm
|
@@ -6123,22 +6145,23 @@ var stdin_default$10 = defineComponent({
|
|
6123
6145
|
}
|
6124
6146
|
};
|
6125
6147
|
const renderFooter = () => createVNode("div", {
|
6126
|
-
"class": [bem$
|
6148
|
+
"class": [bem$Z("footer"), {
|
6127
6149
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
6128
6150
|
}]
|
6129
6151
|
}, [renderFooterButton()]);
|
6130
6152
|
const renderCalendar = () => createVNode("div", {
|
6131
|
-
"class": bem$
|
6132
|
-
}, [createVNode(stdin_default$
|
6153
|
+
"class": bem$Z()
|
6154
|
+
}, [createVNode(stdin_default$15, {
|
6155
|
+
"date": subtitle.value.date,
|
6133
6156
|
"title": props.title,
|
6134
|
-
"subtitle": subtitle.value,
|
6157
|
+
"subtitle": subtitle.value.text,
|
6135
6158
|
"showTitle": props.showTitle,
|
6136
6159
|
"showSubtitle": props.showSubtitle,
|
6137
6160
|
"firstDayOfWeek": dayOffset.value,
|
6138
6161
|
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
6139
6162
|
}, pick(slots, ["title", "subtitle"])), createVNode("div", {
|
6140
6163
|
"ref": bodyRef,
|
6141
|
-
"class": bem$
|
6164
|
+
"class": bem$Z("body"),
|
6142
6165
|
"onScroll": onScroll
|
6143
6166
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
6144
6167
|
watch(() => props.show, init);
|
@@ -6157,7 +6180,7 @@ var stdin_default$10 = defineComponent({
|
|
6157
6180
|
if (props.poppable) {
|
6158
6181
|
return createVNode(Popup, {
|
6159
6182
|
"show": props.show,
|
6160
|
-
"class": bem$
|
6183
|
+
"class": bem$Z("popup"),
|
6161
6184
|
"round": props.round,
|
6162
6185
|
"position": props.position,
|
6163
6186
|
"closeable": props.showTitle || props.showSubtitle,
|
@@ -6174,8 +6197,8 @@ var stdin_default$10 = defineComponent({
|
|
6174
6197
|
};
|
6175
6198
|
}
|
6176
6199
|
});
|
6177
|
-
const Calendar = withInstall(stdin_default$
|
6178
|
-
const [name$
|
6200
|
+
const Calendar = withInstall(stdin_default$14);
|
6201
|
+
const [name$Z, bem$Y] = createNamespace("image");
|
6179
6202
|
const imageProps = {
|
6180
6203
|
src: String,
|
6181
6204
|
alt: String,
|
@@ -6194,8 +6217,8 @@ const imageProps = {
|
|
6194
6217
|
showLoading: truthProp,
|
6195
6218
|
loadingIcon: makeStringProp("photo")
|
6196
6219
|
};
|
6197
|
-
var stdin_default
|
6198
|
-
name: name$
|
6220
|
+
var stdin_default$13 = defineComponent({
|
6221
|
+
name: name$Z,
|
6199
6222
|
props: imageProps,
|
6200
6223
|
emits: ["load", "error"],
|
6201
6224
|
setup(props, {
|
@@ -6246,13 +6269,13 @@ var stdin_default$$ = defineComponent({
|
|
6246
6269
|
const renderPlaceholder = () => {
|
6247
6270
|
if (loading.value && props.showLoading) {
|
6248
6271
|
return createVNode("div", {
|
6249
|
-
"class": bem$
|
6250
|
-
}, [renderIcon(props.loadingIcon, bem$
|
6272
|
+
"class": bem$Y("loading")
|
6273
|
+
}, [renderIcon(props.loadingIcon, bem$Y("loading-icon"), slots.loading)]);
|
6251
6274
|
}
|
6252
6275
|
if (error.value && props.showError) {
|
6253
6276
|
return createVNode("div", {
|
6254
|
-
"class": bem$
|
6255
|
-
}, [renderIcon(props.errorIcon, bem$
|
6277
|
+
"class": bem$Y("error")
|
6278
|
+
}, [renderIcon(props.errorIcon, bem$Y("error-icon"), slots.error)]);
|
6256
6279
|
}
|
6257
6280
|
};
|
6258
6281
|
const renderImage = () => {
|
@@ -6261,7 +6284,7 @@ var stdin_default$$ = defineComponent({
|
|
6261
6284
|
}
|
6262
6285
|
const attrs = {
|
6263
6286
|
alt: props.alt,
|
6264
|
-
class: bem$
|
6287
|
+
class: bem$Y("img"),
|
6265
6288
|
style: {
|
6266
6289
|
objectFit: props.fit,
|
6267
6290
|
objectPosition: props.position
|
@@ -6310,7 +6333,7 @@ var stdin_default$$ = defineComponent({
|
|
6310
6333
|
return () => {
|
6311
6334
|
var _a;
|
6312
6335
|
return createVNode("div", {
|
6313
|
-
"class": bem$
|
6336
|
+
"class": bem$Y({
|
6314
6337
|
round: props.round,
|
6315
6338
|
block: props.block
|
6316
6339
|
}),
|
@@ -6319,8 +6342,8 @@ var stdin_default$$ = defineComponent({
|
|
6319
6342
|
};
|
6320
6343
|
}
|
6321
6344
|
});
|
6322
|
-
const Image$1 = withInstall(stdin_default
|
6323
|
-
const [name$
|
6345
|
+
const Image$1 = withInstall(stdin_default$13);
|
6346
|
+
const [name$Y, bem$X] = createNamespace("card");
|
6324
6347
|
const cardProps = {
|
6325
6348
|
tag: String,
|
6326
6349
|
num: numericProp,
|
@@ -6334,8 +6357,8 @@ const cardProps = {
|
|
6334
6357
|
thumbLink: String,
|
6335
6358
|
originPrice: numericProp
|
6336
6359
|
};
|
6337
|
-
var stdin_default$
|
6338
|
-
name: name$
|
6360
|
+
var stdin_default$12 = defineComponent({
|
6361
|
+
name: name$Y,
|
6339
6362
|
props: cardProps,
|
6340
6363
|
emits: ["clickThumb"],
|
6341
6364
|
setup(props, {
|
@@ -6348,14 +6371,14 @@ var stdin_default$_ = defineComponent({
|
|
6348
6371
|
}
|
6349
6372
|
if (props.title) {
|
6350
6373
|
return createVNode("div", {
|
6351
|
-
"class": [bem$
|
6374
|
+
"class": [bem$X("title"), "van-multi-ellipsis--l2"]
|
6352
6375
|
}, [props.title]);
|
6353
6376
|
}
|
6354
6377
|
};
|
6355
6378
|
const renderThumbTag = () => {
|
6356
6379
|
if (slots.tag || props.tag) {
|
6357
6380
|
return createVNode("div", {
|
6358
|
-
"class": bem$
|
6381
|
+
"class": bem$X("tag")
|
6359
6382
|
}, [slots.tag ? slots.tag() : createVNode(Tag, {
|
6360
6383
|
"mark": true,
|
6361
6384
|
"type": "primary"
|
@@ -6380,7 +6403,7 @@ var stdin_default$_ = defineComponent({
|
|
6380
6403
|
if (slots.thumb || props.thumb) {
|
6381
6404
|
return createVNode("a", {
|
6382
6405
|
"href": props.thumbLink,
|
6383
|
-
"class": bem$
|
6406
|
+
"class": bem$X("thumb"),
|
6384
6407
|
"onClick": (event) => emit("clickThumb", event)
|
6385
6408
|
}, [renderThumbImage(), renderThumbTag()]);
|
6386
6409
|
}
|
@@ -6391,18 +6414,18 @@ var stdin_default$_ = defineComponent({
|
|
6391
6414
|
}
|
6392
6415
|
if (props.desc) {
|
6393
6416
|
return createVNode("div", {
|
6394
|
-
"class": [bem$
|
6417
|
+
"class": [bem$X("desc"), "van-ellipsis"]
|
6395
6418
|
}, [props.desc]);
|
6396
6419
|
}
|
6397
6420
|
};
|
6398
6421
|
const renderPriceText = () => {
|
6399
6422
|
const priceArr = props.price.toString().split(".");
|
6400
6423
|
return createVNode("div", null, [createVNode("span", {
|
6401
|
-
"class": bem$
|
6424
|
+
"class": bem$X("price-currency")
|
6402
6425
|
}, [props.currency]), createVNode("span", {
|
6403
|
-
"class": bem$
|
6426
|
+
"class": bem$X("price-integer")
|
6404
6427
|
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
6405
|
-
"class": bem$
|
6428
|
+
"class": bem$X("price-decimal")
|
6406
6429
|
}, [priceArr[1]])]);
|
6407
6430
|
};
|
6408
6431
|
return () => {
|
@@ -6412,34 +6435,34 @@ var stdin_default$_ = defineComponent({
|
|
6412
6435
|
const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
|
6413
6436
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
6414
6437
|
const Price = showPrice && createVNode("div", {
|
6415
|
-
"class": bem$
|
6438
|
+
"class": bem$X("price")
|
6416
6439
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
6417
6440
|
const OriginPrice = showOriginPrice && createVNode("div", {
|
6418
|
-
"class": bem$
|
6441
|
+
"class": bem$X("origin-price")
|
6419
6442
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
|
6420
6443
|
const Num = showNum && createVNode("div", {
|
6421
|
-
"class": bem$
|
6444
|
+
"class": bem$X("num")
|
6422
6445
|
}, [slots.num ? slots.num() : `x${props.num}`]);
|
6423
6446
|
const Footer = slots.footer && createVNode("div", {
|
6424
|
-
"class": bem$
|
6447
|
+
"class": bem$X("footer")
|
6425
6448
|
}, [slots.footer()]);
|
6426
6449
|
const Bottom = showBottom && createVNode("div", {
|
6427
|
-
"class": bem$
|
6450
|
+
"class": bem$X("bottom")
|
6428
6451
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
6429
6452
|
return createVNode("div", {
|
6430
|
-
"class": bem$
|
6453
|
+
"class": bem$X()
|
6431
6454
|
}, [createVNode("div", {
|
6432
|
-
"class": bem$
|
6455
|
+
"class": bem$X("header")
|
6433
6456
|
}, [renderThumb(), createVNode("div", {
|
6434
|
-
"class": bem$
|
6457
|
+
"class": bem$X("content", {
|
6435
6458
|
centered: props.centered
|
6436
6459
|
})
|
6437
6460
|
}, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
6438
6461
|
};
|
6439
6462
|
}
|
6440
6463
|
});
|
6441
|
-
const Card = withInstall(stdin_default$
|
6442
|
-
const [name$
|
6464
|
+
const Card = withInstall(stdin_default$12);
|
6465
|
+
const [name$X, bem$W, t$e] = createNamespace("cascader");
|
6443
6466
|
const cascaderProps = {
|
6444
6467
|
title: String,
|
6445
6468
|
options: makeArrayProp(),
|
@@ -6452,8 +6475,8 @@ const cascaderProps = {
|
|
6452
6475
|
placeholder: String,
|
6453
6476
|
activeColor: String
|
6454
6477
|
};
|
6455
|
-
var stdin_default$
|
6456
|
-
name: name$
|
6478
|
+
var stdin_default$11 = defineComponent({
|
6479
|
+
name: name$X,
|
6457
6480
|
props: cascaderProps,
|
6458
6481
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
6459
6482
|
setup(props, {
|
@@ -6561,12 +6584,12 @@ var stdin_default$Z = defineComponent({
|
|
6561
6584
|
title
|
6562
6585
|
}) => emit("clickTab", name2, title);
|
6563
6586
|
const renderHeader = () => props.showHeader ? createVNode("div", {
|
6564
|
-
"class": bem$
|
6587
|
+
"class": bem$W("header")
|
6565
6588
|
}, [createVNode("h2", {
|
6566
|
-
"class": bem$
|
6589
|
+
"class": bem$W("title")
|
6567
6590
|
}, [slots.title ? slots.title() : props.title]), props.closeable ? createVNode(Icon, {
|
6568
6591
|
"name": props.closeIcon,
|
6569
|
-
"class": [bem$
|
6592
|
+
"class": [bem$W("close-icon"), HAPTICS_FEEDBACK],
|
6570
6593
|
"onClick": onClose
|
6571
6594
|
}, null) : null]) : null;
|
6572
6595
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -6581,7 +6604,7 @@ var stdin_default$Z = defineComponent({
|
|
6581
6604
|
}) : createVNode("span", null, [option[textKey]]);
|
6582
6605
|
return createVNode("li", {
|
6583
6606
|
"role": "menuitemradio",
|
6584
|
-
"class": [bem$
|
6607
|
+
"class": [bem$W("option", {
|
6585
6608
|
selected,
|
6586
6609
|
disabled
|
6587
6610
|
}), option.className],
|
@@ -6594,12 +6617,12 @@ var stdin_default$Z = defineComponent({
|
|
6594
6617
|
"onClick": () => onSelect(option, tabIndex)
|
6595
6618
|
}, [Text2, selected ? createVNode(Icon, {
|
6596
6619
|
"name": "success",
|
6597
|
-
"class": bem$
|
6620
|
+
"class": bem$W("selected-icon")
|
6598
6621
|
}, null) : null]);
|
6599
6622
|
};
|
6600
6623
|
const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
|
6601
6624
|
"role": "menu",
|
6602
|
-
"class": bem$
|
6625
|
+
"class": bem$W("options")
|
6603
6626
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
6604
6627
|
const renderTab = (tab, tabIndex) => {
|
6605
6628
|
const {
|
@@ -6610,7 +6633,7 @@ var stdin_default$Z = defineComponent({
|
|
6610
6633
|
const title = selected ? selected[textKey] : placeholder;
|
6611
6634
|
return createVNode(Tab, {
|
6612
6635
|
"title": title,
|
6613
|
-
"titleClass": bem$
|
6636
|
+
"titleClass": bem$W("tab", {
|
6614
6637
|
unselected: !selected
|
6615
6638
|
})
|
6616
6639
|
}, {
|
@@ -6629,7 +6652,7 @@ var stdin_default$Z = defineComponent({
|
|
6629
6652
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6630
6653
|
"shrink": true,
|
6631
6654
|
"animated": true,
|
6632
|
-
"class": bem$
|
6655
|
+
"class": bem$W("tabs"),
|
6633
6656
|
"color": props.activeColor,
|
6634
6657
|
"swipeable": props.swipeable,
|
6635
6658
|
"onClickTab": onClickTab
|
@@ -6653,19 +6676,19 @@ var stdin_default$Z = defineComponent({
|
|
6653
6676
|
updateTabs();
|
6654
6677
|
});
|
6655
6678
|
return () => createVNode("div", {
|
6656
|
-
"class": bem$
|
6679
|
+
"class": bem$W()
|
6657
6680
|
}, [renderHeader(), renderTabs()]);
|
6658
6681
|
}
|
6659
6682
|
});
|
6660
|
-
const Cascader = withInstall(stdin_default$
|
6661
|
-
const [name$
|
6683
|
+
const Cascader = withInstall(stdin_default$11);
|
6684
|
+
const [name$W, bem$V] = createNamespace("cell-group");
|
6662
6685
|
const cellGroupProps = {
|
6663
6686
|
title: String,
|
6664
6687
|
inset: Boolean,
|
6665
6688
|
border: truthProp
|
6666
6689
|
};
|
6667
|
-
var stdin_default$
|
6668
|
-
name: name$
|
6690
|
+
var stdin_default$10 = defineComponent({
|
6691
|
+
name: name$W,
|
6669
6692
|
inheritAttrs: false,
|
6670
6693
|
props: cellGroupProps,
|
6671
6694
|
setup(props, {
|
@@ -6675,7 +6698,7 @@ var stdin_default$Y = defineComponent({
|
|
6675
6698
|
const renderGroup = () => {
|
6676
6699
|
var _a;
|
6677
6700
|
return createVNode("div", mergeProps({
|
6678
|
-
"class": [bem$
|
6701
|
+
"class": [bem$V({
|
6679
6702
|
inset: props.inset
|
6680
6703
|
}), {
|
6681
6704
|
[BORDER_TOP_BOTTOM]: props.border && !props.inset
|
@@ -6683,7 +6706,7 @@ var stdin_default$Y = defineComponent({
|
|
6683
6706
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6684
6707
|
};
|
6685
6708
|
const renderTitle = () => createVNode("div", {
|
6686
|
-
"class": bem$
|
6709
|
+
"class": bem$V("title", {
|
6687
6710
|
inset: props.inset
|
6688
6711
|
})
|
6689
6712
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -6695,8 +6718,8 @@ var stdin_default$Y = defineComponent({
|
|
6695
6718
|
};
|
6696
6719
|
}
|
6697
6720
|
});
|
6698
|
-
const CellGroup = withInstall(stdin_default$
|
6699
|
-
const [name$
|
6721
|
+
const CellGroup = withInstall(stdin_default$10);
|
6722
|
+
const [name$V, bem$U] = createNamespace("checkbox-group");
|
6700
6723
|
const checkboxGroupProps = {
|
6701
6724
|
max: numericProp,
|
6702
6725
|
disabled: Boolean,
|
@@ -6705,9 +6728,9 @@ const checkboxGroupProps = {
|
|
6705
6728
|
modelValue: makeArrayProp(),
|
6706
6729
|
checkedColor: String
|
6707
6730
|
};
|
6708
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
6709
|
-
var stdin_default
|
6710
|
-
name: name$
|
6731
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$V);
|
6732
|
+
var stdin_default$$ = defineComponent({
|
6733
|
+
name: name$V,
|
6711
6734
|
props: checkboxGroupProps,
|
6712
6735
|
emits: ["change", "update:modelValue"],
|
6713
6736
|
setup(props, {
|
@@ -6753,17 +6776,17 @@ var stdin_default$X = defineComponent({
|
|
6753
6776
|
return () => {
|
6754
6777
|
var _a;
|
6755
6778
|
return createVNode("div", {
|
6756
|
-
"class": bem$
|
6779
|
+
"class": bem$U([props.direction])
|
6757
6780
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6758
6781
|
};
|
6759
6782
|
}
|
6760
6783
|
});
|
6761
|
-
const [name$
|
6784
|
+
const [name$U, bem$T] = createNamespace("checkbox");
|
6762
6785
|
const checkboxProps = extend({}, checkerProps, {
|
6763
6786
|
bindGroup: truthProp
|
6764
6787
|
});
|
6765
|
-
var stdin_default$
|
6766
|
-
name: name$
|
6788
|
+
var stdin_default$_ = defineComponent({
|
6789
|
+
name: name$U,
|
6767
6790
|
props: checkboxProps,
|
6768
6791
|
emits: ["change", "update:modelValue"],
|
6769
6792
|
setup(props, {
|
@@ -6820,8 +6843,8 @@ var stdin_default$W = defineComponent({
|
|
6820
6843
|
checked
|
6821
6844
|
});
|
6822
6845
|
useCustomFieldValue(() => props.modelValue);
|
6823
|
-
return () => createVNode(stdin_default$
|
6824
|
-
"bem": bem$
|
6846
|
+
return () => createVNode(stdin_default$1b, mergeProps({
|
6847
|
+
"bem": bem$T,
|
6825
6848
|
"role": "checkbox",
|
6826
6849
|
"parent": parent,
|
6827
6850
|
"checked": checked.value,
|
@@ -6829,9 +6852,9 @@ var stdin_default$W = defineComponent({
|
|
6829
6852
|
}, props), pick(slots, ["default", "icon"]));
|
6830
6853
|
}
|
6831
6854
|
});
|
6832
|
-
const Checkbox = withInstall(stdin_default$
|
6833
|
-
const CheckboxGroup = withInstall(stdin_default
|
6834
|
-
const [name$
|
6855
|
+
const Checkbox = withInstall(stdin_default$_);
|
6856
|
+
const CheckboxGroup = withInstall(stdin_default$$);
|
6857
|
+
const [name$T, bem$S] = createNamespace("circle");
|
6835
6858
|
let uid = 0;
|
6836
6859
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
6837
6860
|
function getPath(clockwise, viewBoxSize) {
|
@@ -6852,8 +6875,8 @@ const circleProps = {
|
|
6852
6875
|
strokeLinecap: String,
|
6853
6876
|
startPosition: makeStringProp("top")
|
6854
6877
|
};
|
6855
|
-
var stdin_default$
|
6856
|
-
name: name$
|
6878
|
+
var stdin_default$Z = defineComponent({
|
6879
|
+
name: name$T,
|
6857
6880
|
props: circleProps,
|
6858
6881
|
emits: ["update:currentRate"],
|
6859
6882
|
setup(props, {
|
@@ -6921,7 +6944,7 @@ var stdin_default$V = defineComponent({
|
|
6921
6944
|
return createVNode("path", {
|
6922
6945
|
"d": path.value,
|
6923
6946
|
"style": style,
|
6924
|
-
"class": bem$
|
6947
|
+
"class": bem$S("hover"),
|
6925
6948
|
"stroke": color
|
6926
6949
|
}, null);
|
6927
6950
|
};
|
@@ -6932,7 +6955,7 @@ var stdin_default$V = defineComponent({
|
|
6932
6955
|
strokeWidth: `${props.strokeWidth}px`
|
6933
6956
|
};
|
6934
6957
|
return createVNode("path", {
|
6935
|
-
"class": bem$
|
6958
|
+
"class": bem$S("layer"),
|
6936
6959
|
"style": style,
|
6937
6960
|
"d": path.value
|
6938
6961
|
}, null);
|
@@ -6963,12 +6986,12 @@ var stdin_default$V = defineComponent({
|
|
6963
6986
|
}
|
6964
6987
|
if (props.text) {
|
6965
6988
|
return createVNode("div", {
|
6966
|
-
"class": bem$
|
6989
|
+
"class": bem$S("text")
|
6967
6990
|
}, [props.text]);
|
6968
6991
|
}
|
6969
6992
|
};
|
6970
6993
|
return () => createVNode("div", {
|
6971
|
-
"class": bem$
|
6994
|
+
"class": bem$S(),
|
6972
6995
|
"style": getSizeStyle(props.size)
|
6973
6996
|
}, [createVNode("svg", {
|
6974
6997
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -6976,9 +6999,9 @@ var stdin_default$V = defineComponent({
|
|
6976
6999
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
6977
7000
|
}
|
6978
7001
|
});
|
6979
|
-
const Circle = withInstall(stdin_default$
|
6980
|
-
const [name$
|
6981
|
-
const ROW_KEY = Symbol(name$
|
7002
|
+
const Circle = withInstall(stdin_default$Z);
|
7003
|
+
const [name$S, bem$R] = createNamespace("row");
|
7004
|
+
const ROW_KEY = Symbol(name$S);
|
6982
7005
|
const rowProps = {
|
6983
7006
|
tag: makeStringProp("div"),
|
6984
7007
|
wrap: truthProp,
|
@@ -6986,8 +7009,8 @@ const rowProps = {
|
|
6986
7009
|
gutter: makeNumericProp(0),
|
6987
7010
|
justify: String
|
6988
7011
|
};
|
6989
|
-
var stdin_default$
|
6990
|
-
name: name$
|
7012
|
+
var stdin_default$Y = defineComponent({
|
7013
|
+
name: name$S,
|
6991
7014
|
props: rowProps,
|
6992
7015
|
setup(props, {
|
6993
7016
|
slots
|
@@ -7046,7 +7069,7 @@ var stdin_default$U = defineComponent({
|
|
7046
7069
|
justify
|
7047
7070
|
} = props;
|
7048
7071
|
return createVNode(tag, {
|
7049
|
-
"class": bem$
|
7072
|
+
"class": bem$R({
|
7050
7073
|
[`align-${align}`]: align,
|
7051
7074
|
[`justify-${justify}`]: justify,
|
7052
7075
|
nowrap: !wrap
|
@@ -7060,14 +7083,14 @@ var stdin_default$U = defineComponent({
|
|
7060
7083
|
};
|
7061
7084
|
}
|
7062
7085
|
});
|
7063
|
-
const [name$
|
7086
|
+
const [name$R, bem$Q] = createNamespace("col");
|
7064
7087
|
const colProps = {
|
7065
7088
|
tag: makeStringProp("div"),
|
7066
7089
|
span: makeNumericProp(0),
|
7067
7090
|
offset: numericProp
|
7068
7091
|
};
|
7069
|
-
var stdin_default$
|
7070
|
-
name: name$
|
7092
|
+
var stdin_default$X = defineComponent({
|
7093
|
+
name: name$R,
|
7071
7094
|
props: colProps,
|
7072
7095
|
setup(props, {
|
7073
7096
|
slots
|
@@ -7102,7 +7125,7 @@ var stdin_default$T = defineComponent({
|
|
7102
7125
|
} = props;
|
7103
7126
|
return createVNode(tag, {
|
7104
7127
|
"style": style.value,
|
7105
|
-
"class": bem$
|
7128
|
+
"class": bem$Q({
|
7106
7129
|
[span]: span,
|
7107
7130
|
[`offset-${offset}`]: offset
|
7108
7131
|
})
|
@@ -7115,9 +7138,9 @@ var stdin_default$T = defineComponent({
|
|
7115
7138
|
};
|
7116
7139
|
}
|
7117
7140
|
});
|
7118
|
-
const Col = withInstall(stdin_default$
|
7119
|
-
const [name$
|
7120
|
-
const COLLAPSE_KEY = Symbol(name$
|
7141
|
+
const Col = withInstall(stdin_default$X);
|
7142
|
+
const [name$Q, bem$P] = createNamespace("collapse");
|
7143
|
+
const COLLAPSE_KEY = Symbol(name$Q);
|
7121
7144
|
const collapseProps = {
|
7122
7145
|
border: truthProp,
|
7123
7146
|
accordion: Boolean,
|
@@ -7137,8 +7160,8 @@ function validateModelValue(modelValue, accordion) {
|
|
7137
7160
|
}
|
7138
7161
|
return true;
|
7139
7162
|
}
|
7140
|
-
var stdin_default$
|
7141
|
-
name: name$
|
7163
|
+
var stdin_default$W = defineComponent({
|
7164
|
+
name: name$Q,
|
7142
7165
|
props: collapseProps,
|
7143
7166
|
emits: ["change", "update:modelValue"],
|
7144
7167
|
setup(props, {
|
@@ -7208,15 +7231,15 @@ var stdin_default$S = defineComponent({
|
|
7208
7231
|
return () => {
|
7209
7232
|
var _a;
|
7210
7233
|
return createVNode("div", {
|
7211
|
-
"class": [bem$
|
7234
|
+
"class": [bem$P(), {
|
7212
7235
|
[BORDER_TOP_BOTTOM]: props.border
|
7213
7236
|
}]
|
7214
7237
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7215
7238
|
};
|
7216
7239
|
}
|
7217
7240
|
});
|
7218
|
-
const Collapse = withInstall(stdin_default$
|
7219
|
-
const [name$
|
7241
|
+
const Collapse = withInstall(stdin_default$W);
|
7242
|
+
const [name$P, bem$O] = createNamespace("collapse-item");
|
7220
7243
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
7221
7244
|
const collapseItemProps = extend({}, cellSharedProps, {
|
7222
7245
|
name: numericProp,
|
@@ -7225,8 +7248,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7225
7248
|
readonly: Boolean,
|
7226
7249
|
lazyRender: truthProp
|
7227
7250
|
});
|
7228
|
-
var stdin_default$
|
7229
|
-
name: name$
|
7251
|
+
var stdin_default$V = defineComponent({
|
7252
|
+
name: name$P,
|
7230
7253
|
props: collapseItemProps,
|
7231
7254
|
setup(props, {
|
7232
7255
|
slots
|
@@ -7308,7 +7331,7 @@ var stdin_default$R = defineComponent({
|
|
7308
7331
|
}
|
7309
7332
|
return createVNode(Cell, mergeProps({
|
7310
7333
|
"role": "button",
|
7311
|
-
"class": bem$
|
7334
|
+
"class": bem$O("title", {
|
7312
7335
|
disabled,
|
7313
7336
|
expanded: expanded.value,
|
7314
7337
|
borderless: !border
|
@@ -7321,11 +7344,11 @@ var stdin_default$R = defineComponent({
|
|
7321
7344
|
var _a;
|
7322
7345
|
return withDirectives(createVNode("div", {
|
7323
7346
|
"ref": wrapperRef,
|
7324
|
-
"class": bem$
|
7347
|
+
"class": bem$O("wrapper"),
|
7325
7348
|
"onTransitionend": onTransitionEnd
|
7326
7349
|
}, [createVNode("div", {
|
7327
7350
|
"ref": contentRef,
|
7328
|
-
"class": bem$
|
7351
|
+
"class": bem$O("content")
|
7329
7352
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
|
7330
7353
|
});
|
7331
7354
|
useExpose({
|
@@ -7334,15 +7357,15 @@ var stdin_default$R = defineComponent({
|
|
7334
7357
|
itemName: name2
|
7335
7358
|
});
|
7336
7359
|
return () => createVNode("div", {
|
7337
|
-
"class": [bem$
|
7360
|
+
"class": [bem$O({
|
7338
7361
|
border: index.value && props.border
|
7339
7362
|
})]
|
7340
7363
|
}, [renderTitle(), renderContent()]);
|
7341
7364
|
}
|
7342
7365
|
});
|
7343
|
-
const CollapseItem = withInstall(stdin_default$
|
7344
|
-
const ConfigProvider = withInstall(stdin_default$
|
7345
|
-
const [name$
|
7366
|
+
const CollapseItem = withInstall(stdin_default$V);
|
7367
|
+
const ConfigProvider = withInstall(stdin_default$1F);
|
7368
|
+
const [name$O, bem$N, t$d] = createNamespace("contact-card");
|
7346
7369
|
const contactCardProps = {
|
7347
7370
|
tel: String,
|
7348
7371
|
name: String,
|
@@ -7350,8 +7373,8 @@ const contactCardProps = {
|
|
7350
7373
|
addText: String,
|
7351
7374
|
editable: truthProp
|
7352
7375
|
};
|
7353
|
-
var stdin_default$
|
7354
|
-
name: name$
|
7376
|
+
var stdin_default$U = defineComponent({
|
7377
|
+
name: name$O,
|
7355
7378
|
props: contactCardProps,
|
7356
7379
|
emits: ["click"],
|
7357
7380
|
setup(props, {
|
@@ -7371,18 +7394,18 @@ var stdin_default$Q = defineComponent({
|
|
7371
7394
|
return () => createVNode(Cell, {
|
7372
7395
|
"center": true,
|
7373
7396
|
"icon": props.type === "edit" ? "contact" : "add-square",
|
7374
|
-
"class": bem$
|
7397
|
+
"class": bem$N([props.type]),
|
7375
7398
|
"border": false,
|
7376
7399
|
"isLink": props.editable,
|
7377
|
-
"titleClass": bem$
|
7400
|
+
"titleClass": bem$N("title"),
|
7378
7401
|
"onClick": onClick
|
7379
7402
|
}, {
|
7380
7403
|
title: renderContent
|
7381
7404
|
});
|
7382
7405
|
}
|
7383
7406
|
});
|
7384
|
-
const ContactCard = withInstall(stdin_default$
|
7385
|
-
const [name$
|
7407
|
+
const ContactCard = withInstall(stdin_default$U);
|
7408
|
+
const [name$N, bem$M, t$c] = createNamespace("contact-edit");
|
7386
7409
|
const DEFAULT_CONTACT = {
|
7387
7410
|
tel: "",
|
7388
7411
|
name: ""
|
@@ -7402,8 +7425,8 @@ const contactEditProps = {
|
|
7402
7425
|
default: isMobile
|
7403
7426
|
}
|
7404
7427
|
};
|
7405
|
-
var stdin_default$
|
7406
|
-
name: name$
|
7428
|
+
var stdin_default$T = defineComponent({
|
7429
|
+
name: name$N,
|
7407
7430
|
props: contactEditProps,
|
7408
7431
|
emits: ["save", "delete", "changeDefault"],
|
7409
7432
|
setup(props, {
|
@@ -7417,20 +7440,20 @@ var stdin_default$P = defineComponent({
|
|
7417
7440
|
};
|
7418
7441
|
const onDelete = () => emit("delete", contact);
|
7419
7442
|
const renderButtons = () => createVNode("div", {
|
7420
|
-
"class": bem$
|
7443
|
+
"class": bem$M("buttons")
|
7421
7444
|
}, [createVNode(Button, {
|
7422
7445
|
"block": true,
|
7423
7446
|
"round": true,
|
7424
7447
|
"type": "primary",
|
7425
7448
|
"text": t$c("save"),
|
7426
|
-
"class": bem$
|
7449
|
+
"class": bem$M("button"),
|
7427
7450
|
"loading": props.isSaving,
|
7428
7451
|
"nativeType": "submit"
|
7429
7452
|
}, null), props.isEdit && createVNode(Button, {
|
7430
7453
|
"block": true,
|
7431
7454
|
"round": true,
|
7432
7455
|
"text": t$c("delete"),
|
7433
|
-
"class": bem$
|
7456
|
+
"class": bem$M("button"),
|
7434
7457
|
"loading": props.isDeleting,
|
7435
7458
|
"onClick": onDelete
|
7436
7459
|
}, null)]);
|
@@ -7443,7 +7466,7 @@ var stdin_default$P = defineComponent({
|
|
7443
7466
|
if (props.showSetDefault) {
|
7444
7467
|
return createVNode(Cell, {
|
7445
7468
|
"title": props.setDefaultLabel,
|
7446
|
-
"class": bem$
|
7469
|
+
"class": bem$M("switch-cell"),
|
7447
7470
|
"border": false
|
7448
7471
|
}, {
|
7449
7472
|
"right-icon": renderSwitch
|
@@ -7452,11 +7475,11 @@ var stdin_default$P = defineComponent({
|
|
7452
7475
|
};
|
7453
7476
|
watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
7454
7477
|
return () => createVNode(Form, {
|
7455
|
-
"class": bem$
|
7478
|
+
"class": bem$M(),
|
7456
7479
|
"onSubmit": onSave
|
7457
7480
|
}, {
|
7458
7481
|
default: () => [createVNode("div", {
|
7459
|
-
"class": bem$
|
7482
|
+
"class": bem$M("fields")
|
7460
7483
|
}, [createVNode(Field, {
|
7461
7484
|
"modelValue": contact.name,
|
7462
7485
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -7483,16 +7506,16 @@ var stdin_default$P = defineComponent({
|
|
7483
7506
|
});
|
7484
7507
|
}
|
7485
7508
|
});
|
7486
|
-
const ContactEdit = withInstall(stdin_default$
|
7487
|
-
const [name$
|
7509
|
+
const ContactEdit = withInstall(stdin_default$T);
|
7510
|
+
const [name$M, bem$L, t$b] = createNamespace("contact-list");
|
7488
7511
|
const contactListProps = {
|
7489
7512
|
list: Array,
|
7490
7513
|
addText: String,
|
7491
7514
|
modelValue: unknownProp,
|
7492
7515
|
defaultTagText: String
|
7493
7516
|
};
|
7494
|
-
var stdin_default$
|
7495
|
-
name: name$
|
7517
|
+
var stdin_default$S = defineComponent({
|
7518
|
+
name: name$M,
|
7496
7519
|
props: contactListProps,
|
7497
7520
|
emits: ["add", "edit", "select", "update:modelValue"],
|
7498
7521
|
setup(props, {
|
@@ -7504,13 +7527,13 @@ var stdin_default$O = defineComponent({
|
|
7504
7527
|
emit("select", item, index);
|
7505
7528
|
};
|
7506
7529
|
const renderRightIcon = () => createVNode(Radio, {
|
7507
|
-
"class": bem$
|
7530
|
+
"class": bem$L("radio"),
|
7508
7531
|
"name": item.id,
|
7509
7532
|
"iconSize": 16
|
7510
7533
|
}, null);
|
7511
7534
|
const renderEditIcon = () => createVNode(Icon, {
|
7512
7535
|
"name": "edit",
|
7513
|
-
"class": bem$
|
7536
|
+
"class": bem$L("edit"),
|
7514
7537
|
"onClick": (event) => {
|
7515
7538
|
event.stopPropagation();
|
7516
7539
|
emit("edit", item, index);
|
@@ -7522,7 +7545,7 @@ var stdin_default$O = defineComponent({
|
|
7522
7545
|
nodes.push(createVNode(Tag, {
|
7523
7546
|
"type": "primary",
|
7524
7547
|
"round": true,
|
7525
|
-
"class": bem$
|
7548
|
+
"class": bem$L("item-tag")
|
7526
7549
|
}, {
|
7527
7550
|
default: () => [props.defaultTagText]
|
7528
7551
|
}));
|
@@ -7533,8 +7556,8 @@ var stdin_default$O = defineComponent({
|
|
7533
7556
|
"key": item.id,
|
7534
7557
|
"isLink": true,
|
7535
7558
|
"center": true,
|
7536
|
-
"class": bem$
|
7537
|
-
"titleClass": bem$
|
7559
|
+
"class": bem$L("item"),
|
7560
|
+
"titleClass": bem$L("item-title"),
|
7538
7561
|
"onClick": onClick
|
7539
7562
|
}, {
|
7540
7563
|
icon: renderEditIcon,
|
@@ -7543,25 +7566,25 @@ var stdin_default$O = defineComponent({
|
|
7543
7566
|
});
|
7544
7567
|
};
|
7545
7568
|
return () => createVNode("div", {
|
7546
|
-
"class": bem$
|
7569
|
+
"class": bem$L()
|
7547
7570
|
}, [createVNode(RadioGroup, {
|
7548
7571
|
"modelValue": props.modelValue,
|
7549
|
-
"class": bem$
|
7572
|
+
"class": bem$L("group")
|
7550
7573
|
}, {
|
7551
7574
|
default: () => [props.list && props.list.map(renderItem)]
|
7552
7575
|
}), createVNode("div", {
|
7553
|
-
"class": [bem$
|
7576
|
+
"class": [bem$L("bottom"), "van-safe-area-bottom"]
|
7554
7577
|
}, [createVNode(Button, {
|
7555
7578
|
"round": true,
|
7556
7579
|
"block": true,
|
7557
7580
|
"type": "primary",
|
7558
|
-
"class": bem$
|
7581
|
+
"class": bem$L("add"),
|
7559
7582
|
"text": props.addText || t$b("addContact"),
|
7560
7583
|
"onClick": () => emit("add")
|
7561
7584
|
}, null)])]);
|
7562
7585
|
}
|
7563
7586
|
});
|
7564
|
-
const ContactList = withInstall(stdin_default$
|
7587
|
+
const ContactList = withInstall(stdin_default$S);
|
7565
7588
|
function parseFormat(format2, currentTime) {
|
7566
7589
|
const { days } = currentTime;
|
7567
7590
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -7597,15 +7620,15 @@ function parseFormat(format2, currentTime) {
|
|
7597
7620
|
}
|
7598
7621
|
return format2;
|
7599
7622
|
}
|
7600
|
-
const [name$
|
7623
|
+
const [name$L, bem$K] = createNamespace("count-down");
|
7601
7624
|
const countDownProps = {
|
7602
7625
|
time: makeNumericProp(0),
|
7603
7626
|
format: makeStringProp("HH:mm:ss"),
|
7604
7627
|
autoStart: truthProp,
|
7605
7628
|
millisecond: Boolean
|
7606
7629
|
};
|
7607
|
-
var stdin_default$
|
7608
|
-
name: name$
|
7630
|
+
var stdin_default$R = defineComponent({
|
7631
|
+
name: name$L,
|
7609
7632
|
props: countDownProps,
|
7610
7633
|
emits: ["change", "finish"],
|
7611
7634
|
setup(props, {
|
@@ -7640,11 +7663,11 @@ var stdin_default$N = defineComponent({
|
|
7640
7663
|
});
|
7641
7664
|
return () => createVNode("div", {
|
7642
7665
|
"role": "timer",
|
7643
|
-
"class": bem$
|
7666
|
+
"class": bem$K()
|
7644
7667
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
7645
7668
|
}
|
7646
7669
|
});
|
7647
|
-
const CountDown = withInstall(stdin_default$
|
7670
|
+
const CountDown = withInstall(stdin_default$R);
|
7648
7671
|
function getDate(timeStamp) {
|
7649
7672
|
const date = new Date(timeStamp * 1e3);
|
7650
7673
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -7653,9 +7676,9 @@ function getDate(timeStamp) {
|
|
7653
7676
|
}
|
7654
7677
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
7655
7678
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
7656
|
-
const [name$
|
7657
|
-
var stdin_default$
|
7658
|
-
name: name$
|
7679
|
+
const [name$K, bem$J, t$a] = createNamespace("coupon");
|
7680
|
+
var stdin_default$Q = defineComponent({
|
7681
|
+
name: name$K,
|
7659
7682
|
props: {
|
7660
7683
|
chosen: Boolean,
|
7661
7684
|
coupon: makeRequiredProp(Object),
|
@@ -7699,34 +7722,34 @@ var stdin_default$M = defineComponent({
|
|
7699
7722
|
} = props;
|
7700
7723
|
const description = disabled && coupon.reason || coupon.description;
|
7701
7724
|
return createVNode("div", {
|
7702
|
-
"class": bem$
|
7725
|
+
"class": bem$J({
|
7703
7726
|
disabled
|
7704
7727
|
})
|
7705
7728
|
}, [createVNode("div", {
|
7706
|
-
"class": bem$
|
7729
|
+
"class": bem$J("content")
|
7707
7730
|
}, [createVNode("div", {
|
7708
|
-
"class": bem$
|
7731
|
+
"class": bem$J("head")
|
7709
7732
|
}, [createVNode("h2", {
|
7710
|
-
"class": bem$
|
7733
|
+
"class": bem$J("amount")
|
7711
7734
|
}, [faceAmount.value]), createVNode("p", {
|
7712
|
-
"class": bem$
|
7735
|
+
"class": bem$J("condition")
|
7713
7736
|
}, [coupon.condition || conditionMessage.value])]), createVNode("div", {
|
7714
|
-
"class": bem$
|
7737
|
+
"class": bem$J("body")
|
7715
7738
|
}, [createVNode("p", {
|
7716
|
-
"class": bem$
|
7739
|
+
"class": bem$J("name")
|
7717
7740
|
}, [coupon.name]), createVNode("p", {
|
7718
|
-
"class": bem$
|
7741
|
+
"class": bem$J("valid")
|
7719
7742
|
}, [validPeriod.value]), !disabled && createVNode(Checkbox, {
|
7720
|
-
"class": bem$
|
7743
|
+
"class": bem$J("corner"),
|
7721
7744
|
"modelValue": chosen
|
7722
7745
|
}, null)])]), description && createVNode("p", {
|
7723
|
-
"class": bem$
|
7746
|
+
"class": bem$J("description")
|
7724
7747
|
}, [description])]);
|
7725
7748
|
};
|
7726
7749
|
}
|
7727
7750
|
});
|
7728
|
-
const Coupon = withInstall(stdin_default$
|
7729
|
-
const [name$
|
7751
|
+
const Coupon = withInstall(stdin_default$Q);
|
7752
|
+
const [name$J, bem$I, t$9] = createNamespace("coupon-cell");
|
7730
7753
|
const couponCellProps = {
|
7731
7754
|
title: String,
|
7732
7755
|
border: truthProp,
|
@@ -7754,34 +7777,34 @@ function formatValue({
|
|
7754
7777
|
}
|
7755
7778
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
7756
7779
|
}
|
7757
|
-
var stdin_default$
|
7758
|
-
name: name$
|
7780
|
+
var stdin_default$P = defineComponent({
|
7781
|
+
name: name$J,
|
7759
7782
|
props: couponCellProps,
|
7760
7783
|
setup(props) {
|
7761
7784
|
return () => {
|
7762
7785
|
const selected = props.coupons[+props.chosenCoupon];
|
7763
7786
|
return createVNode(Cell, {
|
7764
|
-
"class": bem$
|
7787
|
+
"class": bem$I(),
|
7765
7788
|
"value": formatValue(props),
|
7766
7789
|
"title": props.title || t$9("title"),
|
7767
7790
|
"border": props.border,
|
7768
7791
|
"isLink": props.editable,
|
7769
|
-
"valueClass": bem$
|
7792
|
+
"valueClass": bem$I("value", {
|
7770
7793
|
selected
|
7771
7794
|
})
|
7772
7795
|
}, null);
|
7773
7796
|
};
|
7774
7797
|
}
|
7775
7798
|
});
|
7776
|
-
const CouponCell = withInstall(stdin_default$
|
7777
|
-
const [name$
|
7799
|
+
const CouponCell = withInstall(stdin_default$P);
|
7800
|
+
const [name$I, bem$H] = createNamespace("empty");
|
7778
7801
|
const emptyProps = {
|
7779
7802
|
image: makeStringProp("default"),
|
7780
7803
|
imageSize: [Number, String, Array],
|
7781
7804
|
description: String
|
7782
7805
|
};
|
7783
|
-
var stdin_default$
|
7784
|
-
name: name$
|
7806
|
+
var stdin_default$O = defineComponent({
|
7807
|
+
name: name$I,
|
7785
7808
|
props: emptyProps,
|
7786
7809
|
setup(props, {
|
7787
7810
|
slots
|
@@ -7790,14 +7813,14 @@ var stdin_default$K = defineComponent({
|
|
7790
7813
|
const description = slots.description ? slots.description() : props.description;
|
7791
7814
|
if (description) {
|
7792
7815
|
return createVNode("p", {
|
7793
|
-
"class": bem$
|
7816
|
+
"class": bem$H("description")
|
7794
7817
|
}, [description]);
|
7795
7818
|
}
|
7796
7819
|
};
|
7797
7820
|
const renderBottom = () => {
|
7798
7821
|
if (slots.default) {
|
7799
7822
|
return createVNode("div", {
|
7800
|
-
"class": bem$
|
7823
|
+
"class": bem$H("bottom")
|
7801
7824
|
}, [slots.default()]);
|
7802
7825
|
}
|
7803
7826
|
};
|
@@ -8082,15 +8105,15 @@ var stdin_default$K = defineComponent({
|
|
8082
8105
|
}, null);
|
8083
8106
|
};
|
8084
8107
|
return () => createVNode("div", {
|
8085
|
-
"class": bem$
|
8108
|
+
"class": bem$H()
|
8086
8109
|
}, [createVNode("div", {
|
8087
|
-
"class": bem$
|
8110
|
+
"class": bem$H("image"),
|
8088
8111
|
"style": getSizeStyle(props.imageSize)
|
8089
8112
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8090
8113
|
}
|
8091
8114
|
});
|
8092
|
-
const Empty = withInstall(stdin_default$
|
8093
|
-
const [name$
|
8115
|
+
const Empty = withInstall(stdin_default$O);
|
8116
|
+
const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
8094
8117
|
const couponListProps = {
|
8095
8118
|
code: makeStringProp(""),
|
8096
8119
|
coupons: makeArrayProp(),
|
@@ -8111,8 +8134,8 @@ const couponListProps = {
|
|
8111
8134
|
exchangeButtonLoading: Boolean,
|
8112
8135
|
exchangeButtonDisabled: Boolean
|
8113
8136
|
};
|
8114
|
-
var stdin_default$
|
8115
|
-
name: name$
|
8137
|
+
var stdin_default$N = defineComponent({
|
8138
|
+
name: name$H,
|
8116
8139
|
props: couponListProps,
|
8117
8140
|
emits: ["change", "exchange", "update:code"],
|
8118
8141
|
setup(props, {
|
@@ -8148,26 +8171,26 @@ var stdin_default$J = defineComponent({
|
|
8148
8171
|
"image": props.emptyImage
|
8149
8172
|
}, {
|
8150
8173
|
default: () => [createVNode("p", {
|
8151
|
-
"class": bem$
|
8174
|
+
"class": bem$G("empty-tip")
|
8152
8175
|
}, [t$8("noCoupon")])]
|
8153
8176
|
});
|
8154
8177
|
const renderExchangeBar = () => {
|
8155
8178
|
if (props.showExchangeBar) {
|
8156
8179
|
return createVNode("div", {
|
8157
8180
|
"ref": barRef,
|
8158
|
-
"class": bem$
|
8181
|
+
"class": bem$G("exchange-bar")
|
8159
8182
|
}, [createVNode(Field, {
|
8160
8183
|
"modelValue": currentCode.value,
|
8161
8184
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
8162
8185
|
"clearable": true,
|
8163
8186
|
"border": false,
|
8164
|
-
"class": bem$
|
8187
|
+
"class": bem$G("field"),
|
8165
8188
|
"placeholder": props.inputPlaceholder || t$8("placeholder"),
|
8166
8189
|
"maxlength": "20"
|
8167
8190
|
}, null), createVNode(Button, {
|
8168
8191
|
"plain": true,
|
8169
8192
|
"type": "primary",
|
8170
|
-
"class": bem$
|
8193
|
+
"class": bem$G("exchange"),
|
8171
8194
|
"text": props.exchangeButtonText || t$8("exchange"),
|
8172
8195
|
"loading": props.exchangeButtonLoading,
|
8173
8196
|
"disabled": buttonDisabled.value,
|
@@ -8187,7 +8210,7 @@ var stdin_default$J = defineComponent({
|
|
8187
8210
|
default: () => {
|
8188
8211
|
var _a;
|
8189
8212
|
return [createVNode("div", {
|
8190
|
-
"class": bem$
|
8213
|
+
"class": bem$G("list", {
|
8191
8214
|
"with-bottom": props.showCloseButton
|
8192
8215
|
}),
|
8193
8216
|
"style": {
|
@@ -8216,7 +8239,7 @@ var stdin_default$J = defineComponent({
|
|
8216
8239
|
default: () => {
|
8217
8240
|
var _a;
|
8218
8241
|
return [createVNode("div", {
|
8219
|
-
"class": bem$
|
8242
|
+
"class": bem$G("list", {
|
8220
8243
|
"with-bottom": props.showCloseButton
|
8221
8244
|
}),
|
8222
8245
|
"style": {
|
@@ -8243,28 +8266,28 @@ var stdin_default$J = defineComponent({
|
|
8243
8266
|
});
|
8244
8267
|
return () => createVNode("div", {
|
8245
8268
|
"ref": root,
|
8246
|
-
"class": bem$
|
8269
|
+
"class": bem$G()
|
8247
8270
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
8248
8271
|
"active": activeTab.value,
|
8249
8272
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
8250
|
-
"class": bem$
|
8273
|
+
"class": bem$G("tab")
|
8251
8274
|
}, {
|
8252
8275
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
8253
8276
|
}), createVNode("div", {
|
8254
|
-
"class": bem$
|
8277
|
+
"class": bem$G("bottom")
|
8255
8278
|
}, [withDirectives(createVNode(Button, {
|
8256
8279
|
"round": true,
|
8257
8280
|
"block": true,
|
8258
8281
|
"type": "primary",
|
8259
|
-
"class": bem$
|
8282
|
+
"class": bem$G("close"),
|
8260
8283
|
"text": props.closeButtonText || t$8("close"),
|
8261
8284
|
"onClick": () => emit("change", -1)
|
8262
8285
|
}, null), [[vShow, props.showCloseButton]])])]);
|
8263
8286
|
}
|
8264
8287
|
});
|
8265
|
-
const CouponList = withInstall(stdin_default$
|
8288
|
+
const CouponList = withInstall(stdin_default$N);
|
8266
8289
|
const currentYear = new Date().getFullYear();
|
8267
|
-
const [name$
|
8290
|
+
const [name$G] = createNamespace("date-picker");
|
8268
8291
|
const datePickerProps = extend({}, sharedProps, {
|
8269
8292
|
columnsType: {
|
8270
8293
|
type: Array,
|
@@ -8281,8 +8304,8 @@ const datePickerProps = extend({}, sharedProps, {
|
|
8281
8304
|
validator: isDate
|
8282
8305
|
}
|
8283
8306
|
});
|
8284
|
-
var stdin_default$
|
8285
|
-
name: name$
|
8307
|
+
var stdin_default$M = defineComponent({
|
8308
|
+
name: name$G,
|
8286
8309
|
props: datePickerProps,
|
8287
8310
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
8288
8311
|
setup(props, {
|
@@ -8340,7 +8363,10 @@ var stdin_default$I = defineComponent({
|
|
8340
8363
|
case "day":
|
8341
8364
|
return genDayOptions();
|
8342
8365
|
default:
|
8343
|
-
|
8366
|
+
if (process.env.NODE_ENV !== "production") {
|
8367
|
+
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
8368
|
+
}
|
8369
|
+
return [];
|
8344
8370
|
}
|
8345
8371
|
}));
|
8346
8372
|
watch(currentValues, (newValues) => {
|
@@ -8369,8 +8395,8 @@ var stdin_default$I = defineComponent({
|
|
8369
8395
|
}, pick(props, pickerInheritKeys)), slots);
|
8370
8396
|
}
|
8371
8397
|
});
|
8372
|
-
const DatePicker = withInstall(stdin_default$
|
8373
|
-
const [name$
|
8398
|
+
const DatePicker = withInstall(stdin_default$M);
|
8399
|
+
const [name$F, bem$F, t$7] = createNamespace("dialog");
|
8374
8400
|
const dialogProps = extend({}, popupSharedProps, {
|
8375
8401
|
title: String,
|
8376
8402
|
theme: String,
|
@@ -8393,8 +8419,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8393
8419
|
closeOnClickOverlay: Boolean
|
8394
8420
|
});
|
8395
8421
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8396
|
-
var stdin_default$
|
8397
|
-
name: name$
|
8422
|
+
var stdin_default$L = defineComponent({
|
8423
|
+
name: name$F,
|
8398
8424
|
props: dialogProps,
|
8399
8425
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8400
8426
|
setup(props, {
|
@@ -8451,7 +8477,7 @@ var stdin_default$H = defineComponent({
|
|
8451
8477
|
const title = slots.title ? slots.title() : props.title;
|
8452
8478
|
if (title) {
|
8453
8479
|
return createVNode("div", {
|
8454
|
-
"class": bem$
|
8480
|
+
"class": bem$F("header", {
|
8455
8481
|
isolated: !props.message && !slots.default
|
8456
8482
|
})
|
8457
8483
|
}, [title]);
|
@@ -8463,7 +8489,7 @@ var stdin_default$H = defineComponent({
|
|
8463
8489
|
allowHtml,
|
8464
8490
|
messageAlign
|
8465
8491
|
} = props;
|
8466
|
-
const classNames = bem$
|
8492
|
+
const classNames = bem$F("message", {
|
8467
8493
|
"has-title": hasTitle,
|
8468
8494
|
[messageAlign]: messageAlign
|
8469
8495
|
});
|
@@ -8481,7 +8507,7 @@ var stdin_default$H = defineComponent({
|
|
8481
8507
|
const renderContent = () => {
|
8482
8508
|
if (slots.default) {
|
8483
8509
|
return createVNode("div", {
|
8484
|
-
"class": bem$
|
8510
|
+
"class": bem$F("content")
|
8485
8511
|
}, [slots.default()]);
|
8486
8512
|
}
|
8487
8513
|
const {
|
@@ -8493,18 +8519,18 @@ var stdin_default$H = defineComponent({
|
|
8493
8519
|
const hasTitle = !!(title || slots.title);
|
8494
8520
|
return createVNode("div", {
|
8495
8521
|
"key": allowHtml ? 1 : 0,
|
8496
|
-
"class": bem$
|
8522
|
+
"class": bem$F("content", {
|
8497
8523
|
isolated: !hasTitle
|
8498
8524
|
})
|
8499
8525
|
}, [renderMessage(hasTitle)]);
|
8500
8526
|
}
|
8501
8527
|
};
|
8502
8528
|
const renderButtons = () => createVNode("div", {
|
8503
|
-
"class": [BORDER_TOP, bem$
|
8529
|
+
"class": [BORDER_TOP, bem$F("footer")]
|
8504
8530
|
}, [props.showCancelButton && createVNode(Button, {
|
8505
8531
|
"size": "large",
|
8506
8532
|
"text": props.cancelButtonText || t$7("cancel"),
|
8507
|
-
"class": bem$
|
8533
|
+
"class": bem$F("cancel"),
|
8508
8534
|
"style": {
|
8509
8535
|
color: props.cancelButtonColor
|
8510
8536
|
},
|
@@ -8514,7 +8540,7 @@ var stdin_default$H = defineComponent({
|
|
8514
8540
|
}, null), props.showConfirmButton && createVNode(Button, {
|
8515
8541
|
"size": "large",
|
8516
8542
|
"text": props.confirmButtonText || t$7("confirm"),
|
8517
|
-
"class": [bem$
|
8543
|
+
"class": [bem$F("confirm"), {
|
8518
8544
|
[BORDER_LEFT]: props.showCancelButton
|
8519
8545
|
}],
|
8520
8546
|
"style": {
|
@@ -8525,12 +8551,12 @@ var stdin_default$H = defineComponent({
|
|
8525
8551
|
"onClick": onConfirm
|
8526
8552
|
}, null)]);
|
8527
8553
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
8528
|
-
"class": bem$
|
8554
|
+
"class": bem$F("footer")
|
8529
8555
|
}, {
|
8530
8556
|
default: () => [props.showCancelButton && createVNode(ActionBarButton, {
|
8531
8557
|
"type": "warning",
|
8532
8558
|
"text": props.cancelButtonText || t$7("cancel"),
|
8533
|
-
"class": bem$
|
8559
|
+
"class": bem$F("cancel"),
|
8534
8560
|
"color": props.cancelButtonColor,
|
8535
8561
|
"loading": loading.cancel,
|
8536
8562
|
"disabled": props.cancelButtonDisabled,
|
@@ -8538,7 +8564,7 @@ var stdin_default$H = defineComponent({
|
|
8538
8564
|
}, null), props.showConfirmButton && createVNode(ActionBarButton, {
|
8539
8565
|
"type": "danger",
|
8540
8566
|
"text": props.confirmButtonText || t$7("confirm"),
|
8541
|
-
"class": bem$
|
8567
|
+
"class": bem$F("confirm"),
|
8542
8568
|
"color": props.confirmButtonColor,
|
8543
8569
|
"loading": loading.confirm,
|
8544
8570
|
"disabled": props.confirmButtonDisabled,
|
@@ -8562,7 +8588,7 @@ var stdin_default$H = defineComponent({
|
|
8562
8588
|
return createVNode(Popup, mergeProps({
|
8563
8589
|
"ref": root,
|
8564
8590
|
"role": "dialog",
|
8565
|
-
"class": [bem$
|
8591
|
+
"class": [bem$F([theme]), className],
|
8566
8592
|
"style": {
|
8567
8593
|
width: addUnit(width)
|
8568
8594
|
},
|
@@ -8612,7 +8638,7 @@ function initInstance$2() {
|
|
8612
8638
|
state,
|
8613
8639
|
toggle
|
8614
8640
|
} = usePopupState();
|
8615
|
-
return () => createVNode(stdin_default$
|
8641
|
+
return () => createVNode(stdin_default$L, mergeProps(state, {
|
8616
8642
|
"onUpdate:show": toggle
|
8617
8643
|
}), null);
|
8618
8644
|
}
|
@@ -8650,15 +8676,15 @@ const closeDialog = () => {
|
|
8650
8676
|
instance$2.toggle(false);
|
8651
8677
|
}
|
8652
8678
|
};
|
8653
|
-
const Dialog = withInstall(stdin_default$
|
8654
|
-
const [name$
|
8679
|
+
const Dialog = withInstall(stdin_default$L);
|
8680
|
+
const [name$E, bem$E] = createNamespace("divider");
|
8655
8681
|
const dividerProps = {
|
8656
8682
|
dashed: Boolean,
|
8657
8683
|
hairline: truthProp,
|
8658
8684
|
contentPosition: makeStringProp("center")
|
8659
8685
|
};
|
8660
|
-
var stdin_default$
|
8661
|
-
name: name$
|
8686
|
+
var stdin_default$K = defineComponent({
|
8687
|
+
name: name$E,
|
8662
8688
|
props: dividerProps,
|
8663
8689
|
setup(props, {
|
8664
8690
|
slots
|
@@ -8667,7 +8693,7 @@ var stdin_default$G = defineComponent({
|
|
8667
8693
|
var _a;
|
8668
8694
|
return createVNode("div", {
|
8669
8695
|
"role": "separator",
|
8670
|
-
"class": bem$
|
8696
|
+
"class": bem$E({
|
8671
8697
|
dashed: props.dashed,
|
8672
8698
|
hairline: props.hairline,
|
8673
8699
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -8676,8 +8702,8 @@ var stdin_default$G = defineComponent({
|
|
8676
8702
|
};
|
8677
8703
|
}
|
8678
8704
|
});
|
8679
|
-
const Divider = withInstall(stdin_default$
|
8680
|
-
const [name$
|
8705
|
+
const Divider = withInstall(stdin_default$K);
|
8706
|
+
const [name$D, bem$D] = createNamespace("dropdown-menu");
|
8681
8707
|
const dropdownMenuProps = {
|
8682
8708
|
overlay: truthProp,
|
8683
8709
|
zIndex: numericProp,
|
@@ -8687,9 +8713,9 @@ const dropdownMenuProps = {
|
|
8687
8713
|
closeOnClickOutside: truthProp,
|
8688
8714
|
closeOnClickOverlay: truthProp
|
8689
8715
|
};
|
8690
|
-
const DROPDOWN_KEY = Symbol(name$
|
8691
|
-
var stdin_default$
|
8692
|
-
name: name$
|
8716
|
+
const DROPDOWN_KEY = Symbol(name$D);
|
8717
|
+
var stdin_default$J = defineComponent({
|
8718
|
+
name: name$D,
|
8693
8719
|
props: dropdownMenuProps,
|
8694
8720
|
setup(props, {
|
8695
8721
|
slots
|
@@ -8757,7 +8783,7 @@ var stdin_default$F = defineComponent({
|
|
8757
8783
|
"id": `${id}-${index}`,
|
8758
8784
|
"role": "button",
|
8759
8785
|
"tabindex": disabled ? void 0 : 0,
|
8760
|
-
"class": [bem$
|
8786
|
+
"class": [bem$D("item", {
|
8761
8787
|
disabled
|
8762
8788
|
}), {
|
8763
8789
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -8768,7 +8794,7 @@ var stdin_default$F = defineComponent({
|
|
8768
8794
|
}
|
8769
8795
|
}
|
8770
8796
|
}, [createVNode("span", {
|
8771
|
-
"class": [bem$
|
8797
|
+
"class": [bem$D("title", {
|
8772
8798
|
down: showPopup === (props.direction === "down"),
|
8773
8799
|
active: showPopup
|
8774
8800
|
}), titleClass],
|
@@ -8793,18 +8819,18 @@ var stdin_default$F = defineComponent({
|
|
8793
8819
|
var _a;
|
8794
8820
|
return createVNode("div", {
|
8795
8821
|
"ref": root,
|
8796
|
-
"class": bem$
|
8822
|
+
"class": bem$D()
|
8797
8823
|
}, [createVNode("div", {
|
8798
8824
|
"ref": barRef,
|
8799
8825
|
"style": barStyle.value,
|
8800
|
-
"class": bem$
|
8826
|
+
"class": bem$D("bar", {
|
8801
8827
|
opened: opened.value
|
8802
8828
|
})
|
8803
8829
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8804
8830
|
};
|
8805
8831
|
}
|
8806
8832
|
});
|
8807
|
-
const [name$
|
8833
|
+
const [name$C, bem$C] = createNamespace("dropdown-item");
|
8808
8834
|
const dropdownItemProps = {
|
8809
8835
|
title: String,
|
8810
8836
|
options: makeArrayProp(),
|
@@ -8814,8 +8840,8 @@ const dropdownItemProps = {
|
|
8814
8840
|
modelValue: unknownProp,
|
8815
8841
|
titleClass: unknownProp
|
8816
8842
|
};
|
8817
|
-
var stdin_default$
|
8818
|
-
name: name$
|
8843
|
+
var stdin_default$I = defineComponent({
|
8844
|
+
name: name$C,
|
8819
8845
|
props: dropdownItemProps,
|
8820
8846
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8821
8847
|
setup(props, {
|
@@ -8885,7 +8911,7 @@ var stdin_default$E = defineComponent({
|
|
8885
8911
|
const renderIcon = () => {
|
8886
8912
|
if (active) {
|
8887
8913
|
return createVNode(Icon, {
|
8888
|
-
"class": bem$
|
8914
|
+
"class": bem$C("icon"),
|
8889
8915
|
"color": activeColor,
|
8890
8916
|
"name": "success"
|
8891
8917
|
}, null);
|
@@ -8896,7 +8922,7 @@ var stdin_default$E = defineComponent({
|
|
8896
8922
|
"key": option.value,
|
8897
8923
|
"icon": option.icon,
|
8898
8924
|
"title": option.text,
|
8899
|
-
"class": bem$
|
8925
|
+
"class": bem$C("option", {
|
8900
8926
|
active
|
8901
8927
|
}),
|
8902
8928
|
"style": {
|
@@ -8928,13 +8954,13 @@ var stdin_default$E = defineComponent({
|
|
8928
8954
|
}
|
8929
8955
|
return withDirectives(createVNode("div", {
|
8930
8956
|
"style": style,
|
8931
|
-
"class": bem$
|
8957
|
+
"class": bem$C([direction]),
|
8932
8958
|
"onClick": onClickWrapper
|
8933
8959
|
}, [createVNode(Popup, {
|
8934
8960
|
"show": state.showPopup,
|
8935
8961
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8936
8962
|
"role": "menu",
|
8937
|
-
"class": bem$
|
8963
|
+
"class": bem$C("content"),
|
8938
8964
|
"overlay": overlay,
|
8939
8965
|
"position": direction === "down" ? "top" : "bottom",
|
8940
8966
|
"duration": state.transition ? duration : 0,
|
@@ -8972,9 +8998,9 @@ var stdin_default$E = defineComponent({
|
|
8972
8998
|
};
|
8973
8999
|
}
|
8974
9000
|
});
|
8975
|
-
const DropdownItem = withInstall(stdin_default$
|
8976
|
-
const DropdownMenu = withInstall(stdin_default$
|
8977
|
-
const [name$
|
9001
|
+
const DropdownItem = withInstall(stdin_default$I);
|
9002
|
+
const DropdownMenu = withInstall(stdin_default$J);
|
9003
|
+
const [name$B, bem$B] = createNamespace("grid");
|
8978
9004
|
const gridProps = {
|
8979
9005
|
square: Boolean,
|
8980
9006
|
center: truthProp,
|
@@ -8986,9 +9012,9 @@ const gridProps = {
|
|
8986
9012
|
clickable: Boolean,
|
8987
9013
|
columnNum: makeNumericProp(4)
|
8988
9014
|
};
|
8989
|
-
const GRID_KEY = Symbol(name$
|
8990
|
-
var stdin_default$
|
8991
|
-
name: name$
|
9015
|
+
const GRID_KEY = Symbol(name$B);
|
9016
|
+
var stdin_default$H = defineComponent({
|
9017
|
+
name: name$B,
|
8992
9018
|
props: gridProps,
|
8993
9019
|
setup(props, {
|
8994
9020
|
slots
|
@@ -9005,15 +9031,15 @@ var stdin_default$D = defineComponent({
|
|
9005
9031
|
"style": {
|
9006
9032
|
paddingLeft: addUnit(props.gutter)
|
9007
9033
|
},
|
9008
|
-
"class": [bem$
|
9034
|
+
"class": [bem$B(), {
|
9009
9035
|
[BORDER_TOP]: props.border && !props.gutter
|
9010
9036
|
}]
|
9011
9037
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9012
9038
|
};
|
9013
9039
|
}
|
9014
9040
|
});
|
9015
|
-
const Grid = withInstall(stdin_default$
|
9016
|
-
const [name$
|
9041
|
+
const Grid = withInstall(stdin_default$H);
|
9042
|
+
const [name$A, bem$A] = createNamespace("grid-item");
|
9017
9043
|
const gridItemProps = extend({}, routeProps, {
|
9018
9044
|
dot: Boolean,
|
9019
9045
|
text: String,
|
@@ -9023,8 +9049,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
9023
9049
|
iconPrefix: String,
|
9024
9050
|
badgeProps: Object
|
9025
9051
|
});
|
9026
|
-
var stdin_default$
|
9027
|
-
name: name$
|
9052
|
+
var stdin_default$G = defineComponent({
|
9053
|
+
name: name$A,
|
9028
9054
|
props: gridItemProps,
|
9029
9055
|
setup(props, {
|
9030
9056
|
slots
|
@@ -9090,7 +9116,7 @@ var stdin_default$C = defineComponent({
|
|
9090
9116
|
"name": props.icon,
|
9091
9117
|
"size": parent.props.iconSize,
|
9092
9118
|
"badge": props.badge,
|
9093
|
-
"class": bem$
|
9119
|
+
"class": bem$A("icon"),
|
9094
9120
|
"color": props.iconColor,
|
9095
9121
|
"badgeProps": props.badgeProps,
|
9096
9122
|
"classPrefix": props.iconPrefix
|
@@ -9103,7 +9129,7 @@ var stdin_default$C = defineComponent({
|
|
9103
9129
|
}
|
9104
9130
|
if (props.text) {
|
9105
9131
|
return createVNode("span", {
|
9106
|
-
"class": bem$
|
9132
|
+
"class": bem$A("text")
|
9107
9133
|
}, [props.text]);
|
9108
9134
|
}
|
9109
9135
|
};
|
@@ -9123,7 +9149,7 @@ var stdin_default$C = defineComponent({
|
|
9123
9149
|
direction,
|
9124
9150
|
clickable
|
9125
9151
|
} = parent.props;
|
9126
|
-
const classes = [bem$
|
9152
|
+
const classes = [bem$A("content", [direction, {
|
9127
9153
|
center,
|
9128
9154
|
square,
|
9129
9155
|
reverse,
|
@@ -9133,7 +9159,7 @@ var stdin_default$C = defineComponent({
|
|
9133
9159
|
[BORDER]: border
|
9134
9160
|
}];
|
9135
9161
|
return createVNode("div", {
|
9136
|
-
"class": [bem$
|
9162
|
+
"class": [bem$A({
|
9137
9163
|
square
|
9138
9164
|
})],
|
9139
9165
|
"style": rootStyle.value
|
@@ -9147,10 +9173,10 @@ var stdin_default$C = defineComponent({
|
|
9147
9173
|
};
|
9148
9174
|
}
|
9149
9175
|
});
|
9150
|
-
const GridItem = withInstall(stdin_default$
|
9176
|
+
const GridItem = withInstall(stdin_default$G);
|
9151
9177
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9152
|
-
const bem$
|
9153
|
-
var stdin_default$
|
9178
|
+
const bem$z = createNamespace("image-preview")[1];
|
9179
|
+
var stdin_default$F = defineComponent({
|
9154
9180
|
props: {
|
9155
9181
|
src: String,
|
9156
9182
|
show: Boolean,
|
@@ -9160,9 +9186,10 @@ var stdin_default$B = defineComponent({
|
|
9160
9186
|
rootWidth: makeRequiredProp(Number),
|
9161
9187
|
rootHeight: makeRequiredProp(Number)
|
9162
9188
|
},
|
9163
|
-
emits: ["scale", "close"],
|
9189
|
+
emits: ["scale", "close", "longPress"],
|
9164
9190
|
setup(props, {
|
9165
|
-
emit
|
9191
|
+
emit,
|
9192
|
+
slots
|
9166
9193
|
}) {
|
9167
9194
|
const state = reactive({
|
9168
9195
|
scale: 1,
|
@@ -9306,16 +9333,20 @@ var stdin_default$B = defineComponent({
|
|
9306
9333
|
const deltaTime = Date.now() - touchStartTime;
|
9307
9334
|
const TAP_TIME = 250;
|
9308
9335
|
const TAP_OFFSET = 5;
|
9309
|
-
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET
|
9310
|
-
if (
|
9311
|
-
|
9312
|
-
|
9313
|
-
toggleScale();
|
9314
|
-
} else {
|
9315
|
-
doubleTapTimer = setTimeout(() => {
|
9316
|
-
emit("close");
|
9336
|
+
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
|
9337
|
+
if (deltaTime < TAP_TIME) {
|
9338
|
+
if (doubleTapTimer) {
|
9339
|
+
clearTimeout(doubleTapTimer);
|
9317
9340
|
doubleTapTimer = null;
|
9318
|
-
|
9341
|
+
toggleScale();
|
9342
|
+
} else {
|
9343
|
+
doubleTapTimer = setTimeout(() => {
|
9344
|
+
emit("close");
|
9345
|
+
doubleTapTimer = null;
|
9346
|
+
}, TAP_TIME);
|
9347
|
+
}
|
9348
|
+
} else if (deltaTime > LONG_PRESS_START_TIME) {
|
9349
|
+
emit("longPress");
|
9319
9350
|
}
|
9320
9351
|
}
|
9321
9352
|
};
|
@@ -9375,15 +9406,19 @@ var stdin_default$B = defineComponent({
|
|
9375
9406
|
};
|
9376
9407
|
return createVNode(SwipeItem, {
|
9377
9408
|
"ref": swipeItem,
|
9378
|
-
"class": bem$
|
9409
|
+
"class": bem$z("swipe-item"),
|
9379
9410
|
"onTouchstartPassive": onTouchStart,
|
9380
9411
|
"onTouchend": onTouchEnd,
|
9381
9412
|
"onTouchcancel": onTouchEnd
|
9382
9413
|
}, {
|
9383
|
-
default: () => [createVNode(
|
9414
|
+
default: () => [slots.image ? createVNode("div", {
|
9415
|
+
"class": bem$z("image-wrap")
|
9416
|
+
}, [slots.image({
|
9417
|
+
src: props.src
|
9418
|
+
})]) : createVNode(Image$1, {
|
9384
9419
|
"src": props.src,
|
9385
9420
|
"fit": "contain",
|
9386
|
-
"class": bem$
|
9421
|
+
"class": bem$z("image", {
|
9387
9422
|
vertical: vertical.value
|
9388
9423
|
}),
|
9389
9424
|
"style": imageStyle.value,
|
@@ -9393,7 +9428,7 @@ var stdin_default$B = defineComponent({
|
|
9393
9428
|
};
|
9394
9429
|
}
|
9395
9430
|
});
|
9396
|
-
const [name$
|
9431
|
+
const [name$z, bem$y] = createNamespace("image-preview");
|
9397
9432
|
const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
9398
9433
|
const imagePreviewProps = {
|
9399
9434
|
show: Boolean,
|
@@ -9416,10 +9451,10 @@ const imagePreviewProps = {
|
|
9416
9451
|
closeOnPopstate: truthProp,
|
9417
9452
|
closeIconPosition: makeStringProp("top-right")
|
9418
9453
|
};
|
9419
|
-
var stdin_default$
|
9420
|
-
name: name$
|
9454
|
+
var stdin_default$E = defineComponent({
|
9455
|
+
name: name$z,
|
9421
9456
|
props: imagePreviewProps,
|
9422
|
-
emits: ["scale", "close", "closed", "change", "update:show"],
|
9457
|
+
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
9423
9458
|
setup(props, {
|
9424
9459
|
emit,
|
9425
9460
|
slots
|
@@ -9455,7 +9490,7 @@ var stdin_default$A = defineComponent({
|
|
9455
9490
|
const renderIndex = () => {
|
9456
9491
|
if (props.showIndex) {
|
9457
9492
|
return createVNode("div", {
|
9458
|
-
"class": bem$
|
9493
|
+
"class": bem$y("index")
|
9459
9494
|
}, [slots.index ? slots.index({
|
9460
9495
|
index: state.active
|
9461
9496
|
}) : `${state.active + 1} / ${props.images.length}`]);
|
@@ -9464,7 +9499,7 @@ var stdin_default$A = defineComponent({
|
|
9464
9499
|
const renderCover = () => {
|
9465
9500
|
if (slots.cover) {
|
9466
9501
|
return createVNode("div", {
|
9467
|
-
"class": bem$
|
9502
|
+
"class": bem$y("cover")
|
9468
9503
|
}, [slots.cover()]);
|
9469
9504
|
}
|
9470
9505
|
};
|
@@ -9472,14 +9507,14 @@ var stdin_default$A = defineComponent({
|
|
9472
9507
|
"ref": swipeRef,
|
9473
9508
|
"lazyRender": true,
|
9474
9509
|
"loop": props.loop,
|
9475
|
-
"class": bem$
|
9510
|
+
"class": bem$y("swipe"),
|
9476
9511
|
"duration": props.swipeDuration,
|
9477
9512
|
"initialSwipe": props.startPosition,
|
9478
9513
|
"showIndicators": props.showIndicators,
|
9479
9514
|
"indicatorColor": "white",
|
9480
9515
|
"onChange": setActive
|
9481
9516
|
}, {
|
9482
|
-
default: () => [props.images.map((image) => createVNode(stdin_default$
|
9517
|
+
default: () => [props.images.map((image, index) => createVNode(stdin_default$F, {
|
9483
9518
|
"src": image,
|
9484
9519
|
"show": props.show,
|
9485
9520
|
"active": state.active,
|
@@ -9488,15 +9523,20 @@ var stdin_default$A = defineComponent({
|
|
9488
9523
|
"rootWidth": state.rootWidth,
|
9489
9524
|
"rootHeight": state.rootHeight,
|
9490
9525
|
"onScale": emitScale,
|
9491
|
-
"onClose": emitClose
|
9492
|
-
|
9526
|
+
"onClose": emitClose,
|
9527
|
+
"onLongPress": () => emit("longPress", {
|
9528
|
+
index
|
9529
|
+
})
|
9530
|
+
}, {
|
9531
|
+
image: slots.image
|
9532
|
+
}))]
|
9493
9533
|
});
|
9494
9534
|
const renderClose = () => {
|
9495
9535
|
if (props.closeable) {
|
9496
9536
|
return createVNode(Icon, {
|
9497
9537
|
"role": "button",
|
9498
9538
|
"name": props.closeIcon,
|
9499
|
-
"class": [bem$
|
9539
|
+
"class": [bem$y("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
9500
9540
|
"onClick": emitClose
|
9501
9541
|
}, null);
|
9502
9542
|
}
|
@@ -9533,8 +9573,8 @@ var stdin_default$A = defineComponent({
|
|
9533
9573
|
}
|
9534
9574
|
});
|
9535
9575
|
return () => createVNode(Popup, mergeProps({
|
9536
|
-
"class": [bem$
|
9537
|
-
"overlayClass": [bem$
|
9576
|
+
"class": [bem$y(), props.className],
|
9577
|
+
"overlayClass": [bem$y("overlay"), props.overlayClass],
|
9538
9578
|
"onClosed": onClosed,
|
9539
9579
|
"onUpdate:show": updateShow
|
9540
9580
|
}, pick(props, popupProps$1)), {
|
@@ -9578,7 +9618,7 @@ function initInstance$1() {
|
|
9578
9618
|
const onClosed = () => {
|
9579
9619
|
state.images = [];
|
9580
9620
|
};
|
9581
|
-
return () => createVNode(stdin_default$
|
9621
|
+
return () => createVNode(stdin_default$E, mergeProps(state, {
|
9582
9622
|
"onClosed": onClosed,
|
9583
9623
|
"onUpdate:show": toggle
|
9584
9624
|
}), null);
|
@@ -9599,13 +9639,13 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
9599
9639
|
instance$1.open(extend({}, defaultConfig, options));
|
9600
9640
|
return instance$1;
|
9601
9641
|
};
|
9602
|
-
const ImagePreview = withInstall(stdin_default$
|
9642
|
+
const ImagePreview = withInstall(stdin_default$E);
|
9603
9643
|
function genAlphabet() {
|
9604
9644
|
const charCodeOfA = "A".charCodeAt(0);
|
9605
9645
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
9606
9646
|
return indexList;
|
9607
9647
|
}
|
9608
|
-
const [name$
|
9648
|
+
const [name$y, bem$x] = createNamespace("index-bar");
|
9609
9649
|
const indexBarProps = {
|
9610
9650
|
sticky: truthProp,
|
9611
9651
|
zIndex: numericProp,
|
@@ -9617,9 +9657,9 @@ const indexBarProps = {
|
|
9617
9657
|
default: genAlphabet
|
9618
9658
|
}
|
9619
9659
|
};
|
9620
|
-
const INDEX_BAR_KEY = Symbol(name$
|
9621
|
-
var stdin_default$
|
9622
|
-
name: name$
|
9660
|
+
const INDEX_BAR_KEY = Symbol(name$y);
|
9661
|
+
var stdin_default$D = defineComponent({
|
9662
|
+
name: name$y,
|
9623
9663
|
props: indexBarProps,
|
9624
9664
|
emits: ["select", "change"],
|
9625
9665
|
setup(props, {
|
@@ -9731,7 +9771,7 @@ var stdin_default$z = defineComponent({
|
|
9731
9771
|
const renderIndexes = () => props.indexList.map((index) => {
|
9732
9772
|
const active = index === activeAnchor.value;
|
9733
9773
|
return createVNode("span", {
|
9734
|
-
"class": bem$
|
9774
|
+
"class": bem$x("index", {
|
9735
9775
|
active
|
9736
9776
|
}),
|
9737
9777
|
"style": active ? highlightStyle.value : void 0,
|
@@ -9792,7 +9832,7 @@ var stdin_default$z = defineComponent({
|
|
9792
9832
|
};
|
9793
9833
|
const renderSidebar = () => createVNode("div", {
|
9794
9834
|
"ref": sidebar,
|
9795
|
-
"class": bem$
|
9835
|
+
"class": bem$x("sidebar"),
|
9796
9836
|
"style": sidebarStyle.value,
|
9797
9837
|
"onClick": onClickSidebar,
|
9798
9838
|
"onTouchstartPassive": touch.start
|
@@ -9807,7 +9847,7 @@ var stdin_default$z = defineComponent({
|
|
9807
9847
|
var _a;
|
9808
9848
|
return createVNode("div", {
|
9809
9849
|
"ref": root,
|
9810
|
-
"class": bem$
|
9850
|
+
"class": bem$x()
|
9811
9851
|
}, [props.teleport ? createVNode(Teleport, {
|
9812
9852
|
"to": props.teleport
|
9813
9853
|
}, {
|
@@ -9816,12 +9856,12 @@ var stdin_default$z = defineComponent({
|
|
9816
9856
|
};
|
9817
9857
|
}
|
9818
9858
|
});
|
9819
|
-
const [name$
|
9859
|
+
const [name$x, bem$w] = createNamespace("index-anchor");
|
9820
9860
|
const indexAnchorProps = {
|
9821
9861
|
index: numericProp
|
9822
9862
|
};
|
9823
|
-
var stdin_default$
|
9824
|
-
name: name$
|
9863
|
+
var stdin_default$C = defineComponent({
|
9864
|
+
name: name$x,
|
9825
9865
|
props: indexAnchorProps,
|
9826
9866
|
setup(props, {
|
9827
9867
|
slots
|
@@ -9884,7 +9924,7 @@ var stdin_default$y = defineComponent({
|
|
9884
9924
|
}
|
9885
9925
|
}, [createVNode("div", {
|
9886
9926
|
"style": anchorStyle.value,
|
9887
|
-
"class": [bem$
|
9927
|
+
"class": [bem$w({
|
9888
9928
|
sticky
|
9889
9929
|
}), {
|
9890
9930
|
[BORDER_BOTTOM]: sticky
|
@@ -9893,9 +9933,9 @@ var stdin_default$y = defineComponent({
|
|
9893
9933
|
};
|
9894
9934
|
}
|
9895
9935
|
});
|
9896
|
-
const IndexAnchor = withInstall(stdin_default$
|
9897
|
-
const IndexBar = withInstall(stdin_default$
|
9898
|
-
const [name$
|
9936
|
+
const IndexAnchor = withInstall(stdin_default$C);
|
9937
|
+
const IndexBar = withInstall(stdin_default$D);
|
9938
|
+
const [name$w, bem$v, t$6] = createNamespace("list");
|
9899
9939
|
const listProps = {
|
9900
9940
|
error: Boolean,
|
9901
9941
|
offset: makeNumericProp(300),
|
@@ -9907,8 +9947,8 @@ const listProps = {
|
|
9907
9947
|
finishedText: String,
|
9908
9948
|
immediateCheck: truthProp
|
9909
9949
|
};
|
9910
|
-
var stdin_default$
|
9911
|
-
name: name$
|
9950
|
+
var stdin_default$B = defineComponent({
|
9951
|
+
name: name$w,
|
9912
9952
|
props: listProps,
|
9913
9953
|
emits: ["load", "update:error", "update:loading"],
|
9914
9954
|
setup(props, {
|
@@ -9952,7 +9992,7 @@ var stdin_default$x = defineComponent({
|
|
9952
9992
|
const text = slots.finished ? slots.finished() : props.finishedText;
|
9953
9993
|
if (text) {
|
9954
9994
|
return createVNode("div", {
|
9955
|
-
"class": bem$
|
9995
|
+
"class": bem$v("finished-text")
|
9956
9996
|
}, [text]);
|
9957
9997
|
}
|
9958
9998
|
}
|
@@ -9967,7 +10007,7 @@ var stdin_default$x = defineComponent({
|
|
9967
10007
|
if (text) {
|
9968
10008
|
return createVNode("div", {
|
9969
10009
|
"role": "button",
|
9970
|
-
"class": bem$
|
10010
|
+
"class": bem$v("error-text"),
|
9971
10011
|
"tabindex": 0,
|
9972
10012
|
"onClick": clickErrorText
|
9973
10013
|
}, [text]);
|
@@ -9977,9 +10017,9 @@ var stdin_default$x = defineComponent({
|
|
9977
10017
|
const renderLoading = () => {
|
9978
10018
|
if (loading.value && !props.finished) {
|
9979
10019
|
return createVNode("div", {
|
9980
|
-
"class": bem$
|
10020
|
+
"class": bem$v("loading")
|
9981
10021
|
}, [slots.loading ? slots.loading() : createVNode(Loading, {
|
9982
|
-
"class": bem$
|
10022
|
+
"class": bem$v("loading-icon")
|
9983
10023
|
}, {
|
9984
10024
|
default: () => [props.loadingText || t$6("loading")]
|
9985
10025
|
})]);
|
@@ -10013,19 +10053,19 @@ var stdin_default$x = defineComponent({
|
|
10013
10053
|
const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
10014
10054
|
const Placeholder = createVNode("div", {
|
10015
10055
|
"ref": placeholder,
|
10016
|
-
"class": bem$
|
10056
|
+
"class": bem$v("placeholder")
|
10017
10057
|
}, null);
|
10018
10058
|
return createVNode("div", {
|
10019
10059
|
"ref": root,
|
10020
10060
|
"role": "feed",
|
10021
|
-
"class": bem$
|
10061
|
+
"class": bem$v(),
|
10022
10062
|
"aria-busy": loading.value
|
10023
10063
|
}, [props.direction === "down" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === "up" ? Content : Placeholder]);
|
10024
10064
|
};
|
10025
10065
|
}
|
10026
10066
|
});
|
10027
|
-
const List = withInstall(stdin_default$
|
10028
|
-
const [name$
|
10067
|
+
const List = withInstall(stdin_default$B);
|
10068
|
+
const [name$v, bem$u] = createNamespace("nav-bar");
|
10029
10069
|
const navBarProps = {
|
10030
10070
|
title: String,
|
10031
10071
|
fixed: Boolean,
|
@@ -10038,8 +10078,8 @@ const navBarProps = {
|
|
10038
10078
|
safeAreaInsetTop: Boolean,
|
10039
10079
|
clickable: truthProp
|
10040
10080
|
};
|
10041
|
-
var stdin_default$
|
10042
|
-
name: name$
|
10081
|
+
var stdin_default$A = defineComponent({
|
10082
|
+
name: name$v,
|
10043
10083
|
props: navBarProps,
|
10044
10084
|
emits: ["clickLeft", "clickRight"],
|
10045
10085
|
setup(props, {
|
@@ -10047,7 +10087,7 @@ var stdin_default$w = defineComponent({
|
|
10047
10087
|
slots
|
10048
10088
|
}) {
|
10049
10089
|
const navBarRef = ref();
|
10050
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
10090
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$u);
|
10051
10091
|
const onClickLeft = (event) => emit("clickLeft", event);
|
10052
10092
|
const onClickRight = (event) => emit("clickRight", event);
|
10053
10093
|
const renderLeft = () => {
|
@@ -10055,10 +10095,10 @@ var stdin_default$w = defineComponent({
|
|
10055
10095
|
return slots.left();
|
10056
10096
|
}
|
10057
10097
|
return [props.leftArrow && createVNode(Icon, {
|
10058
|
-
"class": bem$
|
10098
|
+
"class": bem$u("arrow"),
|
10059
10099
|
"name": "arrow-left"
|
10060
10100
|
}, null), props.leftText && createVNode("span", {
|
10061
|
-
"class": bem$
|
10101
|
+
"class": bem$u("text")
|
10062
10102
|
}, [props.leftText])];
|
10063
10103
|
};
|
10064
10104
|
const renderRight = () => {
|
@@ -10066,7 +10106,7 @@ var stdin_default$w = defineComponent({
|
|
10066
10106
|
return slots.right();
|
10067
10107
|
}
|
10068
10108
|
return createVNode("span", {
|
10069
|
-
"class": bem$
|
10109
|
+
"class": bem$u("text")
|
10070
10110
|
}, [props.rightText]);
|
10071
10111
|
};
|
10072
10112
|
const renderNavBar = () => {
|
@@ -10082,21 +10122,21 @@ var stdin_default$w = defineComponent({
|
|
10082
10122
|
return createVNode("div", {
|
10083
10123
|
"ref": navBarRef,
|
10084
10124
|
"style": style,
|
10085
|
-
"class": [bem$
|
10125
|
+
"class": [bem$u({
|
10086
10126
|
fixed
|
10087
10127
|
}), {
|
10088
10128
|
[BORDER_BOTTOM]: border,
|
10089
10129
|
"van-safe-area-top": props.safeAreaInsetTop
|
10090
10130
|
}]
|
10091
10131
|
}, [createVNode("div", {
|
10092
|
-
"class": bem$
|
10132
|
+
"class": bem$u("content")
|
10093
10133
|
}, [hasLeft && createVNode("div", {
|
10094
|
-
"class": [bem$
|
10134
|
+
"class": [bem$u("left"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10095
10135
|
"onClick": onClickLeft
|
10096
10136
|
}, [renderLeft()]), createVNode("div", {
|
10097
|
-
"class": [bem$
|
10137
|
+
"class": [bem$u("title"), "van-ellipsis"]
|
10098
10138
|
}, [slots.title ? slots.title() : title]), hasRight && createVNode("div", {
|
10099
|
-
"class": [bem$
|
10139
|
+
"class": [bem$u("right"), props.clickable ? HAPTICS_FEEDBACK : ""],
|
10100
10140
|
"onClick": onClickRight
|
10101
10141
|
}, [renderRight()])])]);
|
10102
10142
|
};
|
@@ -10108,8 +10148,8 @@ var stdin_default$w = defineComponent({
|
|
10108
10148
|
};
|
10109
10149
|
}
|
10110
10150
|
});
|
10111
|
-
const NavBar = withInstall(stdin_default$
|
10112
|
-
const [name$
|
10151
|
+
const NavBar = withInstall(stdin_default$A);
|
10152
|
+
const [name$u, bem$t] = createNamespace("notice-bar");
|
10113
10153
|
const noticeBarProps = {
|
10114
10154
|
text: String,
|
10115
10155
|
mode: String,
|
@@ -10124,8 +10164,8 @@ const noticeBarProps = {
|
|
10124
10164
|
default: null
|
10125
10165
|
}
|
10126
10166
|
};
|
10127
|
-
var stdin_default$
|
10128
|
-
name: name$
|
10167
|
+
var stdin_default$z = defineComponent({
|
10168
|
+
name: name$u,
|
10129
10169
|
props: noticeBarProps,
|
10130
10170
|
emits: ["close", "replay"],
|
10131
10171
|
setup(props, {
|
@@ -10148,7 +10188,7 @@ var stdin_default$v = defineComponent({
|
|
10148
10188
|
}
|
10149
10189
|
if (props.leftIcon) {
|
10150
10190
|
return createVNode(Icon, {
|
10151
|
-
"class": bem$
|
10191
|
+
"class": bem$t("left-icon"),
|
10152
10192
|
"name": props.leftIcon
|
10153
10193
|
}, null);
|
10154
10194
|
}
|
@@ -10175,7 +10215,7 @@ var stdin_default$v = defineComponent({
|
|
10175
10215
|
if (name2) {
|
10176
10216
|
return createVNode(Icon, {
|
10177
10217
|
"name": name2,
|
10178
|
-
"class": bem$
|
10218
|
+
"class": bem$t("right-icon"),
|
10179
10219
|
"onClick": onClickRightIcon
|
10180
10220
|
}, null);
|
10181
10221
|
}
|
@@ -10200,11 +10240,11 @@ var stdin_default$v = defineComponent({
|
|
10200
10240
|
return createVNode("div", {
|
10201
10241
|
"ref": wrapRef,
|
10202
10242
|
"role": "marquee",
|
10203
|
-
"class": bem$
|
10243
|
+
"class": bem$t("wrap")
|
10204
10244
|
}, [createVNode("div", {
|
10205
10245
|
"ref": contentRef,
|
10206
10246
|
"style": style,
|
10207
|
-
"class": [bem$
|
10247
|
+
"class": [bem$t("content"), {
|
10208
10248
|
"van-ellipsis": ellipsis
|
10209
10249
|
}],
|
10210
10250
|
"onTransitionend": onTransitionEnd
|
@@ -10253,7 +10293,7 @@ var stdin_default$v = defineComponent({
|
|
10253
10293
|
} = props;
|
10254
10294
|
return withDirectives(createVNode("div", {
|
10255
10295
|
"role": "alert",
|
10256
|
-
"class": bem$
|
10296
|
+
"class": bem$t({
|
10257
10297
|
wrapable
|
10258
10298
|
}),
|
10259
10299
|
"style": {
|
@@ -10264,8 +10304,8 @@ var stdin_default$v = defineComponent({
|
|
10264
10304
|
};
|
10265
10305
|
}
|
10266
10306
|
});
|
10267
|
-
const NoticeBar = withInstall(stdin_default$
|
10268
|
-
const [name$
|
10307
|
+
const NoticeBar = withInstall(stdin_default$z);
|
10308
|
+
const [name$t, bem$s] = createNamespace("notify");
|
10269
10309
|
const notifyProps = extend({}, popupSharedProps, {
|
10270
10310
|
type: makeStringProp("danger"),
|
10271
10311
|
color: String,
|
@@ -10275,8 +10315,8 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
10275
10315
|
background: String,
|
10276
10316
|
lockScroll: Boolean
|
10277
10317
|
});
|
10278
|
-
var stdin_default$
|
10279
|
-
name: name$
|
10318
|
+
var stdin_default$y = defineComponent({
|
10319
|
+
name: name$t,
|
10280
10320
|
props: notifyProps,
|
10281
10321
|
emits: ["update:show"],
|
10282
10322
|
setup(props, {
|
@@ -10286,7 +10326,7 @@ var stdin_default$u = defineComponent({
|
|
10286
10326
|
const updateShow = (show) => emit("update:show", show);
|
10287
10327
|
return () => createVNode(Popup, {
|
10288
10328
|
"show": props.show,
|
10289
|
-
"class": [bem$
|
10329
|
+
"class": [bem$s([props.type]), props.className],
|
10290
10330
|
"style": {
|
10291
10331
|
color: props.color,
|
10292
10332
|
background: props.background
|
@@ -10316,7 +10356,7 @@ function initInstance() {
|
|
10316
10356
|
state,
|
10317
10357
|
toggle
|
10318
10358
|
} = usePopupState();
|
10319
|
-
return () => createVNode(stdin_default$
|
10359
|
+
return () => createVNode(stdin_default$y, mergeProps(state, {
|
10320
10360
|
"onUpdate:show": toggle
|
10321
10361
|
}), null);
|
10322
10362
|
}
|
@@ -10360,24 +10400,24 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
10360
10400
|
const resetNotifyDefaultOptions = () => {
|
10361
10401
|
currentOptions = getDefaultOptions();
|
10362
10402
|
};
|
10363
|
-
const Notify = withInstall(stdin_default$
|
10364
|
-
const [name$
|
10403
|
+
const Notify = withInstall(stdin_default$y);
|
10404
|
+
const [name$s, bem$r] = createNamespace("key");
|
10365
10405
|
const CollapseIcon = createVNode("svg", {
|
10366
|
-
"class": bem$
|
10406
|
+
"class": bem$r("collapse-icon"),
|
10367
10407
|
"viewBox": "0 0 30 24"
|
10368
10408
|
}, [createVNode("path", {
|
10369
10409
|
"d": "M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",
|
10370
10410
|
"fill": "currentColor"
|
10371
10411
|
}, null)]);
|
10372
10412
|
const DeleteIcon = createVNode("svg", {
|
10373
|
-
"class": bem$
|
10413
|
+
"class": bem$r("delete-icon"),
|
10374
10414
|
"viewBox": "0 0 32 22"
|
10375
10415
|
}, [createVNode("path", {
|
10376
10416
|
"d": "M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",
|
10377
10417
|
"fill": "currentColor"
|
10378
10418
|
}, null)]);
|
10379
|
-
var stdin_default$
|
10380
|
-
name: name$
|
10419
|
+
var stdin_default$x = defineComponent({
|
10420
|
+
name: name$s,
|
10381
10421
|
props: {
|
10382
10422
|
type: String,
|
10383
10423
|
text: numericProp,
|
@@ -10415,7 +10455,7 @@ var stdin_default$t = defineComponent({
|
|
10415
10455
|
const renderContent = () => {
|
10416
10456
|
if (props.loading) {
|
10417
10457
|
return createVNode(Loading, {
|
10418
|
-
"class": bem$
|
10458
|
+
"class": bem$r("loading-icon")
|
10419
10459
|
}, null);
|
10420
10460
|
}
|
10421
10461
|
const text = slots.default ? slots.default() : props.text;
|
@@ -10429,7 +10469,7 @@ var stdin_default$t = defineComponent({
|
|
10429
10469
|
}
|
10430
10470
|
};
|
10431
10471
|
return () => createVNode("div", {
|
10432
|
-
"class": bem$
|
10472
|
+
"class": bem$r("wrapper", {
|
10433
10473
|
wider: props.wider
|
10434
10474
|
}),
|
10435
10475
|
"onTouchstartPassive": onTouchStart,
|
@@ -10439,7 +10479,7 @@ var stdin_default$t = defineComponent({
|
|
10439
10479
|
}, [createVNode("div", {
|
10440
10480
|
"role": "button",
|
10441
10481
|
"tabindex": 0,
|
10442
|
-
"class": bem$
|
10482
|
+
"class": bem$r([props.color, {
|
10443
10483
|
large: props.large,
|
10444
10484
|
active: active.value,
|
10445
10485
|
delete: props.type === "delete"
|
@@ -10447,7 +10487,7 @@ var stdin_default$t = defineComponent({
|
|
10447
10487
|
}, [renderContent()])]);
|
10448
10488
|
}
|
10449
10489
|
});
|
10450
|
-
const [name$
|
10490
|
+
const [name$r, bem$q] = createNamespace("number-keyboard");
|
10451
10491
|
const numberKeyboardProps = {
|
10452
10492
|
show: Boolean,
|
10453
10493
|
title: String,
|
@@ -10479,8 +10519,8 @@ function shuffle(array) {
|
|
10479
10519
|
}
|
10480
10520
|
return array;
|
10481
10521
|
}
|
10482
|
-
var stdin_default$
|
10483
|
-
name: name$
|
10522
|
+
var stdin_default$w = defineComponent({
|
10523
|
+
name: name$r,
|
10484
10524
|
props: numberKeyboardProps,
|
10485
10525
|
emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
|
10486
10526
|
setup(props, {
|
@@ -10577,14 +10617,14 @@ var stdin_default$s = defineComponent({
|
|
10577
10617
|
return;
|
10578
10618
|
}
|
10579
10619
|
return createVNode("div", {
|
10580
|
-
"class": bem$
|
10620
|
+
"class": bem$q("header")
|
10581
10621
|
}, [leftSlot && createVNode("span", {
|
10582
|
-
"class": bem$
|
10622
|
+
"class": bem$q("title-left")
|
10583
10623
|
}, [leftSlot()]), title && createVNode("h2", {
|
10584
|
-
"class": bem$
|
10624
|
+
"class": bem$q("title")
|
10585
10625
|
}, [title]), showClose && createVNode("button", {
|
10586
10626
|
"type": "button",
|
10587
|
-
"class": [bem$
|
10627
|
+
"class": [bem$q("close"), HAPTICS_FEEDBACK],
|
10588
10628
|
"onClick": onClose
|
10589
10629
|
}, [closeButtonText])]);
|
10590
10630
|
};
|
@@ -10596,7 +10636,7 @@ var stdin_default$s = defineComponent({
|
|
10596
10636
|
if (key.type === "extra") {
|
10597
10637
|
keySlots.default = slots["extra-key"];
|
10598
10638
|
}
|
10599
|
-
return createVNode(stdin_default$
|
10639
|
+
return createVNode(stdin_default$x, {
|
10600
10640
|
"key": key.text,
|
10601
10641
|
"text": key.text,
|
10602
10642
|
"type": key.type,
|
@@ -10608,15 +10648,15 @@ var stdin_default$s = defineComponent({
|
|
10608
10648
|
const renderSidebar = () => {
|
10609
10649
|
if (props.theme === "custom") {
|
10610
10650
|
return createVNode("div", {
|
10611
|
-
"class": bem$
|
10612
|
-
}, [props.showDeleteKey && createVNode(stdin_default$
|
10651
|
+
"class": bem$q("sidebar")
|
10652
|
+
}, [props.showDeleteKey && createVNode(stdin_default$x, {
|
10613
10653
|
"large": true,
|
10614
10654
|
"text": props.deleteButtonText,
|
10615
10655
|
"type": "delete",
|
10616
10656
|
"onPress": onPress
|
10617
10657
|
}, {
|
10618
10658
|
delete: slots.delete
|
10619
|
-
}), createVNode(stdin_default$
|
10659
|
+
}), createVNode(stdin_default$x, {
|
10620
10660
|
"large": true,
|
10621
10661
|
"text": props.closeButtonText,
|
10622
10662
|
"type": "close",
|
@@ -10644,16 +10684,16 @@ var stdin_default$s = defineComponent({
|
|
10644
10684
|
default: () => [withDirectives(createVNode("div", {
|
10645
10685
|
"ref": root,
|
10646
10686
|
"style": getZIndexStyle(props.zIndex),
|
10647
|
-
"class": bem$
|
10687
|
+
"class": bem$q({
|
10648
10688
|
unfit: !props.safeAreaInsetBottom,
|
10649
10689
|
"with-title": !!Title
|
10650
10690
|
}),
|
10651
10691
|
"onAnimationend": onAnimationEnd,
|
10652
10692
|
"onTouchstartPassive": stopPropagation
|
10653
10693
|
}, [Title, createVNode("div", {
|
10654
|
-
"class": bem$
|
10694
|
+
"class": bem$q("body")
|
10655
10695
|
}, [createVNode("div", {
|
10656
|
-
"class": bem$
|
10696
|
+
"class": bem$q("keys")
|
10657
10697
|
}, [renderKeys()]), renderSidebar()])]), [[vShow, props.show]])]
|
10658
10698
|
});
|
10659
10699
|
if (props.teleport) {
|
@@ -10667,8 +10707,8 @@ var stdin_default$s = defineComponent({
|
|
10667
10707
|
};
|
10668
10708
|
}
|
10669
10709
|
});
|
10670
|
-
const NumberKeyboard = withInstall(stdin_default$
|
10671
|
-
const [name$
|
10710
|
+
const NumberKeyboard = withInstall(stdin_default$w);
|
10711
|
+
const [name$q, bem$p, t$5] = createNamespace("pagination");
|
10672
10712
|
const makePage = (number, text, active) => ({
|
10673
10713
|
number,
|
10674
10714
|
text,
|
@@ -10685,8 +10725,8 @@ const paginationProps = {
|
|
10685
10725
|
itemsPerPage: makeNumericProp(10),
|
10686
10726
|
forceEllipses: Boolean
|
10687
10727
|
};
|
10688
|
-
var stdin_default$
|
10689
|
-
name: name$
|
10728
|
+
var stdin_default$v = defineComponent({
|
10729
|
+
name: name$q,
|
10690
10730
|
props: paginationProps,
|
10691
10731
|
emits: ["change", "update:modelValue"],
|
10692
10732
|
setup(props, {
|
@@ -10748,7 +10788,7 @@ var stdin_default$r = defineComponent({
|
|
10748
10788
|
};
|
10749
10789
|
watchEffect(() => updateModelValue(props.modelValue));
|
10750
10790
|
const renderDesc = () => createVNode("li", {
|
10751
|
-
"class": bem$
|
10791
|
+
"class": bem$p("page-desc")
|
10752
10792
|
}, [slots.pageDesc ? slots.pageDesc() : `${props.modelValue}/${count.value}`]);
|
10753
10793
|
const renderPrevButton = () => {
|
10754
10794
|
const {
|
@@ -10758,7 +10798,7 @@ var stdin_default$r = defineComponent({
|
|
10758
10798
|
const slot = slots["prev-text"];
|
10759
10799
|
const disabled = modelValue === 1;
|
10760
10800
|
return createVNode("li", {
|
10761
|
-
"class": [bem$
|
10801
|
+
"class": [bem$p("item", {
|
10762
10802
|
disabled,
|
10763
10803
|
border: mode === "simple",
|
10764
10804
|
prev: true
|
@@ -10777,7 +10817,7 @@ var stdin_default$r = defineComponent({
|
|
10777
10817
|
const slot = slots["next-text"];
|
10778
10818
|
const disabled = modelValue === count.value;
|
10779
10819
|
return createVNode("li", {
|
10780
|
-
"class": [bem$
|
10820
|
+
"class": [bem$p("item", {
|
10781
10821
|
disabled,
|
10782
10822
|
border: mode === "simple",
|
10783
10823
|
next: true
|
@@ -10789,7 +10829,7 @@ var stdin_default$r = defineComponent({
|
|
10789
10829
|
}, [slot ? slot() : props.nextText || t$5("next")])]);
|
10790
10830
|
};
|
10791
10831
|
const renderPages = () => pages.value.map((page) => createVNode("li", {
|
10792
|
-
"class": [bem$
|
10832
|
+
"class": [bem$p("item", {
|
10793
10833
|
active: page.active,
|
10794
10834
|
page: true
|
10795
10835
|
}), BORDER_SURROUND]
|
@@ -10800,14 +10840,14 @@ var stdin_default$r = defineComponent({
|
|
10800
10840
|
}, [slots.page ? slots.page(page) : page.text])]));
|
10801
10841
|
return () => createVNode("nav", {
|
10802
10842
|
"role": "navigation",
|
10803
|
-
"class": bem$
|
10843
|
+
"class": bem$p()
|
10804
10844
|
}, [createVNode("ul", {
|
10805
|
-
"class": bem$
|
10845
|
+
"class": bem$p("items")
|
10806
10846
|
}, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
|
10807
10847
|
}
|
10808
10848
|
});
|
10809
|
-
const Pagination = withInstall(stdin_default$
|
10810
|
-
const [name$
|
10849
|
+
const Pagination = withInstall(stdin_default$v);
|
10850
|
+
const [name$p, bem$o] = createNamespace("password-input");
|
10811
10851
|
const passwordInputProps = {
|
10812
10852
|
info: String,
|
10813
10853
|
mask: truthProp,
|
@@ -10817,8 +10857,8 @@ const passwordInputProps = {
|
|
10817
10857
|
focused: Boolean,
|
10818
10858
|
errorInfo: String
|
10819
10859
|
};
|
10820
|
-
var stdin_default$
|
10821
|
-
name: name$
|
10860
|
+
var stdin_default$u = defineComponent({
|
10861
|
+
name: name$p,
|
10822
10862
|
props: passwordInputProps,
|
10823
10863
|
emits: ["focus"],
|
10824
10864
|
setup(props, {
|
@@ -10850,7 +10890,7 @@ var stdin_default$q = defineComponent({
|
|
10850
10890
|
Points.push(createVNode("li", {
|
10851
10891
|
"class": [{
|
10852
10892
|
[BORDER_LEFT]: showBorder
|
10853
|
-
}, bem$
|
10893
|
+
}, bem$o("item", {
|
10854
10894
|
focus: showCursor
|
10855
10895
|
})],
|
10856
10896
|
"style": style
|
@@ -10859,7 +10899,7 @@ var stdin_default$q = defineComponent({
|
|
10859
10899
|
visibility: char ? "visible" : "hidden"
|
10860
10900
|
}
|
10861
10901
|
}, null) : char, showCursor && createVNode("div", {
|
10862
|
-
"class": bem$
|
10902
|
+
"class": bem$o("cursor")
|
10863
10903
|
}, null)]));
|
10864
10904
|
}
|
10865
10905
|
return Points;
|
@@ -10867,22 +10907,36 @@ var stdin_default$q = defineComponent({
|
|
10867
10907
|
return () => {
|
10868
10908
|
const info = props.errorInfo || props.info;
|
10869
10909
|
return createVNode("div", {
|
10870
|
-
"class": bem$
|
10910
|
+
"class": bem$o()
|
10871
10911
|
}, [createVNode("ul", {
|
10872
|
-
"class": [bem$
|
10912
|
+
"class": [bem$o("security"), {
|
10873
10913
|
[BORDER_SURROUND]: !props.gutter
|
10874
10914
|
}],
|
10875
10915
|
"onTouchstartPassive": onTouchStart
|
10876
10916
|
}, [renderPoints()]), info && createVNode("div", {
|
10877
|
-
"class": bem$
|
10917
|
+
"class": bem$o(props.errorInfo ? "error-info" : "info")
|
10878
10918
|
}, [info])]);
|
10879
10919
|
};
|
10880
10920
|
}
|
10881
10921
|
});
|
10882
|
-
const PasswordInput = withInstall(stdin_default$
|
10883
|
-
const PickerGroup = withInstall(stdin_default$
|
10884
|
-
const
|
10885
|
-
const
|
10922
|
+
const PasswordInput = withInstall(stdin_default$u);
|
10923
|
+
const PickerGroup = withInstall(stdin_default$1n);
|
10924
|
+
const useSyncPropRef = (getProp, setProp) => {
|
10925
|
+
const propRef = ref(getProp());
|
10926
|
+
watch(getProp, (value) => {
|
10927
|
+
if (value !== propRef.value) {
|
10928
|
+
propRef.value = value;
|
10929
|
+
}
|
10930
|
+
});
|
10931
|
+
watch(propRef, (value) => {
|
10932
|
+
if (value !== getProp()) {
|
10933
|
+
setProp(value);
|
10934
|
+
}
|
10935
|
+
});
|
10936
|
+
return propRef;
|
10937
|
+
};
|
10938
|
+
const [name$o, bem$n] = createNamespace("popover");
|
10939
|
+
const popupProps = ["overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
10886
10940
|
const popoverProps = {
|
10887
10941
|
show: Boolean,
|
10888
10942
|
theme: makeStringProp("light"),
|
@@ -10907,8 +10961,8 @@ const popoverProps = {
|
|
10907
10961
|
default: "body"
|
10908
10962
|
}
|
10909
10963
|
};
|
10910
|
-
var stdin_default$
|
10911
|
-
name: name$
|
10964
|
+
var stdin_default$t = defineComponent({
|
10965
|
+
name: name$o,
|
10912
10966
|
props: popoverProps,
|
10913
10967
|
emits: ["select", "touchstart", "update:show"],
|
10914
10968
|
setup(props, {
|
@@ -10920,6 +10974,7 @@ var stdin_default$p = defineComponent({
|
|
10920
10974
|
const popupRef = ref();
|
10921
10975
|
const wrapperRef = ref();
|
10922
10976
|
const popoverRef = ref();
|
10977
|
+
const show = useSyncPropRef(() => props.show, (value) => emit("update:show", value));
|
10923
10978
|
const getPopoverOptions = () => ({
|
10924
10979
|
placement: props.placement,
|
10925
10980
|
modifiers: [{
|
@@ -10942,7 +10997,7 @@ var stdin_default$p = defineComponent({
|
|
10942
10997
|
};
|
10943
10998
|
const updateLocation = () => {
|
10944
10999
|
nextTick(() => {
|
10945
|
-
if (!
|
11000
|
+
if (!show.value) {
|
10946
11001
|
return;
|
10947
11002
|
}
|
10948
11003
|
if (!popper) {
|
@@ -10952,10 +11007,12 @@ var stdin_default$p = defineComponent({
|
|
10952
11007
|
}
|
10953
11008
|
});
|
10954
11009
|
};
|
10955
|
-
const updateShow = (value) =>
|
11010
|
+
const updateShow = (value) => {
|
11011
|
+
show.value = value;
|
11012
|
+
};
|
10956
11013
|
const onClickWrapper = () => {
|
10957
11014
|
if (props.trigger === "click") {
|
10958
|
-
|
11015
|
+
show.value = !show.value;
|
10959
11016
|
}
|
10960
11017
|
};
|
10961
11018
|
const onClickAction = (action, index) => {
|
@@ -10964,12 +11021,12 @@ var stdin_default$p = defineComponent({
|
|
10964
11021
|
}
|
10965
11022
|
emit("select", action, index);
|
10966
11023
|
if (props.closeOnClickAction) {
|
10967
|
-
|
11024
|
+
show.value = false;
|
10968
11025
|
}
|
10969
11026
|
};
|
10970
11027
|
const onClickAway = () => {
|
10971
|
-
if (
|
10972
|
-
|
11028
|
+
if (show.value && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
|
11029
|
+
show.value = false;
|
10973
11030
|
}
|
10974
11031
|
};
|
10975
11032
|
const renderActionContent = (action, index) => {
|
@@ -10982,9 +11039,9 @@ var stdin_default$p = defineComponent({
|
|
10982
11039
|
return [action.icon && createVNode(Icon, {
|
10983
11040
|
"name": action.icon,
|
10984
11041
|
"classPrefix": props.iconPrefix,
|
10985
|
-
"class": bem$
|
11042
|
+
"class": bem$n("action-icon")
|
10986
11043
|
}, null), createVNode("div", {
|
10987
|
-
"class": [bem$
|
11044
|
+
"class": [bem$n("action-text"), BORDER_BOTTOM]
|
10988
11045
|
}, [action.text])];
|
10989
11046
|
};
|
10990
11047
|
const renderAction = (action, index) => {
|
@@ -10996,7 +11053,7 @@ var stdin_default$p = defineComponent({
|
|
10996
11053
|
} = action;
|
10997
11054
|
return createVNode("div", {
|
10998
11055
|
"role": "menuitem",
|
10999
|
-
"class": [bem$
|
11056
|
+
"class": [bem$n("action", {
|
11000
11057
|
disabled,
|
11001
11058
|
"with-icon": icon
|
11002
11059
|
}), className],
|
@@ -11021,7 +11078,7 @@ var stdin_default$p = defineComponent({
|
|
11021
11078
|
popper = null;
|
11022
11079
|
}
|
11023
11080
|
});
|
11024
|
-
watch(() => [
|
11081
|
+
watch(() => [show.value, props.offset, props.placement], updateLocation);
|
11025
11082
|
useClickAway([wrapperRef, popupRef], onClickAway, {
|
11026
11083
|
eventName: "touchstart"
|
11027
11084
|
});
|
@@ -11029,28 +11086,29 @@ var stdin_default$p = defineComponent({
|
|
11029
11086
|
var _a;
|
11030
11087
|
return createVNode(Fragment, null, [createVNode("span", {
|
11031
11088
|
"ref": wrapperRef,
|
11032
|
-
"class": bem$
|
11089
|
+
"class": bem$n("wrapper"),
|
11033
11090
|
"onClick": onClickWrapper
|
11034
11091
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Popup, mergeProps({
|
11035
11092
|
"ref": popoverRef,
|
11036
|
-
"
|
11093
|
+
"show": show.value,
|
11094
|
+
"class": bem$n([props.theme]),
|
11037
11095
|
"position": "",
|
11038
11096
|
"transition": "van-popover-zoom",
|
11039
11097
|
"lockScroll": false,
|
11040
11098
|
"onUpdate:show": updateShow
|
11041
11099
|
}, attrs, pick(props, popupProps)), {
|
11042
11100
|
default: () => [props.showArrow && createVNode("div", {
|
11043
|
-
"class": bem$
|
11101
|
+
"class": bem$n("arrow")
|
11044
11102
|
}, null), createVNode("div", {
|
11045
11103
|
"role": "menu",
|
11046
|
-
"class": bem$
|
11104
|
+
"class": bem$n("content")
|
11047
11105
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
11048
11106
|
})]);
|
11049
11107
|
};
|
11050
11108
|
}
|
11051
11109
|
});
|
11052
|
-
const Popover = withInstall(stdin_default$
|
11053
|
-
const [name$
|
11110
|
+
const Popover = withInstall(stdin_default$t);
|
11111
|
+
const [name$n, bem$m] = createNamespace("progress");
|
11054
11112
|
const progressProps = {
|
11055
11113
|
color: String,
|
11056
11114
|
inactive: Boolean,
|
@@ -11066,8 +11124,8 @@ const progressProps = {
|
|
11066
11124
|
validator: (value) => value >= 0 && value <= 100
|
11067
11125
|
}
|
11068
11126
|
};
|
11069
|
-
var stdin_default$
|
11070
|
-
name: name$
|
11127
|
+
var stdin_default$s = defineComponent({
|
11128
|
+
name: name$n,
|
11071
11129
|
props: progressProps,
|
11072
11130
|
setup(props) {
|
11073
11131
|
const background = computed(() => props.inactive ? void 0 : props.color);
|
@@ -11088,7 +11146,7 @@ var stdin_default$o = defineComponent({
|
|
11088
11146
|
};
|
11089
11147
|
return createVNode("span", {
|
11090
11148
|
"style": style,
|
11091
|
-
"class": bem$
|
11149
|
+
"class": bem$m("pivot", {
|
11092
11150
|
inactive: props.inactive
|
11093
11151
|
})
|
11094
11152
|
}, [text]);
|
@@ -11109,10 +11167,10 @@ var stdin_default$o = defineComponent({
|
|
11109
11167
|
background: background.value
|
11110
11168
|
};
|
11111
11169
|
return createVNode("div", {
|
11112
|
-
"class": bem$
|
11170
|
+
"class": bem$m(),
|
11113
11171
|
"style": rootStyle
|
11114
11172
|
}, [createVNode("span", {
|
11115
|
-
"class": bem$
|
11173
|
+
"class": bem$m("portion", {
|
11116
11174
|
inactive: props.inactive
|
11117
11175
|
}),
|
11118
11176
|
"style": portionStyle
|
@@ -11120,8 +11178,8 @@ var stdin_default$o = defineComponent({
|
|
11120
11178
|
};
|
11121
11179
|
}
|
11122
11180
|
});
|
11123
|
-
const Progress = withInstall(stdin_default$
|
11124
|
-
const [name$
|
11181
|
+
const Progress = withInstall(stdin_default$s);
|
11182
|
+
const [name$m, bem$l, t$4] = createNamespace("pull-refresh");
|
11125
11183
|
const DEFAULT_HEAD_HEIGHT = 50;
|
11126
11184
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
11127
11185
|
const pullRefreshProps = {
|
@@ -11136,8 +11194,8 @@ const pullRefreshProps = {
|
|
11136
11194
|
successDuration: makeNumericProp(500),
|
11137
11195
|
animationDuration: makeNumericProp(300)
|
11138
11196
|
};
|
11139
|
-
var stdin_default$
|
11140
|
-
name: name$
|
11197
|
+
var stdin_default$r = defineComponent({
|
11198
|
+
name: name$m,
|
11141
11199
|
props: pullRefreshProps,
|
11142
11200
|
emits: ["change", "refresh", "update:modelValue"],
|
11143
11201
|
setup(props, {
|
@@ -11212,12 +11270,12 @@ var stdin_default$n = defineComponent({
|
|
11212
11270
|
const nodes = [];
|
11213
11271
|
if (TEXT_STATUS.includes(status)) {
|
11214
11272
|
nodes.push(createVNode("div", {
|
11215
|
-
"class": bem$
|
11273
|
+
"class": bem$l("text")
|
11216
11274
|
}, [getStatusText()]));
|
11217
11275
|
}
|
11218
11276
|
if (status === "loading") {
|
11219
11277
|
nodes.push(createVNode(Loading, {
|
11220
|
-
"class": bem$
|
11278
|
+
"class": bem$l("loading")
|
11221
11279
|
}, {
|
11222
11280
|
default: getStatusText
|
11223
11281
|
}));
|
@@ -11290,23 +11348,23 @@ var stdin_default$n = defineComponent({
|
|
11290
11348
|
};
|
11291
11349
|
return createVNode("div", {
|
11292
11350
|
"ref": root,
|
11293
|
-
"class": bem$
|
11351
|
+
"class": bem$l()
|
11294
11352
|
}, [createVNode("div", {
|
11295
11353
|
"ref": track,
|
11296
|
-
"class": bem$
|
11354
|
+
"class": bem$l("track"),
|
11297
11355
|
"style": trackStyle,
|
11298
11356
|
"onTouchstartPassive": onTouchStart,
|
11299
11357
|
"onTouchend": onTouchEnd,
|
11300
11358
|
"onTouchcancel": onTouchEnd
|
11301
11359
|
}, [createVNode("div", {
|
11302
|
-
"class": bem$
|
11360
|
+
"class": bem$l("head"),
|
11303
11361
|
"style": getHeadStyle()
|
11304
11362
|
}, [renderStatus()]), (_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
11305
11363
|
};
|
11306
11364
|
}
|
11307
11365
|
});
|
11308
|
-
const PullRefresh = withInstall(stdin_default$
|
11309
|
-
const [name$
|
11366
|
+
const PullRefresh = withInstall(stdin_default$r);
|
11367
|
+
const [name$l, bem$k] = createNamespace("rate");
|
11310
11368
|
function getRateStatus(value, index, allowHalf, readonly) {
|
11311
11369
|
if (value >= index) {
|
11312
11370
|
return {
|
@@ -11348,8 +11406,8 @@ const rateProps = {
|
|
11348
11406
|
modelValue: makeNumberProp(0),
|
11349
11407
|
disabledColor: String
|
11350
11408
|
};
|
11351
|
-
var stdin_default$
|
11352
|
-
name: name$
|
11409
|
+
var stdin_default$q = defineComponent({
|
11410
|
+
name: name$l,
|
11353
11411
|
props: rateProps,
|
11354
11412
|
emits: ["change", "update:modelValue"],
|
11355
11413
|
setup(props, {
|
@@ -11468,7 +11526,7 @@ var stdin_default$m = defineComponent({
|
|
11468
11526
|
"ref": setItemRefs(index),
|
11469
11527
|
"role": "radio",
|
11470
11528
|
"style": style,
|
11471
|
-
"class": bem$
|
11529
|
+
"class": bem$k("item"),
|
11472
11530
|
"tabindex": disabled ? void 0 : 0,
|
11473
11531
|
"aria-setsize": count,
|
11474
11532
|
"aria-posinset": score,
|
@@ -11477,7 +11535,7 @@ var stdin_default$m = defineComponent({
|
|
11477
11535
|
}, [createVNode(Icon, {
|
11478
11536
|
"size": size,
|
11479
11537
|
"name": isFull ? icon : voidIcon,
|
11480
|
-
"class": bem$
|
11538
|
+
"class": bem$k("icon", {
|
11481
11539
|
disabled,
|
11482
11540
|
full: isFull
|
11483
11541
|
}),
|
@@ -11489,7 +11547,7 @@ var stdin_default$m = defineComponent({
|
|
11489
11547
|
width: item.value + "em"
|
11490
11548
|
},
|
11491
11549
|
"name": isVoid ? voidIcon : icon,
|
11492
|
-
"class": bem$
|
11550
|
+
"class": bem$k("icon", ["half", {
|
11493
11551
|
disabled,
|
11494
11552
|
full: !isVoid
|
11495
11553
|
}]),
|
@@ -11504,7 +11562,7 @@ var stdin_default$m = defineComponent({
|
|
11504
11562
|
return () => createVNode("div", {
|
11505
11563
|
"ref": groupRef,
|
11506
11564
|
"role": "radiogroup",
|
11507
|
-
"class": bem$
|
11565
|
+
"class": bem$k({
|
11508
11566
|
readonly: props.readonly,
|
11509
11567
|
disabled: props.disabled
|
11510
11568
|
}),
|
@@ -11515,9 +11573,9 @@ var stdin_default$m = defineComponent({
|
|
11515
11573
|
}, [list.value.map(renderStar)]);
|
11516
11574
|
}
|
11517
11575
|
});
|
11518
|
-
const Rate = withInstall(stdin_default$
|
11519
|
-
const Row = withInstall(stdin_default$
|
11520
|
-
const [name$
|
11576
|
+
const Rate = withInstall(stdin_default$q);
|
11577
|
+
const Row = withInstall(stdin_default$Y);
|
11578
|
+
const [name$k, bem$j, t$3] = createNamespace("search");
|
11521
11579
|
const searchProps = extend({}, fieldSharedProps, {
|
11522
11580
|
label: String,
|
11523
11581
|
shape: makeStringProp("square"),
|
@@ -11527,8 +11585,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
11527
11585
|
background: String,
|
11528
11586
|
showAction: Boolean
|
11529
11587
|
});
|
11530
|
-
var stdin_default$
|
11531
|
-
name: name$
|
11588
|
+
var stdin_default$p = defineComponent({
|
11589
|
+
name: name$k,
|
11532
11590
|
props: searchProps,
|
11533
11591
|
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
11534
11592
|
setup(props, {
|
@@ -11555,7 +11613,7 @@ var stdin_default$l = defineComponent({
|
|
11555
11613
|
const renderLabel = () => {
|
11556
11614
|
if (slots.label || props.label) {
|
11557
11615
|
return createVNode("label", {
|
11558
|
-
"class": bem$
|
11616
|
+
"class": bem$j("label"),
|
11559
11617
|
"for": getInputId()
|
11560
11618
|
}, [slots.label ? slots.label() : props.label]);
|
11561
11619
|
}
|
@@ -11564,7 +11622,7 @@ var stdin_default$l = defineComponent({
|
|
11564
11622
|
if (props.showAction) {
|
11565
11623
|
const text = props.actionText || t$3("cancel");
|
11566
11624
|
return createVNode("div", {
|
11567
|
-
"class": bem$
|
11625
|
+
"class": bem$j("action"),
|
11568
11626
|
"role": "button",
|
11569
11627
|
"tabindex": 0,
|
11570
11628
|
"onClick": onCancel
|
@@ -11594,7 +11652,7 @@ var stdin_default$l = defineComponent({
|
|
11594
11652
|
return createVNode(Field, mergeProps({
|
11595
11653
|
"ref": filedRef,
|
11596
11654
|
"type": "search",
|
11597
|
-
"class": bem$
|
11655
|
+
"class": bem$j("field"),
|
11598
11656
|
"border": false,
|
11599
11657
|
"onBlur": onBlur,
|
11600
11658
|
"onFocus": onFocus,
|
@@ -11613,19 +11671,19 @@ var stdin_default$l = defineComponent({
|
|
11613
11671
|
return () => {
|
11614
11672
|
var _a;
|
11615
11673
|
return createVNode("div", {
|
11616
|
-
"class": bem$
|
11674
|
+
"class": bem$j({
|
11617
11675
|
"show-action": props.showAction
|
11618
11676
|
}),
|
11619
11677
|
"style": {
|
11620
11678
|
background: props.background
|
11621
11679
|
}
|
11622
11680
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), createVNode("div", {
|
11623
|
-
"class": bem$
|
11681
|
+
"class": bem$j("content", props.shape)
|
11624
11682
|
}, [renderLabel(), renderField()]), renderAction()]);
|
11625
11683
|
};
|
11626
11684
|
}
|
11627
11685
|
});
|
11628
|
-
const Search = withInstall(stdin_default$
|
11686
|
+
const Search = withInstall(stdin_default$p);
|
11629
11687
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
11630
11688
|
const iconMap = {
|
11631
11689
|
qq: "qq",
|
@@ -11637,7 +11695,7 @@ const iconMap = {
|
|
11637
11695
|
"weapp-qrcode": "miniprogram-o",
|
11638
11696
|
"wechat-moments": "wechat-moments"
|
11639
11697
|
};
|
11640
|
-
const [name$
|
11698
|
+
const [name$j, bem$i, t$2] = createNamespace("share-sheet");
|
11641
11699
|
const shareSheetProps = extend({}, popupSharedProps, {
|
11642
11700
|
title: String,
|
11643
11701
|
round: truthProp,
|
@@ -11647,8 +11705,8 @@ const shareSheetProps = extend({}, popupSharedProps, {
|
|
11647
11705
|
closeOnPopstate: truthProp,
|
11648
11706
|
safeAreaInsetBottom: truthProp
|
11649
11707
|
});
|
11650
|
-
var stdin_default$
|
11651
|
-
name: name$
|
11708
|
+
var stdin_default$o = defineComponent({
|
11709
|
+
name: name$j,
|
11652
11710
|
props: shareSheetProps,
|
11653
11711
|
emits: ["cancel", "select", "update:show"],
|
11654
11712
|
setup(props, {
|
@@ -11666,25 +11724,25 @@ var stdin_default$k = defineComponent({
|
|
11666
11724
|
const description = slots.description ? slots.description() : props.description;
|
11667
11725
|
if (title || description) {
|
11668
11726
|
return createVNode("div", {
|
11669
|
-
"class": bem$
|
11727
|
+
"class": bem$i("header")
|
11670
11728
|
}, [title && createVNode("h2", {
|
11671
|
-
"class": bem$
|
11729
|
+
"class": bem$i("title")
|
11672
11730
|
}, [title]), description && createVNode("span", {
|
11673
|
-
"class": bem$
|
11731
|
+
"class": bem$i("description")
|
11674
11732
|
}, [description])]);
|
11675
11733
|
}
|
11676
11734
|
};
|
11677
11735
|
const renderIcon = (icon) => {
|
11678
11736
|
if (iconMap[icon]) {
|
11679
11737
|
return createVNode("div", {
|
11680
|
-
"class": bem$
|
11738
|
+
"class": bem$i("icon", [icon])
|
11681
11739
|
}, [createVNode(Icon, {
|
11682
11740
|
"name": iconMap[icon] || icon
|
11683
11741
|
}, null)]);
|
11684
11742
|
}
|
11685
11743
|
return createVNode("img", {
|
11686
11744
|
"src": icon,
|
11687
|
-
"class": bem$
|
11745
|
+
"class": bem$i("image-icon")
|
11688
11746
|
}, null);
|
11689
11747
|
};
|
11690
11748
|
const renderOption = (option, index) => {
|
@@ -11697,16 +11755,16 @@ var stdin_default$k = defineComponent({
|
|
11697
11755
|
return createVNode("div", {
|
11698
11756
|
"role": "button",
|
11699
11757
|
"tabindex": 0,
|
11700
|
-
"class": [bem$
|
11758
|
+
"class": [bem$i("option"), className, HAPTICS_FEEDBACK],
|
11701
11759
|
"onClick": () => onSelect(option, index)
|
11702
11760
|
}, [renderIcon(icon), name2 && createVNode("span", {
|
11703
|
-
"class": bem$
|
11761
|
+
"class": bem$i("name")
|
11704
11762
|
}, [name2]), description && createVNode("span", {
|
11705
|
-
"class": bem$
|
11763
|
+
"class": bem$i("option-description")
|
11706
11764
|
}, [description])]);
|
11707
11765
|
};
|
11708
11766
|
const renderOptions = (options, border) => createVNode("div", {
|
11709
|
-
"class": bem$
|
11767
|
+
"class": bem$i("options", {
|
11710
11768
|
border
|
11711
11769
|
})
|
11712
11770
|
}, [options.map(renderOption)]);
|
@@ -11725,13 +11783,13 @@ var stdin_default$k = defineComponent({
|
|
11725
11783
|
if (slots.cancel || cancelText) {
|
11726
11784
|
return createVNode("button", {
|
11727
11785
|
"type": "button",
|
11728
|
-
"class": bem$
|
11786
|
+
"class": bem$i("cancel"),
|
11729
11787
|
"onClick": onCancel
|
11730
11788
|
}, [slots.cancel ? slots.cancel() : cancelText]);
|
11731
11789
|
}
|
11732
11790
|
};
|
11733
11791
|
return () => createVNode(Popup, mergeProps({
|
11734
|
-
"class": bem$
|
11792
|
+
"class": bem$i(),
|
11735
11793
|
"position": "bottom",
|
11736
11794
|
"onUpdate:show": updateShow
|
11737
11795
|
}, pick(props, popupInheritKeys)), {
|
@@ -11739,14 +11797,14 @@ var stdin_default$k = defineComponent({
|
|
11739
11797
|
});
|
11740
11798
|
}
|
11741
11799
|
});
|
11742
|
-
const ShareSheet = withInstall(stdin_default$
|
11743
|
-
const [name$
|
11744
|
-
const SIDEBAR_KEY = Symbol(name$
|
11800
|
+
const ShareSheet = withInstall(stdin_default$o);
|
11801
|
+
const [name$i, bem$h] = createNamespace("sidebar");
|
11802
|
+
const SIDEBAR_KEY = Symbol(name$i);
|
11745
11803
|
const sidebarProps = {
|
11746
11804
|
modelValue: makeNumericProp(0)
|
11747
11805
|
};
|
11748
|
-
var stdin_default$
|
11749
|
-
name: name$
|
11806
|
+
var stdin_default$n = defineComponent({
|
11807
|
+
name: name$i,
|
11750
11808
|
props: sidebarProps,
|
11751
11809
|
emits: ["change", "update:modelValue"],
|
11752
11810
|
setup(props, {
|
@@ -11771,13 +11829,13 @@ var stdin_default$j = defineComponent({
|
|
11771
11829
|
var _a;
|
11772
11830
|
return createVNode("div", {
|
11773
11831
|
"role": "tablist",
|
11774
|
-
"class": bem$
|
11832
|
+
"class": bem$h()
|
11775
11833
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
11776
11834
|
};
|
11777
11835
|
}
|
11778
11836
|
});
|
11779
|
-
const Sidebar = withInstall(stdin_default$
|
11780
|
-
const [name$
|
11837
|
+
const Sidebar = withInstall(stdin_default$n);
|
11838
|
+
const [name$h, bem$g] = createNamespace("sidebar-item");
|
11781
11839
|
const sidebarItemProps = extend({}, routeProps, {
|
11782
11840
|
dot: Boolean,
|
11783
11841
|
title: String,
|
@@ -11785,8 +11843,8 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
11785
11843
|
disabled: Boolean,
|
11786
11844
|
badgeProps: Object
|
11787
11845
|
});
|
11788
|
-
var stdin_default$
|
11789
|
-
name: name$
|
11846
|
+
var stdin_default$m = defineComponent({
|
11847
|
+
name: name$h,
|
11790
11848
|
props: sidebarItemProps,
|
11791
11849
|
emits: ["click"],
|
11792
11850
|
setup(props, {
|
@@ -11822,7 +11880,7 @@ var stdin_default$i = defineComponent({
|
|
11822
11880
|
const selected = index.value === parent.getActive();
|
11823
11881
|
return createVNode("div", {
|
11824
11882
|
"role": "tab",
|
11825
|
-
"class": bem$
|
11883
|
+
"class": bem$g({
|
11826
11884
|
select: selected,
|
11827
11885
|
disabled
|
11828
11886
|
}),
|
@@ -11831,7 +11889,7 @@ var stdin_default$i = defineComponent({
|
|
11831
11889
|
"onClick": onClick
|
11832
11890
|
}, [createVNode(Badge, mergeProps({
|
11833
11891
|
"dot": dot,
|
11834
|
-
"class": bem$
|
11892
|
+
"class": bem$g("text"),
|
11835
11893
|
"content": badge
|
11836
11894
|
}, props.badgeProps), {
|
11837
11895
|
default: () => [slots.title ? slots.title() : title]
|
@@ -11839,27 +11897,83 @@ var stdin_default$i = defineComponent({
|
|
11839
11897
|
};
|
11840
11898
|
}
|
11841
11899
|
});
|
11842
|
-
const SidebarItem = withInstall(stdin_default$
|
11843
|
-
const [name$
|
11900
|
+
const SidebarItem = withInstall(stdin_default$m);
|
11901
|
+
const [name$g, bem$f] = createNamespace("skeleton-title");
|
11902
|
+
const skeletonTitleProps = {
|
11903
|
+
round: Boolean,
|
11904
|
+
titleWidth: numericProp
|
11905
|
+
};
|
11906
|
+
var stdin_default$l = defineComponent({
|
11907
|
+
name: name$g,
|
11908
|
+
props: skeletonTitleProps,
|
11909
|
+
setup(props) {
|
11910
|
+
return () => createVNode("h3", {
|
11911
|
+
"class": bem$f([{
|
11912
|
+
round: props.round
|
11913
|
+
}]),
|
11914
|
+
"style": {
|
11915
|
+
width: addUnit(props.titleWidth)
|
11916
|
+
}
|
11917
|
+
}, null);
|
11918
|
+
}
|
11919
|
+
});
|
11920
|
+
const [name$f, bem$e] = createNamespace("skeleton-avatar");
|
11921
|
+
const skeletonAvatarProps = {
|
11922
|
+
avatarSize: numericProp,
|
11923
|
+
avatarShape: makeStringProp("round")
|
11924
|
+
};
|
11925
|
+
var stdin_default$k = defineComponent({
|
11926
|
+
name: name$f,
|
11927
|
+
props: skeletonAvatarProps,
|
11928
|
+
setup(props) {
|
11929
|
+
return () => createVNode("div", {
|
11930
|
+
"class": bem$e([props.avatarShape]),
|
11931
|
+
"style": getSizeStyle(props.avatarSize)
|
11932
|
+
}, null);
|
11933
|
+
}
|
11934
|
+
});
|
11844
11935
|
const DEFAULT_ROW_WIDTH = "100%";
|
11936
|
+
const skeletonParagraphProps = {
|
11937
|
+
round: Boolean,
|
11938
|
+
rowWidth: {
|
11939
|
+
type: numericProp,
|
11940
|
+
default: DEFAULT_ROW_WIDTH
|
11941
|
+
}
|
11942
|
+
};
|
11943
|
+
const [name$e, bem$d] = createNamespace("skeleton-paragraph");
|
11944
|
+
var stdin_default$j = defineComponent({
|
11945
|
+
name: name$e,
|
11946
|
+
props: skeletonParagraphProps,
|
11947
|
+
setup(props) {
|
11948
|
+
return () => createVNode("div", {
|
11949
|
+
"class": bem$d([{
|
11950
|
+
round: props.round
|
11951
|
+
}]),
|
11952
|
+
"style": {
|
11953
|
+
width: props.rowWidth
|
11954
|
+
}
|
11955
|
+
}, null);
|
11956
|
+
}
|
11957
|
+
});
|
11958
|
+
const [name$d, bem$c] = createNamespace("skeleton");
|
11845
11959
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
11846
11960
|
const skeletonProps = {
|
11847
11961
|
row: makeNumericProp(0),
|
11848
|
-
title: Boolean,
|
11849
11962
|
round: Boolean,
|
11963
|
+
title: Boolean,
|
11964
|
+
titleWidth: numericProp,
|
11850
11965
|
avatar: Boolean,
|
11851
|
-
loading: truthProp,
|
11852
|
-
animate: truthProp,
|
11853
11966
|
avatarSize: numericProp,
|
11854
|
-
titleWidth: numericProp,
|
11855
11967
|
avatarShape: makeStringProp("round"),
|
11968
|
+
loading: truthProp,
|
11969
|
+
animate: truthProp,
|
11856
11970
|
rowWidth: {
|
11857
11971
|
type: [Number, String, Array],
|
11858
11972
|
default: DEFAULT_ROW_WIDTH
|
11859
11973
|
}
|
11860
11974
|
};
|
11861
|
-
var stdin_default$
|
11862
|
-
name: name$
|
11975
|
+
var stdin_default$i = defineComponent({
|
11976
|
+
name: name$d,
|
11863
11977
|
inheritAttrs: false,
|
11864
11978
|
props: skeletonProps,
|
11865
11979
|
setup(props, {
|
@@ -11868,19 +11982,17 @@ var stdin_default$h = defineComponent({
|
|
11868
11982
|
}) {
|
11869
11983
|
const renderAvatar = () => {
|
11870
11984
|
if (props.avatar) {
|
11871
|
-
return createVNode(
|
11872
|
-
"
|
11873
|
-
"
|
11985
|
+
return createVNode(stdin_default$k, {
|
11986
|
+
"avatarShape": props.avatarShape,
|
11987
|
+
"avatarSize": props.avatarSize
|
11874
11988
|
}, null);
|
11875
11989
|
}
|
11876
11990
|
};
|
11877
11991
|
const renderTitle = () => {
|
11878
11992
|
if (props.title) {
|
11879
|
-
return createVNode(
|
11880
|
-
"
|
11881
|
-
"
|
11882
|
-
width: addUnit(props.titleWidth)
|
11883
|
-
}
|
11993
|
+
return createVNode(stdin_default$l, {
|
11994
|
+
"round": props.round,
|
11995
|
+
"titleWidth": props.titleWidth
|
11884
11996
|
}, null);
|
11885
11997
|
}
|
11886
11998
|
};
|
@@ -11896,29 +12008,56 @@ var stdin_default$h = defineComponent({
|
|
11896
12008
|
}
|
11897
12009
|
return rowWidth;
|
11898
12010
|
};
|
11899
|
-
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode(
|
11900
|
-
"
|
11901
|
-
"
|
11902
|
-
|
11903
|
-
}
|
12011
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode(stdin_default$j, {
|
12012
|
+
"key": i,
|
12013
|
+
"round": props.round,
|
12014
|
+
"rowWidth": addUnit(getRowWidth(i))
|
11904
12015
|
}, null));
|
12016
|
+
const renderContents = () => {
|
12017
|
+
if (slots.template) {
|
12018
|
+
return slots.template();
|
12019
|
+
}
|
12020
|
+
return createVNode(Fragment, null, [renderAvatar(), createVNode("div", {
|
12021
|
+
"class": bem$c("content")
|
12022
|
+
}, [renderTitle(), renderRows()])]);
|
12023
|
+
};
|
11905
12024
|
return () => {
|
11906
12025
|
var _a;
|
11907
12026
|
if (!props.loading) {
|
11908
12027
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
11909
12028
|
}
|
11910
12029
|
return createVNode("div", mergeProps({
|
11911
|
-
"class": bem$
|
12030
|
+
"class": bem$c({
|
11912
12031
|
animate: props.animate,
|
11913
12032
|
round: props.round
|
11914
12033
|
})
|
11915
|
-
}, attrs), [
|
11916
|
-
"class": bem$b("content")
|
11917
|
-
}, [renderTitle(), renderRows()])]);
|
12034
|
+
}, attrs), [renderContents()]);
|
11918
12035
|
};
|
11919
12036
|
}
|
11920
12037
|
});
|
11921
|
-
const
|
12038
|
+
const [name$c, bem$b] = createNamespace("skeleton-image");
|
12039
|
+
const skeletonImageProps = {
|
12040
|
+
imageSize: numericProp,
|
12041
|
+
imageShape: makeStringProp("square")
|
12042
|
+
};
|
12043
|
+
var stdin_default$h = defineComponent({
|
12044
|
+
name: name$c,
|
12045
|
+
props: skeletonImageProps,
|
12046
|
+
setup(props) {
|
12047
|
+
return () => createVNode("div", {
|
12048
|
+
"class": bem$b([props.imageShape]),
|
12049
|
+
"style": getSizeStyle(props.imageSize)
|
12050
|
+
}, [createVNode(Icon, {
|
12051
|
+
"name": "photo",
|
12052
|
+
"class": bem$b("icon")
|
12053
|
+
}, null)]);
|
12054
|
+
}
|
12055
|
+
});
|
12056
|
+
const SkeletonImage = withInstall(stdin_default$h);
|
12057
|
+
const SkeletonTitle = withInstall(stdin_default$l);
|
12058
|
+
const SkeletonAvatar = withInstall(stdin_default$k);
|
12059
|
+
const SkeletonParagraph = withInstall(stdin_default$j);
|
12060
|
+
const Skeleton = withInstall(stdin_default$i);
|
11922
12061
|
const [name$b, bem$a] = createNamespace("slider");
|
11923
12062
|
const sliderProps = {
|
11924
12063
|
min: makeNumericProp(0),
|
@@ -12415,7 +12554,6 @@ var stdin_default$d = defineComponent({
|
|
12415
12554
|
const Step = withInstall(stdin_default$d);
|
12416
12555
|
const [name$7, bem$6] = createNamespace("stepper");
|
12417
12556
|
const LONG_PRESS_INTERVAL = 200;
|
12418
|
-
const LONG_PRESS_START_TIME = 600;
|
12419
12557
|
const isEqual = (value1, value2) => String(value1) === String(value2);
|
12420
12558
|
const stepperProps = {
|
12421
12559
|
min: makeNumericProp(1),
|
@@ -13138,7 +13276,10 @@ var stdin_default$7 = defineComponent({
|
|
13138
13276
|
case "second":
|
13139
13277
|
return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
|
13140
13278
|
default:
|
13141
|
-
|
13279
|
+
if (process.env.NODE_ENV !== "production") {
|
13280
|
+
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
13281
|
+
}
|
13282
|
+
return [];
|
13142
13283
|
}
|
13143
13284
|
}));
|
13144
13285
|
watch(currentValues, (newValues) => {
|
@@ -13620,7 +13761,7 @@ var stdin_default$4 = defineComponent({
|
|
13620
13761
|
};
|
13621
13762
|
const onClickUpload = (event) => emit("clickUpload", event);
|
13622
13763
|
const renderUpload = () => {
|
13623
|
-
if (props.modelValue.length >= props.maxCount
|
13764
|
+
if (props.modelValue.length >= props.maxCount) {
|
13624
13765
|
return;
|
13625
13766
|
}
|
13626
13767
|
const Input = props.readonly ? null : createVNode("input", {
|
@@ -13639,7 +13780,7 @@ var stdin_default$4 = defineComponent({
|
|
13639
13780
|
"onClick": onClickUpload
|
13640
13781
|
}, [slots.default(), Input]);
|
13641
13782
|
}
|
13642
|
-
return createVNode("div", {
|
13783
|
+
return withDirectives(createVNode("div", {
|
13643
13784
|
"class": bem("upload", {
|
13644
13785
|
readonly: props.readonly
|
13645
13786
|
}),
|
@@ -13650,7 +13791,7 @@ var stdin_default$4 = defineComponent({
|
|
13650
13791
|
"class": bem("upload-icon")
|
13651
13792
|
}, null), props.uploadText && createVNode("span", {
|
13652
13793
|
"class": bem("upload-text")
|
13653
|
-
}, [props.uploadText]), Input]);
|
13794
|
+
}, [props.uploadText]), Input]), [[vShow, props.showUpload]]);
|
13654
13795
|
};
|
13655
13796
|
const chooseFile = () => {
|
13656
13797
|
if (inputRef.value && !props.disabled) {
|
@@ -14463,15 +14604,14 @@ var stdin_default$1 = (lazyManager) => ({
|
|
14463
14604
|
default: "img"
|
14464
14605
|
}
|
14465
14606
|
},
|
14466
|
-
render(
|
14467
|
-
|
14607
|
+
render() {
|
14608
|
+
var _a, _b;
|
14609
|
+
return h(
|
14468
14610
|
this.tag,
|
14469
14611
|
{
|
14470
|
-
|
14471
|
-
src: this.renderSrc
|
14472
|
-
}
|
14612
|
+
src: this.renderSrc
|
14473
14613
|
},
|
14474
|
-
this.$slots.default
|
14614
|
+
(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)
|
14475
14615
|
);
|
14476
14616
|
},
|
14477
14617
|
data() {
|
@@ -14573,7 +14713,7 @@ const Lazyload = {
|
|
14573
14713
|
});
|
14574
14714
|
}
|
14575
14715
|
};
|
14576
|
-
const version = "4.0.0-rc.
|
14716
|
+
const version = "4.0.0-rc.7";
|
14577
14717
|
function install(app) {
|
14578
14718
|
const components = [
|
14579
14719
|
ActionBar,
|
@@ -14747,6 +14887,10 @@ export {
|
|
14747
14887
|
Sidebar,
|
14748
14888
|
SidebarItem,
|
14749
14889
|
Skeleton,
|
14890
|
+
SkeletonAvatar,
|
14891
|
+
SkeletonImage,
|
14892
|
+
SkeletonParagraph,
|
14893
|
+
SkeletonTitle,
|
14750
14894
|
Slider,
|
14751
14895
|
Space,
|
14752
14896
|
Step,
|
@@ -14852,7 +14996,11 @@ export {
|
|
14852
14996
|
showToast,
|
14853
14997
|
sidebarItemProps,
|
14854
14998
|
sidebarProps,
|
14999
|
+
skeletonAvatarProps,
|
15000
|
+
skeletonImageProps,
|
15001
|
+
skeletonParagraphProps,
|
14855
15002
|
skeletonProps,
|
15003
|
+
skeletonTitleProps,
|
14856
15004
|
sliderProps,
|
14857
15005
|
spaceProps,
|
14858
15006
|
stepperProps,
|