任一存 hace 3 años
padre
commit
2453443293
Se han modificado 3 ficheros con 14 adiciones y 1 borrados
  1. 6 0
      src/config.js
  2. 2 0
      src/main.js
  3. 6 1
      src/views/RelicsAppr.vue

+ 6 - 0
src/config.js

@@ -1,3 +1,9 @@
 export default {
   version: 'v20221018.1122',
+  zIndex: {
+    topBar: {
+      self: '3',
+      children: {},
+    },
+  },
 }

+ 2 - 0
src/main.js

@@ -19,6 +19,8 @@ if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
   Vue.prototype.$isSafari = true
 }
 
+Vue.prototype.$config = globalConfig
+
 const idealWindowInnerWidth = 2436 // 设计稿的宽度
 const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
 Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth

+ 6 - 1
src/views/RelicsAppr.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="relics-appr">
-    <div class="top-bar">
+    <div
+      class="top-bar"
+      :style="{
+        zIndex: $config.zIndex.topBar.self
+      }"
+    >
       <div class="left-wrap">
         <button
           class="switch-3d"