6a8cee3b by 任超

style:弹框组件

1 parent b3ca9731
export default {
SERVERAPI: '/service-bdcdj2'
SERVERAPI: '/service-bdcdj9'
}
\ No newline at end of file
......
<template>
<el-dialog :visible.sync="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" :append-to-body="true"
:lock-scroll="true" :close-on-click-modal="false" @close="closeDialog" :key="key"
<el-dialog :visible.sync="dialogVisible" v-if="dialogVisible" :width="width" :fullscreen="fullscreen" top="0"
:append-to-body="appendToBody" :lock-scroll="true" :close-on-click-modal="false" @close="closeDialog" :key="key"
:custom-class="isMain ? 'mainCenter dialogBox' : 'contentCenter dialogBox'" :destroy-on-close="true" ref="dialogBox"
id="dialogBox">
<div slot="title">
......@@ -30,6 +30,10 @@ export default {
type: Boolean,
default: false
},
appendToBody: {
type: Boolean,
default: false
},
isButton: {
type: Boolean,
default: true,
......
......@@ -103,7 +103,7 @@ export default {
.ls-mask {
width: 100%;
height: 100%;
z-index: 2001;
z-index: 100000;
position: fixed;
left: 0;
top: 0;
......
......@@ -33,7 +33,7 @@ import _ from 'lodash'
import * as filters from './filters' // global filters
import './permission' // permission control
Vue.use(Element, { size: 'small' })
Vue.use(Element, { size: 'small', zIndex: 1000 })
Vue.use(Base)
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
......