|
@@ -1,5 +1,5 @@
|
|
|
import {createApp} from 'vue'
|
|
|
-import ElementPlus from 'element-plus'
|
|
|
+import ElementPlus, {useZIndex} from 'element-plus'
|
|
|
import 'element-plus/dist/index.css'
|
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
|
import 'normalize.css' // css初始化
|
|
@@ -26,14 +26,26 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
app.component(key, component)
|
|
|
}
|
|
|
|
|
|
-VXETable.setup({
|
|
|
+const vxeTableSetUp = {
|
|
|
version: 0,
|
|
|
- zIndex: 99999, // 想多高就设置多高
|
|
|
+ zIndex: 0, // 想多高就设置多高
|
|
|
table: {
|
|
|
autoResize: true
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+const objProxy = new Proxy(vxeTableSetUp, {
|
|
|
+ get: function (target, key) {
|
|
|
+ if (key === 'zIndex') {
|
|
|
+ return useZIndex().nextZIndex()
|
|
|
+ }
|
|
|
+ return target[key];
|
|
|
+ },
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+VXETable.setup(objProxy)
|
|
|
+
|
|
|
app.use(ElementPlus, {locale: zhCn, size: store.state.app.elementSize})
|
|
|
app.use(store)
|
|
|
app.use(router)
|