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.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$1N = {
|
239
239
|
name: "姓名",
|
240
240
|
tel: "电话",
|
241
241
|
save: "保存",
|
@@ -298,7 +298,7 @@ var stdin_default$1K = {
|
|
298
298
|
};
|
299
299
|
const lang = ref("zh-CN");
|
300
300
|
const messages = reactive({
|
301
|
-
"zh-CN": stdin_default$
|
301
|
+
"zh-CN": stdin_default$1N
|
302
302
|
});
|
303
303
|
const Locale = {
|
304
304
|
messages() {
|
@@ -312,11 +312,12 @@ const Locale = {
|
|
312
312
|
deepAssign(messages, newMessages);
|
313
313
|
}
|
314
314
|
};
|
315
|
-
|
315
|
+
const useCurrentLang = () => lang;
|
316
|
+
var stdin_default$1M = Locale;
|
316
317
|
function createTranslate(name2) {
|
317
318
|
const prefix = camelize(name2) + ".";
|
318
319
|
return (path, ...args) => {
|
319
|
-
const messages2 = stdin_default$
|
320
|
+
const messages2 = stdin_default$1M.messages();
|
320
321
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
321
322
|
return isFunction(message) ? message(...args) : message;
|
322
323
|
};
|
@@ -444,7 +445,7 @@ const actionBarProps = {
|
|
444
445
|
placeholder: Boolean,
|
445
446
|
safeAreaInsetBottom: truthProp
|
446
447
|
};
|
447
|
-
var stdin_default$
|
448
|
+
var stdin_default$1L = defineComponent({
|
448
449
|
name: name$1B,
|
449
450
|
props: actionBarProps,
|
450
451
|
setup(props, {
|
@@ -473,7 +474,7 @@ var stdin_default$1I = defineComponent({
|
|
473
474
|
};
|
474
475
|
}
|
475
476
|
});
|
476
|
-
const ActionBar = withInstall(stdin_default$
|
477
|
+
const ActionBar = withInstall(stdin_default$1L);
|
477
478
|
function useExpose(apis) {
|
478
479
|
const instance2 = getCurrentInstance();
|
479
480
|
if (instance2) {
|
@@ -512,7 +513,7 @@ const badgeProps = {
|
|
512
513
|
showZero: truthProp,
|
513
514
|
position: makeStringProp("top-right")
|
514
515
|
};
|
515
|
-
var stdin_default$
|
516
|
+
var stdin_default$1K = defineComponent({
|
516
517
|
name: name$1A,
|
517
518
|
props: badgeProps,
|
518
519
|
setup(props, {
|
@@ -599,7 +600,7 @@ var stdin_default$1H = defineComponent({
|
|
599
600
|
};
|
600
601
|
}
|
601
602
|
});
|
602
|
-
const Badge = withInstall(stdin_default$
|
603
|
+
const Badge = withInstall(stdin_default$1K);
|
603
604
|
let globalZIndex = 2e3;
|
604
605
|
const useGlobalZIndex = () => ++globalZIndex;
|
605
606
|
const setGlobalZIndex = (val) => {
|
@@ -623,7 +624,7 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
623
624
|
});
|
624
625
|
return cssVars;
|
625
626
|
}
|
626
|
-
var stdin_default$
|
627
|
+
var stdin_default$1J = defineComponent({
|
627
628
|
name: name$1z,
|
628
629
|
props: configProviderProps,
|
629
630
|
setup(props, {
|
@@ -678,7 +679,7 @@ const iconProps = {
|
|
678
679
|
badgeProps: Object,
|
679
680
|
classPrefix: String
|
680
681
|
};
|
681
|
-
var stdin_default$
|
682
|
+
var stdin_default$1I = defineComponent({
|
682
683
|
name: name$1y,
|
683
684
|
props: iconProps,
|
684
685
|
setup(props, {
|
@@ -717,7 +718,7 @@ var stdin_default$1F = defineComponent({
|
|
717
718
|
};
|
718
719
|
}
|
719
720
|
});
|
720
|
-
const Icon = withInstall(stdin_default$
|
721
|
+
const Icon = withInstall(stdin_default$1I);
|
721
722
|
const [name$1x, bem$1s] = createNamespace("loading");
|
722
723
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
723
724
|
"class": bem$1s("line", String(index + 1))
|
@@ -739,7 +740,7 @@ const loadingProps = {
|
|
739
740
|
textSize: numericProp,
|
740
741
|
textColor: String
|
741
742
|
};
|
742
|
-
var stdin_default$
|
743
|
+
var stdin_default$1H = defineComponent({
|
743
744
|
name: name$1x,
|
744
745
|
props: loadingProps,
|
745
746
|
setup(props, {
|
@@ -782,7 +783,7 @@ var stdin_default$1E = defineComponent({
|
|
782
783
|
};
|
783
784
|
}
|
784
785
|
});
|
785
|
-
const Loading = withInstall(stdin_default$
|
786
|
+
const Loading = withInstall(stdin_default$1H);
|
786
787
|
const [name$1w, bem$1r] = createNamespace("button");
|
787
788
|
const buttonProps = extend({}, routeProps, {
|
788
789
|
tag: makeStringProp("button"),
|
@@ -805,7 +806,7 @@ const buttonProps = extend({}, routeProps, {
|
|
805
806
|
loadingType: String,
|
806
807
|
iconPosition: makeStringProp("left")
|
807
808
|
});
|
808
|
-
var stdin_default$
|
809
|
+
var stdin_default$1G = defineComponent({
|
809
810
|
name: name$1w,
|
810
811
|
props: buttonProps,
|
811
812
|
emits: ["click"],
|
@@ -922,7 +923,7 @@ var stdin_default$1D = defineComponent({
|
|
922
923
|
};
|
923
924
|
}
|
924
925
|
});
|
925
|
-
const Button = withInstall(stdin_default$
|
926
|
+
const Button = withInstall(stdin_default$1G);
|
926
927
|
const [name$1v, bem$1q] = createNamespace("action-bar-button");
|
927
928
|
const actionBarButtonProps = extend({}, routeProps, {
|
928
929
|
type: String,
|
@@ -932,7 +933,7 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
932
933
|
loading: Boolean,
|
933
934
|
disabled: Boolean
|
934
935
|
});
|
935
|
-
var stdin_default$
|
936
|
+
var stdin_default$1F = defineComponent({
|
936
937
|
name: name$1v,
|
937
938
|
props: actionBarButtonProps,
|
938
939
|
setup(props, {
|
@@ -985,7 +986,7 @@ var stdin_default$1C = defineComponent({
|
|
985
986
|
};
|
986
987
|
}
|
987
988
|
});
|
988
|
-
const ActionBarButton = withInstall(stdin_default$
|
989
|
+
const ActionBarButton = withInstall(stdin_default$1F);
|
989
990
|
const [name$1u, bem$1p] = createNamespace("action-bar-icon");
|
990
991
|
const actionBarIconProps = extend({}, routeProps, {
|
991
992
|
dot: Boolean,
|
@@ -997,7 +998,7 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
997
998
|
badgeProps: Object,
|
998
999
|
iconPrefix: String
|
999
1000
|
});
|
1000
|
-
var stdin_default$
|
1001
|
+
var stdin_default$1E = defineComponent({
|
1001
1002
|
name: name$1u,
|
1002
1003
|
props: actionBarIconProps,
|
1003
1004
|
setup(props, {
|
@@ -1043,7 +1044,7 @@ var stdin_default$1B = defineComponent({
|
|
1043
1044
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1044
1045
|
}
|
1045
1046
|
});
|
1046
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1047
|
+
const ActionBarIcon = withInstall(stdin_default$1E);
|
1047
1048
|
const popupSharedProps = {
|
1048
1049
|
show: Boolean,
|
1049
1050
|
zIndex: numericProp,
|
@@ -1192,7 +1193,7 @@ const overlayProps = {
|
|
1192
1193
|
lazyRender: truthProp,
|
1193
1194
|
customStyle: Object
|
1194
1195
|
};
|
1195
|
-
var stdin_default$
|
1196
|
+
var stdin_default$1D = defineComponent({
|
1196
1197
|
name: name$1t,
|
1197
1198
|
props: overlayProps,
|
1198
1199
|
setup(props, {
|
@@ -1228,7 +1229,7 @@ var stdin_default$1A = defineComponent({
|
|
1228
1229
|
});
|
1229
1230
|
}
|
1230
1231
|
});
|
1231
|
-
const Overlay = withInstall(stdin_default$
|
1232
|
+
const Overlay = withInstall(stdin_default$1D);
|
1232
1233
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1233
1234
|
round: Boolean,
|
1234
1235
|
position: makeStringProp("center"),
|
@@ -1242,7 +1243,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1242
1243
|
safeAreaInsetBottom: Boolean
|
1243
1244
|
});
|
1244
1245
|
const [name$1s, bem$1n] = createNamespace("popup");
|
1245
|
-
var stdin_default$
|
1246
|
+
var stdin_default$1C = defineComponent({
|
1246
1247
|
name: name$1s,
|
1247
1248
|
inheritAttrs: false,
|
1248
1249
|
props: popupProps$2,
|
@@ -1420,7 +1421,7 @@ var stdin_default$1z = defineComponent({
|
|
1420
1421
|
};
|
1421
1422
|
}
|
1422
1423
|
});
|
1423
|
-
const Popup = withInstall(stdin_default$
|
1424
|
+
const Popup = withInstall(stdin_default$1C);
|
1424
1425
|
const [name$1r, bem$1m] = createNamespace("action-sheet");
|
1425
1426
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1426
1427
|
title: String,
|
@@ -1435,7 +1436,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1435
1436
|
safeAreaInsetBottom: truthProp
|
1436
1437
|
});
|
1437
1438
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1438
|
-
var stdin_default$
|
1439
|
+
var stdin_default$1B = defineComponent({
|
1439
1440
|
name: name$1r,
|
1440
1441
|
props: actionSheetProps,
|
1441
1442
|
emits: ["select", "cancel", "update:show"],
|
@@ -1542,7 +1543,7 @@ var stdin_default$1y = defineComponent({
|
|
1542
1543
|
});
|
1543
1544
|
}
|
1544
1545
|
});
|
1545
|
-
const ActionSheet = withInstall(stdin_default$
|
1546
|
+
const ActionSheet = withInstall(stdin_default$1B);
|
1546
1547
|
const [name$1q, bem$1l, t$j] = createNamespace("picker");
|
1547
1548
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1548
1549
|
function getColumnsType(columns, fields) {
|
@@ -1614,7 +1615,7 @@ const MOMENTUM_TIME = 300;
|
|
1614
1615
|
const MOMENTUM_DISTANCE = 15;
|
1615
1616
|
const [name$1p, bem$1k] = createNamespace("picker-column");
|
1616
1617
|
const PICKER_KEY = Symbol(name$1p);
|
1617
|
-
var stdin_default$
|
1618
|
+
var stdin_default$1A = defineComponent({
|
1618
1619
|
name: name$1p,
|
1619
1620
|
props: {
|
1620
1621
|
value: numericProp,
|
@@ -1800,7 +1801,7 @@ const pickerToolbarProps = {
|
|
1800
1801
|
};
|
1801
1802
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1802
1803
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1803
|
-
var stdin_default$
|
1804
|
+
var stdin_default$1z = defineComponent({
|
1804
1805
|
name: name$1o,
|
1805
1806
|
props: pickerToolbarProps,
|
1806
1807
|
emits: ["confirm", "cancel"],
|
@@ -1929,7 +1930,7 @@ const stickyProps = {
|
|
1929
1930
|
offsetTop: makeNumericProp(0),
|
1930
1931
|
offsetBottom: makeNumericProp(0)
|
1931
1932
|
};
|
1932
|
-
var stdin_default$
|
1933
|
+
var stdin_default$1y = defineComponent({
|
1933
1934
|
name: name$1n,
|
1934
1935
|
props: stickyProps,
|
1935
1936
|
emits: ["scroll", "change"],
|
@@ -2033,9 +2034,9 @@ var stdin_default$1v = defineComponent({
|
|
2033
2034
|
};
|
2034
2035
|
}
|
2035
2036
|
});
|
2036
|
-
const Sticky = withInstall(stdin_default$
|
2037
|
+
const Sticky = withInstall(stdin_default$1y);
|
2037
2038
|
const [name$1m, bem$1i] = createNamespace("tab");
|
2038
|
-
var stdin_default$
|
2039
|
+
var stdin_default$1x = defineComponent({
|
2039
2040
|
name: name$1m,
|
2040
2041
|
props: {
|
2041
2042
|
id: String,
|
@@ -2133,10 +2134,10 @@ const swipeProps = {
|
|
2133
2134
|
stopPropagation: truthProp
|
2134
2135
|
};
|
2135
2136
|
const SWIPE_KEY = Symbol(name$1l);
|
2136
|
-
var stdin_default$
|
2137
|
+
var stdin_default$1w = defineComponent({
|
2137
2138
|
name: name$1l,
|
2138
2139
|
props: swipeProps,
|
2139
|
-
emits: ["change"],
|
2140
|
+
emits: ["change", "dragStart", "dragEnd"],
|
2140
2141
|
setup(props, {
|
2141
2142
|
emit,
|
2142
2143
|
slots
|
@@ -2151,6 +2152,7 @@ var stdin_default$1t = defineComponent({
|
|
2151
2152
|
active: 0,
|
2152
2153
|
swiping: false
|
2153
2154
|
});
|
2155
|
+
let dragging = false;
|
2154
2156
|
const touch = useTouch();
|
2155
2157
|
const {
|
2156
2158
|
children,
|
@@ -2321,9 +2323,10 @@ var stdin_default$1t = defineComponent({
|
|
2321
2323
|
const resize = () => initialize(state.active);
|
2322
2324
|
let touchStartTime;
|
2323
2325
|
const onTouchStart = (event) => {
|
2324
|
-
if (!props.touchable)
|
2326
|
+
if (!props.touchable || event.touches.length > 1)
|
2325
2327
|
return;
|
2326
2328
|
touch.start(event);
|
2329
|
+
dragging = false;
|
2327
2330
|
touchStartTime = Date.now();
|
2328
2331
|
stopAutoplay();
|
2329
2332
|
correctPosition();
|
@@ -2338,6 +2341,10 @@ var stdin_default$1t = defineComponent({
|
|
2338
2341
|
move({
|
2339
2342
|
offset: delta.value
|
2340
2343
|
});
|
2344
|
+
if (!dragging) {
|
2345
|
+
emit("dragStart");
|
2346
|
+
dragging = true;
|
2347
|
+
}
|
2341
2348
|
}
|
2342
2349
|
}
|
2343
2350
|
}
|
@@ -2366,7 +2373,9 @@ var stdin_default$1t = defineComponent({
|
|
2366
2373
|
pace: 0
|
2367
2374
|
});
|
2368
2375
|
}
|
2376
|
+
dragging = false;
|
2369
2377
|
state.swiping = false;
|
2378
|
+
emit("dragEnd");
|
2370
2379
|
autoplay();
|
2371
2380
|
};
|
2372
2381
|
const swipeTo = (index, options = {}) => {
|
@@ -2469,9 +2478,9 @@ var stdin_default$1t = defineComponent({
|
|
2469
2478
|
};
|
2470
2479
|
}
|
2471
2480
|
});
|
2472
|
-
const Swipe = withInstall(stdin_default$
|
2481
|
+
const Swipe = withInstall(stdin_default$1w);
|
2473
2482
|
const [name$1k, bem$1g] = createNamespace("tabs");
|
2474
|
-
var stdin_default$
|
2483
|
+
var stdin_default$1v = defineComponent({
|
2475
2484
|
name: name$1k,
|
2476
2485
|
props: {
|
2477
2486
|
count: makeRequiredProp(Number),
|
@@ -2554,7 +2563,7 @@ const tabsProps = {
|
|
2554
2563
|
titleInactiveColor: String
|
2555
2564
|
};
|
2556
2565
|
const TABS_KEY = Symbol(name$1j);
|
2557
|
-
var stdin_default$
|
2566
|
+
var stdin_default$1u = defineComponent({
|
2558
2567
|
name: name$1j,
|
2559
2568
|
props: tabsProps,
|
2560
2569
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
@@ -2744,7 +2753,7 @@ var stdin_default$1r = defineComponent({
|
|
2744
2753
|
setCurrentIndex(index);
|
2745
2754
|
}
|
2746
2755
|
};
|
2747
|
-
const renderNav = () => children.map((item, index) => createVNode(stdin_default$
|
2756
|
+
const renderNav = () => children.map((item, index) => createVNode(stdin_default$1x, mergeProps({
|
2748
2757
|
"key": item.id,
|
2749
2758
|
"id": `${id}-${index}`,
|
2750
2759
|
"ref": setTitleRefs(index),
|
@@ -2860,7 +2869,7 @@ var stdin_default$1r = defineComponent({
|
|
2860
2869
|
"onScroll": onStickyScroll
|
2861
2870
|
}, {
|
2862
2871
|
default: () => [renderHeader()]
|
2863
|
-
}) : renderHeader(), createVNode(stdin_default$
|
2872
|
+
}) : renderHeader(), createVNode(stdin_default$1v, {
|
2864
2873
|
"ref": contentRef,
|
2865
2874
|
"count": children.length,
|
2866
2875
|
"inited": state.inited,
|
@@ -2881,7 +2890,7 @@ var stdin_default$1r = defineComponent({
|
|
2881
2890
|
const TAB_STATUS_KEY = Symbol();
|
2882
2891
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
2883
2892
|
const [name$1i, bem$1e] = createNamespace("swipe-item");
|
2884
|
-
var stdin_default$
|
2893
|
+
var stdin_default$1t = defineComponent({
|
2885
2894
|
name: name$1i,
|
2886
2895
|
setup(props, {
|
2887
2896
|
slots
|
@@ -2953,7 +2962,7 @@ var stdin_default$1q = defineComponent({
|
|
2953
2962
|
};
|
2954
2963
|
}
|
2955
2964
|
});
|
2956
|
-
const SwipeItem = withInstall(stdin_default$
|
2965
|
+
const SwipeItem = withInstall(stdin_default$1t);
|
2957
2966
|
const [name$1h, bem$1d] = createNamespace("tab");
|
2958
2967
|
const tabProps = extend({}, routeProps, {
|
2959
2968
|
dot: Boolean,
|
@@ -2965,7 +2974,7 @@ const tabProps = extend({}, routeProps, {
|
|
2965
2974
|
titleStyle: [String, Object],
|
2966
2975
|
showZeroBadge: truthProp
|
2967
2976
|
});
|
2968
|
-
var stdin_default$
|
2977
|
+
var stdin_default$1s = defineComponent({
|
2969
2978
|
name: name$1h,
|
2970
2979
|
props: tabProps,
|
2971
2980
|
setup(props, {
|
@@ -3064,14 +3073,15 @@ var stdin_default$1p = defineComponent({
|
|
3064
3073
|
};
|
3065
3074
|
}
|
3066
3075
|
});
|
3067
|
-
const Tab = withInstall(stdin_default$
|
3068
|
-
const Tabs = withInstall(stdin_default$
|
3076
|
+
const Tab = withInstall(stdin_default$1s);
|
3077
|
+
const Tabs = withInstall(stdin_default$1u);
|
3069
3078
|
const [name$1g, bem$1c] = createNamespace("picker-group");
|
3070
3079
|
const PICKER_GROUP_KEY = Symbol(name$1g);
|
3071
3080
|
const pickerGroupProps = extend({
|
3072
|
-
tabs: makeArrayProp()
|
3081
|
+
tabs: makeArrayProp(),
|
3082
|
+
nextStepText: String
|
3073
3083
|
}, pickerToolbarProps);
|
3074
|
-
var stdin_default$
|
3084
|
+
var stdin_default$1r = defineComponent({
|
3075
3085
|
name: name$1g,
|
3076
3086
|
props: pickerGroupProps,
|
3077
3087
|
emits: ["confirm", "cancel"],
|
@@ -3079,26 +3089,38 @@ var stdin_default$1o = defineComponent({
|
|
3079
3089
|
emit,
|
3080
3090
|
slots
|
3081
3091
|
}) {
|
3092
|
+
const activeTab = ref(0);
|
3082
3093
|
const {
|
3083
3094
|
children,
|
3084
3095
|
linkChildren
|
3085
3096
|
} = useChildren(PICKER_GROUP_KEY);
|
3086
3097
|
linkChildren();
|
3098
|
+
const showNextButton = () => activeTab.value < props.tabs.length - 1 && props.nextStepText;
|
3087
3099
|
const onConfirm = () => {
|
3088
|
-
|
3100
|
+
if (showNextButton()) {
|
3101
|
+
activeTab.value++;
|
3102
|
+
} else {
|
3103
|
+
emit("confirm", children.map((item) => item.confirm()));
|
3104
|
+
}
|
3089
3105
|
};
|
3090
3106
|
const onCancel = () => emit("cancel");
|
3091
3107
|
return () => {
|
3092
3108
|
var _a;
|
3093
3109
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3110
|
+
const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
|
3094
3111
|
return createVNode("div", {
|
3095
3112
|
"class": bem$1c()
|
3096
|
-
}, [createVNode(stdin_default$
|
3113
|
+
}, [createVNode(stdin_default$1z, {
|
3114
|
+
"title": props.title,
|
3115
|
+
"cancelButtonText": props.cancelButtonText,
|
3116
|
+
"confirmButtonText": confirmButtonText,
|
3097
3117
|
"onConfirm": onConfirm,
|
3098
3118
|
"onCancel": onCancel
|
3099
|
-
}
|
3100
|
-
"
|
3119
|
+
}, null), createVNode(Tabs, {
|
3120
|
+
"active": activeTab.value,
|
3121
|
+
"onUpdate:active": ($event) => activeTab.value = $event,
|
3101
3122
|
"class": bem$1c("tabs"),
|
3123
|
+
"shrink": true,
|
3102
3124
|
"animated": true
|
3103
3125
|
}, {
|
3104
3126
|
default: () => [props.tabs.map((title, index) => createVNode(Tab, {
|
@@ -3126,7 +3148,7 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3126
3148
|
toolbarPosition: makeStringProp("top"),
|
3127
3149
|
columnsFieldNames: Object
|
3128
3150
|
});
|
3129
|
-
var stdin_default$
|
3151
|
+
var stdin_default$1q = defineComponent({
|
3130
3152
|
name: name$1q,
|
3131
3153
|
props: pickerProps,
|
3132
3154
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
@@ -3202,7 +3224,7 @@ var stdin_default$1n = defineComponent({
|
|
3202
3224
|
return params;
|
3203
3225
|
};
|
3204
3226
|
const cancel = () => emit("cancel", getEventParams());
|
3205
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
3227
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1A, {
|
3206
3228
|
"value": selectedValues.value[columnIndex],
|
3207
3229
|
"fields": fields.value,
|
3208
3230
|
"options": options,
|
@@ -3246,7 +3268,7 @@ var stdin_default$1n = defineComponent({
|
|
3246
3268
|
};
|
3247
3269
|
const renderToolbar = () => {
|
3248
3270
|
if (props.showToolbar && !parent) {
|
3249
|
-
return createVNode(stdin_default$
|
3271
|
+
return createVNode(stdin_default$1z, mergeProps(pick(props, pickerToolbarPropKeys), {
|
3250
3272
|
"onConfirm": confirm,
|
3251
3273
|
"onCancel": cancel
|
3252
3274
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3381,7 +3403,7 @@ function formatDataForCascade({
|
|
3381
3403
|
}
|
3382
3404
|
return options;
|
3383
3405
|
}
|
3384
|
-
const Picker = withInstall(stdin_default$
|
3406
|
+
const Picker = withInstall(stdin_default$1q);
|
3385
3407
|
const [name$1f, bem$1b] = createNamespace("area");
|
3386
3408
|
const areaProps = extend({}, pickerSharedProps, {
|
3387
3409
|
modelValue: String,
|
@@ -3392,7 +3414,7 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3392
3414
|
default: () => ({})
|
3393
3415
|
}
|
3394
3416
|
});
|
3395
|
-
var stdin_default$
|
3417
|
+
var stdin_default$1p = defineComponent({
|
3396
3418
|
name: name$1f,
|
3397
3419
|
props: areaProps,
|
3398
3420
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
@@ -3448,7 +3470,7 @@ var stdin_default$1m = defineComponent({
|
|
3448
3470
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3449
3471
|
}
|
3450
3472
|
});
|
3451
|
-
const Area = withInstall(stdin_default$
|
3473
|
+
const Area = withInstall(stdin_default$1p);
|
3452
3474
|
const [name$1e, bem$1a] = createNamespace("cell");
|
3453
3475
|
const cellSharedProps = {
|
3454
3476
|
tag: makeStringProp("div"),
|
@@ -3473,7 +3495,7 @@ const cellSharedProps = {
|
|
3473
3495
|
}
|
3474
3496
|
};
|
3475
3497
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3476
|
-
var stdin_default$
|
3498
|
+
var stdin_default$1o = defineComponent({
|
3477
3499
|
name: name$1e,
|
3478
3500
|
props: cellProps,
|
3479
3501
|
setup(props, {
|
@@ -3568,7 +3590,7 @@ var stdin_default$1l = defineComponent({
|
|
3568
3590
|
};
|
3569
3591
|
}
|
3570
3592
|
});
|
3571
|
-
const Cell = withInstall(stdin_default$
|
3593
|
+
const Cell = withInstall(stdin_default$1o);
|
3572
3594
|
const [name$1d, bem$19] = createNamespace("form");
|
3573
3595
|
const formProps = {
|
3574
3596
|
colon: Boolean,
|
@@ -3588,7 +3610,7 @@ const formProps = {
|
|
3588
3610
|
default: "onBlur"
|
3589
3611
|
}
|
3590
3612
|
};
|
3591
|
-
var stdin_default$
|
3613
|
+
var stdin_default$1n = defineComponent({
|
3592
3614
|
name: name$1d,
|
3593
3615
|
props: formProps,
|
3594
3616
|
emits: ["submit", "failed"],
|
@@ -3721,7 +3743,7 @@ var stdin_default$1k = defineComponent({
|
|
3721
3743
|
};
|
3722
3744
|
}
|
3723
3745
|
});
|
3724
|
-
const Form = withInstall(stdin_default$
|
3746
|
+
const Form = withInstall(stdin_default$1n);
|
3725
3747
|
function isEmptyValue(value) {
|
3726
3748
|
if (Array.isArray(value)) {
|
3727
3749
|
return !value.length;
|
@@ -3857,7 +3879,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3857
3879
|
default: null
|
3858
3880
|
}
|
3859
3881
|
});
|
3860
|
-
var stdin_default$
|
3882
|
+
var stdin_default$1m = defineComponent({
|
3861
3883
|
name: name$1c,
|
3862
3884
|
props: fieldProps,
|
3863
3885
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
@@ -4305,7 +4327,7 @@ var stdin_default$1j = defineComponent({
|
|
4305
4327
|
};
|
4306
4328
|
}
|
4307
4329
|
});
|
4308
|
-
const Field = withInstall(stdin_default$
|
4330
|
+
const Field = withInstall(stdin_default$1m);
|
4309
4331
|
let lockCount = 0;
|
4310
4332
|
function lockClick(lock) {
|
4311
4333
|
if (lock) {
|
@@ -4343,7 +4365,7 @@ const toastProps = {
|
|
4343
4365
|
closeOnClick: Boolean,
|
4344
4366
|
closeOnClickOverlay: Boolean
|
4345
4367
|
};
|
4346
|
-
var stdin_default$
|
4368
|
+
var stdin_default$1l = defineComponent({
|
4347
4369
|
name: name$1b,
|
4348
4370
|
props: toastProps,
|
4349
4371
|
emits: ["update:show"],
|
@@ -4525,7 +4547,7 @@ function createInstance() {
|
|
4525
4547
|
onClosed,
|
4526
4548
|
"onUpdate:show": toggle
|
4527
4549
|
};
|
4528
|
-
return createVNode(stdin_default$
|
4550
|
+
return createVNode(stdin_default$1l, mergeProps(state, attrs), null);
|
4529
4551
|
};
|
4530
4552
|
watch(message, (val) => {
|
4531
4553
|
state.message = val;
|
@@ -4595,7 +4617,7 @@ const resetToastDefaultOptions = (type) => {
|
|
4595
4617
|
const allowMultipleToast = (value = true) => {
|
4596
4618
|
allowMultiple = value;
|
4597
4619
|
};
|
4598
|
-
const Toast = withInstall(stdin_default$
|
4620
|
+
const Toast = withInstall(stdin_default$1l);
|
4599
4621
|
const [name$1a, bem$16] = createNamespace("switch");
|
4600
4622
|
const switchProps = {
|
4601
4623
|
size: numericProp,
|
@@ -4613,7 +4635,7 @@ const switchProps = {
|
|
4613
4635
|
default: false
|
4614
4636
|
}
|
4615
4637
|
};
|
4616
|
-
var stdin_default$
|
4638
|
+
var stdin_default$1k = defineComponent({
|
4617
4639
|
name: name$1a,
|
4618
4640
|
props: switchProps,
|
4619
4641
|
emits: ["change", "update:modelValue"],
|
@@ -4673,10 +4695,10 @@ var stdin_default$1h = defineComponent({
|
|
4673
4695
|
};
|
4674
4696
|
}
|
4675
4697
|
});
|
4676
|
-
const Switch = withInstall(stdin_default$
|
4698
|
+
const Switch = withInstall(stdin_default$1k);
|
4677
4699
|
const [name$19, bem$15] = createNamespace("address-edit-detail");
|
4678
4700
|
const t$i = createNamespace("address-edit")[2];
|
4679
|
-
var stdin_default$
|
4701
|
+
var stdin_default$1j = defineComponent({
|
4680
4702
|
name: name$19,
|
4681
4703
|
props: {
|
4682
4704
|
show: Boolean,
|
@@ -4782,7 +4804,7 @@ const addressEditProps = {
|
|
4782
4804
|
default: isMobile
|
4783
4805
|
}
|
4784
4806
|
};
|
4785
|
-
var stdin_default$
|
4807
|
+
var stdin_default$1i = defineComponent({
|
4786
4808
|
name: name$18,
|
4787
4809
|
props: addressEditProps,
|
4788
4810
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
@@ -4957,7 +4979,7 @@ var stdin_default$1f = defineComponent({
|
|
4957
4979
|
emit("clickArea");
|
4958
4980
|
showAreaPopup.value = !disableArea;
|
4959
4981
|
}
|
4960
|
-
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$
|
4982
|
+
}, null), [[vShow, props.showArea]]), createVNode(stdin_default$1j, {
|
4961
4983
|
"show": props.showDetail,
|
4962
4984
|
"rows": props.detailRows,
|
4963
4985
|
"rules": rules.value.addressDetail,
|
@@ -5013,7 +5035,7 @@ var stdin_default$1f = defineComponent({
|
|
5013
5035
|
};
|
5014
5036
|
}
|
5015
5037
|
});
|
5016
|
-
const AddressEdit = withInstall(stdin_default$
|
5038
|
+
const AddressEdit = withInstall(stdin_default$1i);
|
5017
5039
|
const [name$17, bem$13] = createNamespace("radio-group");
|
5018
5040
|
const radioGroupProps = {
|
5019
5041
|
disabled: Boolean,
|
@@ -5023,7 +5045,7 @@ const radioGroupProps = {
|
|
5023
5045
|
checkedColor: String
|
5024
5046
|
};
|
5025
5047
|
const RADIO_KEY = Symbol(name$17);
|
5026
|
-
var stdin_default$
|
5048
|
+
var stdin_default$1h = defineComponent({
|
5027
5049
|
name: name$17,
|
5028
5050
|
props: radioGroupProps,
|
5029
5051
|
emits: ["change", "update:modelValue"],
|
@@ -5050,7 +5072,7 @@ var stdin_default$1e = defineComponent({
|
|
5050
5072
|
};
|
5051
5073
|
}
|
5052
5074
|
});
|
5053
|
-
const RadioGroup = withInstall(stdin_default$
|
5075
|
+
const RadioGroup = withInstall(stdin_default$1h);
|
5054
5076
|
const [name$16, bem$12] = createNamespace("tag");
|
5055
5077
|
const tagProps = {
|
5056
5078
|
size: String,
|
@@ -5063,7 +5085,7 @@ const tagProps = {
|
|
5063
5085
|
textColor: String,
|
5064
5086
|
closeable: Boolean
|
5065
5087
|
};
|
5066
|
-
var stdin_default$
|
5088
|
+
var stdin_default$1g = defineComponent({
|
5067
5089
|
name: name$16,
|
5068
5090
|
props: tagProps,
|
5069
5091
|
emits: ["close"],
|
@@ -5122,7 +5144,7 @@ var stdin_default$1d = defineComponent({
|
|
5122
5144
|
});
|
5123
5145
|
}
|
5124
5146
|
});
|
5125
|
-
const Tag = withInstall(stdin_default$
|
5147
|
+
const Tag = withInstall(stdin_default$1g);
|
5126
5148
|
const checkerProps = {
|
5127
5149
|
name: unknownProp,
|
5128
5150
|
shape: makeStringProp("round"),
|
@@ -5133,7 +5155,7 @@ const checkerProps = {
|
|
5133
5155
|
labelPosition: String,
|
5134
5156
|
labelDisabled: Boolean
|
5135
5157
|
};
|
5136
|
-
var stdin_default$
|
5158
|
+
var stdin_default$1f = defineComponent({
|
5137
5159
|
props: extend({}, checkerProps, {
|
5138
5160
|
bem: makeRequiredProp(Function),
|
5139
5161
|
role: String,
|
@@ -5224,7 +5246,7 @@ var stdin_default$1c = defineComponent({
|
|
5224
5246
|
});
|
5225
5247
|
const radioProps = checkerProps;
|
5226
5248
|
const [name$15, bem$11] = createNamespace("radio");
|
5227
|
-
var stdin_default$
|
5249
|
+
var stdin_default$1e = defineComponent({
|
5228
5250
|
name: name$15,
|
5229
5251
|
props: checkerProps,
|
5230
5252
|
emits: ["update:modelValue"],
|
@@ -5246,7 +5268,7 @@ var stdin_default$1b = defineComponent({
|
|
5246
5268
|
emit("update:modelValue", props.name);
|
5247
5269
|
}
|
5248
5270
|
};
|
5249
|
-
return () => createVNode(stdin_default$
|
5271
|
+
return () => createVNode(stdin_default$1f, mergeProps({
|
5250
5272
|
"bem": bem$11,
|
5251
5273
|
"role": "radio",
|
5252
5274
|
"parent": parent,
|
@@ -5255,9 +5277,9 @@ var stdin_default$1b = defineComponent({
|
|
5255
5277
|
}, props), pick(slots, ["default", "icon"]));
|
5256
5278
|
}
|
5257
5279
|
});
|
5258
|
-
const Radio = withInstall(stdin_default$
|
5280
|
+
const Radio = withInstall(stdin_default$1e);
|
5259
5281
|
const [name$14, bem$10] = createNamespace("address-item");
|
5260
|
-
var stdin_default$
|
5282
|
+
var stdin_default$1d = defineComponent({
|
5261
5283
|
name: name$14,
|
5262
5284
|
props: {
|
5263
5285
|
address: makeRequiredProp(Object),
|
@@ -5352,7 +5374,7 @@ const addressListProps = {
|
|
5352
5374
|
addButtonText: String,
|
5353
5375
|
defaultTagText: String
|
5354
5376
|
};
|
5355
|
-
var stdin_default$
|
5377
|
+
var stdin_default$1c = defineComponent({
|
5356
5378
|
name: name$13,
|
5357
5379
|
props: addressListProps,
|
5358
5380
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
@@ -5369,7 +5391,7 @@ var stdin_default$19 = defineComponent({
|
|
5369
5391
|
emit("update:modelValue", item.id);
|
5370
5392
|
}
|
5371
5393
|
};
|
5372
|
-
return createVNode(stdin_default$
|
5394
|
+
return createVNode(stdin_default$1d, {
|
5373
5395
|
"key": item.id,
|
5374
5396
|
"address": item,
|
5375
5397
|
"disabled": disabled,
|
@@ -5415,7 +5437,7 @@ var stdin_default$19 = defineComponent({
|
|
5415
5437
|
};
|
5416
5438
|
}
|
5417
5439
|
});
|
5418
|
-
const AddressList = withInstall(stdin_default$
|
5440
|
+
const AddressList = withInstall(stdin_default$1c);
|
5419
5441
|
const hasIntersectionObserver = inBrowser$1 && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5420
5442
|
const modeType = {
|
5421
5443
|
event: "event",
|
@@ -5574,12 +5596,13 @@ const backTopProps = {
|
|
5574
5596
|
bottom: numericProp,
|
5575
5597
|
target: [String, Object],
|
5576
5598
|
offset: makeNumericProp(200),
|
5599
|
+
immediate: Boolean,
|
5577
5600
|
teleport: {
|
5578
5601
|
type: [String, Object],
|
5579
5602
|
default: "body"
|
5580
5603
|
}
|
5581
5604
|
};
|
5582
|
-
var stdin_default$
|
5605
|
+
var stdin_default$1b = defineComponent({
|
5583
5606
|
name: name$12,
|
5584
5607
|
inheritAttrs: false,
|
5585
5608
|
props: backTopProps,
|
@@ -5601,7 +5624,7 @@ var stdin_default$18 = defineComponent({
|
|
5601
5624
|
emit("click", event);
|
5602
5625
|
(_a = scrollParent.value) == null ? void 0 : _a.scrollTo({
|
5603
5626
|
top: 0,
|
5604
|
-
behavior: "smooth"
|
5627
|
+
behavior: props.immediate ? "auto" : "smooth"
|
5605
5628
|
});
|
5606
5629
|
};
|
5607
5630
|
const scroll = () => {
|
@@ -5659,7 +5682,7 @@ var stdin_default$18 = defineComponent({
|
|
5659
5682
|
};
|
5660
5683
|
}
|
5661
5684
|
});
|
5662
|
-
const BackTop = withInstall(stdin_default$
|
5685
|
+
const BackTop = withInstall(stdin_default$1b);
|
5663
5686
|
const [name$11, bem$Z, t$f] = createNamespace("calendar");
|
5664
5687
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5665
5688
|
function compareMonth(date1, date2) {
|
@@ -5742,7 +5765,7 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
5742
5765
|
return value;
|
5743
5766
|
});
|
5744
5767
|
const [name$10] = createNamespace("calendar-day");
|
5745
|
-
var stdin_default$
|
5768
|
+
var stdin_default$1a = defineComponent({
|
5746
5769
|
name: name$10,
|
5747
5770
|
props: {
|
5748
5771
|
item: makeRequiredProp(Object),
|
@@ -5880,7 +5903,7 @@ const calendarMonthProps = {
|
|
5880
5903
|
showMonthTitle: Boolean,
|
5881
5904
|
firstDayOfWeek: Number
|
5882
5905
|
};
|
5883
|
-
var stdin_default$
|
5906
|
+
var stdin_default$19 = defineComponent({
|
5884
5907
|
name: name$$,
|
5885
5908
|
props: calendarMonthProps,
|
5886
5909
|
emits: ["click"],
|
@@ -5987,7 +6010,10 @@ var stdin_default$16 = defineComponent({
|
|
5987
6010
|
if (props.showMonthTitle) {
|
5988
6011
|
return createVNode("div", {
|
5989
6012
|
"class": bem$Z("month-title")
|
5990
|
-
}, [title
|
6013
|
+
}, [slots["month-title"] ? slots["month-title"]({
|
6014
|
+
date: props.date,
|
6015
|
+
text: title.value
|
6016
|
+
}) : title.value]);
|
5991
6017
|
}
|
5992
6018
|
};
|
5993
6019
|
const renderMark = () => {
|
@@ -6033,7 +6059,7 @@ var stdin_default$16 = defineComponent({
|
|
6033
6059
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
6034
6060
|
}
|
6035
6061
|
};
|
6036
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
6062
|
+
const renderDay = (item, index) => createVNode(stdin_default$1a, {
|
6037
6063
|
"item": item,
|
6038
6064
|
"index": index,
|
6039
6065
|
"color": props.color,
|
@@ -6060,7 +6086,7 @@ var stdin_default$16 = defineComponent({
|
|
6060
6086
|
}
|
6061
6087
|
});
|
6062
6088
|
const [name$_] = createNamespace("calendar-header");
|
6063
|
-
var stdin_default$
|
6089
|
+
var stdin_default$18 = defineComponent({
|
6064
6090
|
name: name$_,
|
6065
6091
|
props: {
|
6066
6092
|
date: Date,
|
@@ -6161,7 +6187,7 @@ const calendarProps = {
|
|
6161
6187
|
validator: (val) => val >= 0 && val <= 6
|
6162
6188
|
}
|
6163
6189
|
};
|
6164
|
-
var stdin_default$
|
6190
|
+
var stdin_default$17 = defineComponent({
|
6165
6191
|
name: name$11,
|
6166
6192
|
props: calendarProps,
|
6167
6193
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
@@ -6425,7 +6451,7 @@ var stdin_default$14 = defineComponent({
|
|
6425
6451
|
const updateShow = (value) => emit("update:show", value);
|
6426
6452
|
const renderMonth = (date, index) => {
|
6427
6453
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
6428
|
-
return createVNode(stdin_default$
|
6454
|
+
return createVNode(stdin_default$19, mergeProps({
|
6429
6455
|
"ref": setMonthRefs(index),
|
6430
6456
|
"date": date,
|
6431
6457
|
"currentDate": currentDate.value,
|
@@ -6433,7 +6459,7 @@ var stdin_default$14 = defineComponent({
|
|
6433
6459
|
"firstDayOfWeek": dayOffset.value
|
6434
6460
|
}, pick(props, ["type", "color", "minDate", "maxDate", "showMark", "formatter", "rowHeight", "lazyRender", "showSubtitle", "allowSameDay"]), {
|
6435
6461
|
"onClick": onClickDay
|
6436
|
-
}), pick(slots, ["top-info", "bottom-info"]));
|
6462
|
+
}), pick(slots, ["top-info", "bottom-info", "month-title"]));
|
6437
6463
|
};
|
6438
6464
|
const renderFooterButton = () => {
|
6439
6465
|
if (slots.footer) {
|
@@ -6466,7 +6492,7 @@ var stdin_default$14 = defineComponent({
|
|
6466
6492
|
}, [renderFooterButton()]);
|
6467
6493
|
const renderCalendar = () => createVNode("div", {
|
6468
6494
|
"class": bem$Z()
|
6469
|
-
}, [createVNode(stdin_default$
|
6495
|
+
}, [createVNode(stdin_default$18, {
|
6470
6496
|
"date": subtitle.value.date,
|
6471
6497
|
"title": props.title,
|
6472
6498
|
"subtitle": subtitle.value.text,
|
@@ -6512,7 +6538,7 @@ var stdin_default$14 = defineComponent({
|
|
6512
6538
|
};
|
6513
6539
|
}
|
6514
6540
|
});
|
6515
|
-
const Calendar = withInstall(stdin_default$
|
6541
|
+
const Calendar = withInstall(stdin_default$17);
|
6516
6542
|
const [name$Z, bem$Y] = createNamespace("image");
|
6517
6543
|
const imageProps = {
|
6518
6544
|
src: String,
|
@@ -6532,7 +6558,7 @@ const imageProps = {
|
|
6532
6558
|
showLoading: truthProp,
|
6533
6559
|
loadingIcon: makeStringProp("photo")
|
6534
6560
|
};
|
6535
|
-
var stdin_default$
|
6561
|
+
var stdin_default$16 = defineComponent({
|
6536
6562
|
name: name$Z,
|
6537
6563
|
props: imageProps,
|
6538
6564
|
emits: ["load", "error"],
|
@@ -6676,7 +6702,7 @@ var stdin_default$13 = defineComponent({
|
|
6676
6702
|
};
|
6677
6703
|
}
|
6678
6704
|
});
|
6679
|
-
const Image$1 = withInstall(stdin_default$
|
6705
|
+
const Image$1 = withInstall(stdin_default$16);
|
6680
6706
|
const [name$Y, bem$X] = createNamespace("card");
|
6681
6707
|
const cardProps = {
|
6682
6708
|
tag: String,
|
@@ -6691,7 +6717,7 @@ const cardProps = {
|
|
6691
6717
|
thumbLink: String,
|
6692
6718
|
originPrice: numericProp
|
6693
6719
|
};
|
6694
|
-
var stdin_default$
|
6720
|
+
var stdin_default$15 = defineComponent({
|
6695
6721
|
name: name$Y,
|
6696
6722
|
props: cardProps,
|
6697
6723
|
emits: ["clickThumb"],
|
@@ -6795,7 +6821,7 @@ var stdin_default$12 = defineComponent({
|
|
6795
6821
|
};
|
6796
6822
|
}
|
6797
6823
|
});
|
6798
|
-
const Card = withInstall(stdin_default$
|
6824
|
+
const Card = withInstall(stdin_default$15);
|
6799
6825
|
const [name$X, bem$W, t$e] = createNamespace("cascader");
|
6800
6826
|
const cascaderProps = {
|
6801
6827
|
title: String,
|
@@ -6809,7 +6835,7 @@ const cascaderProps = {
|
|
6809
6835
|
placeholder: String,
|
6810
6836
|
activeColor: String
|
6811
6837
|
};
|
6812
|
-
var stdin_default$
|
6838
|
+
var stdin_default$14 = defineComponent({
|
6813
6839
|
name: name$X,
|
6814
6840
|
props: cascaderProps,
|
6815
6841
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
@@ -7014,14 +7040,14 @@ var stdin_default$11 = defineComponent({
|
|
7014
7040
|
}, [renderHeader(), renderTabs()]);
|
7015
7041
|
}
|
7016
7042
|
});
|
7017
|
-
const Cascader = withInstall(stdin_default$
|
7043
|
+
const Cascader = withInstall(stdin_default$14);
|
7018
7044
|
const [name$W, bem$V] = createNamespace("cell-group");
|
7019
7045
|
const cellGroupProps = {
|
7020
7046
|
title: String,
|
7021
7047
|
inset: Boolean,
|
7022
7048
|
border: truthProp
|
7023
7049
|
};
|
7024
|
-
var stdin_default$
|
7050
|
+
var stdin_default$13 = defineComponent({
|
7025
7051
|
name: name$W,
|
7026
7052
|
inheritAttrs: false,
|
7027
7053
|
props: cellGroupProps,
|
@@ -7052,7 +7078,7 @@ var stdin_default$10 = defineComponent({
|
|
7052
7078
|
};
|
7053
7079
|
}
|
7054
7080
|
});
|
7055
|
-
const CellGroup = withInstall(stdin_default$
|
7081
|
+
const CellGroup = withInstall(stdin_default$13);
|
7056
7082
|
const [name$V, bem$U] = createNamespace("checkbox-group");
|
7057
7083
|
const checkboxGroupProps = {
|
7058
7084
|
max: numericProp,
|
@@ -7063,7 +7089,7 @@ const checkboxGroupProps = {
|
|
7063
7089
|
checkedColor: String
|
7064
7090
|
};
|
7065
7091
|
const CHECKBOX_GROUP_KEY = Symbol(name$V);
|
7066
|
-
var stdin_default
|
7092
|
+
var stdin_default$12 = defineComponent({
|
7067
7093
|
name: name$V,
|
7068
7094
|
props: checkboxGroupProps,
|
7069
7095
|
emits: ["change", "update:modelValue"],
|
@@ -7119,7 +7145,7 @@ const [name$U, bem$T] = createNamespace("checkbox");
|
|
7119
7145
|
const checkboxProps = extend({}, checkerProps, {
|
7120
7146
|
bindGroup: truthProp
|
7121
7147
|
});
|
7122
|
-
var stdin_default$
|
7148
|
+
var stdin_default$11 = defineComponent({
|
7123
7149
|
name: name$U,
|
7124
7150
|
props: checkboxProps,
|
7125
7151
|
emits: ["change", "update:modelValue"],
|
@@ -7177,7 +7203,7 @@ var stdin_default$_ = defineComponent({
|
|
7177
7203
|
checked
|
7178
7204
|
});
|
7179
7205
|
useCustomFieldValue(() => props.modelValue);
|
7180
|
-
return () => createVNode(stdin_default$
|
7206
|
+
return () => createVNode(stdin_default$1f, mergeProps({
|
7181
7207
|
"bem": bem$T,
|
7182
7208
|
"role": "checkbox",
|
7183
7209
|
"parent": parent,
|
@@ -7186,8 +7212,8 @@ var stdin_default$_ = defineComponent({
|
|
7186
7212
|
}, props), pick(slots, ["default", "icon"]));
|
7187
7213
|
}
|
7188
7214
|
});
|
7189
|
-
const Checkbox = withInstall(stdin_default$
|
7190
|
-
const CheckboxGroup = withInstall(stdin_default
|
7215
|
+
const Checkbox = withInstall(stdin_default$11);
|
7216
|
+
const CheckboxGroup = withInstall(stdin_default$12);
|
7191
7217
|
const [name$T, bem$S] = createNamespace("circle");
|
7192
7218
|
let uid = 0;
|
7193
7219
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
@@ -7209,7 +7235,7 @@ const circleProps = {
|
|
7209
7235
|
strokeLinecap: String,
|
7210
7236
|
startPosition: makeStringProp("top")
|
7211
7237
|
};
|
7212
|
-
var stdin_default$
|
7238
|
+
var stdin_default$10 = defineComponent({
|
7213
7239
|
name: name$T,
|
7214
7240
|
props: circleProps,
|
7215
7241
|
emits: ["update:currentRate"],
|
@@ -7333,7 +7359,7 @@ var stdin_default$Z = defineComponent({
|
|
7333
7359
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7334
7360
|
}
|
7335
7361
|
});
|
7336
|
-
const Circle = withInstall(stdin_default$
|
7362
|
+
const Circle = withInstall(stdin_default$10);
|
7337
7363
|
const [name$S, bem$R] = createNamespace("row");
|
7338
7364
|
const ROW_KEY = Symbol(name$S);
|
7339
7365
|
const rowProps = {
|
@@ -7343,7 +7369,7 @@ const rowProps = {
|
|
7343
7369
|
gutter: makeNumericProp(0),
|
7344
7370
|
justify: String
|
7345
7371
|
};
|
7346
|
-
var stdin_default
|
7372
|
+
var stdin_default$$ = defineComponent({
|
7347
7373
|
name: name$S,
|
7348
7374
|
props: rowProps,
|
7349
7375
|
setup(props, {
|
@@ -7423,7 +7449,7 @@ const colProps = {
|
|
7423
7449
|
span: makeNumericProp(0),
|
7424
7450
|
offset: numericProp
|
7425
7451
|
};
|
7426
|
-
var stdin_default$
|
7452
|
+
var stdin_default$_ = defineComponent({
|
7427
7453
|
name: name$R,
|
7428
7454
|
props: colProps,
|
7429
7455
|
setup(props, {
|
@@ -7472,7 +7498,7 @@ var stdin_default$X = defineComponent({
|
|
7472
7498
|
};
|
7473
7499
|
}
|
7474
7500
|
});
|
7475
|
-
const Col = withInstall(stdin_default$
|
7501
|
+
const Col = withInstall(stdin_default$_);
|
7476
7502
|
const [name$Q, bem$P] = createNamespace("collapse");
|
7477
7503
|
const COLLAPSE_KEY = Symbol(name$Q);
|
7478
7504
|
const collapseProps = {
|
@@ -7494,7 +7520,7 @@ function validateModelValue(modelValue, accordion) {
|
|
7494
7520
|
}
|
7495
7521
|
return true;
|
7496
7522
|
}
|
7497
|
-
var stdin_default$
|
7523
|
+
var stdin_default$Z = defineComponent({
|
7498
7524
|
name: name$Q,
|
7499
7525
|
props: collapseProps,
|
7500
7526
|
emits: ["change", "update:modelValue"],
|
@@ -7572,7 +7598,7 @@ var stdin_default$W = defineComponent({
|
|
7572
7598
|
};
|
7573
7599
|
}
|
7574
7600
|
});
|
7575
|
-
const Collapse = withInstall(stdin_default$
|
7601
|
+
const Collapse = withInstall(stdin_default$Z);
|
7576
7602
|
const [name$P, bem$O] = createNamespace("collapse-item");
|
7577
7603
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
7578
7604
|
const collapseItemProps = extend({}, cellSharedProps, {
|
@@ -7582,7 +7608,7 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7582
7608
|
readonly: Boolean,
|
7583
7609
|
lazyRender: truthProp
|
7584
7610
|
});
|
7585
|
-
var stdin_default$
|
7611
|
+
var stdin_default$Y = defineComponent({
|
7586
7612
|
name: name$P,
|
7587
7613
|
props: collapseItemProps,
|
7588
7614
|
setup(props, {
|
@@ -7697,8 +7723,8 @@ var stdin_default$V = defineComponent({
|
|
7697
7723
|
}, [renderTitle(), renderContent()]);
|
7698
7724
|
}
|
7699
7725
|
});
|
7700
|
-
const CollapseItem = withInstall(stdin_default$
|
7701
|
-
const ConfigProvider = withInstall(stdin_default$
|
7726
|
+
const CollapseItem = withInstall(stdin_default$Y);
|
7727
|
+
const ConfigProvider = withInstall(stdin_default$1J);
|
7702
7728
|
const [name$O, bem$N, t$d] = createNamespace("contact-card");
|
7703
7729
|
const contactCardProps = {
|
7704
7730
|
tel: String,
|
@@ -7707,7 +7733,7 @@ const contactCardProps = {
|
|
7707
7733
|
addText: String,
|
7708
7734
|
editable: truthProp
|
7709
7735
|
};
|
7710
|
-
var stdin_default$
|
7736
|
+
var stdin_default$X = defineComponent({
|
7711
7737
|
name: name$O,
|
7712
7738
|
props: contactCardProps,
|
7713
7739
|
emits: ["click"],
|
@@ -7738,7 +7764,7 @@ var stdin_default$U = defineComponent({
|
|
7738
7764
|
});
|
7739
7765
|
}
|
7740
7766
|
});
|
7741
|
-
const ContactCard = withInstall(stdin_default$
|
7767
|
+
const ContactCard = withInstall(stdin_default$X);
|
7742
7768
|
const [name$N, bem$M, t$c] = createNamespace("contact-edit");
|
7743
7769
|
const DEFAULT_CONTACT = {
|
7744
7770
|
tel: "",
|
@@ -7759,7 +7785,7 @@ const contactEditProps = {
|
|
7759
7785
|
default: isMobile
|
7760
7786
|
}
|
7761
7787
|
};
|
7762
|
-
var stdin_default$
|
7788
|
+
var stdin_default$W = defineComponent({
|
7763
7789
|
name: name$N,
|
7764
7790
|
props: contactEditProps,
|
7765
7791
|
emits: ["save", "delete", "changeDefault"],
|
@@ -7840,7 +7866,7 @@ var stdin_default$T = defineComponent({
|
|
7840
7866
|
});
|
7841
7867
|
}
|
7842
7868
|
});
|
7843
|
-
const ContactEdit = withInstall(stdin_default$
|
7869
|
+
const ContactEdit = withInstall(stdin_default$W);
|
7844
7870
|
const [name$M, bem$L, t$b] = createNamespace("contact-list");
|
7845
7871
|
const contactListProps = {
|
7846
7872
|
list: Array,
|
@@ -7848,7 +7874,7 @@ const contactListProps = {
|
|
7848
7874
|
modelValue: unknownProp,
|
7849
7875
|
defaultTagText: String
|
7850
7876
|
};
|
7851
|
-
var stdin_default$
|
7877
|
+
var stdin_default$V = defineComponent({
|
7852
7878
|
name: name$M,
|
7853
7879
|
props: contactListProps,
|
7854
7880
|
emits: ["add", "edit", "select", "update:modelValue"],
|
@@ -7918,7 +7944,7 @@ var stdin_default$S = defineComponent({
|
|
7918
7944
|
}, null)])]);
|
7919
7945
|
}
|
7920
7946
|
});
|
7921
|
-
const ContactList = withInstall(stdin_default$
|
7947
|
+
const ContactList = withInstall(stdin_default$V);
|
7922
7948
|
function parseFormat(format2, currentTime) {
|
7923
7949
|
const { days } = currentTime;
|
7924
7950
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -7961,7 +7987,7 @@ const countDownProps = {
|
|
7961
7987
|
autoStart: truthProp,
|
7962
7988
|
millisecond: Boolean
|
7963
7989
|
};
|
7964
|
-
var stdin_default$
|
7990
|
+
var stdin_default$U = defineComponent({
|
7965
7991
|
name: name$L,
|
7966
7992
|
props: countDownProps,
|
7967
7993
|
emits: ["change", "finish"],
|
@@ -8001,7 +8027,7 @@ var stdin_default$R = defineComponent({
|
|
8001
8027
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8002
8028
|
}
|
8003
8029
|
});
|
8004
|
-
const CountDown = withInstall(stdin_default$
|
8030
|
+
const CountDown = withInstall(stdin_default$U);
|
8005
8031
|
function getDate(timeStamp) {
|
8006
8032
|
const date = new Date(timeStamp * 1e3);
|
8007
8033
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8011,7 +8037,7 @@ function getDate(timeStamp) {
|
|
8011
8037
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8012
8038
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8013
8039
|
const [name$K, bem$J, t$a] = createNamespace("coupon");
|
8014
|
-
var stdin_default$
|
8040
|
+
var stdin_default$T = defineComponent({
|
8015
8041
|
name: name$K,
|
8016
8042
|
props: {
|
8017
8043
|
chosen: Boolean,
|
@@ -8082,7 +8108,7 @@ var stdin_default$Q = defineComponent({
|
|
8082
8108
|
};
|
8083
8109
|
}
|
8084
8110
|
});
|
8085
|
-
const Coupon = withInstall(stdin_default$
|
8111
|
+
const Coupon = withInstall(stdin_default$T);
|
8086
8112
|
const [name$J, bem$I, t$9] = createNamespace("coupon-cell");
|
8087
8113
|
const couponCellProps = {
|
8088
8114
|
title: String,
|
@@ -8111,7 +8137,7 @@ function formatValue({
|
|
8111
8137
|
}
|
8112
8138
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
8113
8139
|
}
|
8114
|
-
var stdin_default$
|
8140
|
+
var stdin_default$S = defineComponent({
|
8115
8141
|
name: name$J,
|
8116
8142
|
props: couponCellProps,
|
8117
8143
|
setup(props) {
|
@@ -8130,14 +8156,14 @@ var stdin_default$P = defineComponent({
|
|
8130
8156
|
};
|
8131
8157
|
}
|
8132
8158
|
});
|
8133
|
-
const CouponCell = withInstall(stdin_default$
|
8159
|
+
const CouponCell = withInstall(stdin_default$S);
|
8134
8160
|
const [name$I, bem$H] = createNamespace("empty");
|
8135
8161
|
const emptyProps = {
|
8136
8162
|
image: makeStringProp("default"),
|
8137
8163
|
imageSize: [Number, String, Array],
|
8138
8164
|
description: String
|
8139
8165
|
};
|
8140
|
-
var stdin_default$
|
8166
|
+
var stdin_default$R = defineComponent({
|
8141
8167
|
name: name$I,
|
8142
8168
|
props: emptyProps,
|
8143
8169
|
setup(props, {
|
@@ -8446,7 +8472,7 @@ var stdin_default$O = defineComponent({
|
|
8446
8472
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8447
8473
|
}
|
8448
8474
|
});
|
8449
|
-
const Empty = withInstall(stdin_default$
|
8475
|
+
const Empty = withInstall(stdin_default$R);
|
8450
8476
|
const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
8451
8477
|
const couponListProps = {
|
8452
8478
|
code: makeStringProp(""),
|
@@ -8468,7 +8494,7 @@ const couponListProps = {
|
|
8468
8494
|
exchangeButtonLoading: Boolean,
|
8469
8495
|
exchangeButtonDisabled: Boolean
|
8470
8496
|
};
|
8471
|
-
var stdin_default$
|
8497
|
+
var stdin_default$Q = defineComponent({
|
8472
8498
|
name: name$H,
|
8473
8499
|
props: couponListProps,
|
8474
8500
|
emits: ["change", "exchange", "update:code"],
|
@@ -8619,7 +8645,7 @@ var stdin_default$N = defineComponent({
|
|
8619
8645
|
}, null), [[vShow, props.showCloseButton]])])]);
|
8620
8646
|
}
|
8621
8647
|
});
|
8622
|
-
const CouponList = withInstall(stdin_default$
|
8648
|
+
const CouponList = withInstall(stdin_default$Q);
|
8623
8649
|
const currentYear = new Date().getFullYear();
|
8624
8650
|
const [name$G] = createNamespace("date-picker");
|
8625
8651
|
const datePickerProps = extend({}, sharedProps, {
|
@@ -8638,7 +8664,7 @@ const datePickerProps = extend({}, sharedProps, {
|
|
8638
8664
|
validator: isDate
|
8639
8665
|
}
|
8640
8666
|
});
|
8641
|
-
var stdin_default$
|
8667
|
+
var stdin_default$P = defineComponent({
|
8642
8668
|
name: name$G,
|
8643
8669
|
props: datePickerProps,
|
8644
8670
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
@@ -8729,7 +8755,7 @@ var stdin_default$M = defineComponent({
|
|
8729
8755
|
}, pick(props, pickerInheritKeys)), slots);
|
8730
8756
|
}
|
8731
8757
|
});
|
8732
|
-
const DatePicker = withInstall(stdin_default$
|
8758
|
+
const DatePicker = withInstall(stdin_default$P);
|
8733
8759
|
const [name$F, bem$F, t$7] = createNamespace("dialog");
|
8734
8760
|
const dialogProps = extend({}, popupSharedProps, {
|
8735
8761
|
title: String,
|
@@ -8753,7 +8779,7 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8753
8779
|
closeOnClickOverlay: Boolean
|
8754
8780
|
});
|
8755
8781
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8756
|
-
var stdin_default$
|
8782
|
+
var stdin_default$O = defineComponent({
|
8757
8783
|
name: name$F,
|
8758
8784
|
props: dialogProps,
|
8759
8785
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
@@ -8972,7 +8998,7 @@ function initInstance$2() {
|
|
8972
8998
|
state,
|
8973
8999
|
toggle
|
8974
9000
|
} = usePopupState();
|
8975
|
-
return () => createVNode(stdin_default$
|
9001
|
+
return () => createVNode(stdin_default$O, mergeProps(state, {
|
8976
9002
|
"onUpdate:show": toggle
|
8977
9003
|
}), null);
|
8978
9004
|
}
|
@@ -9010,14 +9036,14 @@ const closeDialog = () => {
|
|
9010
9036
|
instance$2.toggle(false);
|
9011
9037
|
}
|
9012
9038
|
};
|
9013
|
-
const Dialog = withInstall(stdin_default$
|
9039
|
+
const Dialog = withInstall(stdin_default$O);
|
9014
9040
|
const [name$E, bem$E] = createNamespace("divider");
|
9015
9041
|
const dividerProps = {
|
9016
9042
|
dashed: Boolean,
|
9017
9043
|
hairline: truthProp,
|
9018
9044
|
contentPosition: makeStringProp("center")
|
9019
9045
|
};
|
9020
|
-
var stdin_default$
|
9046
|
+
var stdin_default$N = defineComponent({
|
9021
9047
|
name: name$E,
|
9022
9048
|
props: dividerProps,
|
9023
9049
|
setup(props, {
|
@@ -9036,7 +9062,7 @@ var stdin_default$K = defineComponent({
|
|
9036
9062
|
};
|
9037
9063
|
}
|
9038
9064
|
});
|
9039
|
-
const Divider = withInstall(stdin_default$
|
9065
|
+
const Divider = withInstall(stdin_default$N);
|
9040
9066
|
const [name$D, bem$D] = createNamespace("dropdown-menu");
|
9041
9067
|
const dropdownMenuProps = {
|
9042
9068
|
overlay: truthProp,
|
@@ -9048,7 +9074,7 @@ const dropdownMenuProps = {
|
|
9048
9074
|
closeOnClickOverlay: truthProp
|
9049
9075
|
};
|
9050
9076
|
const DROPDOWN_KEY = Symbol(name$D);
|
9051
|
-
var stdin_default$
|
9077
|
+
var stdin_default$M = defineComponent({
|
9052
9078
|
name: name$D,
|
9053
9079
|
props: dropdownMenuProps,
|
9054
9080
|
setup(props, {
|
@@ -9174,7 +9200,7 @@ const dropdownItemProps = {
|
|
9174
9200
|
modelValue: unknownProp,
|
9175
9201
|
titleClass: unknownProp
|
9176
9202
|
};
|
9177
|
-
var stdin_default$
|
9203
|
+
var stdin_default$L = defineComponent({
|
9178
9204
|
name: name$C,
|
9179
9205
|
inheritAttrs: false,
|
9180
9206
|
props: dropdownItemProps,
|
@@ -9334,8 +9360,8 @@ var stdin_default$I = defineComponent({
|
|
9334
9360
|
};
|
9335
9361
|
}
|
9336
9362
|
});
|
9337
|
-
const DropdownItem = withInstall(stdin_default$
|
9338
|
-
const DropdownMenu = withInstall(stdin_default$
|
9363
|
+
const DropdownItem = withInstall(stdin_default$L);
|
9364
|
+
const DropdownMenu = withInstall(stdin_default$M);
|
9339
9365
|
const [name$B, bem$B] = createNamespace("grid");
|
9340
9366
|
const gridProps = {
|
9341
9367
|
square: Boolean,
|
@@ -9349,7 +9375,7 @@ const gridProps = {
|
|
9349
9375
|
columnNum: makeNumericProp(4)
|
9350
9376
|
};
|
9351
9377
|
const GRID_KEY = Symbol(name$B);
|
9352
|
-
var stdin_default$
|
9378
|
+
var stdin_default$K = defineComponent({
|
9353
9379
|
name: name$B,
|
9354
9380
|
props: gridProps,
|
9355
9381
|
setup(props, {
|
@@ -9374,7 +9400,7 @@ var stdin_default$H = defineComponent({
|
|
9374
9400
|
};
|
9375
9401
|
}
|
9376
9402
|
});
|
9377
|
-
const Grid = withInstall(stdin_default$
|
9403
|
+
const Grid = withInstall(stdin_default$K);
|
9378
9404
|
const [name$A, bem$A] = createNamespace("grid-item");
|
9379
9405
|
const gridItemProps = extend({}, routeProps, {
|
9380
9406
|
dot: Boolean,
|
@@ -9385,7 +9411,7 @@ const gridItemProps = extend({}, routeProps, {
|
|
9385
9411
|
iconPrefix: String,
|
9386
9412
|
badgeProps: Object
|
9387
9413
|
});
|
9388
|
-
var stdin_default$
|
9414
|
+
var stdin_default$J = defineComponent({
|
9389
9415
|
name: name$A,
|
9390
9416
|
props: gridItemProps,
|
9391
9417
|
setup(props, {
|
@@ -9509,10 +9535,10 @@ var stdin_default$G = defineComponent({
|
|
9509
9535
|
};
|
9510
9536
|
}
|
9511
9537
|
});
|
9512
|
-
const GridItem = withInstall(stdin_default$
|
9538
|
+
const GridItem = withInstall(stdin_default$J);
|
9513
9539
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9514
9540
|
const bem$z = createNamespace("image-preview")[1];
|
9515
|
-
var stdin_default$
|
9541
|
+
var stdin_default$I = defineComponent({
|
9516
9542
|
props: {
|
9517
9543
|
src: String,
|
9518
9544
|
show: Boolean,
|
@@ -9520,7 +9546,8 @@ var stdin_default$F = defineComponent({
|
|
9520
9546
|
minZoom: makeRequiredProp(numericProp),
|
9521
9547
|
maxZoom: makeRequiredProp(numericProp),
|
9522
9548
|
rootWidth: makeRequiredProp(Number),
|
9523
|
-
rootHeight: makeRequiredProp(Number)
|
9549
|
+
rootHeight: makeRequiredProp(Number),
|
9550
|
+
disableZoom: Boolean
|
9524
9551
|
},
|
9525
9552
|
emits: ["scale", "close", "longPress"],
|
9526
9553
|
setup(props, {
|
@@ -9615,18 +9642,23 @@ var stdin_default$F = defineComponent({
|
|
9615
9642
|
let startDistance;
|
9616
9643
|
let doubleTapTimer;
|
9617
9644
|
let touchStartTime;
|
9645
|
+
let isImageMoved = false;
|
9618
9646
|
const onTouchStart = (event) => {
|
9619
9647
|
const {
|
9620
9648
|
touches
|
9621
9649
|
} = event;
|
9650
|
+
fingerNum = touches.length;
|
9651
|
+
if (fingerNum === 2 && props.disableZoom) {
|
9652
|
+
return;
|
9653
|
+
}
|
9622
9654
|
const {
|
9623
9655
|
offsetX
|
9624
9656
|
} = touch;
|
9625
9657
|
touch.start(event);
|
9626
|
-
fingerNum = touches.length;
|
9627
9658
|
startMoveX = state.moveX;
|
9628
9659
|
startMoveY = state.moveY;
|
9629
9660
|
touchStartTime = Date.now();
|
9661
|
+
isImageMoved = false;
|
9630
9662
|
state.moving = fingerNum === 1 && state.scale !== 1;
|
9631
9663
|
state.zooming = fingerNum === 2 && !offsetX.value;
|
9632
9664
|
if (state.zooming) {
|
@@ -9639,9 +9671,6 @@ var stdin_default$F = defineComponent({
|
|
9639
9671
|
touches
|
9640
9672
|
} = event;
|
9641
9673
|
touch.move(event);
|
9642
|
-
if (state.moving || state.zooming) {
|
9643
|
-
preventDefault(event, true);
|
9644
|
-
}
|
9645
9674
|
if (state.moving) {
|
9646
9675
|
const {
|
9647
9676
|
deltaX,
|
@@ -9649,13 +9678,22 @@ var stdin_default$F = defineComponent({
|
|
9649
9678
|
} = touch;
|
9650
9679
|
const moveX = deltaX.value + startMoveX;
|
9651
9680
|
const moveY = deltaY.value + startMoveY;
|
9681
|
+
if ((moveX > maxMoveX.value || moveX < -maxMoveX.value) && !isImageMoved) {
|
9682
|
+
state.moving = false;
|
9683
|
+
return;
|
9684
|
+
}
|
9685
|
+
isImageMoved = true;
|
9686
|
+
preventDefault(event, true);
|
9652
9687
|
state.moveX = clamp(moveX, -maxMoveX.value, maxMoveX.value);
|
9653
9688
|
state.moveY = clamp(moveY, -maxMoveY.value, maxMoveY.value);
|
9654
9689
|
}
|
9655
|
-
if (state.zooming
|
9656
|
-
|
9657
|
-
|
9658
|
-
|
9690
|
+
if (state.zooming) {
|
9691
|
+
preventDefault(event, true);
|
9692
|
+
if (touches.length === 2) {
|
9693
|
+
const distance = getDistance(touches);
|
9694
|
+
const scale = startScale * distance / startDistance;
|
9695
|
+
setScale(scale);
|
9696
|
+
}
|
9659
9697
|
}
|
9660
9698
|
};
|
9661
9699
|
const checkTap = () => {
|
@@ -9765,7 +9803,7 @@ var stdin_default$F = defineComponent({
|
|
9765
9803
|
}
|
9766
9804
|
});
|
9767
9805
|
const [name$z, bem$y] = createNamespace("image-preview");
|
9768
|
-
const popupProps$1 = ["show", "
|
9806
|
+
const popupProps$1 = ["show", "teleport", "transition", "overlayStyle", "closeOnPopstate"];
|
9769
9807
|
const imagePreviewProps = {
|
9770
9808
|
show: Boolean,
|
9771
9809
|
loop: truthProp,
|
@@ -9788,7 +9826,7 @@ const imagePreviewProps = {
|
|
9788
9826
|
closeIconPosition: makeStringProp("top-right"),
|
9789
9827
|
teleport: [String, Object]
|
9790
9828
|
};
|
9791
|
-
var stdin_default$
|
9829
|
+
var stdin_default$H = defineComponent({
|
9792
9830
|
name: name$z,
|
9793
9831
|
props: imagePreviewProps,
|
9794
9832
|
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
@@ -9800,7 +9838,8 @@ var stdin_default$E = defineComponent({
|
|
9800
9838
|
const state = reactive({
|
9801
9839
|
active: 0,
|
9802
9840
|
rootWidth: 0,
|
9803
|
-
rootHeight: 0
|
9841
|
+
rootHeight: 0,
|
9842
|
+
disableZoom: false
|
9804
9843
|
});
|
9805
9844
|
const resize = () => {
|
9806
9845
|
if (swipeRef.value) {
|
@@ -9840,6 +9879,12 @@ var stdin_default$E = defineComponent({
|
|
9840
9879
|
}, [slots.cover()]);
|
9841
9880
|
}
|
9842
9881
|
};
|
9882
|
+
const onDragStart = () => {
|
9883
|
+
state.disableZoom = true;
|
9884
|
+
};
|
9885
|
+
const onDragEnd = () => {
|
9886
|
+
state.disableZoom = false;
|
9887
|
+
};
|
9843
9888
|
const renderImages = () => createVNode(Swipe, {
|
9844
9889
|
"ref": swipeRef,
|
9845
9890
|
"lazyRender": true,
|
@@ -9849,9 +9894,11 @@ var stdin_default$E = defineComponent({
|
|
9849
9894
|
"initialSwipe": props.startPosition,
|
9850
9895
|
"showIndicators": props.showIndicators,
|
9851
9896
|
"indicatorColor": "white",
|
9852
|
-
"onChange": setActive
|
9897
|
+
"onChange": setActive,
|
9898
|
+
"onDragEnd": onDragEnd,
|
9899
|
+
"onDragStart": onDragStart
|
9853
9900
|
}, {
|
9854
|
-
default: () => [props.images.map((image, index) => createVNode(stdin_default$
|
9901
|
+
default: () => [props.images.map((image, index) => createVNode(stdin_default$I, {
|
9855
9902
|
"src": image,
|
9856
9903
|
"show": props.show,
|
9857
9904
|
"active": state.active,
|
@@ -9859,6 +9906,7 @@ var stdin_default$E = defineComponent({
|
|
9859
9906
|
"minZoom": props.minZoom,
|
9860
9907
|
"rootWidth": state.rootWidth,
|
9861
9908
|
"rootHeight": state.rootHeight,
|
9909
|
+
"disableZoom": state.disableZoom,
|
9862
9910
|
"onScale": emitScale,
|
9863
9911
|
"onClose": emitClose,
|
9864
9912
|
"onLongPress": () => emit("longPress", {
|
@@ -9955,7 +10003,7 @@ function initInstance$1() {
|
|
9955
10003
|
const onClosed = () => {
|
9956
10004
|
state.images = [];
|
9957
10005
|
};
|
9958
|
-
return () => createVNode(stdin_default$
|
10006
|
+
return () => createVNode(stdin_default$H, mergeProps(state, {
|
9959
10007
|
"onClosed": onClosed,
|
9960
10008
|
"onUpdate:show": toggle
|
9961
10009
|
}), null);
|
@@ -9976,7 +10024,7 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
9976
10024
|
instance$1.open(extend({}, defaultConfig, options));
|
9977
10025
|
return instance$1;
|
9978
10026
|
};
|
9979
|
-
const ImagePreview = withInstall(stdin_default$
|
10027
|
+
const ImagePreview = withInstall(stdin_default$H);
|
9980
10028
|
function genAlphabet() {
|
9981
10029
|
const charCodeOfA = "A".charCodeAt(0);
|
9982
10030
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
@@ -9995,7 +10043,7 @@ const indexBarProps = {
|
|
9995
10043
|
}
|
9996
10044
|
};
|
9997
10045
|
const INDEX_BAR_KEY = Symbol(name$y);
|
9998
|
-
var stdin_default$
|
10046
|
+
var stdin_default$G = defineComponent({
|
9999
10047
|
name: name$y,
|
10000
10048
|
props: indexBarProps,
|
10001
10049
|
emits: ["select", "change"],
|
@@ -10197,7 +10245,7 @@ const [name$x, bem$w] = createNamespace("index-anchor");
|
|
10197
10245
|
const indexAnchorProps = {
|
10198
10246
|
index: numericProp
|
10199
10247
|
};
|
10200
|
-
var stdin_default$
|
10248
|
+
var stdin_default$F = defineComponent({
|
10201
10249
|
name: name$x,
|
10202
10250
|
props: indexAnchorProps,
|
10203
10251
|
setup(props, {
|
@@ -10270,8 +10318,8 @@ var stdin_default$C = defineComponent({
|
|
10270
10318
|
};
|
10271
10319
|
}
|
10272
10320
|
});
|
10273
|
-
const IndexAnchor = withInstall(stdin_default$
|
10274
|
-
const IndexBar = withInstall(stdin_default$
|
10321
|
+
const IndexAnchor = withInstall(stdin_default$F);
|
10322
|
+
const IndexBar = withInstall(stdin_default$G);
|
10275
10323
|
const [name$w, bem$v, t$6] = createNamespace("list");
|
10276
10324
|
const listProps = {
|
10277
10325
|
error: Boolean,
|
@@ -10285,7 +10333,7 @@ const listProps = {
|
|
10285
10333
|
finishedText: String,
|
10286
10334
|
immediateCheck: truthProp
|
10287
10335
|
};
|
10288
|
-
var stdin_default$
|
10336
|
+
var stdin_default$E = defineComponent({
|
10289
10337
|
name: name$w,
|
10290
10338
|
props: listProps,
|
10291
10339
|
emits: ["load", "update:error", "update:loading"],
|
@@ -10402,7 +10450,7 @@ var stdin_default$B = defineComponent({
|
|
10402
10450
|
};
|
10403
10451
|
}
|
10404
10452
|
});
|
10405
|
-
const List = withInstall(stdin_default$
|
10453
|
+
const List = withInstall(stdin_default$E);
|
10406
10454
|
const [name$v, bem$u] = createNamespace("nav-bar");
|
10407
10455
|
const navBarProps = {
|
10408
10456
|
title: String,
|
@@ -10416,7 +10464,7 @@ const navBarProps = {
|
|
10416
10464
|
safeAreaInsetTop: Boolean,
|
10417
10465
|
clickable: truthProp
|
10418
10466
|
};
|
10419
|
-
var stdin_default$
|
10467
|
+
var stdin_default$D = defineComponent({
|
10420
10468
|
name: name$v,
|
10421
10469
|
props: navBarProps,
|
10422
10470
|
emits: ["clickLeft", "clickRight"],
|
@@ -10486,7 +10534,7 @@ var stdin_default$A = defineComponent({
|
|
10486
10534
|
};
|
10487
10535
|
}
|
10488
10536
|
});
|
10489
|
-
const NavBar = withInstall(stdin_default$
|
10537
|
+
const NavBar = withInstall(stdin_default$D);
|
10490
10538
|
const [name$u, bem$t] = createNamespace("notice-bar");
|
10491
10539
|
const noticeBarProps = {
|
10492
10540
|
text: String,
|
@@ -10502,7 +10550,7 @@ const noticeBarProps = {
|
|
10502
10550
|
default: null
|
10503
10551
|
}
|
10504
10552
|
};
|
10505
|
-
var stdin_default$
|
10553
|
+
var stdin_default$C = defineComponent({
|
10506
10554
|
name: name$u,
|
10507
10555
|
props: noticeBarProps,
|
10508
10556
|
emits: ["close", "replay"],
|
@@ -10642,7 +10690,7 @@ var stdin_default$z = defineComponent({
|
|
10642
10690
|
};
|
10643
10691
|
}
|
10644
10692
|
});
|
10645
|
-
const NoticeBar = withInstall(stdin_default$
|
10693
|
+
const NoticeBar = withInstall(stdin_default$C);
|
10646
10694
|
const [name$t, bem$s] = createNamespace("notify");
|
10647
10695
|
const notifyProps = extend({}, popupSharedProps, {
|
10648
10696
|
type: makeStringProp("danger"),
|
@@ -10653,7 +10701,7 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
10653
10701
|
background: String,
|
10654
10702
|
lockScroll: Boolean
|
10655
10703
|
});
|
10656
|
-
var stdin_default$
|
10704
|
+
var stdin_default$B = defineComponent({
|
10657
10705
|
name: name$t,
|
10658
10706
|
props: notifyProps,
|
10659
10707
|
emits: ["update:show"],
|
@@ -10694,7 +10742,7 @@ function initInstance() {
|
|
10694
10742
|
state,
|
10695
10743
|
toggle
|
10696
10744
|
} = usePopupState();
|
10697
|
-
return () => createVNode(stdin_default$
|
10745
|
+
return () => createVNode(stdin_default$B, mergeProps(state, {
|
10698
10746
|
"onUpdate:show": toggle
|
10699
10747
|
}), null);
|
10700
10748
|
}
|
@@ -10738,7 +10786,7 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
10738
10786
|
const resetNotifyDefaultOptions = () => {
|
10739
10787
|
currentOptions = getDefaultOptions();
|
10740
10788
|
};
|
10741
|
-
const Notify = withInstall(stdin_default$
|
10789
|
+
const Notify = withInstall(stdin_default$B);
|
10742
10790
|
const [name$s, bem$r] = createNamespace("key");
|
10743
10791
|
const CollapseIcon = createVNode("svg", {
|
10744
10792
|
"class": bem$r("collapse-icon"),
|
@@ -10754,7 +10802,7 @@ const DeleteIcon = createVNode("svg", {
|
|
10754
10802
|
"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",
|
10755
10803
|
"fill": "currentColor"
|
10756
10804
|
}, null)]);
|
10757
|
-
var stdin_default$
|
10805
|
+
var stdin_default$A = defineComponent({
|
10758
10806
|
name: name$s,
|
10759
10807
|
props: {
|
10760
10808
|
type: String,
|
@@ -10857,7 +10905,7 @@ function shuffle(array) {
|
|
10857
10905
|
}
|
10858
10906
|
return array;
|
10859
10907
|
}
|
10860
|
-
var stdin_default$
|
10908
|
+
var stdin_default$z = defineComponent({
|
10861
10909
|
name: name$r,
|
10862
10910
|
inheritAttrs: false,
|
10863
10911
|
props: numberKeyboardProps,
|
@@ -10976,7 +11024,7 @@ var stdin_default$w = defineComponent({
|
|
10976
11024
|
if (key.type === "extra") {
|
10977
11025
|
keySlots.default = slots["extra-key"];
|
10978
11026
|
}
|
10979
|
-
return createVNode(stdin_default$
|
11027
|
+
return createVNode(stdin_default$A, {
|
10980
11028
|
"key": key.text,
|
10981
11029
|
"text": key.text,
|
10982
11030
|
"type": key.type,
|
@@ -10989,14 +11037,14 @@ var stdin_default$w = defineComponent({
|
|
10989
11037
|
if (props.theme === "custom") {
|
10990
11038
|
return createVNode("div", {
|
10991
11039
|
"class": bem$q("sidebar")
|
10992
|
-
}, [props.showDeleteKey && createVNode(stdin_default$
|
11040
|
+
}, [props.showDeleteKey && createVNode(stdin_default$A, {
|
10993
11041
|
"large": true,
|
10994
11042
|
"text": props.deleteButtonText,
|
10995
11043
|
"type": "delete",
|
10996
11044
|
"onPress": onPress
|
10997
11045
|
}, {
|
10998
11046
|
delete: slots.delete
|
10999
|
-
}), createVNode(stdin_default$
|
11047
|
+
}), createVNode(stdin_default$A, {
|
11000
11048
|
"large": true,
|
11001
11049
|
"text": props.closeButtonText,
|
11002
11050
|
"type": "close",
|
@@ -11047,7 +11095,7 @@ var stdin_default$w = defineComponent({
|
|
11047
11095
|
};
|
11048
11096
|
}
|
11049
11097
|
});
|
11050
|
-
const NumberKeyboard = withInstall(stdin_default$
|
11098
|
+
const NumberKeyboard = withInstall(stdin_default$z);
|
11051
11099
|
const [name$q, bem$p, t$5] = createNamespace("pagination");
|
11052
11100
|
const makePage = (number, text, active) => ({
|
11053
11101
|
number,
|
@@ -11065,7 +11113,7 @@ const paginationProps = {
|
|
11065
11113
|
itemsPerPage: makeNumericProp(10),
|
11066
11114
|
forceEllipses: Boolean
|
11067
11115
|
};
|
11068
|
-
var stdin_default$
|
11116
|
+
var stdin_default$y = defineComponent({
|
11069
11117
|
name: name$q,
|
11070
11118
|
props: paginationProps,
|
11071
11119
|
emits: ["change", "update:modelValue"],
|
@@ -11186,7 +11234,7 @@ var stdin_default$v = defineComponent({
|
|
11186
11234
|
}, [renderPrevButton(), props.mode === "simple" ? renderDesc() : renderPages(), renderNextButton()])]);
|
11187
11235
|
}
|
11188
11236
|
});
|
11189
|
-
const Pagination = withInstall(stdin_default$
|
11237
|
+
const Pagination = withInstall(stdin_default$y);
|
11190
11238
|
const [name$p, bem$o] = createNamespace("password-input");
|
11191
11239
|
const passwordInputProps = {
|
11192
11240
|
info: String,
|
@@ -11197,7 +11245,7 @@ const passwordInputProps = {
|
|
11197
11245
|
focused: Boolean,
|
11198
11246
|
errorInfo: String
|
11199
11247
|
};
|
11200
|
-
var stdin_default$
|
11248
|
+
var stdin_default$x = defineComponent({
|
11201
11249
|
name: name$p,
|
11202
11250
|
props: passwordInputProps,
|
11203
11251
|
emits: ["focus"],
|
@@ -11259,8 +11307,8 @@ var stdin_default$u = defineComponent({
|
|
11259
11307
|
};
|
11260
11308
|
}
|
11261
11309
|
});
|
11262
|
-
const PasswordInput = withInstall(stdin_default$
|
11263
|
-
const PickerGroup = withInstall(stdin_default$
|
11310
|
+
const PasswordInput = withInstall(stdin_default$x);
|
11311
|
+
const PickerGroup = withInstall(stdin_default$1r);
|
11264
11312
|
const useSyncPropRef = (getProp, setProp) => {
|
11265
11313
|
const propRef = ref(getProp());
|
11266
11314
|
watch(getProp, (value) => {
|
@@ -11301,7 +11349,7 @@ const popoverProps = {
|
|
11301
11349
|
default: "body"
|
11302
11350
|
}
|
11303
11351
|
};
|
11304
|
-
var stdin_default$
|
11352
|
+
var stdin_default$w = defineComponent({
|
11305
11353
|
name: name$o,
|
11306
11354
|
props: popoverProps,
|
11307
11355
|
emits: ["select", "touchstart", "update:show"],
|
@@ -11447,7 +11495,7 @@ var stdin_default$t = defineComponent({
|
|
11447
11495
|
};
|
11448
11496
|
}
|
11449
11497
|
});
|
11450
|
-
const Popover = withInstall(stdin_default$
|
11498
|
+
const Popover = withInstall(stdin_default$w);
|
11451
11499
|
const [name$n, bem$m] = createNamespace("progress");
|
11452
11500
|
const progressProps = {
|
11453
11501
|
color: String,
|
@@ -11464,7 +11512,7 @@ const progressProps = {
|
|
11464
11512
|
validator: (value) => value >= 0 && value <= 100
|
11465
11513
|
}
|
11466
11514
|
};
|
11467
|
-
var stdin_default$
|
11515
|
+
var stdin_default$v = defineComponent({
|
11468
11516
|
name: name$n,
|
11469
11517
|
props: progressProps,
|
11470
11518
|
setup(props) {
|
@@ -11518,7 +11566,7 @@ var stdin_default$s = defineComponent({
|
|
11518
11566
|
};
|
11519
11567
|
}
|
11520
11568
|
});
|
11521
|
-
const Progress = withInstall(stdin_default$
|
11569
|
+
const Progress = withInstall(stdin_default$v);
|
11522
11570
|
const [name$m, bem$l, t$4] = createNamespace("pull-refresh");
|
11523
11571
|
const DEFAULT_HEAD_HEIGHT = 50;
|
11524
11572
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
@@ -11534,7 +11582,7 @@ const pullRefreshProps = {
|
|
11534
11582
|
successDuration: makeNumericProp(500),
|
11535
11583
|
animationDuration: makeNumericProp(300)
|
11536
11584
|
};
|
11537
|
-
var stdin_default$
|
11585
|
+
var stdin_default$u = defineComponent({
|
11538
11586
|
name: name$m,
|
11539
11587
|
props: pullRefreshProps,
|
11540
11588
|
emits: ["change", "refresh", "update:modelValue"],
|
@@ -11703,7 +11751,7 @@ var stdin_default$r = defineComponent({
|
|
11703
11751
|
};
|
11704
11752
|
}
|
11705
11753
|
});
|
11706
|
-
const PullRefresh = withInstall(stdin_default$
|
11754
|
+
const PullRefresh = withInstall(stdin_default$u);
|
11707
11755
|
const [name$l, bem$k] = createNamespace("rate");
|
11708
11756
|
function getRateStatus(value, index, allowHalf, readonly) {
|
11709
11757
|
if (value >= index) {
|
@@ -11746,7 +11794,7 @@ const rateProps = {
|
|
11746
11794
|
modelValue: makeNumberProp(0),
|
11747
11795
|
disabledColor: String
|
11748
11796
|
};
|
11749
|
-
var stdin_default$
|
11797
|
+
var stdin_default$t = defineComponent({
|
11750
11798
|
name: name$l,
|
11751
11799
|
props: rateProps,
|
11752
11800
|
emits: ["change", "update:modelValue"],
|
@@ -11913,8 +11961,8 @@ var stdin_default$q = defineComponent({
|
|
11913
11961
|
}, [list.value.map(renderStar)]);
|
11914
11962
|
}
|
11915
11963
|
});
|
11916
|
-
const Rate = withInstall(stdin_default$
|
11917
|
-
const Row = withInstall(stdin_default
|
11964
|
+
const Rate = withInstall(stdin_default$t);
|
11965
|
+
const Row = withInstall(stdin_default$$);
|
11918
11966
|
const [name$k, bem$j, t$3] = createNamespace("search");
|
11919
11967
|
const searchProps = extend({}, fieldSharedProps, {
|
11920
11968
|
label: String,
|
@@ -11925,7 +11973,7 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
11925
11973
|
background: String,
|
11926
11974
|
showAction: Boolean
|
11927
11975
|
});
|
11928
|
-
var stdin_default$
|
11976
|
+
var stdin_default$s = defineComponent({
|
11929
11977
|
name: name$k,
|
11930
11978
|
props: searchProps,
|
11931
11979
|
emits: ["blur", "focus", "clear", "search", "cancel", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
@@ -12023,7 +12071,7 @@ var stdin_default$p = defineComponent({
|
|
12023
12071
|
};
|
12024
12072
|
}
|
12025
12073
|
});
|
12026
|
-
const Search = withInstall(stdin_default$
|
12074
|
+
const Search = withInstall(stdin_default$s);
|
12027
12075
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
12028
12076
|
const iconMap = {
|
12029
12077
|
qq: "qq",
|
@@ -12045,7 +12093,7 @@ const shareSheetProps = extend({}, popupSharedProps, {
|
|
12045
12093
|
closeOnPopstate: truthProp,
|
12046
12094
|
safeAreaInsetBottom: truthProp
|
12047
12095
|
});
|
12048
|
-
var stdin_default$
|
12096
|
+
var stdin_default$r = defineComponent({
|
12049
12097
|
name: name$j,
|
12050
12098
|
props: shareSheetProps,
|
12051
12099
|
emits: ["cancel", "select", "update:show"],
|
@@ -12137,13 +12185,13 @@ var stdin_default$o = defineComponent({
|
|
12137
12185
|
});
|
12138
12186
|
}
|
12139
12187
|
});
|
12140
|
-
const ShareSheet = withInstall(stdin_default$
|
12188
|
+
const ShareSheet = withInstall(stdin_default$r);
|
12141
12189
|
const [name$i, bem$h] = createNamespace("sidebar");
|
12142
12190
|
const SIDEBAR_KEY = Symbol(name$i);
|
12143
12191
|
const sidebarProps = {
|
12144
12192
|
modelValue: makeNumericProp(0)
|
12145
12193
|
};
|
12146
|
-
var stdin_default$
|
12194
|
+
var stdin_default$q = defineComponent({
|
12147
12195
|
name: name$i,
|
12148
12196
|
props: sidebarProps,
|
12149
12197
|
emits: ["change", "update:modelValue"],
|
@@ -12174,7 +12222,7 @@ var stdin_default$n = defineComponent({
|
|
12174
12222
|
};
|
12175
12223
|
}
|
12176
12224
|
});
|
12177
|
-
const Sidebar = withInstall(stdin_default$
|
12225
|
+
const Sidebar = withInstall(stdin_default$q);
|
12178
12226
|
const [name$h, bem$g] = createNamespace("sidebar-item");
|
12179
12227
|
const sidebarItemProps = extend({}, routeProps, {
|
12180
12228
|
dot: Boolean,
|
@@ -12183,7 +12231,7 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
12183
12231
|
disabled: Boolean,
|
12184
12232
|
badgeProps: Object
|
12185
12233
|
});
|
12186
|
-
var stdin_default$
|
12234
|
+
var stdin_default$p = defineComponent({
|
12187
12235
|
name: name$h,
|
12188
12236
|
props: sidebarItemProps,
|
12189
12237
|
emits: ["click"],
|
@@ -12237,13 +12285,13 @@ var stdin_default$m = defineComponent({
|
|
12237
12285
|
};
|
12238
12286
|
}
|
12239
12287
|
});
|
12240
|
-
const SidebarItem = withInstall(stdin_default$
|
12288
|
+
const SidebarItem = withInstall(stdin_default$p);
|
12241
12289
|
const [name$g, bem$f] = createNamespace("skeleton-title");
|
12242
12290
|
const skeletonTitleProps = {
|
12243
12291
|
round: Boolean,
|
12244
12292
|
titleWidth: numericProp
|
12245
12293
|
};
|
12246
|
-
var stdin_default$
|
12294
|
+
var stdin_default$o = defineComponent({
|
12247
12295
|
name: name$g,
|
12248
12296
|
props: skeletonTitleProps,
|
12249
12297
|
setup(props) {
|
@@ -12257,12 +12305,14 @@ var stdin_default$l = defineComponent({
|
|
12257
12305
|
}, null);
|
12258
12306
|
}
|
12259
12307
|
});
|
12308
|
+
const SkeletonTitle = withInstall(stdin_default$o);
|
12309
|
+
var stdin_default$n = SkeletonTitle;
|
12260
12310
|
const [name$f, bem$e] = createNamespace("skeleton-avatar");
|
12261
12311
|
const skeletonAvatarProps = {
|
12262
12312
|
avatarSize: numericProp,
|
12263
12313
|
avatarShape: makeStringProp("round")
|
12264
12314
|
};
|
12265
|
-
var stdin_default$
|
12315
|
+
var stdin_default$m = defineComponent({
|
12266
12316
|
name: name$f,
|
12267
12317
|
props: skeletonAvatarProps,
|
12268
12318
|
setup(props) {
|
@@ -12272,6 +12322,8 @@ var stdin_default$k = defineComponent({
|
|
12272
12322
|
}, null);
|
12273
12323
|
}
|
12274
12324
|
});
|
12325
|
+
const SkeletonAvatar = withInstall(stdin_default$m);
|
12326
|
+
var stdin_default$l = SkeletonAvatar;
|
12275
12327
|
const DEFAULT_ROW_WIDTH = "100%";
|
12276
12328
|
const skeletonParagraphProps = {
|
12277
12329
|
round: Boolean,
|
@@ -12281,7 +12333,7 @@ const skeletonParagraphProps = {
|
|
12281
12333
|
}
|
12282
12334
|
};
|
12283
12335
|
const [name$e, bem$d] = createNamespace("skeleton-paragraph");
|
12284
|
-
var stdin_default$
|
12336
|
+
var stdin_default$k = defineComponent({
|
12285
12337
|
name: name$e,
|
12286
12338
|
props: skeletonParagraphProps,
|
12287
12339
|
setup(props) {
|
@@ -12295,6 +12347,8 @@ var stdin_default$j = defineComponent({
|
|
12295
12347
|
}, null);
|
12296
12348
|
}
|
12297
12349
|
});
|
12350
|
+
const SkeletonParagraph = withInstall(stdin_default$k);
|
12351
|
+
var stdin_default$j = SkeletonParagraph;
|
12298
12352
|
const [name$d, bem$c] = createNamespace("skeleton");
|
12299
12353
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
12300
12354
|
const skeletonProps = {
|
@@ -12322,7 +12376,7 @@ var stdin_default$i = defineComponent({
|
|
12322
12376
|
}) {
|
12323
12377
|
const renderAvatar = () => {
|
12324
12378
|
if (props.avatar) {
|
12325
|
-
return createVNode(stdin_default$
|
12379
|
+
return createVNode(stdin_default$l, {
|
12326
12380
|
"avatarShape": props.avatarShape,
|
12327
12381
|
"avatarSize": props.avatarSize
|
12328
12382
|
}, null);
|
@@ -12330,7 +12384,7 @@ var stdin_default$i = defineComponent({
|
|
12330
12384
|
};
|
12331
12385
|
const renderTitle = () => {
|
12332
12386
|
if (props.title) {
|
12333
|
-
return createVNode(stdin_default$
|
12387
|
+
return createVNode(stdin_default$n, {
|
12334
12388
|
"round": props.round,
|
12335
12389
|
"titleWidth": props.titleWidth
|
12336
12390
|
}, null);
|
@@ -12375,6 +12429,7 @@ var stdin_default$i = defineComponent({
|
|
12375
12429
|
};
|
12376
12430
|
}
|
12377
12431
|
});
|
12432
|
+
const Skeleton = withInstall(stdin_default$i);
|
12378
12433
|
const [name$c, bem$b] = createNamespace("skeleton-image");
|
12379
12434
|
const skeletonImageProps = {
|
12380
12435
|
imageSize: numericProp,
|
@@ -12394,10 +12449,6 @@ var stdin_default$h = defineComponent({
|
|
12394
12449
|
}
|
12395
12450
|
});
|
12396
12451
|
const SkeletonImage = withInstall(stdin_default$h);
|
12397
|
-
const SkeletonTitle = withInstall(stdin_default$l);
|
12398
|
-
const SkeletonAvatar = withInstall(stdin_default$k);
|
12399
|
-
const SkeletonParagraph = withInstall(stdin_default$j);
|
12400
|
-
const Skeleton = withInstall(stdin_default$i);
|
12401
12452
|
const [name$b, bem$a] = createNamespace("slider");
|
12402
12453
|
const sliderProps = {
|
12403
12454
|
min: makeNumericProp(0),
|
@@ -14901,7 +14952,7 @@ const Lazyload = {
|
|
14901
14952
|
});
|
14902
14953
|
}
|
14903
14954
|
};
|
14904
|
-
const version = "4.0.
|
14955
|
+
const version = "4.0.9";
|
14905
14956
|
function install(app) {
|
14906
14957
|
const components = [
|
14907
14958
|
ActionBar,
|
@@ -14973,6 +15024,10 @@ function install(app) {
|
|
14973
15024
|
Sidebar,
|
14974
15025
|
SidebarItem,
|
14975
15026
|
Skeleton,
|
15027
|
+
SkeletonAvatar,
|
15028
|
+
SkeletonImage,
|
15029
|
+
SkeletonParagraph,
|
15030
|
+
SkeletonTitle,
|
14976
15031
|
Slider,
|
14977
15032
|
Space,
|
14978
15033
|
Step,
|
@@ -15036,6 +15091,7 @@ export {
|
|
15036
15091
|
Coupon,
|
15037
15092
|
CouponCell,
|
15038
15093
|
CouponList,
|
15094
|
+
DEFAULT_ROW_WIDTH,
|
15039
15095
|
DatePicker,
|
15040
15096
|
Dialog,
|
15041
15097
|
Divider,
|
@@ -15210,5 +15266,6 @@ export {
|
|
15210
15266
|
toastProps,
|
15211
15267
|
treeSelectProps,
|
15212
15268
|
uploaderProps,
|
15269
|
+
useCurrentLang,
|
15213
15270
|
version
|
15214
15271
|
};
|