Skip to content

Commit 986a432

Browse files
committed
fix: convert zIndex type from String to Number
1 parent 265635b commit 986a432

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/src/components/basic/BasicOptions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:overlay-transition="overlayTransition ? 'vfm' : ''"
1313
:z-index-auto="zIndexAuto"
1414
:z-index-base="zIndexBase"
15-
:z-index="allowZIndex ? zIndexBase : false"
15+
:z-index="allowZIndex ? zIndex : false"
1616
:attach="attach ? '#attach' : false"
1717
:focus-retain="focusRetain"
1818
:focus-trap="focusTrap"

lib/VueFinalModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default {
127127
calculateZIndex() {
128128
if (this.zIndex === false) {
129129
if (this.zIndexAuto) {
130-
return this.zIndexBase + 2 * (this.modalStackIndex || 0)
130+
return +this.zIndexBase + 2 * (this.modalStackIndex || 0)
131131
} else {
132132
return false
133133
}

0 commit comments

Comments
 (0)