File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/SlideoutPanel Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ function isString(val) {
13
13
return typeof val === ' string' ;
14
14
}
15
15
16
+ const Z_INDEX_BASE = 100 ;
17
+
16
18
const vm = {
17
19
name: ' slideout-panel' ,
18
20
components: {},
@@ -30,7 +32,7 @@ const vm = {
30
32
},
31
33
panelTopVisibleZindex () {
32
34
const visiblePanels = this .panels .filter (panel => panel .visible );
33
- return (visiblePanels .length > 0 ) ? Math .max (... visiblePanels .map (panel => panel .styles [' z-index' ])) : 100 ;
35
+ return (visiblePanels .length > 0 ) ? Math .max (... visiblePanels .map (panel => panel .styles [' z-index' ])) : Z_INDEX_BASE ;
34
36
}
35
37
},
36
38
methods: {
@@ -93,7 +95,7 @@ const vm = {
93
95
}
94
96
95
97
panel .styles = {
96
- ' z-index' : this .panels .length + 100
98
+ ' z-index' : this .panels .length + Z_INDEX_BASE
97
99
};
98
100
99
101
if (panel .openOn === ' top' || panel .openOn === ' bottom' ) {
You can’t perform that action at this time.
0 commit comments