vant 4.0.7 → 4.0.9
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/back-top/BackTop.d.ts +4 -0
- package/es/back-top/BackTop.mjs +2 -1
- package/es/back-top/index.d.ts +3 -0
- package/es/calendar/Calendar.mjs +1 -1
- package/es/calendar/CalendarMonth.mjs +4 -1
- package/es/icon/index.css +1 -1
- package/es/image-preview/ImagePreview.mjs +13 -3
- package/es/image-preview/ImagePreviewItem.d.ts +3 -0
- package/es/image-preview/ImagePreviewItem.mjs +21 -9
- package/es/index.d.ts +5 -1
- package/es/index.mjs +13 -1
- package/es/locale/index.d.ts +1 -0
- package/es/locale/index.mjs +3 -1
- package/es/locale/lang/eo-EO.d.ts +62 -0
- package/es/locale/lang/eo-EO.mjs +64 -0
- package/es/locale/lang/it-IT.mjs +12 -12
- package/es/number-keyboard/index.css +1 -1
- package/es/picker/index.css +1 -1
- package/es/picker-group/PickerGroup.d.ts +3 -0
- package/es/picker-group/PickerGroup.mjs +20 -7
- package/es/picker-group/index.d.ts +2 -0
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/Skeleton.mjs +3 -3
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +6 -73
- package/es/skeleton/index.mjs +1 -21
- package/es/skeleton/style/index.mjs +3 -2
- package/es/skeleton/types.d.ts +0 -2
- package/es/{skeleton → skeleton-avatar}/SkeletonAvatar.d.ts +1 -1
- package/es/{skeleton → skeleton-avatar}/SkeletonAvatar.mjs +0 -0
- package/es/skeleton-avatar/index.css +1 -0
- package/es/skeleton-avatar/index.d.ts +23 -0
- package/es/skeleton-avatar/index.mjs +10 -0
- package/es/skeleton-avatar/style/index.d.ts +1 -0
- package/es/skeleton-avatar/style/index.mjs +2 -0
- package/{lib/skeleton → es/skeleton-image}/SkeletonImage.d.ts +1 -1
- package/es/{skeleton → skeleton-image}/SkeletonImage.mjs +0 -0
- package/es/skeleton-image/index.css +1 -0
- package/es/skeleton-image/index.d.ts +23 -0
- package/es/skeleton-image/index.mjs +10 -0
- package/es/skeleton-image/style/index.d.ts +1 -0
- package/es/skeleton-image/style/index.mjs +4 -0
- package/es/{skeleton → skeleton-paragraph}/SkeletonParagraph.d.ts +0 -0
- package/es/{skeleton → skeleton-paragraph}/SkeletonParagraph.mjs +0 -0
- package/es/skeleton-paragraph/index.css +1 -0
- package/es/skeleton-paragraph/index.d.ts +24 -0
- package/es/skeleton-paragraph/index.mjs +11 -0
- package/es/skeleton-paragraph/style/index.d.ts +1 -0
- package/es/skeleton-paragraph/style/index.mjs +2 -0
- package/es/{skeleton → skeleton-title}/SkeletonTitle.d.ts +0 -0
- package/es/{skeleton → skeleton-title}/SkeletonTitle.mjs +0 -0
- package/es/skeleton-title/index.css +1 -0
- package/es/skeleton-title/index.d.ts +17 -0
- package/es/skeleton-title/index.mjs +10 -0
- package/es/skeleton-title/style/index.d.ts +1 -0
- package/es/skeleton-title/style/index.mjs +2 -0
- package/es/slider/Slider.d.ts +2 -2
- package/es/slider/index.d.ts +2 -2
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.d.ts +3 -1
- package/es/swipe/Swipe.mjs +10 -2
- package/es/swipe/index.d.ts +3 -1
- package/lib/back-top/BackTop.d.ts +4 -0
- package/lib/back-top/BackTop.js +2 -1
- package/lib/back-top/index.d.ts +3 -0
- package/lib/calendar/Calendar.js +1 -1
- package/lib/calendar/CalendarMonth.js +4 -1
- package/lib/icon/index.css +1 -1
- package/lib/image-preview/ImagePreview.js +13 -3
- package/lib/image-preview/ImagePreviewItem.d.ts +3 -0
- package/lib/image-preview/ImagePreviewItem.js +21 -9
- package/lib/index.css +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.js +13 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +3 -1
- package/lib/locale/lang/eo-EO.d.ts +62 -0
- package/lib/locale/lang/eo-EO.js +83 -0
- package/lib/locale/lang/it-IT.js +12 -12
- package/lib/number-keyboard/index.css +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker-group/PickerGroup.d.ts +3 -0
- package/lib/picker-group/PickerGroup.js +18 -5
- package/lib/picker-group/index.d.ts +2 -0
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/Skeleton.js +8 -8
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +6 -73
- package/lib/skeleton/index.js +1 -21
- package/lib/skeleton/style/index.js +3 -2
- package/lib/skeleton/types.d.ts +0 -2
- package/lib/{skeleton → skeleton-avatar}/SkeletonAvatar.d.ts +1 -1
- package/lib/{skeleton → skeleton-avatar}/SkeletonAvatar.js +0 -0
- package/lib/skeleton-avatar/index.css +1 -0
- package/lib/skeleton-avatar/index.d.ts +23 -0
- package/lib/skeleton-avatar/index.js +35 -0
- package/lib/skeleton-avatar/style/index.d.ts +1 -0
- package/lib/skeleton-avatar/style/index.js +2 -0
- package/{es/skeleton → lib/skeleton-image}/SkeletonImage.d.ts +1 -1
- package/lib/{skeleton → skeleton-image}/SkeletonImage.js +0 -0
- package/lib/skeleton-image/index.css +1 -0
- package/lib/skeleton-image/index.d.ts +23 -0
- package/lib/skeleton-image/index.js +35 -0
- package/lib/skeleton-image/style/index.d.ts +1 -0
- package/lib/skeleton-image/style/index.js +4 -0
- package/lib/{skeleton → skeleton-paragraph}/SkeletonParagraph.d.ts +0 -0
- package/lib/{skeleton → skeleton-paragraph}/SkeletonParagraph.js +0 -0
- package/lib/skeleton-paragraph/index.css +1 -0
- package/lib/skeleton-paragraph/index.d.ts +24 -0
- package/lib/skeleton-paragraph/index.js +36 -0
- package/lib/skeleton-paragraph/style/index.d.ts +1 -0
- package/lib/skeleton-paragraph/style/index.js +2 -0
- package/lib/{skeleton → skeleton-title}/SkeletonTitle.d.ts +0 -0
- package/lib/{skeleton → skeleton-title}/SkeletonTitle.js +0 -0
- package/lib/skeleton-title/index.css +1 -0
- package/lib/skeleton-title/index.d.ts +17 -0
- package/lib/skeleton-title/index.js +35 -0
- package/lib/skeleton-title/style/index.d.ts +1 -0
- package/lib/skeleton-title/style/index.js +2 -0
- package/lib/slider/Slider.d.ts +2 -2
- package/lib/slider/index.d.ts +2 -2
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.d.ts +3 -1
- package/lib/swipe/Swipe.js +10 -2
- package/lib/swipe/index.d.ts +3 -1
- package/lib/vant.cjs.js +274 -217
- package/lib/vant.es.js +274 -217
- package/lib/vant.js +284 -218
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
package/lib/vant.cjs.js
CHANGED
@@ -237,7 +237,7 @@ function deepAssign(to, from) {
|
|
237
237
|
});
|
238
238
|
return to;
|
239
239
|
}
|
240
|
-
var stdin_default$
|
240
|
+
var stdin_default$1N = {
|
241
241
|
name: "姓名",
|
242
242
|
tel: "电话",
|
243
243
|
save: "保存",
|
@@ -300,7 +300,7 @@ var stdin_default$1K = {
|
|
300
300
|
};
|
301
301
|
const lang = vue.ref("zh-CN");
|
302
302
|
const messages = vue.reactive({
|
303
|
-
"zh-CN": stdin_default$
|
303
|
+
"zh-CN": stdin_default$1N
|
304
304
|
});
|
305
305
|
const Locale = {
|
306
306
|
messages() {
|
@@ -314,11 +314,12 @@ const Locale = {
|
|
314
314
|
deepAssign(messages, newMessages);
|
315
315
|
}
|
316
316
|
};
|
317
|
-
|
317
|
+
const useCurrentLang = () => lang;
|
318
|
+
var stdin_default$1M = Locale;
|
318
319
|
function createTranslate(name2) {
|
319
320
|
const prefix = camelize(name2) + ".";
|
320
321
|
return (path, ...args) => {
|
321
|
-
const messages2 = stdin_default$
|
322
|
+
const messages2 = stdin_default$1M.messages();
|
322
323
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
323
324
|
return isFunction(message) ? message(...args) : message;
|
324
325
|
};
|
@@ -446,7 +447,7 @@ const actionBarProps = {
|
|
446
447
|
placeholder: Boolean,
|
447
448
|
safeAreaInsetBottom: truthProp
|
448
449
|
};
|
449
|
-
var stdin_default$
|
450
|
+
var stdin_default$1L = vue.defineComponent({
|
450
451
|
name: name$1B,
|
451
452
|
props: actionBarProps,
|
452
453
|
setup(props, {
|
@@ -475,7 +476,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
475
476
|
};
|
476
477
|
}
|
477
478
|
});
|
478
|
-
const ActionBar = withInstall(stdin_default$
|
479
|
+
const ActionBar = withInstall(stdin_default$1L);
|
479
480
|
function useExpose(apis) {
|
480
481
|
const instance2 = vue.getCurrentInstance();
|
481
482
|
if (instance2) {
|
@@ -514,7 +515,7 @@ const badgeProps = {
|
|
514
515
|
showZero: truthProp,
|
515
516
|
position: makeStringProp("top-right")
|
516
517
|
};
|
517
|
-
var stdin_default$
|
518
|
+
var stdin_default$1K = vue.defineComponent({
|
518
519
|
name: name$1A,
|
519
520
|
props: badgeProps,
|
520
521
|
setup(props, {
|
@@ -601,7 +602,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
601
602
|
};
|
602
603
|
}
|
603
604
|
});
|
604
|
-
const Badge = withInstall(stdin_default$
|
605
|
+
const Badge = withInstall(stdin_default$1K);
|
605
606
|
let globalZIndex = 2e3;
|
606
607
|
const useGlobalZIndex = () => ++globalZIndex;
|
607
608
|
const setGlobalZIndex = (val) => {
|
@@ -625,7 +626,7 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
625
626
|
});
|
626
627
|
return cssVars;
|
627
628
|
}
|
628
|
-
var stdin_default$
|
629
|
+
var stdin_default$1J = vue.defineComponent({
|
629
630
|
name: name$1z,
|
630
631
|
props: configProviderProps,
|
631
632
|
setup(props, {
|
@@ -680,7 +681,7 @@ const iconProps = {
|
|
680
681
|
badgeProps: Object,
|
681
682
|
classPrefix: String
|
682
683
|
};
|
683
|
-
var stdin_default$
|
684
|
+
var stdin_default$1I = vue.defineComponent({
|
684
685
|
name: name$1y,
|
685
686
|
props: iconProps,
|
686
687
|
setup(props, {
|
@@ -719,7 +720,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
719
720
|
};
|
720
721
|
}
|
721
722
|
});
|
722
|
-
const Icon = withInstall(stdin_default$
|
723
|
+
const Icon = withInstall(stdin_default$1I);
|
723
724
|
const [name$1x, bem$1s] = createNamespace("loading");
|
724
725
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
725
726
|
"class": bem$1s("line", String(index + 1))
|
@@ -741,7 +742,7 @@ const loadingProps = {
|
|
741
742
|
textSize: numericProp,
|
742
743
|
textColor: String
|
743
744
|
};
|
744
|
-
var stdin_default$
|
745
|
+
var stdin_default$1H = vue.defineComponent({
|
745
746
|
name: name$1x,
|
746
747
|
props: loadingProps,
|
747
748
|
setup(props, {
|
@@ -784,7 +785,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
784
785
|
};
|
785
786
|
}
|
786
787
|
});
|
787
|
-
const Loading = withInstall(stdin_default$
|
788
|
+
const Loading = withInstall(stdin_default$1H);
|
788
789
|
const [name$1w, bem$1r] = createNamespace("button");
|
789
790
|
const buttonProps = extend({}, routeProps, {
|
790
791
|
tag: makeStringProp("button"),
|
@@ -807,7 +808,7 @@ const buttonProps = extend({}, routeProps, {
|
|
807
808
|
loadingType: String,
|
808
809
|
iconPosition: makeStringProp("left")
|
809
810
|
});
|
810
|
-
var stdin_default$
|
811
|
+
var stdin_default$1G = vue.defineComponent({
|
811
812
|
name: name$1w,
|
812
813
|
props: buttonProps,
|
813
814
|
emits: ["click"],
|
@@ -924,7 +925,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
924
925
|
};
|
925
926
|
}
|
926
927
|
});
|
927
|
-
const Button = withInstall(stdin_default$
|
928
|
+
const Button = withInstall(stdin_default$1G);
|
928
929
|
const [name$1v, bem$1q] = createNamespace("action-bar-button");
|
929
930
|
const actionBarButtonProps = extend({}, routeProps, {
|
930
931
|
type: String,
|
@@ -934,7 +935,7 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
934
935
|
loading: Boolean,
|
935
936
|
disabled: Boolean
|
936
937
|
});
|
937
|
-
var stdin_default$
|
938
|
+
var stdin_default$1F = vue.defineComponent({
|
938
939
|
name: name$1v,
|
939
940
|
props: actionBarButtonProps,
|
940
941
|
setup(props, {
|
@@ -987,7 +988,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
987
988
|
};
|
988
989
|
}
|
989
990
|
});
|
990
|
-
const ActionBarButton = withInstall(stdin_default$
|
991
|
+
const ActionBarButton = withInstall(stdin_default$1F);
|
991
992
|
const [name$1u, bem$1p] = createNamespace("action-bar-icon");
|
992
993
|
const actionBarIconProps = extend({}, routeProps, {
|
993
994
|
dot: Boolean,
|
@@ -999,7 +1000,7 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
999
1000
|
badgeProps: Object,
|
1000
1001
|
iconPrefix: String
|
1001
1002
|
});
|
1002
|
-
var stdin_default$
|
1003
|
+
var stdin_default$1E = vue.defineComponent({
|
1003
1004
|
name: name$1u,
|
1004
1005
|
props: actionBarIconProps,
|
1005
1006
|
setup(props, {
|
@@ -1045,7 +1046,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
1045
1046
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1046
1047
|
}
|
1047
1048
|
});
|
1048
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1049
|
+
const ActionBarIcon = withInstall(stdin_default$1E);
|
1049
1050
|
const popupSharedProps = {
|
1050
1051
|
show: Boolean,
|
1051
1052
|
zIndex: numericProp,
|
@@ -1194,7 +1195,7 @@ const overlayProps = {
|
|
1194
1195
|
lazyRender: truthProp,
|
1195
1196
|
customStyle: Object
|
1196
1197
|
};
|
1197
|
-
var stdin_default$
|
1198
|
+
var stdin_default$1D = vue.defineComponent({
|
1198
1199
|
name: name$1t,
|
1199
1200
|
props: overlayProps,
|
1200
1201
|
setup(props, {
|
@@ -1230,7 +1231,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
1230
1231
|
});
|
1231
1232
|
}
|
1232
1233
|
});
|
1233
|
-
const Overlay = withInstall(stdin_default$
|
1234
|
+
const Overlay = withInstall(stdin_default$1D);
|
1234
1235
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1235
1236
|
round: Boolean,
|
1236
1237
|
position: makeStringProp("center"),
|
@@ -1244,7 +1245,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1244
1245
|
safeAreaInsetBottom: Boolean
|
1245
1246
|
});
|
1246
1247
|
const [name$1s, bem$1n] = createNamespace("popup");
|
1247
|
-
var stdin_default$
|
1248
|
+
var stdin_default$1C = vue.defineComponent({
|
1248
1249
|
name: name$1s,
|
1249
1250
|
inheritAttrs: false,
|
1250
1251
|
props: popupProps$2,
|
@@ -1422,7 +1423,7 @@ var stdin_default$1z = vue.defineComponent({
|
|
1422
1423
|
};
|
1423
1424
|
}
|
1424
1425
|
});
|
1425
|
-
const Popup = withInstall(stdin_default$
|
1426
|
+
const Popup = withInstall(stdin_default$1C);
|
1426
1427
|
const [name$1r, bem$1m] = createNamespace("action-sheet");
|
1427
1428
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1428
1429
|
title: String,
|
@@ -1437,7 +1438,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1437
1438
|
safeAreaInsetBottom: truthProp
|
1438
1439
|
});
|
1439
1440
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1440
|
-
var stdin_default$
|
1441
|
+
var stdin_default$1B = vue.defineComponent({
|
1441
1442
|
name: name$1r,
|
1442
1443
|
props: actionSheetProps,
|
1443
1444
|
emits: ["select", "cancel", "update:show"],
|
@@ -1544,7 +1545,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
1544
1545
|
});
|
1545
1546
|
}
|
1546
1547
|
});
|
1547
|
-
const ActionSheet = withInstall(stdin_default$
|
1548
|
+
const ActionSheet = withInstall(stdin_default$1B);
|
1548
1549
|
const [name$1q, bem$1l, t$j] = createNamespace("picker");
|
1549
1550
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1550
1551
|
function getColumnsType(columns, fields) {
|
@@ -1616,7 +1617,7 @@ const MOMENTUM_TIME = 300;
|
|
1616
1617
|
const MOMENTUM_DISTANCE = 15;
|
1617
1618
|
const [name$1p, bem$1k] = createNamespace("picker-column");
|
1618
1619
|
const PICKER_KEY = Symbol(name$1p);
|
1619
|
-
var stdin_default$
|
1620
|
+
var stdin_default$1A = vue.defineComponent({
|
1620
1621
|
name: name$1p,
|
1621
1622
|
props: {
|
1622
1623
|
value: numericProp,
|
@@ -1802,7 +1803,7 @@ const pickerToolbarProps = {
|
|
1802
1803
|
};
|
1803
1804
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1804
1805
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1805
|
-
var stdin_default$
|
1806
|
+
var stdin_default$1z = vue.defineComponent({
|
1806
1807
|
name: name$1o,
|
1807
1808
|
props: pickerToolbarProps,
|
1808
1809
|
emits: ["confirm", "cancel"],
|
@@ -1931,7 +1932,7 @@ const stickyProps = {
|
|
1931
1932
|
offsetTop: makeNumericProp(0),
|
1932
1933
|
offsetBottom: makeNumericProp(0)
|
1933
1934
|
};
|
1934
|
-
var stdin_default$
|
1935
|
+
var stdin_default$1y = vue.defineComponent({
|
1935
1936
|
name: name$1n,
|
1936
1937
|
props: stickyProps,
|
1937
1938
|
emits: ["scroll", "change"],
|
@@ -2035,9 +2036,9 @@ var stdin_default$1v = vue.defineComponent({
|
|
2035
2036
|
};
|
2036
2037
|
}
|
2037
2038
|
});
|
2038
|
-
const Sticky = withInstall(stdin_default$
|
2039
|
+
const Sticky = withInstall(stdin_default$1y);
|
2039
2040
|
const [name$1m, bem$1i] = createNamespace("tab");
|
2040
|
-
var stdin_default$
|
2041
|
+
var stdin_default$1x = vue.defineComponent({
|
2041
2042
|
name: name$1m,
|
2042
2043
|
props: {
|
2043
2044
|
id: String,
|
@@ -2135,10 +2136,10 @@ const swipeProps = {
|
|
2135
2136
|
stopPropagation: truthProp
|
2136
2137
|
};
|
2137
2138
|
const SWIPE_KEY = Symbol(name$1l);
|
2138
|
-
var stdin_default$
|
2139
|
+
var stdin_default$1w = vue.defineComponent({
|
2139
2140
|
name: name$1l,
|
2140
2141
|
props: swipeProps,
|
2141
|
-
emits: ["change"],
|
2142
|
+
emits: ["change", "dragStart", "dragEnd"],
|
2142
2143
|
setup(props, {
|
2143
2144
|
emit,
|
2144
2145
|
slots
|
@@ -2153,6 +2154,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
2153
2154
|
active: 0,
|
2154
2155
|
swiping: false
|
2155
2156
|
});
|
2157
|
+
let dragging = false;
|
2156
2158
|
const touch = useTouch();
|
2157
2159
|
const {
|
2158
2160
|
children,
|
@@ -2323,9 +2325,10 @@ var stdin_default$1t = vue.defineComponent({
|
|
2323
2325
|
const resize = () => initialize(state.active);
|
2324
2326
|
let touchStartTime;
|
2325
2327
|
const onTouchStart = (event) => {
|
2326
|
-
if (!props.touchable)
|
2328
|
+
if (!props.touchable || event.touches.length > 1)
|
2327
2329
|
return;
|
2328
2330
|
touch.start(event);
|
2331
|
+
dragging = false;
|
2329
2332
|
touchStartTime = Date.now();
|
2330
2333
|
stopAutoplay();
|
2331
2334
|
correctPosition();
|
@@ -2340,6 +2343,10 @@ var stdin_default$1t = vue.defineComponent({
|
|
2340
2343
|
move({
|
2341
2344
|
offset: delta.value
|
2342
2345
|
});
|
2346
|
+
if (!dragging) {
|
2347
|
+
emit("dragStart");
|
2348
|
+
dragging = true;
|
2349
|
+
}
|
2343
2350
|
}
|
2344
2351
|
}
|
2345
2352
|
}
|
@@ -2368,7 +2375,9 @@ var stdin_default$1t = vue.defineComponent({
|
|
2368
2375
|
pace: 0
|
2369
2376
|
});
|
2370
2377
|
}
|
2378
|
+
dragging = false;
|
2371
2379
|
state.swiping = false;
|
2380
|
+
emit("dragEnd");
|
2372
2381
|
autoplay();
|
2373
2382
|
};
|
2374
2383
|
const swipeTo = (index, options = {}) => {
|
@@ -2471,9 +2480,9 @@ var stdin_default$1t = vue.defineComponent({
|
|
2471
2480
|
};
|
2472
2481
|
}
|
2473
2482
|
});
|
2474
|
-
const Swipe = withInstall(stdin_default$
|
2483
|
+
const Swipe = withInstall(stdin_default$1w);
|
2475
2484
|
const [name$1k, bem$1g] = createNamespace("tabs");
|
2476
|
-
var stdin_default$
|
2485
|
+
var stdin_default$1v = vue.defineComponent({
|
2477
2486
|
name: name$1k,
|
2478
2487
|
props: {
|
2479
2488
|
count: makeRequiredProp(Number),
|
@@ -2556,7 +2565,7 @@ const tabsProps = {
|
|
2556
2565
|
titleInactiveColor: String
|
2557
2566
|
};
|
2558
2567
|
const TABS_KEY = Symbol(name$1j);
|
2559
|
-
var stdin_default$
|
2568
|
+
var stdin_default$1u = vue.defineComponent({
|
2560
2569
|
name: name$1j,
|
2561
2570
|
props: tabsProps,
|
2562
2571
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
@@ -2746,7 +2755,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
2746
2755
|
setCurrentIndex(index);
|
2747
2756
|
}
|
2748
2757
|
};
|
2749
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
2758
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1x, vue.mergeProps({
|
2750
2759
|
"key": item.id,
|
2751
2760
|
"id": `${id}-${index}`,
|
2752
2761
|
"ref": setTitleRefs(index),
|
@@ -2862,7 +2871,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
2862
2871
|
"onScroll": onStickyScroll
|
2863
2872
|
}, {
|
2864
2873
|
default: () => [renderHeader()]
|
2865
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
2874
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1v, {
|
2866
2875
|
"ref": contentRef,
|
2867
2876
|
"count": children.length,
|
2868
2877
|
"inited": state.inited,
|
@@ -2883,7 +2892,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
2883
2892
|
const TAB_STATUS_KEY = Symbol();
|
2884
2893
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
2885
2894
|
const [name$1i, bem$1e] = createNamespace("swipe-item");
|
2886
|
-
var stdin_default$
|
2895
|
+
var stdin_default$1t = vue.defineComponent({
|
2887
2896
|
name: name$1i,
|
2888
2897
|
setup(props, {
|
2889
2898
|
slots
|
@@ -2955,7 +2964,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
2955
2964
|
};
|
2956
2965
|
}
|
2957
2966
|
});
|
2958
|
-
const SwipeItem = withInstall(stdin_default$
|
2967
|
+
const SwipeItem = withInstall(stdin_default$1t);
|
2959
2968
|
const [name$1h, bem$1d] = createNamespace("tab");
|
2960
2969
|
const tabProps = extend({}, routeProps, {
|
2961
2970
|
dot: Boolean,
|
@@ -2967,7 +2976,7 @@ const tabProps = extend({}, routeProps, {
|
|
2967
2976
|
titleStyle: [String, Object],
|
2968
2977
|
showZeroBadge: truthProp
|
2969
2978
|
});
|
2970
|
-
var stdin_default$
|
2979
|
+
var stdin_default$1s = vue.defineComponent({
|
2971
2980
|
name: name$1h,
|
2972
2981
|
props: tabProps,
|
2973
2982
|
setup(props, {
|
@@ -3066,14 +3075,15 @@ var stdin_default$1p = vue.defineComponent({
|
|
3066
3075
|
};
|
3067
3076
|
}
|
3068
3077
|
});
|
3069
|
-
const Tab = withInstall(stdin_default$
|
3070
|
-
const Tabs = withInstall(stdin_default$
|
3078
|
+
const Tab = withInstall(stdin_default$1s);
|
3079
|
+
const Tabs = withInstall(stdin_default$1u);
|
3071
3080
|
const [name$1g, bem$1c] = createNamespace("picker-group");
|
3072
3081
|
const PICKER_GROUP_KEY = Symbol(name$1g);
|
3073
3082
|
const pickerGroupProps = extend({
|
3074
|
-
tabs: makeArrayProp()
|
3083
|
+
tabs: makeArrayProp(),
|
3084
|
+
nextStepText: String
|
3075
3085
|
}, pickerToolbarProps);
|
3076
|
-
var stdin_default$
|
3086
|
+
var stdin_default$1r = vue.defineComponent({
|
3077
3087
|
name: name$1g,
|
3078
3088
|
props: pickerGroupProps,
|
3079
3089
|
emits: ["confirm", "cancel"],
|
@@ -3081,26 +3091,38 @@ var stdin_default$1o = vue.defineComponent({
|
|
3081
3091
|
emit,
|
3082
3092
|
slots
|
3083
3093
|
}) {
|
3094
|
+
const activeTab = vue.ref(0);
|
3084
3095
|
const {
|
3085
3096
|
children,
|
3086
3097
|
linkChildren
|
3087
3098
|
} = use.useChildren(PICKER_GROUP_KEY);
|
3088
3099
|
linkChildren();
|
3100
|
+
const showNextButton = () => activeTab.value < props.tabs.length - 1 && props.nextStepText;
|
3089
3101
|
const onConfirm = () => {
|
3090
|
-
|
3102
|
+
if (showNextButton()) {
|
3103
|
+
activeTab.value++;
|
3104
|
+
} else {
|
3105
|
+
emit("confirm", children.map((item) => item.confirm()));
|
3106
|
+
}
|
3091
3107
|
};
|
3092
3108
|
const onCancel = () => emit("cancel");
|
3093
3109
|
return () => {
|
3094
3110
|
var _a;
|
3095
3111
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3112
|
+
const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
|
3096
3113
|
return vue.createVNode("div", {
|
3097
3114
|
"class": bem$1c()
|
3098
|
-
}, [vue.createVNode(stdin_default$
|
3115
|
+
}, [vue.createVNode(stdin_default$1z, {
|
3116
|
+
"title": props.title,
|
3117
|
+
"cancelButtonText": props.cancelButtonText,
|
3118
|
+
"confirmButtonText": confirmButtonText,
|
3099
3119
|
"onConfirm": onConfirm,
|
3100
3120
|
"onCancel": onCancel
|
3101
|
-
}
|
3102
|
-
"
|
3121
|
+
}, null), vue.createVNode(Tabs, {
|
3122
|
+
"active": activeTab.value,
|
3123
|
+
"onUpdate:active": ($event) => activeTab.value = $event,
|
3103
3124
|
"class": bem$1c("tabs"),
|
3125
|
+
"shrink": true,
|
3104
3126
|
"animated": true
|
3105
3127
|
}, {
|
3106
3128
|
default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
|
@@ -3128,7 +3150,7 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3128
3150
|
toolbarPosition: makeStringProp("top"),
|
3129
3151
|
columnsFieldNames: Object
|
3130
3152
|
});
|
3131
|
-
var stdin_default$
|
3153
|
+
var stdin_default$1q = vue.defineComponent({
|
3132
3154
|
name: name$1q,
|
3133
3155
|
props: pickerProps,
|
3134
3156
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
@@ -3204,7 +3226,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
3204
3226
|
return params;
|
3205
3227
|
};
|
3206
3228
|
const cancel = () => emit("cancel", getEventParams());
|
3207
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
3229
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1A, {
|
3208
3230
|
"value": selectedValues.value[columnIndex],
|
3209
3231
|
"fields": fields.value,
|
3210
3232
|
"options": options,
|
@@ -3248,7 +3270,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
3248
3270
|
};
|
3249
3271
|
const renderToolbar = () => {
|
3250
3272
|
if (props.showToolbar && !parent) {
|
3251
|
-
return vue.createVNode(stdin_default$
|
3273
|
+
return vue.createVNode(stdin_default$1z, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
|
3252
3274
|
"onConfirm": confirm,
|
3253
3275
|
"onCancel": cancel
|
3254
3276
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3383,7 +3405,7 @@ function formatDataForCascade({
|
|
3383
3405
|
}
|
3384
3406
|
return options;
|
3385
3407
|
}
|
3386
|
-
const Picker = withInstall(stdin_default$
|
3408
|
+
const Picker = withInstall(stdin_default$1q);
|
3387
3409
|
const [name$1f, bem$1b] = createNamespace("area");
|
3388
3410
|
const areaProps = extend({}, pickerSharedProps, {
|
3389
3411
|
modelValue: String,
|
@@ -3394,7 +3416,7 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3394
3416
|
default: () => ({})
|
3395
3417
|
}
|
3396
3418
|
});
|
3397
|
-
var stdin_default$
|
3419
|
+
var stdin_default$1p = vue.defineComponent({
|
3398
3420
|
name: name$1f,
|
3399
3421
|
props: areaProps,
|
3400
3422
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
@@ -3450,7 +3472,7 @@ var stdin_default$1m = vue.defineComponent({
|
|
3450
3472
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3451
3473
|
}
|
3452
3474
|
});
|
3453
|
-
const Area = withInstall(stdin_default$
|
3475
|
+
const Area = withInstall(stdin_default$1p);
|
3454
3476
|
const [name$1e, bem$1a] = createNamespace("cell");
|
3455
3477
|
const cellSharedProps = {
|
3456
3478
|
tag: makeStringProp("div"),
|
@@ -3475,7 +3497,7 @@ const cellSharedProps = {
|
|
3475
3497
|
}
|
3476
3498
|
};
|
3477
3499
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3478
|
-
var stdin_default$
|
3500
|
+
var stdin_default$1o = vue.defineComponent({
|
3479
3501
|
name: name$1e,
|
3480
3502
|
props: cellProps,
|
3481
3503
|
setup(props, {
|
@@ -3570,7 +3592,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
3570
3592
|
};
|
3571
3593
|
}
|
3572
3594
|
});
|
3573
|
-
const Cell = withInstall(stdin_default$
|
3595
|
+
const Cell = withInstall(stdin_default$1o);
|
3574
3596
|
const [name$1d, bem$19] = createNamespace("form");
|
3575
3597
|
const formProps = {
|
3576
3598
|
colon: Boolean,
|
@@ -3590,7 +3612,7 @@ const formProps = {
|
|
3590
3612
|
default: "onBlur"
|
3591
3613
|
}
|
3592
3614
|
};
|
3593
|
-
var stdin_default$
|
3615
|
+
var stdin_default$1n = vue.defineComponent({
|
3594
3616
|
name: name$1d,
|
3595
3617
|
props: formProps,
|
3596
3618
|
emits: ["submit", "failed"],
|
@@ -3723,7 +3745,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
3723
3745
|
};
|
3724
3746
|
}
|
3725
3747
|
});
|
3726
|
-
const Form = withInstall(stdin_default$
|
3748
|
+
const Form = withInstall(stdin_default$1n);
|
3727
3749
|
function isEmptyValue(value) {
|
3728
3750
|
if (Array.isArray(value)) {
|
3729
3751
|
return !value.length;
|
@@ -3859,7 +3881,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3859
3881
|
default: null
|
3860
3882
|
}
|
3861
3883
|
});
|
3862
|
-
var stdin_default$
|
3884
|
+
var stdin_default$1m = vue.defineComponent({
|
3863
3885
|
name: name$1c,
|
3864
3886
|
props: fieldProps,
|
3865
3887
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
@@ -4307,7 +4329,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
4307
4329
|
};
|
4308
4330
|
}
|
4309
4331
|
});
|
4310
|
-
const Field = withInstall(stdin_default$
|
4332
|
+
const Field = withInstall(stdin_default$1m);
|
4311
4333
|
let lockCount = 0;
|
4312
4334
|
function lockClick(lock) {
|
4313
4335
|
if (lock) {
|
@@ -4345,7 +4367,7 @@ const toastProps = {
|
|
4345
4367
|
closeOnClick: Boolean,
|
4346
4368
|
closeOnClickOverlay: Boolean
|
4347
4369
|
};
|
4348
|
-
var stdin_default$
|
4370
|
+
var stdin_default$1l = vue.defineComponent({
|
4349
4371
|
name: name$1b,
|
4350
4372
|
props: toastProps,
|
4351
4373
|
emits: ["update:show"],
|
@@ -4527,7 +4549,7 @@ function createInstance() {
|
|
4527
4549
|
onClosed,
|
4528
4550
|
"onUpdate:show": toggle
|
4529
4551
|
};
|
4530
|
-
return vue.createVNode(stdin_default$
|
4552
|
+
return vue.createVNode(stdin_default$1l, vue.mergeProps(state, attrs), null);
|
4531
4553
|
};
|
4532
4554
|
vue.watch(message, (val) => {
|
4533
4555
|
state.message = val;
|
@@ -4597,7 +4619,7 @@ const resetToastDefaultOptions = (type) => {
|
|
4597
4619
|
const allowMultipleToast = (value = true) => {
|
4598
4620
|
allowMultiple = value;
|
4599
4621
|
};
|
4600
|
-
const Toast = withInstall(stdin_default$
|
4622
|
+
const Toast = withInstall(stdin_default$1l);
|
4601
4623
|
const [name$1a, bem$16] = createNamespace("switch");
|
4602
4624
|
const switchProps = {
|
4603
4625
|
size: numericProp,
|
@@ -4615,7 +4637,7 @@ const switchProps = {
|
|
4615
4637
|
default: false
|
4616
4638
|
}
|
4617
4639
|
};
|
4618
|
-
var stdin_default$
|
4640
|
+
var stdin_default$1k = vue.defineComponent({
|
4619
4641
|
name: name$1a,
|
4620
4642
|
props: switchProps,
|
4621
4643
|
emits: ["change", "update:modelValue"],
|
@@ -4675,10 +4697,10 @@ var stdin_default$1h = vue.defineComponent({
|
|
4675
4697
|
};
|
4676
4698
|
}
|
4677
4699
|
});
|
4678
|
-
const Switch = withInstall(stdin_default$
|
4700
|
+
const Switch = withInstall(stdin_default$1k);
|
4679
4701
|
const [name$19, bem$15] = createNamespace("address-edit-detail");
|
4680
4702
|
const t$i = createNamespace("address-edit")[2];
|
4681
|
-
var stdin_default$
|
4703
|
+
var stdin_default$1j = vue.defineComponent({
|
4682
4704
|
name: name$19,
|
4683
4705
|
props: {
|
4684
4706
|
show: Boolean,
|
@@ -4784,7 +4806,7 @@ const addressEditProps = {
|
|
4784
4806
|
default: isMobile
|
4785
4807
|
}
|
4786
4808
|
};
|
4787
|
-
var stdin_default$
|
4809
|
+
var stdin_default$1i = vue.defineComponent({
|
4788
4810
|
name: name$18,
|
4789
4811
|
props: addressEditProps,
|
4790
4812
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
@@ -4959,7 +4981,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
4959
4981
|
emit("clickArea");
|
4960
4982
|
showAreaPopup.value = !disableArea;
|
4961
4983
|
}
|
4962
|
-
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$
|
4984
|
+
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1j, {
|
4963
4985
|
"show": props.showDetail,
|
4964
4986
|
"rows": props.detailRows,
|
4965
4987
|
"rules": rules.value.addressDetail,
|
@@ -5015,7 +5037,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
5015
5037
|
};
|
5016
5038
|
}
|
5017
5039
|
});
|
5018
|
-
const AddressEdit = withInstall(stdin_default$
|
5040
|
+
const AddressEdit = withInstall(stdin_default$1i);
|
5019
5041
|
const [name$17, bem$13] = createNamespace("radio-group");
|
5020
5042
|
const radioGroupProps = {
|
5021
5043
|
disabled: Boolean,
|
@@ -5025,7 +5047,7 @@ const radioGroupProps = {
|
|
5025
5047
|
checkedColor: String
|
5026
5048
|
};
|
5027
5049
|
const RADIO_KEY = Symbol(name$17);
|
5028
|
-
var stdin_default$
|
5050
|
+
var stdin_default$1h = vue.defineComponent({
|
5029
5051
|
name: name$17,
|
5030
5052
|
props: radioGroupProps,
|
5031
5053
|
emits: ["change", "update:modelValue"],
|
@@ -5052,7 +5074,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
5052
5074
|
};
|
5053
5075
|
}
|
5054
5076
|
});
|
5055
|
-
const RadioGroup = withInstall(stdin_default$
|
5077
|
+
const RadioGroup = withInstall(stdin_default$1h);
|
5056
5078
|
const [name$16, bem$12] = createNamespace("tag");
|
5057
5079
|
const tagProps = {
|
5058
5080
|
size: String,
|
@@ -5065,7 +5087,7 @@ const tagProps = {
|
|
5065
5087
|
textColor: String,
|
5066
5088
|
closeable: Boolean
|
5067
5089
|
};
|
5068
|
-
var stdin_default$
|
5090
|
+
var stdin_default$1g = vue.defineComponent({
|
5069
5091
|
name: name$16,
|
5070
5092
|
props: tagProps,
|
5071
5093
|
emits: ["close"],
|
@@ -5124,7 +5146,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
5124
5146
|
});
|
5125
5147
|
}
|
5126
5148
|
});
|
5127
|
-
const Tag = withInstall(stdin_default$
|
5149
|
+
const Tag = withInstall(stdin_default$1g);
|
5128
5150
|
const checkerProps = {
|
5129
5151
|
name: unknownProp,
|
5130
5152
|
shape: makeStringProp("round"),
|
@@ -5135,7 +5157,7 @@ const checkerProps = {
|
|
5135
5157
|
labelPosition: String,
|
5136
5158
|
labelDisabled: Boolean
|
5137
5159
|
};
|
5138
|
-
var stdin_default$
|
5160
|
+
var stdin_default$1f = vue.defineComponent({
|
5139
5161
|
props: extend({}, checkerProps, {
|
5140
5162
|
bem: makeRequiredProp(Function),
|
5141
5163
|
role: String,
|
@@ -5226,7 +5248,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
5226
5248
|
});
|
5227
5249
|
const radioProps = checkerProps;
|
5228
5250
|
const [name$15, bem$11] = createNamespace("radio");
|
5229
|
-
var stdin_default$
|
5251
|
+
var stdin_default$1e = vue.defineComponent({
|
5230
5252
|
name: name$15,
|
5231
5253
|
props: checkerProps,
|
5232
5254
|
emits: ["update:modelValue"],
|
@@ -5248,7 +5270,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
5248
5270
|
emit("update:modelValue", props.name);
|
5249
5271
|
}
|
5250
5272
|
};
|
5251
|
-
return () => vue.createVNode(stdin_default$
|
5273
|
+
return () => vue.createVNode(stdin_default$1f, vue.mergeProps({
|
5252
5274
|
"bem": bem$11,
|
5253
5275
|
"role": "radio",
|
5254
5276
|
"parent": parent,
|
@@ -5257,9 +5279,9 @@ var stdin_default$1b = vue.defineComponent({
|
|
5257
5279
|
}, props), pick(slots, ["default", "icon"]));
|
5258
5280
|
}
|
5259
5281
|
});
|
5260
|
-
const Radio = withInstall(stdin_default$
|
5282
|
+
const Radio = withInstall(stdin_default$1e);
|
5261
5283
|
const [name$14, bem$10] = createNamespace("address-item");
|
5262
|
-
var stdin_default$
|
5284
|
+
var stdin_default$1d = vue.defineComponent({
|
5263
5285
|
name: name$14,
|
5264
5286
|
props: {
|
5265
5287
|
address: makeRequiredProp(Object),
|
@@ -5354,7 +5376,7 @@ const addressListProps = {
|
|
5354
5376
|
addButtonText: String,
|
5355
5377
|
defaultTagText: String
|
5356
5378
|
};
|
5357
|
-
var stdin_default$
|
5379
|
+
var stdin_default$1c = vue.defineComponent({
|
5358
5380
|
name: name$13,
|
5359
5381
|
props: addressListProps,
|
5360
5382
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
@@ -5371,7 +5393,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
5371
5393
|
emit("update:modelValue", item.id);
|
5372
5394
|
}
|
5373
5395
|
};
|
5374
|
-
return vue.createVNode(stdin_default$
|
5396
|
+
return vue.createVNode(stdin_default$1d, {
|
5375
5397
|
"key": item.id,
|
5376
5398
|
"address": item,
|
5377
5399
|
"disabled": disabled,
|
@@ -5417,7 +5439,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
5417
5439
|
};
|
5418
5440
|
}
|
5419
5441
|
});
|
5420
|
-
const AddressList = withInstall(stdin_default$
|
5442
|
+
const AddressList = withInstall(stdin_default$1c);
|
5421
5443
|
const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5422
5444
|
const modeType = {
|
5423
5445
|
event: "event",
|
@@ -5576,12 +5598,13 @@ const backTopProps = {
|
|
5576
5598
|
bottom: numericProp,
|
5577
5599
|
target: [String, Object],
|
5578
5600
|
offset: makeNumericProp(200),
|
5601
|
+
immediate: Boolean,
|
5579
5602
|
teleport: {
|
5580
5603
|
type: [String, Object],
|
5581
5604
|
default: "body"
|
5582
5605
|
}
|
5583
5606
|
};
|
5584
|
-
var stdin_default$
|
5607
|
+
var stdin_default$1b = vue.defineComponent({
|
5585
5608
|
name: name$12,
|
5586
5609
|
inheritAttrs: false,
|
5587
5610
|
props: backTopProps,
|
@@ -5603,7 +5626,7 @@ var stdin_default$18 = vue.defineComponent({
|
|
5603
5626
|
emit("click", event);
|
5604
5627
|
(_a = scrollParent.value) == null ? void 0 : _a.scrollTo({
|
5605
5628
|
top: 0,
|
5606
|
-
behavior: "smooth"
|
5629
|
+
behavior: props.immediate ? "auto" : "smooth"
|
5607
5630
|
});
|
5608
5631
|
};
|
5609
5632
|
const scroll = () => {
|
@@ -5661,7 +5684,7 @@ var stdin_default$18 = vue.defineComponent({
|
|
5661
5684
|
};
|
5662
5685
|
}
|
5663
5686
|
});
|
5664
|
-
const BackTop = withInstall(stdin_default$
|
5687
|
+
const BackTop = withInstall(stdin_default$1b);
|
5665
5688
|
const [name$11, bem$Z, t$f] = createNamespace("calendar");
|
5666
5689
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5667
5690
|
function compareMonth(date1, date2) {
|
@@ -5744,7 +5767,7 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
5744
5767
|
return value;
|
5745
5768
|
});
|
5746
5769
|
const [name$10] = createNamespace("calendar-day");
|
5747
|
-
var stdin_default$
|
5770
|
+
var stdin_default$1a = vue.defineComponent({
|
5748
5771
|
name: name$10,
|
5749
5772
|
props: {
|
5750
5773
|
item: makeRequiredProp(Object),
|
@@ -5882,7 +5905,7 @@ const calendarMonthProps = {
|
|
5882
5905
|
showMonthTitle: Boolean,
|
5883
5906
|
firstDayOfWeek: Number
|
5884
5907
|
};
|
5885
|
-
var stdin_default$
|
5908
|
+
var stdin_default$19 = vue.defineComponent({
|
5886
5909
|
name: name$$,
|
5887
5910
|
props: calendarMonthProps,
|
5888
5911
|
emits: ["click"],
|
@@ -5989,7 +6012,10 @@ var stdin_default$16 = vue.defineComponent({
|
|
5989
6012
|
if (props.showMonthTitle) {
|
5990
6013
|
return vue.createVNode("div", {
|
5991
6014
|
"class": bem$Z("month-title")
|
5992
|
-
}, [title
|
6015
|
+
}, [slots["month-title"] ? slots["month-title"]({
|
6016
|
+
date: props.date,
|
6017
|
+
text: title.value
|
6018
|
+
}) : title.value]);
|
5993
6019
|
}
|
5994
6020
|
};
|
5995
6021
|
const renderMark = () => {
|
@@ -6035,7 +6061,7 @@ var stdin_default$16 = vue.defineComponent({
|
|
6035
6061
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
6036
6062
|
}
|
6037
6063
|
};
|
6038
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
6064
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1a, {
|
6039
6065
|
"item": item,
|
6040
6066
|
"index": index,
|
6041
6067
|
"color": props.color,
|
@@ -6062,7 +6088,7 @@ var stdin_default$16 = vue.defineComponent({
|
|
6062
6088
|
}
|
6063
6089
|
});
|
6064
6090
|
const [name$_] = createNamespace("calendar-header");
|
6065
|
-
var stdin_default$
|
6091
|
+
var stdin_default$18 = vue.defineComponent({
|
6066
6092
|
name: name$_,
|
6067
6093
|
props: {
|
6068
6094
|
date: Date,
|
@@ -6163,7 +6189,7 @@ const calendarProps = {
|
|
6163
6189
|
validator: (val) => val >= 0 && val <= 6
|
6164
6190
|
}
|
6165
6191
|
};
|
6166
|
-
var stdin_default$
|
6192
|
+
var stdin_default$17 = vue.defineComponent({
|
6167
6193
|
name: name$11,
|
6168
6194
|
props: calendarProps,
|
6169
6195
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
@@ -6427,7 +6453,7 @@ var stdin_default$14 = vue.defineComponent({
|
|
6427
6453
|
const updateShow = (value) => emit("update:show", value);
|
6428
6454
|
const renderMonth = (date, index) => {
|
6429
6455
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
6430
|
-
return vue.createVNode(stdin_default$
|
6456
|
+
return vue.createVNode(stdin_default$19, vue.mergeProps({
|
6431
6457
|
"ref": setMonthRefs(index),
|
6432
6458
|
"date": date,
|
6433
6459
|
"currentDate": currentDate.value,
|
@@ -6435,7 +6461,7 @@ var stdin_default$14 = vue.defineComponent({
|
|
6435
6461
|
"firstDayOfWeek": dayOffset.value
|
6436
6462
|
}, pick(props, ["type", "color", "minDate", "maxDate", "showMark", "formatter", "rowHeight", "lazyRender", "showSubtitle", "allowSameDay"]), {
|
6437
6463
|
"onClick": onClickDay
|
6438
|
-
}), pick(slots, ["top-info", "bottom-info"]));
|
6464
|
+
}), pick(slots, ["top-info", "bottom-info", "month-title"]));
|
6439
6465
|
};
|
6440
6466
|
const renderFooterButton = () => {
|
6441
6467
|
if (slots.footer) {
|
@@ -6468,7 +6494,7 @@ var stdin_default$14 = vue.defineComponent({
|
|
6468
6494
|
}, [renderFooterButton()]);
|
6469
6495
|
const renderCalendar = () => vue.createVNode("div", {
|
6470
6496
|
"class": bem$Z()
|
6471
|
-
}, [vue.createVNode(stdin_default$
|
6497
|
+
}, [vue.createVNode(stdin_default$18, {
|
6472
6498
|
"date": subtitle.value.date,
|
6473
6499
|
"title": props.title,
|
6474
6500
|
"subtitle": subtitle.value.text,
|
@@ -6514,7 +6540,7 @@ var stdin_default$14 = vue.defineComponent({
|
|
6514
6540
|
};
|
6515
6541
|
}
|
6516
6542
|
});
|
6517
|
-
const Calendar = withInstall(stdin_default$
|
6543
|
+
const Calendar = withInstall(stdin_default$17);
|
6518
6544
|
const [name$Z, bem$Y] = createNamespace("image");
|
6519
6545
|
const imageProps = {
|
6520
6546
|
src: String,
|
@@ -6534,7 +6560,7 @@ const imageProps = {
|
|
6534
6560
|
showLoading: truthProp,
|
6535
6561
|
loadingIcon: makeStringProp("photo")
|
6536
6562
|
};
|
6537
|
-
var stdin_default$
|
6563
|
+
var stdin_default$16 = vue.defineComponent({
|
6538
6564
|
name: name$Z,
|
6539
6565
|
props: imageProps,
|
6540
6566
|
emits: ["load", "error"],
|
@@ -6678,7 +6704,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
6678
6704
|
};
|
6679
6705
|
}
|
6680
6706
|
});
|
6681
|
-
const Image$1 = withInstall(stdin_default$
|
6707
|
+
const Image$1 = withInstall(stdin_default$16);
|
6682
6708
|
const [name$Y, bem$X] = createNamespace("card");
|
6683
6709
|
const cardProps = {
|
6684
6710
|
tag: String,
|
@@ -6693,7 +6719,7 @@ const cardProps = {
|
|
6693
6719
|
thumbLink: String,
|
6694
6720
|
originPrice: numericProp
|
6695
6721
|
};
|
6696
|
-
var stdin_default$
|
6722
|
+
var stdin_default$15 = vue.defineComponent({
|
6697
6723
|
name: name$Y,
|
6698
6724
|
props: cardProps,
|
6699
6725
|
emits: ["clickThumb"],
|
@@ -6797,7 +6823,7 @@ var stdin_default$12 = vue.defineComponent({
|
|
6797
6823
|
};
|
6798
6824
|
}
|
6799
6825
|
});
|
6800
|
-
const Card = withInstall(stdin_default$
|
6826
|
+
const Card = withInstall(stdin_default$15);
|
6801
6827
|
const [name$X, bem$W, t$e] = createNamespace("cascader");
|
6802
6828
|
const cascaderProps = {
|
6803
6829
|
title: String,
|
@@ -6811,7 +6837,7 @@ const cascaderProps = {
|
|
6811
6837
|
placeholder: String,
|
6812
6838
|
activeColor: String
|
6813
6839
|
};
|
6814
|
-
var stdin_default$
|
6840
|
+
var stdin_default$14 = vue.defineComponent({
|
6815
6841
|
name: name$X,
|
6816
6842
|
props: cascaderProps,
|
6817
6843
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
@@ -7016,14 +7042,14 @@ var stdin_default$11 = vue.defineComponent({
|
|
7016
7042
|
}, [renderHeader(), renderTabs()]);
|
7017
7043
|
}
|
7018
7044
|
});
|
7019
|
-
const Cascader = withInstall(stdin_default$
|
7045
|
+
const Cascader = withInstall(stdin_default$14);
|
7020
7046
|
const [name$W, bem$V] = createNamespace("cell-group");
|
7021
7047
|
const cellGroupProps = {
|
7022
7048
|
title: String,
|
7023
7049
|
inset: Boolean,
|
7024
7050
|
border: truthProp
|
7025
7051
|
};
|
7026
|
-
var stdin_default$
|
7052
|
+
var stdin_default$13 = vue.defineComponent({
|
7027
7053
|
name: name$W,
|
7028
7054
|
inheritAttrs: false,
|
7029
7055
|
props: cellGroupProps,
|
@@ -7054,7 +7080,7 @@ var stdin_default$10 = vue.defineComponent({
|
|
7054
7080
|
};
|
7055
7081
|
}
|
7056
7082
|
});
|
7057
|
-
const CellGroup = withInstall(stdin_default$
|
7083
|
+
const CellGroup = withInstall(stdin_default$13);
|
7058
7084
|
const [name$V, bem$U] = createNamespace("checkbox-group");
|
7059
7085
|
const checkboxGroupProps = {
|
7060
7086
|
max: numericProp,
|
@@ -7065,7 +7091,7 @@ const checkboxGroupProps = {
|
|
7065
7091
|
checkedColor: String
|
7066
7092
|
};
|
7067
7093
|
const CHECKBOX_GROUP_KEY = Symbol(name$V);
|
7068
|
-
var stdin_default
|
7094
|
+
var stdin_default$12 = vue.defineComponent({
|
7069
7095
|
name: name$V,
|
7070
7096
|
props: checkboxGroupProps,
|
7071
7097
|
emits: ["change", "update:modelValue"],
|
@@ -7121,7 +7147,7 @@ const [name$U, bem$T] = createNamespace("checkbox");
|
|
7121
7147
|
const checkboxProps = extend({}, checkerProps, {
|
7122
7148
|
bindGroup: truthProp
|
7123
7149
|
});
|
7124
|
-
var stdin_default$
|
7150
|
+
var stdin_default$11 = vue.defineComponent({
|
7125
7151
|
name: name$U,
|
7126
7152
|
props: checkboxProps,
|
7127
7153
|
emits: ["change", "update:modelValue"],
|
@@ -7179,7 +7205,7 @@ var stdin_default$_ = vue.defineComponent({
|
|
7179
7205
|
checked
|
7180
7206
|
});
|
7181
7207
|
use.useCustomFieldValue(() => props.modelValue);
|
7182
|
-
return () => vue.createVNode(stdin_default$
|
7208
|
+
return () => vue.createVNode(stdin_default$1f, vue.mergeProps({
|
7183
7209
|
"bem": bem$T,
|
7184
7210
|
"role": "checkbox",
|
7185
7211
|
"parent": parent,
|
@@ -7188,8 +7214,8 @@ var stdin_default$_ = vue.defineComponent({
|
|
7188
7214
|
}, props), pick(slots, ["default", "icon"]));
|
7189
7215
|
}
|
7190
7216
|
});
|
7191
|
-
const Checkbox = withInstall(stdin_default$
|
7192
|
-
const CheckboxGroup = withInstall(stdin_default
|
7217
|
+
const Checkbox = withInstall(stdin_default$11);
|
7218
|
+
const CheckboxGroup = withInstall(stdin_default$12);
|
7193
7219
|
const [name$T, bem$S] = createNamespace("circle");
|
7194
7220
|
let uid = 0;
|
7195
7221
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
@@ -7211,7 +7237,7 @@ const circleProps = {
|
|
7211
7237
|
strokeLinecap: String,
|
7212
7238
|
startPosition: makeStringProp("top")
|
7213
7239
|
};
|
7214
|
-
var stdin_default$
|
7240
|
+
var stdin_default$10 = vue.defineComponent({
|
7215
7241
|
name: name$T,
|
7216
7242
|
props: circleProps,
|
7217
7243
|
emits: ["update:currentRate"],
|
@@ -7335,7 +7361,7 @@ var stdin_default$Z = vue.defineComponent({
|
|
7335
7361
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7336
7362
|
}
|
7337
7363
|
});
|
7338
|
-
const Circle = withInstall(stdin_default$
|
7364
|
+
const Circle = withInstall(stdin_default$10);
|
7339
7365
|
const [name$S, bem$R] = createNamespace("row");
|
7340
7366
|
const ROW_KEY = Symbol(name$S);
|
7341
7367
|
const rowProps = {
|
@@ -7345,7 +7371,7 @@ const rowProps = {
|
|
7345
7371
|
gutter: makeNumericProp(0),
|
7346
7372
|
justify: String
|
7347
7373
|
};
|
7348
|
-
var stdin_default
|
7374
|
+
var stdin_default$$ = vue.defineComponent({
|
7349
7375
|
name: name$S,
|
7350
7376
|
props: rowProps,
|
7351
7377
|
setup(props, {
|
@@ -7425,7 +7451,7 @@ const colProps = {
|
|
7425
7451
|
span: makeNumericProp(0),
|
7426
7452
|
offset: numericProp
|
7427
7453
|
};
|
7428
|
-
var stdin_default$
|
7454
|
+
var stdin_default$_ = vue.defineComponent({
|
7429
7455
|
name: name$R,
|
7430
7456
|
props: colProps,
|
7431
7457
|
setup(props, {
|
@@ -7474,7 +7500,7 @@ var stdin_default$X = vue.defineComponent({
|
|
7474
7500
|
};
|
7475
7501
|
}
|
7476
7502
|
});
|
7477
|
-
const Col = withInstall(stdin_default$
|
7503
|
+
const Col = withInstall(stdin_default$_);
|
7478
7504
|
const [name$Q, bem$P] = createNamespace("collapse");
|
7479
7505
|
const COLLAPSE_KEY = Symbol(name$Q);
|
7480
7506
|
const collapseProps = {
|
@@ -7496,7 +7522,7 @@ function validateModelValue(modelValue, accordion) {
|
|
7496
7522
|
}
|
7497
7523
|
return true;
|
7498
7524
|
}
|
7499
|
-
var stdin_default$
|
7525
|
+
var stdin_default$Z = vue.defineComponent({
|
7500
7526
|
name: name$Q,
|
7501
7527
|
props: collapseProps,
|
7502
7528
|
emits: ["change", "update:modelValue"],
|
@@ -7574,7 +7600,7 @@ var stdin_default$W = vue.defineComponent({
|
|
7574
7600
|
};
|
7575
7601
|
}
|
7576
7602
|
});
|
7577
|
-
const Collapse = withInstall(stdin_default$
|
7603
|
+
const Collapse = withInstall(stdin_default$Z);
|
7578
7604
|
const [name$P, bem$O] = createNamespace("collapse-item");
|
7579
7605
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
7580
7606
|
const collapseItemProps = extend({}, cellSharedProps, {
|
@@ -7584,7 +7610,7 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7584
7610
|
readonly: Boolean,
|
7585
7611
|
lazyRender: truthProp
|
7586
7612
|
});
|
7587
|
-
var stdin_default$
|
7613
|
+
var stdin_default$Y = vue.defineComponent({
|
7588
7614
|
name: name$P,
|
7589
7615
|
props: collapseItemProps,
|
7590
7616
|
setup(props, {
|
@@ -7699,8 +7725,8 @@ var stdin_default$V = vue.defineComponent({
|
|
7699
7725
|
}, [renderTitle(), renderContent()]);
|
7700
7726
|
}
|
7701
7727
|
});
|
7702
|
-
const CollapseItem = withInstall(stdin_default$
|
7703
|
-
const ConfigProvider = withInstall(stdin_default$
|
7728
|
+
const CollapseItem = withInstall(stdin_default$Y);
|
7729
|
+
const ConfigProvider = withInstall(stdin_default$1J);
|
7704
7730
|
const [name$O, bem$N, t$d] = createNamespace("contact-card");
|
7705
7731
|
const contactCardProps = {
|
7706
7732
|
tel: String,
|
@@ -7709,7 +7735,7 @@ const contactCardProps = {
|
|
7709
7735
|
addText: String,
|
7710
7736
|
editable: truthProp
|
7711
7737
|
};
|
7712
|
-
var stdin_default$
|
7738
|
+
var stdin_default$X = vue.defineComponent({
|
7713
7739
|
name: name$O,
|
7714
7740
|
props: contactCardProps,
|
7715
7741
|
emits: ["click"],
|
@@ -7740,7 +7766,7 @@ var stdin_default$U = vue.defineComponent({
|
|
7740
7766
|
});
|
7741
7767
|
}
|
7742
7768
|
});
|
7743
|
-
const ContactCard = withInstall(stdin_default$
|
7769
|
+
const ContactCard = withInstall(stdin_default$X);
|
7744
7770
|
const [name$N, bem$M, t$c] = createNamespace("contact-edit");
|
7745
7771
|
const DEFAULT_CONTACT = {
|
7746
7772
|
tel: "",
|
@@ -7761,7 +7787,7 @@ const contactEditProps = {
|
|
7761
7787
|
default: isMobile
|
7762
7788
|
}
|
7763
7789
|
};
|
7764
|
-
var stdin_default$
|
7790
|
+
var stdin_default$W = vue.defineComponent({
|
7765
7791
|
name: name$N,
|
7766
7792
|
props: contactEditProps,
|
7767
7793
|
emits: ["save", "delete", "changeDefault"],
|
@@ -7842,7 +7868,7 @@ var stdin_default$T = vue.defineComponent({
|
|
7842
7868
|
});
|
7843
7869
|
}
|
7844
7870
|
});
|
7845
|
-
const ContactEdit = withInstall(stdin_default$
|
7871
|
+
const ContactEdit = withInstall(stdin_default$W);
|
7846
7872
|
const [name$M, bem$L, t$b] = createNamespace("contact-list");
|
7847
7873
|
const contactListProps = {
|
7848
7874
|
list: Array,
|
@@ -7850,7 +7876,7 @@ const contactListProps = {
|
|
7850
7876
|
modelValue: unknownProp,
|
7851
7877
|
defaultTagText: String
|
7852
7878
|
};
|
7853
|
-
var stdin_default$
|
7879
|
+
var stdin_default$V = vue.defineComponent({
|
7854
7880
|
name: name$M,
|
7855
7881
|
props: contactListProps,
|
7856
7882
|
emits: ["add", "edit", "select", "update:modelValue"],
|
@@ -7920,7 +7946,7 @@ var stdin_default$S = vue.defineComponent({
|
|
7920
7946
|
}, null)])]);
|
7921
7947
|
}
|
7922
7948
|
});
|
7923
|
-
const ContactList = withInstall(stdin_default$
|
7949
|
+
const ContactList = withInstall(stdin_default$V);
|
7924
7950
|
function parseFormat(format2, currentTime) {
|
7925
7951
|
const { days } = currentTime;
|
7926
7952
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -7963,7 +7989,7 @@ const countDownProps = {
|
|
7963
7989
|
autoStart: truthProp,
|
7964
7990
|
millisecond: Boolean
|
7965
7991
|
};
|
7966
|
-
var stdin_default$
|
7992
|
+
var stdin_default$U = vue.defineComponent({
|
7967
7993
|
name: name$L,
|
7968
7994
|
props: countDownProps,
|
7969
7995
|
emits: ["change", "finish"],
|
@@ -8003,7 +8029,7 @@ var stdin_default$R = vue.defineComponent({
|
|
8003
8029
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8004
8030
|
}
|
8005
8031
|
});
|
8006
|
-
const CountDown = withInstall(stdin_default$
|
8032
|
+
const CountDown = withInstall(stdin_default$U);
|
8007
8033
|
function getDate(timeStamp) {
|
8008
8034
|
const date = new Date(timeStamp * 1e3);
|
8009
8035
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8013,7 +8039,7 @@ function getDate(timeStamp) {
|
|
8013
8039
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8014
8040
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8015
8041
|
const [name$K, bem$J, t$a] = createNamespace("coupon");
|
8016
|
-
var stdin_default$
|
8042
|
+
var stdin_default$T = vue.defineComponent({
|
8017
8043
|
name: name$K,
|
8018
8044
|
props: {
|
8019
8045
|
chosen: Boolean,
|
@@ -8084,7 +8110,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
8084
8110
|
};
|
8085
8111
|
}
|
8086
8112
|
});
|
8087
|
-
const Coupon = withInstall(stdin_default$
|
8113
|
+
const Coupon = withInstall(stdin_default$T);
|
8088
8114
|
const [name$J, bem$I, t$9] = createNamespace("coupon-cell");
|
8089
8115
|
const couponCellProps = {
|
8090
8116
|
title: String,
|
@@ -8113,7 +8139,7 @@ function formatValue({
|
|
8113
8139
|
}
|
8114
8140
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
8115
8141
|
}
|
8116
|
-
var stdin_default$
|
8142
|
+
var stdin_default$S = vue.defineComponent({
|
8117
8143
|
name: name$J,
|
8118
8144
|
props: couponCellProps,
|
8119
8145
|
setup(props) {
|
@@ -8132,14 +8158,14 @@ var stdin_default$P = vue.defineComponent({
|
|
8132
8158
|
};
|
8133
8159
|
}
|
8134
8160
|
});
|
8135
|
-
const CouponCell = withInstall(stdin_default$
|
8161
|
+
const CouponCell = withInstall(stdin_default$S);
|
8136
8162
|
const [name$I, bem$H] = createNamespace("empty");
|
8137
8163
|
const emptyProps = {
|
8138
8164
|
image: makeStringProp("default"),
|
8139
8165
|
imageSize: [Number, String, Array],
|
8140
8166
|
description: String
|
8141
8167
|
};
|
8142
|
-
var stdin_default$
|
8168
|
+
var stdin_default$R = vue.defineComponent({
|
8143
8169
|
name: name$I,
|
8144
8170
|
props: emptyProps,
|
8145
8171
|
setup(props, {
|
@@ -8448,7 +8474,7 @@ var stdin_default$O = vue.defineComponent({
|
|
8448
8474
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8449
8475
|
}
|
8450
8476
|
});
|
8451
|
-
const Empty = withInstall(stdin_default$
|
8477
|
+
const Empty = withInstall(stdin_default$R);
|
8452
8478
|
const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
8453
8479
|
const couponListProps = {
|
8454
8480
|
code: makeStringProp(""),
|
@@ -8470,7 +8496,7 @@ const couponListProps = {
|
|
8470
8496
|
exchangeButtonLoading: Boolean,
|
8471
8497
|
exchangeButtonDisabled: Boolean
|
8472
8498
|
};
|
8473
|
-
var stdin_default$
|
8499
|
+
var stdin_default$Q = vue.defineComponent({
|
8474
8500
|
name: name$H,
|
8475
8501
|
props: couponListProps,
|
8476
8502
|
emits: ["change", "exchange", "update:code"],
|
@@ -8621,7 +8647,7 @@ var stdin_default$N = vue.defineComponent({
|
|
8621
8647
|
}, null), [[vue.vShow, props.showCloseButton]])])]);
|
8622
8648
|
}
|
8623
8649
|
});
|
8624
|
-
const CouponList = withInstall(stdin_default$
|
8650
|
+
const CouponList = withInstall(stdin_default$Q);
|
8625
8651
|
const currentYear = new Date().getFullYear();
|
8626
8652
|
const [name$G] = createNamespace("date-picker");
|
8627
8653
|
const datePickerProps = extend({}, sharedProps, {
|
@@ -8640,7 +8666,7 @@ const datePickerProps = extend({}, sharedProps, {
|
|
8640
8666
|
validator: isDate
|
8641
8667
|
}
|
8642
8668
|
});
|
8643
|
-
var stdin_default$
|
8669
|
+
var stdin_default$P = vue.defineComponent({
|
8644
8670
|
name: name$G,
|
8645
8671
|
props: datePickerProps,
|
8646
8672
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
@@ -8731,7 +8757,7 @@ var stdin_default$M = vue.defineComponent({
|
|
8731
8757
|
}, pick(props, pickerInheritKeys)), slots);
|
8732
8758
|
}
|
8733
8759
|
});
|
8734
|
-
const DatePicker = withInstall(stdin_default$
|
8760
|
+
const DatePicker = withInstall(stdin_default$P);
|
8735
8761
|
const [name$F, bem$F, t$7] = createNamespace("dialog");
|
8736
8762
|
const dialogProps = extend({}, popupSharedProps, {
|
8737
8763
|
title: String,
|
@@ -8755,7 +8781,7 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8755
8781
|
closeOnClickOverlay: Boolean
|
8756
8782
|
});
|
8757
8783
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8758
|
-
var stdin_default$
|
8784
|
+
var stdin_default$O = vue.defineComponent({
|
8759
8785
|
name: name$F,
|
8760
8786
|
props: dialogProps,
|
8761
8787
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
@@ -8974,7 +9000,7 @@ function initInstance$2() {
|
|
8974
9000
|
state,
|
8975
9001
|
toggle
|
8976
9002
|
} = usePopupState();
|
8977
|
-
return () => vue.createVNode(stdin_default$
|
9003
|
+
return () => vue.createVNode(stdin_default$O, vue.mergeProps(state, {
|
8978
9004
|
"onUpdate:show": toggle
|
8979
9005
|
}), null);
|
8980
9006
|
}
|
@@ -9012,14 +9038,14 @@ const closeDialog = () => {
|
|
9012
9038
|
instance$2.toggle(false);
|
9013
9039
|
}
|
9014
9040
|
};
|
9015
|
-
const Dialog = withInstall(stdin_default$
|
9041
|
+
const Dialog = withInstall(stdin_default$O);
|
9016
9042
|
const [name$E, bem$E] = createNamespace("divider");
|
9017
9043
|
const dividerProps = {
|
9018
9044
|
dashed: Boolean,
|
9019
9045
|
hairline: truthProp,
|
9020
9046
|
contentPosition: makeStringProp("center")
|
9021
9047
|
};
|
9022
|
-
var stdin_default$
|
9048
|
+
var stdin_default$N = vue.defineComponent({
|
9023
9049
|
name: name$E,
|
9024
9050
|
props: dividerProps,
|
9025
9051
|
setup(props, {
|
@@ -9038,7 +9064,7 @@ var stdin_default$K = vue.defineComponent({
|
|
9038
9064
|
};
|
9039
9065
|
}
|
9040
9066
|
});
|
9041
|
-
const Divider = withInstall(stdin_default$
|
9067
|
+
const Divider = withInstall(stdin_default$N);
|
9042
9068
|
const [name$D, bem$D] = createNamespace("dropdown-menu");
|
9043
9069
|
const dropdownMenuProps = {
|
9044
9070
|
overlay: truthProp,
|
@@ -9050,7 +9076,7 @@ const dropdownMenuProps = {
|
|
9050
9076
|
closeOnClickOverlay: truthProp
|
9051
9077
|
};
|
9052
9078
|
const DROPDOWN_KEY = Symbol(name$D);
|
9053
|
-
var stdin_default$
|
9079
|
+
var stdin_default$M = vue.defineComponent({
|
9054
9080
|
name: name$D,
|
9055
9081
|
props: dropdownMenuProps,
|
9056
9082
|
setup(props, {
|
@@ -9176,7 +9202,7 @@ const dropdownItemProps = {
|
|
9176
9202
|
modelValue: unknownProp,
|
9177
9203
|
titleClass: unknownProp
|
9178
9204
|
};
|
9179
|
-
var stdin_default$
|
9205
|
+
var stdin_default$L = vue.defineComponent({
|
9180
9206
|
name: name$C,
|
9181
9207
|
inheritAttrs: false,
|
9182
9208
|
props: dropdownItemProps,
|
@@ -9336,8 +9362,8 @@ var stdin_default$I = vue.defineComponent({
|
|
9336
9362
|
};
|
9337
9363
|
}
|
9338
9364
|
});
|
9339
|
-
const DropdownItem = withInstall(stdin_default$
|
9340
|
-
const DropdownMenu = withInstall(stdin_default$
|
9365
|
+
const DropdownItem = withInstall(stdin_default$L);
|
9366
|
+
const DropdownMenu = withInstall(stdin_default$M);
|
9341
9367
|
const [name$B, bem$B] = createNamespace("grid");
|
9342
9368
|
const gridProps = {
|
9343
9369
|
square: Boolean,
|
@@ -9351,7 +9377,7 @@ const gridProps = {
|
|
9351
9377
|
columnNum: makeNumericProp(4)
|
9352
9378
|
};
|
9353
9379
|
const GRID_KEY = Symbol(name$B);
|
9354
|
-
var stdin_default$
|
9380
|
+
var stdin_default$K = vue.defineComponent({
|
9355
9381
|
name: name$B,
|
9356
9382
|
props: gridProps,
|
9357
9383
|
setup(props, {
|
@@ -9376,7 +9402,7 @@ var stdin_default$H = vue.defineComponent({
|
|
9376
9402
|
};
|
9377
9403
|
}
|
9378
9404
|
});
|
9379
|
-
const Grid = withInstall(stdin_default$
|
9405
|
+
const Grid = withInstall(stdin_default$K);
|
9380
9406
|
const [name$A, bem$A] = createNamespace("grid-item");
|
9381
9407
|
const gridItemProps = extend({}, routeProps, {
|
9382
9408
|
dot: Boolean,
|
@@ -9387,7 +9413,7 @@ const gridItemProps = extend({}, routeProps, {
|
|
9387
9413
|
iconPrefix: String,
|
9388
9414
|
badgeProps: Object
|
9389
9415
|
});
|
9390
|
-
var stdin_default$
|
9416
|
+
var stdin_default$J = vue.defineComponent({
|
9391
9417
|
name: name$A,
|
9392
9418
|
props: gridItemProps,
|
9393
9419
|
setup(props, {
|
@@ -9511,10 +9537,10 @@ var stdin_default$G = vue.defineComponent({
|
|
9511
9537
|
};
|
9512
9538
|
}
|
9513
9539
|
});
|
9514
|
-
const GridItem = withInstall(stdin_default$
|
9540
|
+
const GridItem = withInstall(stdin_default$J);
|
9515
9541
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9516
9542
|
const bem$z = createNamespace("image-preview")[1];
|
9517
|
-
var stdin_default$
|
9543
|
+
var stdin_default$I = vue.defineComponent({
|
9518
9544
|
props: {
|
9519
9545
|
src: String,
|
9520
9546
|
show: Boolean,
|
@@ -9522,7 +9548,8 @@ var stdin_default$F = vue.defineComponent({
|
|
9522
9548
|
minZoom: makeRequiredProp(numericProp),
|
9523
9549
|
maxZoom: makeRequiredProp(numericProp),
|
9524
9550
|
rootWidth: makeRequiredProp(Number),
|
9525
|
-
rootHeight: makeRequiredProp(Number)
|
9551
|
+
rootHeight: makeRequiredProp(Number),
|
9552
|
+
disableZoom: Boolean
|
9526
9553
|
},
|
9527
9554
|
emits: ["scale", "close", "longPress"],
|
9528
9555
|
setup(props, {
|
@@ -9617,18 +9644,23 @@ var stdin_default$F = vue.defineComponent({
|
|
9617
9644
|
let startDistance;
|
9618
9645
|
let doubleTapTimer;
|
9619
9646
|
let touchStartTime;
|
9647
|
+
let isImageMoved = false;
|
9620
9648
|
const onTouchStart = (event) => {
|
9621
9649
|
const {
|
9622
9650
|
touches
|
9623
9651
|
} = event;
|
9652
|
+
fingerNum = touches.length;
|
9653
|
+
if (fingerNum === 2 && props.disableZoom) {
|
9654
|
+
return;
|
9655
|
+
}
|
9624
9656
|
const {
|
9625
9657
|
offsetX
|
9626
9658
|
} = touch;
|
9627
9659
|
touch.start(event);
|
9628
|
-
fingerNum = touches.length;
|
9629
9660
|
startMoveX = state.moveX;
|
9630
9661
|
startMoveY = state.moveY;
|
9631
9662
|
touchStartTime = Date.now();
|
9663
|
+
isImageMoved = false;
|
9632
9664
|
state.moving = fingerNum === 1 && state.scale !== 1;
|
9633
9665
|
state.zooming = fingerNum === 2 && !offsetX.value;
|
9634
9666
|
if (state.zooming) {
|
@@ -9641,9 +9673,6 @@ var stdin_default$F = vue.defineComponent({
|
|
9641
9673
|
touches
|
9642
9674
|
} = event;
|
9643
9675
|
touch.move(event);
|
9644
|
-
if (state.moving || state.zooming) {
|
9645
|
-
preventDefault(event, true);
|
9646
|
-
}
|
9647
9676
|
if (state.moving) {
|
9648
9677
|
const {
|
9649
9678
|
deltaX,
|
@@ -9651,13 +9680,22 @@ var stdin_default$F = vue.defineComponent({
|
|
9651
9680
|
} = touch;
|
9652
9681
|
const moveX = deltaX.value + startMoveX;
|
9653
9682
|
const moveY = deltaY.value + startMoveY;
|
9683
|
+
if ((moveX > maxMoveX.value || moveX < -maxMoveX.value) && !isImageMoved) {
|
9684
|
+
state.moving = false;
|
9685
|
+
return;
|
9686
|
+
}
|
9687
|
+
isImageMoved = true;
|
9688
|
+
preventDefault(event, true);
|
9654
9689
|
state.moveX = clamp(moveX, -maxMoveX.value, maxMoveX.value);
|
9655
9690
|
state.moveY = clamp(moveY, -maxMoveY.value, maxMoveY.value);
|
9656
9691
|
}
|
9657
|
-
if (state.zooming
|
9658
|
-
|
9659
|
-
|
9660
|
-
|
9692
|
+
if (state.zooming) {
|
9693
|
+
preventDefault(event, true);
|
9694
|
+
if (touches.length === 2) {
|
9695
|
+
const distance = getDistance(touches);
|
9696
|
+
const scale = startScale * distance / startDistance;
|
9697
|
+
setScale(scale);
|
9698
|
+
}
|
9661
9699
|
}
|
9662
9700
|
};
|
9663
9701
|
const checkTap = () => {
|
@@ -9767,7 +9805,7 @@ var stdin_default$F = vue.defineComponent({
|
|
9767
9805
|
}
|
9768
9806
|
});
|
9769
9807
|
const [name$z, bem$y] = createNamespace("image-preview");
|
9770
|
-
const popupProps$1 = ["show", "
|
9808
|
+
const popupProps$1 = ["show", "teleport", "transition", "overlayStyle", "closeOnPopstate"];
|
9771
9809
|
const imagePreviewProps = {
|
9772
9810
|
show: Boolean,
|
9773
9811
|
loop: truthProp,
|
@@ -9790,7 +9828,7 @@ const imagePreviewProps = {
|
|
9790
9828
|
closeIconPosition: makeStringProp("top-right"),
|
9791
9829
|
teleport: [String, Object]
|
9792
9830
|
};
|
9793
|
-
var stdin_default$
|
9831
|
+
var stdin_default$H = vue.defineComponent({
|
9794
9832
|
name: name$z,
|
9795
9833
|
props: imagePreviewProps,
|
9796
9834
|
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
@@ -9802,7 +9840,8 @@ var stdin_default$E = vue.defineComponent({
|
|
9802
9840
|
const state = vue.reactive({
|
9803
9841
|
active: 0,
|
9804
9842
|
rootWidth: 0,
|
9805
|
-
rootHeight: 0
|
9843
|
+
rootHeight: 0,
|
9844
|
+
disableZoom: false
|
9806
9845
|
});
|
9807
9846
|
const resize = () => {
|
9808
9847
|
if (swipeRef.value) {
|
@@ -9842,6 +9881,12 @@ var stdin_default$E = vue.defineComponent({
|
|
9842
9881
|
}, [slots.cover()]);
|
9843
9882
|
}
|
9844
9883
|
};
|
9884
|
+
const onDragStart = () => {
|
9885
|
+
state.disableZoom = true;
|
9886
|
+
};
|
9887
|
+
const onDragEnd = () => {
|
9888
|
+
state.disableZoom = false;
|
9889
|
+
};
|
9845
9890
|
const renderImages = () => vue.createVNode(Swipe, {
|
9846
9891
|
"ref": swipeRef,
|
9847
9892
|
"lazyRender": true,
|
@@ -9851,9 +9896,11 @@ var stdin_default$E = vue.defineComponent({
|
|
9851
9896
|
"initialSwipe": props.startPosition,
|
9852
9897
|
"showIndicators": props.showIndicators,
|
9853
9898
|
"indicatorColor": "white",
|
9854
|
-
"onChange": setActive
|
9899
|
+
"onChange": setActive,
|
9900
|
+
"onDragEnd": onDragEnd,
|
9901
|
+
"onDragStart": onDragStart
|
9855
9902
|
}, {
|
9856
|
-
default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$
|
9903
|
+
default: () => [props.images.map((image, index) => vue.createVNode(stdin_default$I, {
|
9857
9904
|
"src": image,
|
9858
9905
|
"show": props.show,
|
9859
9906
|
"active": state.active,
|
@@ -9861,6 +9908,7 @@ var stdin_default$E = vue.defineComponent({
|
|
9861
9908
|
"minZoom": props.minZoom,
|
9862
9909
|
"rootWidth": state.rootWidth,
|
9863
9910
|
"rootHeight": state.rootHeight,
|
9911
|
+
"disableZoom": state.disableZoom,
|
9864
9912
|
"onScale": emitScale,
|
9865
9913
|
"onClose": emitClose,
|
9866
9914
|
"onLongPress": () => emit("longPress", {
|
@@ -9957,7 +10005,7 @@ function initInstance$1() {
|
|
9957
10005
|
const onClosed = () => {
|
9958
10006
|
state.images = [];
|
9959
10007
|
};
|
9960
|
-
return () => vue.createVNode(stdin_default$
|
10008
|
+
return () => vue.createVNode(stdin_default$H, vue.mergeProps(state, {
|
9961
10009
|
"onClosed": onClosed,
|
9962
10010
|
"onUpdate:show": toggle
|
9963
10011
|
}), null);
|
@@ -9978,7 +10026,7 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
9978
10026
|
instance$1.open(extend({}, defaultConfig, options));
|
9979
10027
|
return instance$1;
|
9980
10028
|
};
|
9981
|
-
const ImagePreview = withInstall(stdin_default$
|
10029
|
+
const ImagePreview = withInstall(stdin_default$H);
|
9982
10030
|
function genAlphabet() {
|
9983
10031
|
const charCodeOfA = "A".charCodeAt(0);
|
9984
10032
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
@@ -9997,7 +10045,7 @@ const indexBarProps = {
|
|
9997
10045
|
}
|
9998
10046
|
};
|
9999
10047
|
const INDEX_BAR_KEY = Symbol(name$y);
|
10000
|
-
var stdin_default$
|
10048
|
+
var stdin_default$G = vue.defineComponent({
|
10001
10049
|
name: name$y,
|
10002
10050
|
props: indexBarProps,
|
10003
10051
|
emits: ["select", "change"],
|
@@ -10199,7 +10247,7 @@ const [name$x, bem$w] = createNamespace("index-anchor");
|
|
10199
10247
|
const indexAnchorProps = {
|
10200
10248
|
index: numericProp
|
10201
10249
|
};
|
10202
|
-
var stdin_default$
|
10250
|
+
var stdin_default$F = vue.defineComponent({
|
10203
10251
|
name: name$x,
|
10204
10252
|
props: indexAnchorProps,
|
10205
10253
|
setup(props, {
|
@@ -10272,8 +10320,8 @@ var stdin_default$C = vue.defineComponent({
|
|
10272
10320
|
};
|
10273
10321
|
}
|
10274
10322
|
});
|
10275
|
-
const IndexAnchor = withInstall(stdin_default$
|
10276
|
-
const IndexBar = withInstall(stdin_default$
|
10323
|
+
const IndexAnchor = withInstall(stdin_default$F);
|
10324
|
+
const IndexBar = withInstall(stdin_default$G);
|
10277
10325
|
const [name$w, bem$v, t$6] = createNamespace("list");
|
10278
10326
|
const listProps = {
|
10279
10327
|
error: Boolean,
|
@@ -10287,7 +10335,7 @@ const listProps = {
|
|
10287
10335
|
finishedText: String,
|
10288
10336
|
immediateCheck: truthProp
|
10289
10337
|
};
|
10290
|
-
var stdin_default$
|
10338
|
+
var stdin_default$E = vue.defineComponent({
|
10291
10339
|
name: name$w,
|
10292
10340
|
props: listProps,
|
10293
10341
|
emits: ["load", "update:error", "update:loading"],
|
@@ -10404,7 +10452,7 @@ var stdin_default$B = vue.defineComponent({
|
|
10404
10452
|
};
|
10405
10453
|
}
|
10406
10454
|
});
|
10407
|
-
const List = withInstall(stdin_default$
|
10455
|
+
const List = withInstall(stdin_default$E);
|
10408
10456
|
const [name$v, bem$u] = createNamespace("nav-bar");
|
10409
10457
|
const navBarProps = {
|
10410
10458
|
title: String,
|
@@ -10418,7 +10466,7 @@ const navBarProps = {
|
|
10418
10466
|
safeAreaInsetTop: Boolean,
|
10419
10467
|
clickable: truthProp
|
10420
10468
|
};
|
10421
|
-
var stdin_default$
|
10469
|
+
var stdin_default$D = vue.defineComponent({
|
10422
10470
|
name: name$v,
|
10423
10471
|
props: navBarProps,
|
10424
10472
|
emits: ["clickLeft", "clickRight"],
|
@@ -10488,7 +10536,7 @@ var stdin_default$A = vue.defineComponent({
|
|
10488
10536
|
};
|
10489
10537
|
}
|
10490
10538
|
});
|
10491
|
-
const NavBar = withInstall(stdin_default$
|
10539
|
+
const NavBar = withInstall(stdin_default$D);
|
10492
10540
|
const [name$u, bem$t] = createNamespace("notice-bar");
|
10493
10541
|
const noticeBarProps = {
|
10494
10542
|
text: String,
|
@@ -10504,7 +10552,7 @@ const noticeBarProps = {
|
|
10504
10552
|
default: null
|
10505
10553
|
}
|
10506
10554
|
};
|
10507
|
-
var stdin_default$
|
10555
|
+
var stdin_default$C = vue.defineComponent({
|
10508
10556
|
name: name$u,
|
10509
10557
|
props: noticeBarProps,
|
10510
10558
|
emits: ["close", "replay"],
|
@@ -10644,7 +10692,7 @@ var stdin_default$z = vue.defineComponent({
|
|
10644
10692
|
};
|
10645
10693
|
}
|
10646
10694
|
});
|
10647
|
-
const NoticeBar = withInstall(stdin_default$
|
10695
|
+
const NoticeBar = withInstall(stdin_default$C);
|
10648
10696
|
const [name$t, bem$s] = createNamespace("notify");
|
10649
10697
|
const notifyProps = extend({}, popupSharedProps, {
|
10650
10698
|
type: makeStringProp("danger"),
|
@@ -10655,7 +10703,7 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
10655
10703
|
background: String,
|
10656
10704
|
lockScroll: Boolean
|
10657
10705
|
});
|
10658
|
-
var stdin_default$
|
10706
|
+
var stdin_default$B = vue.defineComponent({
|
10659
10707
|
name: name$t,
|
10660
10708
|
props: notifyProps,
|
10661
10709
|
emits: ["update:show"],
|
@@ -10696,7 +10744,7 @@ function initInstance() {
|
|
10696
10744
|
state,
|
10697
10745
|
toggle
|
10698
10746
|
} = usePopupState();
|
10699
|
-
return () => vue.createVNode(stdin_default$
|
10747
|
+
return () => vue.createVNode(stdin_default$B, vue.mergeProps(state, {
|
10700
10748
|
"onUpdate:show": toggle
|
10701
10749
|
}), null);
|
10702
10750
|
}
|
@@ -10740,7 +10788,7 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
10740
10788
|
const resetNotifyDefaultOptions = () => {
|
10741
10789
|
currentOptions = getDefaultOptions();
|
10742
10790
|
};
|
10743
|
-
const Notify = withInstall(stdin_default$
|
10791
|
+
const Notify = withInstall(stdin_default$B);
|
10744
10792
|
const [name$s, bem$r] = createNamespace("key");
|
10745
10793
|
const CollapseIcon = vue.createVNode("svg", {
|
10746
10794
|
"class": bem$r("collapse-icon"),
|
@@ -10756,7 +10804,7 @@ const DeleteIcon = vue.createVNode("svg", {
|
|
10756
10804
|
"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",
|
10757
10805
|
"fill": "currentColor"
|
10758
10806
|
}, null)]);
|
10759
|
-
var stdin_default$
|
10807
|
+
var stdin_default$A = vue.defineComponent({
|
10760
10808
|
name: name$s,
|
10761
10809
|
props: {
|
10762
10810
|
type: String,
|
@@ -10859,7 +10907,7 @@ function shuffle(array) {
|
|
10859
10907
|
}
|
10860
10908
|
return array;
|
10861
10909
|
}
|
10862
|
-
var stdin_default$
|
10910
|
+
var stdin_default$z = vue.defineComponent({
|
10863
10911
|
name: name$r,
|
10864
10912
|
inheritAttrs: false,
|
10865
10913
|
props: numberKeyboardProps,
|
@@ -10978,7 +11026,7 @@ var stdin_default$w = vue.defineComponent({
|
|
10978
11026
|
if (key.type === "extra") {
|
10979
11027
|
keySlots.default = slots["extra-key"];
|
10980
11028
|
}
|
10981
|
-
return vue.createVNode(stdin_default$
|
11029
|
+
return vue.createVNode(stdin_default$A, {
|
10982
11030
|
"key": key.text,
|
10983
11031
|
"text": key.text,
|
10984
11032
|
"type": key.type,
|
@@ -10991,14 +11039,14 @@ var stdin_default$w = vue.defineComponent({
|
|
10991
11039
|
if (props.theme === "custom") {
|
10992
11040
|
return vue.createVNode("div", {
|
10993
11041
|
"class": bem$q("sidebar")
|
10994
|
-
}, [props.showDeleteKey && vue.createVNode(stdin_default$
|
11042
|
+
}, [props.showDeleteKey && vue.createVNode(stdin_default$A, {
|
10995
11043
|
"large": true,
|
10996
11044
|
"text": props.deleteButtonText,
|
10997
11045
|
"type": "delete",
|
10998
11046
|
"onPress": onPress
|
10999
11047
|
}, {
|
11000
11048
|
delete: slots.delete
|
11001
|
-
}), vue.createVNode(stdin_default$
|
11049
|
+
}), vue.createVNode(stdin_default$A, {
|
11002
11050
|
"large": true,
|
11003
11051
|
"text": props.closeButtonText,
|
11004
11052
|
"type": "close",
|
@@ -11049,7 +11097,7 @@ var stdin_default$w = vue.defineComponent({
|
|
11049
11097
|
};
|
11050
11098
|
}
|
11051
11099
|
});
|
11052
|
-
const NumberKeyboard = withInstall(stdin_default$
|
11100
|
+
const NumberKeyboard = withInstall(stdin_default$z);
|
11053
11101
|
const [name$q, bem$p, t$5] = createNamespace("pagination");
|
11054
11102
|
const makePage = (number, text, active) => ({
|
11055
11103
|
number,
|
@@ -11067,7 +11115,7 @@ const paginationProps = {
|
|
11067
11115
|
itemsPerPage: makeNumericProp(10),
|
11068
11116
|
forceEllipses: Boolean
|
11069
11117
|
};
|
11070
|
-
var stdin_default$
|
11118
|
+
var stdin_default$y = vue.defineComponent({
|
11071
11119
|
name: name$q,
|
11072
11120
|
props: paginationProps,
|
11073
11121
|
emits: ["change", "update:modelValue"],
|
@@ -11188,7 +11236,7 @@ var stdin_default$v = vue.defineComponent({
|
|
11188
11236
|
}, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
|
11189
11237
|
}
|
11190
11238
|
});
|
11191
|
-
const Pagination = withInstall(stdin_default$
|
11239
|
+
const Pagination = withInstall(stdin_default$y);
|
11192
11240
|
const [name$p, bem$o] = createNamespace("password-input");
|
11193
11241
|
const passwordInputProps = {
|
11194
11242
|
info: String,
|
@@ -11199,7 +11247,7 @@ const passwordInputProps = {
|
|
11199
11247
|
focused: Boolean,
|
11200
11248
|
errorInfo: String
|
11201
11249
|
};
|
11202
|
-
var stdin_default$
|
11250
|
+
var stdin_default$x = vue.defineComponent({
|
11203
11251
|
name: name$p,
|
11204
11252
|
props: passwordInputProps,
|
11205
11253
|
emits: ["focus"],
|
@@ -11261,8 +11309,8 @@ var stdin_default$u = vue.defineComponent({
|
|
11261
11309
|
};
|
11262
11310
|
}
|
11263
11311
|
});
|
11264
|
-
const PasswordInput = withInstall(stdin_default$
|
11265
|
-
const PickerGroup = withInstall(stdin_default$
|
11312
|
+
const PasswordInput = withInstall(stdin_default$x);
|
11313
|
+
const PickerGroup = withInstall(stdin_default$1r);
|
11266
11314
|
const useSyncPropRef = (getProp, setProp) => {
|
11267
11315
|
const propRef = vue.ref(getProp());
|
11268
11316
|
vue.watch(getProp, (value) => {
|
@@ -11303,7 +11351,7 @@ const popoverProps = {
|
|
11303
11351
|
default: "body"
|
11304
11352
|
}
|
11305
11353
|
};
|
11306
|
-
var stdin_default$
|
11354
|
+
var stdin_default$w = vue.defineComponent({
|
11307
11355
|
name: name$o,
|
11308
11356
|
props: popoverProps,
|
11309
11357
|
emits: ["select", "touchstart", "update:show"],
|
@@ -11449,7 +11497,7 @@ var stdin_default$t = vue.defineComponent({
|
|
11449
11497
|
};
|
11450
11498
|
}
|
11451
11499
|
});
|
11452
|
-
const Popover = withInstall(stdin_default$
|
11500
|
+
const Popover = withInstall(stdin_default$w);
|
11453
11501
|
const [name$n, bem$m] = createNamespace("progress");
|
11454
11502
|
const progressProps = {
|
11455
11503
|
color: String,
|
@@ -11466,7 +11514,7 @@ const progressProps = {
|
|
11466
11514
|
validator: (value) => value >= 0 && value <= 100
|
11467
11515
|
}
|
11468
11516
|
};
|
11469
|
-
var stdin_default$
|
11517
|
+
var stdin_default$v = vue.defineComponent({
|
11470
11518
|
name: name$n,
|
11471
11519
|
props: progressProps,
|
11472
11520
|
setup(props) {
|
@@ -11520,7 +11568,7 @@ var stdin_default$s = vue.defineComponent({
|
|
11520
11568
|
};
|
11521
11569
|
}
|
11522
11570
|
});
|
11523
|
-
const Progress = withInstall(stdin_default$
|
11571
|
+
const Progress = withInstall(stdin_default$v);
|
11524
11572
|
const [name$m, bem$l, t$4] = createNamespace("pull-refresh");
|
11525
11573
|
const DEFAULT_HEAD_HEIGHT = 50;
|
11526
11574
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
@@ -11536,7 +11584,7 @@ const pullRefreshProps = {
|
|
11536
11584
|
successDuration: makeNumericProp(500),
|
11537
11585
|
animationDuration: makeNumericProp(300)
|
11538
11586
|
};
|
11539
|
-
var stdin_default$
|
11587
|
+
var stdin_default$u = vue.defineComponent({
|
11540
11588
|
name: name$m,
|
11541
11589
|
props: pullRefreshProps,
|
11542
11590
|
emits: ["change", "refresh", "update:modelValue"],
|
@@ -11705,7 +11753,7 @@ var stdin_default$r = vue.defineComponent({
|
|
11705
11753
|
};
|
11706
11754
|
}
|
11707
11755
|
});
|
11708
|
-
const PullRefresh = withInstall(stdin_default$
|
11756
|
+
const PullRefresh = withInstall(stdin_default$u);
|
11709
11757
|
const [name$l, bem$k] = createNamespace("rate");
|
11710
11758
|
function getRateStatus(value, index, allowHalf, readonly) {
|
11711
11759
|
if (value >= index) {
|
@@ -11748,7 +11796,7 @@ const rateProps = {
|
|
11748
11796
|
modelValue: makeNumberProp(0),
|
11749
11797
|
disabledColor: String
|
11750
11798
|
};
|
11751
|
-
var stdin_default$
|
11799
|
+
var stdin_default$t = vue.defineComponent({
|
11752
11800
|
name: name$l,
|
11753
11801
|
props: rateProps,
|
11754
11802
|
emits: ["change", "update:modelValue"],
|
@@ -11915,8 +11963,8 @@ var stdin_default$q = vue.defineComponent({
|
|
11915
11963
|
}, [list.value.map(renderStar)]);
|
11916
11964
|
}
|
11917
11965
|
});
|
11918
|
-
const Rate = withInstall(stdin_default$
|
11919
|
-
const Row = withInstall(stdin_default
|
11966
|
+
const Rate = withInstall(stdin_default$t);
|
11967
|
+
const Row = withInstall(stdin_default$$);
|
11920
11968
|
const [name$k, bem$j, t$3] = createNamespace("search");
|
11921
11969
|
const searchProps = extend({}, fieldSharedProps, {
|
11922
11970
|
label: String,
|
@@ -11927,7 +11975,7 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
11927
11975
|
background: String,
|
11928
11976
|
showAction: Boolean
|
11929
11977
|
});
|
11930
|
-
var stdin_default$
|
11978
|
+
var stdin_default$s = vue.defineComponent({
|
11931
11979
|
name: name$k,
|
11932
11980
|
props: searchProps,
|
11933
11981
|
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
@@ -12025,7 +12073,7 @@ var stdin_default$p = vue.defineComponent({
|
|
12025
12073
|
};
|
12026
12074
|
}
|
12027
12075
|
});
|
12028
|
-
const Search = withInstall(stdin_default$
|
12076
|
+
const Search = withInstall(stdin_default$s);
|
12029
12077
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
12030
12078
|
const iconMap = {
|
12031
12079
|
qq: "qq",
|
@@ -12047,7 +12095,7 @@ const shareSheetProps = extend({}, popupSharedProps, {
|
|
12047
12095
|
closeOnPopstate: truthProp,
|
12048
12096
|
safeAreaInsetBottom: truthProp
|
12049
12097
|
});
|
12050
|
-
var stdin_default$
|
12098
|
+
var stdin_default$r = vue.defineComponent({
|
12051
12099
|
name: name$j,
|
12052
12100
|
props: shareSheetProps,
|
12053
12101
|
emits: ["cancel", "select", "update:show"],
|
@@ -12139,13 +12187,13 @@ var stdin_default$o = vue.defineComponent({
|
|
12139
12187
|
});
|
12140
12188
|
}
|
12141
12189
|
});
|
12142
|
-
const ShareSheet = withInstall(stdin_default$
|
12190
|
+
const ShareSheet = withInstall(stdin_default$r);
|
12143
12191
|
const [name$i, bem$h] = createNamespace("sidebar");
|
12144
12192
|
const SIDEBAR_KEY = Symbol(name$i);
|
12145
12193
|
const sidebarProps = {
|
12146
12194
|
modelValue: makeNumericProp(0)
|
12147
12195
|
};
|
12148
|
-
var stdin_default$
|
12196
|
+
var stdin_default$q = vue.defineComponent({
|
12149
12197
|
name: name$i,
|
12150
12198
|
props: sidebarProps,
|
12151
12199
|
emits: ["change", "update:modelValue"],
|
@@ -12176,7 +12224,7 @@ var stdin_default$n = vue.defineComponent({
|
|
12176
12224
|
};
|
12177
12225
|
}
|
12178
12226
|
});
|
12179
|
-
const Sidebar = withInstall(stdin_default$
|
12227
|
+
const Sidebar = withInstall(stdin_default$q);
|
12180
12228
|
const [name$h, bem$g] = createNamespace("sidebar-item");
|
12181
12229
|
const sidebarItemProps = extend({}, routeProps, {
|
12182
12230
|
dot: Boolean,
|
@@ -12185,7 +12233,7 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
12185
12233
|
disabled: Boolean,
|
12186
12234
|
badgeProps: Object
|
12187
12235
|
});
|
12188
|
-
var stdin_default$
|
12236
|
+
var stdin_default$p = vue.defineComponent({
|
12189
12237
|
name: name$h,
|
12190
12238
|
props: sidebarItemProps,
|
12191
12239
|
emits: ["click"],
|
@@ -12239,13 +12287,13 @@ var stdin_default$m = vue.defineComponent({
|
|
12239
12287
|
};
|
12240
12288
|
}
|
12241
12289
|
});
|
12242
|
-
const SidebarItem = withInstall(stdin_default$
|
12290
|
+
const SidebarItem = withInstall(stdin_default$p);
|
12243
12291
|
const [name$g, bem$f] = createNamespace("skeleton-title");
|
12244
12292
|
const skeletonTitleProps = {
|
12245
12293
|
round: Boolean,
|
12246
12294
|
titleWidth: numericProp
|
12247
12295
|
};
|
12248
|
-
var stdin_default$
|
12296
|
+
var stdin_default$o = vue.defineComponent({
|
12249
12297
|
name: name$g,
|
12250
12298
|
props: skeletonTitleProps,
|
12251
12299
|
setup(props) {
|
@@ -12259,12 +12307,14 @@ var stdin_default$l = vue.defineComponent({
|
|
12259
12307
|
}, null);
|
12260
12308
|
}
|
12261
12309
|
});
|
12310
|
+
const SkeletonTitle = withInstall(stdin_default$o);
|
12311
|
+
var stdin_default$n = SkeletonTitle;
|
12262
12312
|
const [name$f, bem$e] = createNamespace("skeleton-avatar");
|
12263
12313
|
const skeletonAvatarProps = {
|
12264
12314
|
avatarSize: numericProp,
|
12265
12315
|
avatarShape: makeStringProp("round")
|
12266
12316
|
};
|
12267
|
-
var stdin_default$
|
12317
|
+
var stdin_default$m = vue.defineComponent({
|
12268
12318
|
name: name$f,
|
12269
12319
|
props: skeletonAvatarProps,
|
12270
12320
|
setup(props) {
|
@@ -12274,6 +12324,8 @@ var stdin_default$k = vue.defineComponent({
|
|
12274
12324
|
}, null);
|
12275
12325
|
}
|
12276
12326
|
});
|
12327
|
+
const SkeletonAvatar = withInstall(stdin_default$m);
|
12328
|
+
var stdin_default$l = SkeletonAvatar;
|
12277
12329
|
const DEFAULT_ROW_WIDTH = "100%";
|
12278
12330
|
const skeletonParagraphProps = {
|
12279
12331
|
round: Boolean,
|
@@ -12283,7 +12335,7 @@ const skeletonParagraphProps = {
|
|
12283
12335
|
}
|
12284
12336
|
};
|
12285
12337
|
const [name$e, bem$d] = createNamespace("skeleton-paragraph");
|
12286
|
-
var stdin_default$
|
12338
|
+
var stdin_default$k = vue.defineComponent({
|
12287
12339
|
name: name$e,
|
12288
12340
|
props: skeletonParagraphProps,
|
12289
12341
|
setup(props) {
|
@@ -12297,6 +12349,8 @@ var stdin_default$j = vue.defineComponent({
|
|
12297
12349
|
}, null);
|
12298
12350
|
}
|
12299
12351
|
});
|
12352
|
+
const SkeletonParagraph = withInstall(stdin_default$k);
|
12353
|
+
var stdin_default$j = SkeletonParagraph;
|
12300
12354
|
const [name$d, bem$c] = createNamespace("skeleton");
|
12301
12355
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
12302
12356
|
const skeletonProps = {
|
@@ -12324,7 +12378,7 @@ var stdin_default$i = vue.defineComponent({
|
|
12324
12378
|
}) {
|
12325
12379
|
const renderAvatar = () => {
|
12326
12380
|
if (props.avatar) {
|
12327
|
-
return vue.createVNode(stdin_default$
|
12381
|
+
return vue.createVNode(stdin_default$l, {
|
12328
12382
|
"avatarShape": props.avatarShape,
|
12329
12383
|
"avatarSize": props.avatarSize
|
12330
12384
|
}, null);
|
@@ -12332,7 +12386,7 @@ var stdin_default$i = vue.defineComponent({
|
|
12332
12386
|
};
|
12333
12387
|
const renderTitle = () => {
|
12334
12388
|
if (props.title) {
|
12335
|
-
return vue.createVNode(stdin_default$
|
12389
|
+
return vue.createVNode(stdin_default$n, {
|
12336
12390
|
"round": props.round,
|
12337
12391
|
"titleWidth": props.titleWidth
|
12338
12392
|
}, null);
|
@@ -12377,6 +12431,7 @@ var stdin_default$i = vue.defineComponent({
|
|
12377
12431
|
};
|
12378
12432
|
}
|
12379
12433
|
});
|
12434
|
+
const Skeleton = withInstall(stdin_default$i);
|
12380
12435
|
const [name$c, bem$b] = createNamespace("skeleton-image");
|
12381
12436
|
const skeletonImageProps = {
|
12382
12437
|
imageSize: numericProp,
|
@@ -12396,10 +12451,6 @@ var stdin_default$h = vue.defineComponent({
|
|
12396
12451
|
}
|
12397
12452
|
});
|
12398
12453
|
const SkeletonImage = withInstall(stdin_default$h);
|
12399
|
-
const SkeletonTitle = withInstall(stdin_default$l);
|
12400
|
-
const SkeletonAvatar = withInstall(stdin_default$k);
|
12401
|
-
const SkeletonParagraph = withInstall(stdin_default$j);
|
12402
|
-
const Skeleton = withInstall(stdin_default$i);
|
12403
12454
|
const [name$b, bem$a] = createNamespace("slider");
|
12404
12455
|
const sliderProps = {
|
12405
12456
|
min: makeNumericProp(0),
|
@@ -14903,7 +14954,7 @@ const Lazyload = {
|
|
14903
14954
|
});
|
14904
14955
|
}
|
14905
14956
|
};
|
14906
|
-
const version = "4.0.
|
14957
|
+
const version = "4.0.9";
|
14907
14958
|
function install(app) {
|
14908
14959
|
const components = [
|
14909
14960
|
ActionBar,
|
@@ -14975,6 +15026,10 @@ function install(app) {
|
|
14975
15026
|
Sidebar,
|
14976
15027
|
SidebarItem,
|
14977
15028
|
Skeleton,
|
15029
|
+
SkeletonAvatar,
|
15030
|
+
SkeletonImage,
|
15031
|
+
SkeletonParagraph,
|
15032
|
+
SkeletonTitle,
|
14978
15033
|
Slider,
|
14979
15034
|
Space,
|
14980
15035
|
Step,
|
@@ -15037,6 +15092,7 @@ exports.CountDown = CountDown;
|
|
15037
15092
|
exports.Coupon = Coupon;
|
15038
15093
|
exports.CouponCell = CouponCell;
|
15039
15094
|
exports.CouponList = CouponList;
|
15095
|
+
exports.DEFAULT_ROW_WIDTH = DEFAULT_ROW_WIDTH;
|
15040
15096
|
exports.DatePicker = DatePicker;
|
15041
15097
|
exports.Dialog = Dialog;
|
15042
15098
|
exports.Divider = Divider;
|
@@ -15211,4 +15267,5 @@ exports.timePickerProps = timePickerProps;
|
|
15211
15267
|
exports.toastProps = toastProps;
|
15212
15268
|
exports.treeSelectProps = treeSelectProps;
|
15213
15269
|
exports.uploaderProps = uploaderProps;
|
15270
|
+
exports.useCurrentLang = useCurrentLang;
|
15214
15271
|
exports.version = version;
|