@varlet/ui 3.3.8 → 3.3.10
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/fab/Fab.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/overlay/Overlay.mjs +2 -1
- package/es/popup/Popup.mjs +10 -5
- package/es/popup/props.mjs +1 -0
- package/es/snackbar/index.mjs +1 -1
- package/es/space/Space.mjs +1 -0
- package/es/varlet.esm.js +1049 -1045
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/varlet.cjs.js +20 -15
- package/package.json +7 -7
- package/types/popup.d.ts +1 -0
- package/umd/varlet.js +5 -5
package/es/fab/Fab.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeProps as _mergeProps, withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
|
2
2
|
import Button from "../button/index.mjs";
|
|
3
3
|
import Icon from "../icon/index.mjs";
|
|
4
4
|
import Drag from "../drag/index.mjs";
|
package/es/index.bundle.mjs
CHANGED
|
@@ -265,7 +265,7 @@ import './tooltip/style/index.mjs'
|
|
|
265
265
|
import './uploader/style/index.mjs'
|
|
266
266
|
import './watermark/style/index.mjs'
|
|
267
267
|
|
|
268
|
-
const version = '3.3.
|
|
268
|
+
const version = '3.3.10'
|
|
269
269
|
|
|
270
270
|
function install(app) {
|
|
271
271
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -176,7 +176,7 @@ export * from './tooltip/index.mjs'
|
|
|
176
176
|
export * from './uploader/index.mjs'
|
|
177
177
|
export * from './watermark/index.mjs'
|
|
178
178
|
|
|
179
|
-
const version = '3.3.
|
|
179
|
+
const version = '3.3.10'
|
|
180
180
|
|
|
181
181
|
function install(app) {
|
|
182
182
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/overlay/Overlay.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
|
2
|
+
import { defineComponent, Teleport, Transition } from "vue";
|
|
2
3
|
import { props } from "./props.mjs";
|
|
3
4
|
import { useLock } from "../context/lock.mjs";
|
|
4
5
|
import { useZIndex } from "../context/zIndex.mjs";
|
package/es/popup/Popup.mjs
CHANGED
|
@@ -14,7 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
|
|
18
|
+
import { defineComponent, watch, Transition, Teleport, computed } from "vue";
|
|
18
19
|
import { props } from "./props.mjs";
|
|
19
20
|
import { useLock } from "../context/lock.mjs";
|
|
20
21
|
import { useZIndex } from "../context/zIndex.mjs";
|
|
@@ -42,9 +43,13 @@ var stdin_default = defineComponent({
|
|
|
42
43
|
const {
|
|
43
44
|
zIndex
|
|
44
45
|
} = useZIndex(() => props2.show, 3);
|
|
46
|
+
const normalizedZIndex = computed(() => {
|
|
47
|
+
var _a;
|
|
48
|
+
return (_a = props2.zIndex) != null ? _a : zIndex.value;
|
|
49
|
+
});
|
|
45
50
|
const {
|
|
46
51
|
onStackTop
|
|
47
|
-
} = useStack(() => props2.show,
|
|
52
|
+
} = useStack(() => props2.show, normalizedZIndex);
|
|
48
53
|
const {
|
|
49
54
|
disabled
|
|
50
55
|
} = useTeleport();
|
|
@@ -79,7 +84,7 @@ var stdin_default = defineComponent({
|
|
|
79
84
|
return _createVNode("div", {
|
|
80
85
|
"class": classes(n("overlay"), overlayClass),
|
|
81
86
|
"style": __spreadValues({
|
|
82
|
-
zIndex:
|
|
87
|
+
zIndex: normalizedZIndex.value - 1
|
|
83
88
|
}, overlayStyle),
|
|
84
89
|
"onClick": hidePopup
|
|
85
90
|
}, null);
|
|
@@ -88,7 +93,7 @@ var stdin_default = defineComponent({
|
|
|
88
93
|
return _withDirectives(_createVNode("div", _mergeProps({
|
|
89
94
|
"class": classes(n("content"), n(`--${props2.position}`), [props2.defaultStyle, n("--content-background-color")], [props2.defaultStyle, n("$-elevation--3")], [props2.safeArea, n("--safe-area")], [props2.safeAreaTop, n("--safe-area-top")]),
|
|
90
95
|
"style": {
|
|
91
|
-
zIndex:
|
|
96
|
+
zIndex: normalizedZIndex.value
|
|
92
97
|
},
|
|
93
98
|
"role": "dialog",
|
|
94
99
|
"aria-modal": "true"
|
|
@@ -103,7 +108,7 @@ var stdin_default = defineComponent({
|
|
|
103
108
|
default: () => [_withDirectives(_createVNode("div", {
|
|
104
109
|
"class": classes(n("$--box"), n(), [!props2.overlay, n("--pointer-events-none")]),
|
|
105
110
|
"style": {
|
|
106
|
-
zIndex:
|
|
111
|
+
zIndex: normalizedZIndex.value - 2
|
|
107
112
|
}
|
|
108
113
|
}, [props2.overlay && renderOverlay(), _createVNode(Transition, {
|
|
109
114
|
"name": props2.transition || n(`$-pop-${props2.position}`)
|
package/es/popup/props.mjs
CHANGED
package/es/snackbar/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
|
18
18
|
import VarSnackbarCore from "./core.mjs";
|
|
19
19
|
import VarSnackbar from "./Snackbar.mjs";
|
|
20
20
|
import context from "../context/index.mjs";
|
package/es/space/Space.mjs
CHANGED