@varlet/ui 3.3.9 → 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.
@@ -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.9'
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.9'
179
+ const version = '3.3.10'
180
180
 
181
181
  function install(app) {
182
182
  ActionSheet.install && app.use(ActionSheet)
@@ -43,9 +43,13 @@ var stdin_default = defineComponent({
43
43
  const {
44
44
  zIndex
45
45
  } = useZIndex(() => props2.show, 3);
46
+ const normalizedZIndex = computed(() => {
47
+ var _a;
48
+ return (_a = props2.zIndex) != null ? _a : zIndex.value;
49
+ });
46
50
  const {
47
51
  onStackTop
48
- } = useStack(() => props2.show, zIndex);
52
+ } = useStack(() => props2.show, normalizedZIndex);
49
53
  const {
50
54
  disabled
51
55
  } = useTeleport();
@@ -80,7 +84,7 @@ var stdin_default = defineComponent({
80
84
  return _createVNode("div", {
81
85
  "class": classes(n("overlay"), overlayClass),
82
86
  "style": __spreadValues({
83
- zIndex: zIndex.value - 1
87
+ zIndex: normalizedZIndex.value - 1
84
88
  }, overlayStyle),
85
89
  "onClick": hidePopup
86
90
  }, null);
@@ -89,7 +93,7 @@ var stdin_default = defineComponent({
89
93
  return _withDirectives(_createVNode("div", _mergeProps({
90
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")]),
91
95
  "style": {
92
- zIndex: zIndex.value
96
+ zIndex: normalizedZIndex.value
93
97
  },
94
98
  "role": "dialog",
95
99
  "aria-modal": "true"
@@ -104,7 +108,7 @@ var stdin_default = defineComponent({
104
108
  default: () => [_withDirectives(_createVNode("div", {
105
109
  "class": classes(n("$--box"), n(), [!props2.overlay, n("--pointer-events-none")]),
106
110
  "style": {
107
- zIndex: zIndex.value - 2
111
+ zIndex: normalizedZIndex.value - 2
108
112
  }
109
113
  }, [props2.overlay && renderOverlay(), _createVNode(Transition, {
110
114
  "name": props2.transition || n(`$-pop-${props2.position}`)
@@ -28,6 +28,7 @@ const props = {
28
28
  type: Boolean,
29
29
  default: true
30
30
  },
31
+ zIndex: Number,
31
32
  safeArea: Boolean,
32
33
  safeAreaTop: Boolean,
33
34
  teleport: {