vant 4.9.19 → 4.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-sheet/ActionSheet.d.ts +3 -0
- package/es/action-sheet/index.d.ts +2 -0
- package/es/barrage/Barrage.mjs +1 -1
- package/es/dialog/Dialog.d.ts +3 -0
- package/es/dialog/index.d.ts +2 -0
- package/es/dropdown-item/DropdownItem.mjs +3 -0
- package/es/dropdown-menu/DropdownMenu.mjs +3 -1
- package/es/dropdown-menu/types.d.ts +2 -0
- package/es/image/Image.d.ts +3 -0
- package/es/image/Image.mjs +3 -1
- package/es/image/index.d.ts +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/notify/Notify.d.ts +3 -0
- package/es/notify/index.d.ts +2 -0
- package/es/picker/Picker.mjs +6 -2
- package/es/popup/Popup.d.ts +3 -0
- package/es/popup/Popup.mjs +10 -9
- package/es/popup/index.d.ts +2 -0
- package/es/popup/shared.d.ts +2 -0
- package/es/popup/shared.mjs +2 -0
- package/es/share-sheet/ShareSheet.d.ts +3 -0
- package/es/share-sheet/index.d.ts +2 -0
- package/es/watermark/Watermark.mjs +5 -2
- package/lib/action-sheet/ActionSheet.d.ts +3 -0
- package/lib/action-sheet/index.d.ts +2 -0
- package/lib/barrage/Barrage.js +1 -1
- package/lib/dialog/Dialog.d.ts +3 -0
- package/lib/dialog/index.d.ts +2 -0
- package/lib/dropdown-item/DropdownItem.js +3 -0
- package/lib/dropdown-menu/DropdownMenu.js +3 -1
- package/lib/dropdown-menu/types.d.ts +2 -0
- package/lib/image/Image.d.ts +3 -0
- package/lib/image/Image.js +3 -1
- package/lib/image/index.d.ts +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/notify/Notify.d.ts +3 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/picker/Picker.js +6 -2
- package/lib/popup/Popup.d.ts +3 -0
- package/lib/popup/Popup.js +10 -9
- package/lib/popup/index.d.ts +2 -0
- package/lib/popup/shared.d.ts +2 -0
- package/lib/popup/shared.js +2 -0
- package/lib/share-sheet/ShareSheet.d.ts +3 -0
- package/lib/share-sheet/index.d.ts +2 -0
- package/lib/vant.cjs.js +33 -16
- package/lib/vant.es.js +33 -16
- package/lib/vant.js +1301 -1301
- package/lib/vant.min.js +3 -3
- package/lib/watermark/Watermark.js +4 -1
- package/lib/web-types.json +1 -1
- package/package.json +13 -13
package/lib/index.js
CHANGED
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
226
226
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
227
227
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
228
228
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
229
|
-
const version = "4.9.
|
229
|
+
const version = "4.9.20";
|
230
230
|
function install(app) {
|
231
231
|
const components = [
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/notify/Notify.d.ts
CHANGED
@@ -18,6 +18,7 @@ export declare const notifyProps: {
|
|
18
18
|
default: true;
|
19
19
|
};
|
20
20
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
21
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
21
22
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
22
23
|
overlayClass: import("vue").PropType<unknown>;
|
23
24
|
transitionAppear: BooleanConstructor;
|
@@ -59,6 +60,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
59
60
|
default: true;
|
60
61
|
};
|
61
62
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
63
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
62
64
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
63
65
|
overlayClass: import("vue").PropType<unknown>;
|
64
66
|
transitionAppear: BooleanConstructor;
|
@@ -98,6 +100,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
98
100
|
default: true;
|
99
101
|
};
|
100
102
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
103
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
101
104
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
102
105
|
overlayClass: import("vue").PropType<unknown>;
|
103
106
|
transitionAppear: BooleanConstructor;
|
package/lib/notify/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
|
|
16
16
|
default: true;
|
17
17
|
};
|
18
18
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
19
20
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
21
|
overlayClass: import("vue").PropType<unknown>;
|
21
22
|
transitionAppear: BooleanConstructor;
|
@@ -55,6 +56,7 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
|
|
55
56
|
default: true;
|
56
57
|
};
|
57
58
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
59
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
58
60
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
59
61
|
overlayClass: import("vue").PropType<unknown>;
|
60
62
|
transitionAppear: BooleanConstructor;
|
package/lib/picker/Picker.js
CHANGED
@@ -198,13 +198,14 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
198
198
|
}), (0, import_utils.pick)(slots, import_PickerToolbar.pickerToolbarSlots));
|
199
199
|
}
|
200
200
|
};
|
201
|
-
|
201
|
+
const resetSelectedValues = (columns) => {
|
202
202
|
columns.forEach((options, index) => {
|
203
203
|
if (options.length && !(0, import_utils2.isOptionExist)(options, selectedValues.value[index], fields.value)) {
|
204
204
|
setValue(index, (0, import_utils2.getFirstEnabledOption)(options)[fields.value.value]);
|
205
205
|
}
|
206
206
|
});
|
207
|
-
}
|
207
|
+
};
|
208
|
+
(0, import_vue.watch)(currentColumns, (columns) => resetSelectedValues(columns), {
|
208
209
|
immediate: true
|
209
210
|
});
|
210
211
|
let lastEmittedModelValue;
|
@@ -213,6 +214,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
213
214
|
selectedValues.value = newValues.slice(0);
|
214
215
|
lastEmittedModelValue = newValues.slice(0);
|
215
216
|
}
|
217
|
+
if (props.modelValue.length === 0) {
|
218
|
+
resetSelectedValues(currentColumns.value);
|
219
|
+
}
|
216
220
|
}, {
|
217
221
|
deep: true
|
218
222
|
});
|
package/lib/popup/Popup.d.ts
CHANGED
@@ -18,6 +18,7 @@ export declare const popupProps: {
|
|
18
18
|
default: true;
|
19
19
|
};
|
20
20
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
21
|
+
overlayProps: import("vue").PropType<Partial<import("../overlay").OverlayProps>>;
|
21
22
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
22
23
|
overlayClass: import("vue").PropType<unknown>;
|
23
24
|
transitionAppear: BooleanConstructor;
|
@@ -66,6 +67,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
66
67
|
default: true;
|
67
68
|
};
|
68
69
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
70
|
+
overlayProps: import("vue").PropType<Partial<import("../overlay").OverlayProps>>;
|
69
71
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
70
72
|
overlayClass: import("vue").PropType<unknown>;
|
71
73
|
transitionAppear: BooleanConstructor;
|
@@ -112,6 +114,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
112
114
|
default: true;
|
113
115
|
};
|
114
116
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
117
|
+
overlayProps: import("vue").PropType<Partial<import("../overlay").OverlayProps>>;
|
115
118
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
116
119
|
overlayClass: import("vue").PropType<unknown>;
|
117
120
|
transitionAppear: BooleanConstructor;
|
package/lib/popup/Popup.js
CHANGED
@@ -98,15 +98,16 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
98
98
|
};
|
99
99
|
const renderOverlay = () => {
|
100
100
|
if (props.overlay) {
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
},
|
101
|
+
const overlayProps = (0, import_utils.extend)({
|
102
|
+
show: props.show,
|
103
|
+
class: props.overlayClass,
|
104
|
+
zIndex: zIndex.value,
|
105
|
+
duration: props.duration,
|
106
|
+
customStyle: props.overlayStyle,
|
107
|
+
role: props.closeOnClickOverlay ? "button" : void 0,
|
108
|
+
tabindex: props.closeOnClickOverlay ? 0 : void 0
|
109
|
+
}, props.overlayProps);
|
110
|
+
return (0, import_vue.createVNode)(import_overlay.Overlay, (0, import_vue.mergeProps)(overlayProps, (0, import_use_scope_id.useScopeId)(), {
|
110
111
|
"onClick": onClickOverlay
|
111
112
|
}), {
|
112
113
|
default: slots["overlay-content"]
|
package/lib/popup/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
16
16
|
default: true;
|
17
17
|
};
|
18
18
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
19
20
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
21
|
overlayClass: import("vue").PropType<unknown>;
|
21
22
|
transitionAppear: BooleanConstructor;
|
@@ -62,6 +63,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
62
63
|
default: true;
|
63
64
|
};
|
64
65
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
66
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
65
67
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
66
68
|
overlayClass: import("vue").PropType<unknown>;
|
67
69
|
transitionAppear: BooleanConstructor;
|
package/lib/popup/shared.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { OverlayProps } from '../overlay';
|
1
2
|
import { Interceptor } from '../utils';
|
2
3
|
import type { PropType, CSSProperties, TeleportProps } from 'vue';
|
3
4
|
export declare const popupSharedProps: {
|
@@ -18,6 +19,7 @@ export declare const popupSharedProps: {
|
|
18
19
|
default: true;
|
19
20
|
};
|
20
21
|
beforeClose: PropType<Interceptor>;
|
22
|
+
overlayProps: PropType<Partial<OverlayProps>>;
|
21
23
|
overlayStyle: PropType<CSSProperties>;
|
22
24
|
overlayClass: PropType<unknown>;
|
23
25
|
transitionAppear: BooleanConstructor;
|
package/lib/popup/shared.js
CHANGED
@@ -24,6 +24,7 @@ export declare const shareSheetProps: {
|
|
24
24
|
default: true;
|
25
25
|
};
|
26
26
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
27
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
27
28
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
28
29
|
overlayClass: import("vue").PropType<unknown>;
|
29
30
|
transitionAppear: BooleanConstructor;
|
@@ -71,6 +72,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
71
72
|
default: true;
|
72
73
|
};
|
73
74
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
75
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
74
76
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
75
77
|
overlayClass: import("vue").PropType<unknown>;
|
76
78
|
transitionAppear: BooleanConstructor;
|
@@ -116,6 +118,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
116
118
|
default: true;
|
117
119
|
};
|
118
120
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
121
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
119
122
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
120
123
|
overlayClass: import("vue").PropType<unknown>;
|
121
124
|
transitionAppear: BooleanConstructor;
|
@@ -16,6 +16,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
16
16
|
default: true;
|
17
17
|
};
|
18
18
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
19
20
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
21
|
overlayClass: import("vue").PropType<unknown>;
|
21
22
|
transitionAppear: BooleanConstructor;
|
@@ -61,6 +62,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
61
62
|
default: true;
|
62
63
|
};
|
63
64
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
65
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
64
66
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
65
67
|
overlayClass: import("vue").PropType<unknown>;
|
66
68
|
transitionAppear: BooleanConstructor;
|
package/lib/vant.cjs.js
CHANGED
@@ -1128,6 +1128,8 @@ const popupSharedProps = {
|
|
1128
1128
|
lazyRender: truthProp,
|
1129
1129
|
// callback function before close
|
1130
1130
|
beforeClose: Function,
|
1131
|
+
// overlay props
|
1132
|
+
overlayProps: Object,
|
1131
1133
|
// overlay custom style
|
1132
1134
|
overlayStyle: Object,
|
1133
1135
|
// overlay custom class name
|
@@ -1397,15 +1399,16 @@ var stdin_default$1K = vue.defineComponent({
|
|
1397
1399
|
};
|
1398
1400
|
const renderOverlay = () => {
|
1399
1401
|
if (props2.overlay) {
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
},
|
1402
|
+
const overlayProps2 = extend({
|
1403
|
+
show: props2.show,
|
1404
|
+
class: props2.overlayClass,
|
1405
|
+
zIndex: zIndex.value,
|
1406
|
+
duration: props2.duration,
|
1407
|
+
customStyle: props2.overlayStyle,
|
1408
|
+
role: props2.closeOnClickOverlay ? "button" : void 0,
|
1409
|
+
tabindex: props2.closeOnClickOverlay ? 0 : void 0
|
1410
|
+
}, props2.overlayProps);
|
1411
|
+
return vue.createVNode(Overlay, vue.mergeProps(overlayProps2, useScopeId(), {
|
1409
1412
|
"onClick": onClickOverlay
|
1410
1413
|
}), {
|
1411
1414
|
default: slots["overlay-content"]
|
@@ -3509,13 +3512,14 @@ var stdin_default$1z = vue.defineComponent({
|
|
3509
3512
|
}), pick(slots, pickerToolbarSlots));
|
3510
3513
|
}
|
3511
3514
|
};
|
3512
|
-
|
3515
|
+
const resetSelectedValues = (columns) => {
|
3513
3516
|
columns.forEach((options, index) => {
|
3514
3517
|
if (options.length && !isOptionExist(options, selectedValues.value[index], fields.value)) {
|
3515
3518
|
setValue(index, getFirstEnabledOption(options)[fields.value.value]);
|
3516
3519
|
}
|
3517
3520
|
});
|
3518
|
-
}
|
3521
|
+
};
|
3522
|
+
vue.watch(currentColumns, (columns) => resetSelectedValues(columns), {
|
3519
3523
|
immediate: true
|
3520
3524
|
});
|
3521
3525
|
let lastEmittedModelValue;
|
@@ -3524,6 +3528,9 @@ var stdin_default$1z = vue.defineComponent({
|
|
3524
3528
|
selectedValues.value = newValues.slice(0);
|
3525
3529
|
lastEmittedModelValue = newValues.slice(0);
|
3526
3530
|
}
|
3531
|
+
if (props2.modelValue.length === 0) {
|
3532
|
+
resetSelectedValues(currentColumns.value);
|
3533
|
+
}
|
3527
3534
|
}, {
|
3528
3535
|
deep: true
|
3529
3536
|
});
|
@@ -6295,7 +6302,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
6295
6302
|
deep: true
|
6296
6303
|
});
|
6297
6304
|
const rootStyle = vue.ref({});
|
6298
|
-
vue.onMounted(() => __async(
|
6305
|
+
vue.onMounted(() => __async(null, null, function* () {
|
6299
6306
|
var _a;
|
6300
6307
|
rootStyle.value["--move-distance"] = `-${(_a = barrageWrapper.value) == null ? void 0 : _a.offsetWidth}px`;
|
6301
6308
|
yield vue.nextTick();
|
@@ -7323,7 +7330,8 @@ const imageProps = {
|
|
7323
7330
|
showLoading: truthProp,
|
7324
7331
|
loadingIcon: makeStringProp("photo"),
|
7325
7332
|
crossorigin: String,
|
7326
|
-
referrerpolicy: String
|
7333
|
+
referrerpolicy: String,
|
7334
|
+
decoding: String
|
7327
7335
|
};
|
7328
7336
|
var stdin_default$1c = vue.defineComponent({
|
7329
7337
|
name: name$13,
|
@@ -7403,6 +7411,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
7403
7411
|
const attrs = {
|
7404
7412
|
alt: props2.alt,
|
7405
7413
|
class: bem$12("img"),
|
7414
|
+
decoding: props2.decoding,
|
7406
7415
|
style: {
|
7407
7416
|
objectFit: props2.fit,
|
7408
7417
|
objectPosition: props2.position
|
@@ -9927,12 +9936,14 @@ var stdin_default$U = vue.defineComponent({
|
|
9927
9936
|
}, [item.renderTitle()])])]);
|
9928
9937
|
};
|
9929
9938
|
useExpose({
|
9930
|
-
close
|
9939
|
+
close,
|
9940
|
+
opened
|
9931
9941
|
});
|
9932
9942
|
linkChildren({
|
9933
9943
|
id,
|
9934
9944
|
props: props2,
|
9935
9945
|
offset,
|
9946
|
+
opened,
|
9936
9947
|
updateOffset
|
9937
9948
|
});
|
9938
9949
|
use.useClickAway(root, onClickAway);
|
@@ -10108,6 +10119,9 @@ var stdin_default$T = vue.defineComponent({
|
|
10108
10119
|
"role": "menu",
|
10109
10120
|
"class": bem$K("content"),
|
10110
10121
|
"overlay": overlay,
|
10122
|
+
"overlayProps": {
|
10123
|
+
duration: state.transition && !parent.opened.value ? duration : 0
|
10124
|
+
},
|
10111
10125
|
"position": direction === "down" ? "top" : "bottom",
|
10112
10126
|
"duration": state.transition ? duration : 0,
|
10113
10127
|
"lazyRender": props2.lazyRender,
|
@@ -16201,7 +16215,10 @@ var stdin_default$4 = vue.defineComponent({
|
|
16201
16215
|
makeImageToBase64(props2.image);
|
16202
16216
|
}
|
16203
16217
|
});
|
16204
|
-
vue.watch(() => [
|
16218
|
+
vue.watch(() => [props2.content, props2.textColor, props2.height, props2.width, props2.rotate, props2.gapX, props2.gapY], generateWatermarkUrl);
|
16219
|
+
vue.watch(imageBase64, () => {
|
16220
|
+
vue.nextTick(generateWatermarkUrl);
|
16221
|
+
});
|
16205
16222
|
vue.onMounted(generateWatermarkUrl);
|
16206
16223
|
vue.onUnmounted(revokeWatermarkUrl);
|
16207
16224
|
return () => {
|
@@ -17084,7 +17101,7 @@ const Lazyload = {
|
|
17084
17101
|
});
|
17085
17102
|
}
|
17086
17103
|
};
|
17087
|
-
const version = "4.9.
|
17104
|
+
const version = "4.9.20";
|
17088
17105
|
function install(app) {
|
17089
17106
|
const components = [
|
17090
17107
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -1126,6 +1126,8 @@ const popupSharedProps = {
|
|
1126
1126
|
lazyRender: truthProp,
|
1127
1127
|
// callback function before close
|
1128
1128
|
beforeClose: Function,
|
1129
|
+
// overlay props
|
1130
|
+
overlayProps: Object,
|
1129
1131
|
// overlay custom style
|
1130
1132
|
overlayStyle: Object,
|
1131
1133
|
// overlay custom class name
|
@@ -1395,15 +1397,16 @@ var stdin_default$1K = defineComponent({
|
|
1395
1397
|
};
|
1396
1398
|
const renderOverlay = () => {
|
1397
1399
|
if (props2.overlay) {
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
},
|
1400
|
+
const overlayProps2 = extend({
|
1401
|
+
show: props2.show,
|
1402
|
+
class: props2.overlayClass,
|
1403
|
+
zIndex: zIndex.value,
|
1404
|
+
duration: props2.duration,
|
1405
|
+
customStyle: props2.overlayStyle,
|
1406
|
+
role: props2.closeOnClickOverlay ? "button" : void 0,
|
1407
|
+
tabindex: props2.closeOnClickOverlay ? 0 : void 0
|
1408
|
+
}, props2.overlayProps);
|
1409
|
+
return createVNode(Overlay, mergeProps(overlayProps2, useScopeId(), {
|
1407
1410
|
"onClick": onClickOverlay
|
1408
1411
|
}), {
|
1409
1412
|
default: slots["overlay-content"]
|
@@ -3507,13 +3510,14 @@ var stdin_default$1z = defineComponent({
|
|
3507
3510
|
}), pick(slots, pickerToolbarSlots));
|
3508
3511
|
}
|
3509
3512
|
};
|
3510
|
-
|
3513
|
+
const resetSelectedValues = (columns) => {
|
3511
3514
|
columns.forEach((options, index) => {
|
3512
3515
|
if (options.length && !isOptionExist(options, selectedValues.value[index], fields.value)) {
|
3513
3516
|
setValue(index, getFirstEnabledOption(options)[fields.value.value]);
|
3514
3517
|
}
|
3515
3518
|
});
|
3516
|
-
}
|
3519
|
+
};
|
3520
|
+
watch(currentColumns, (columns) => resetSelectedValues(columns), {
|
3517
3521
|
immediate: true
|
3518
3522
|
});
|
3519
3523
|
let lastEmittedModelValue;
|
@@ -3522,6 +3526,9 @@ var stdin_default$1z = defineComponent({
|
|
3522
3526
|
selectedValues.value = newValues.slice(0);
|
3523
3527
|
lastEmittedModelValue = newValues.slice(0);
|
3524
3528
|
}
|
3529
|
+
if (props2.modelValue.length === 0) {
|
3530
|
+
resetSelectedValues(currentColumns.value);
|
3531
|
+
}
|
3525
3532
|
}, {
|
3526
3533
|
deep: true
|
3527
3534
|
});
|
@@ -6293,7 +6300,7 @@ var stdin_default$1h = defineComponent({
|
|
6293
6300
|
deep: true
|
6294
6301
|
});
|
6295
6302
|
const rootStyle = ref({});
|
6296
|
-
onMounted(() => __async(
|
6303
|
+
onMounted(() => __async(null, null, function* () {
|
6297
6304
|
var _a;
|
6298
6305
|
rootStyle.value["--move-distance"] = `-${(_a = barrageWrapper.value) == null ? void 0 : _a.offsetWidth}px`;
|
6299
6306
|
yield nextTick();
|
@@ -7321,7 +7328,8 @@ const imageProps = {
|
|
7321
7328
|
showLoading: truthProp,
|
7322
7329
|
loadingIcon: makeStringProp("photo"),
|
7323
7330
|
crossorigin: String,
|
7324
|
-
referrerpolicy: String
|
7331
|
+
referrerpolicy: String,
|
7332
|
+
decoding: String
|
7325
7333
|
};
|
7326
7334
|
var stdin_default$1c = defineComponent({
|
7327
7335
|
name: name$13,
|
@@ -7401,6 +7409,7 @@ var stdin_default$1c = defineComponent({
|
|
7401
7409
|
const attrs = {
|
7402
7410
|
alt: props2.alt,
|
7403
7411
|
class: bem$12("img"),
|
7412
|
+
decoding: props2.decoding,
|
7404
7413
|
style: {
|
7405
7414
|
objectFit: props2.fit,
|
7406
7415
|
objectPosition: props2.position
|
@@ -9925,12 +9934,14 @@ var stdin_default$U = defineComponent({
|
|
9925
9934
|
}, [item.renderTitle()])])]);
|
9926
9935
|
};
|
9927
9936
|
useExpose({
|
9928
|
-
close
|
9937
|
+
close,
|
9938
|
+
opened
|
9929
9939
|
});
|
9930
9940
|
linkChildren({
|
9931
9941
|
id,
|
9932
9942
|
props: props2,
|
9933
9943
|
offset,
|
9944
|
+
opened,
|
9934
9945
|
updateOffset
|
9935
9946
|
});
|
9936
9947
|
useClickAway(root, onClickAway);
|
@@ -10106,6 +10117,9 @@ var stdin_default$T = defineComponent({
|
|
10106
10117
|
"role": "menu",
|
10107
10118
|
"class": bem$K("content"),
|
10108
10119
|
"overlay": overlay,
|
10120
|
+
"overlayProps": {
|
10121
|
+
duration: state.transition && !parent.opened.value ? duration : 0
|
10122
|
+
},
|
10109
10123
|
"position": direction === "down" ? "top" : "bottom",
|
10110
10124
|
"duration": state.transition ? duration : 0,
|
10111
10125
|
"lazyRender": props2.lazyRender,
|
@@ -16199,7 +16213,10 @@ var stdin_default$4 = defineComponent({
|
|
16199
16213
|
makeImageToBase64(props2.image);
|
16200
16214
|
}
|
16201
16215
|
});
|
16202
|
-
watch(() => [
|
16216
|
+
watch(() => [props2.content, props2.textColor, props2.height, props2.width, props2.rotate, props2.gapX, props2.gapY], generateWatermarkUrl);
|
16217
|
+
watch(imageBase64, () => {
|
16218
|
+
nextTick(generateWatermarkUrl);
|
16219
|
+
});
|
16203
16220
|
onMounted(generateWatermarkUrl);
|
16204
16221
|
onUnmounted(revokeWatermarkUrl);
|
16205
16222
|
return () => {
|
@@ -17082,7 +17099,7 @@ const Lazyload = {
|
|
17082
17099
|
});
|
17083
17100
|
}
|
17084
17101
|
};
|
17085
|
-
const version = "4.9.
|
17102
|
+
const version = "4.9.20";
|
17086
17103
|
function install(app) {
|
17087
17104
|
const components = [
|
17088
17105
|
ActionBar,
|