b62b0fdf by 任超

style:弹框组件重构完成

1 parent 5442fa03
1 .el-dialog { 1 .dialogBox {
2 border-radius: 8px; 2 border-radius: 8px;
3 overflow: hidden; 3 overflow: hidden;
4 background: #FFFFFF; 4 background: #FFFFFF;
......
1 <template> 1 <template>
2 <el-dialog :visible.sync="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" :append-to-body="true" 2 <el-dialog :visible.sync="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" :append-to-body="true"
3 :lock-scroll="true" :close-on-click-modal="false" :custom-class="isMain ? 'mainCenter' : 'contentCenter'" 3 :lock-scroll="true" :close-on-click-modal="false"
4 :destroy-on-close="true" ref="dialogBox"> 4 :custom-class="isMain ? 'mainCenter dialogBox' : 'contentCenter dialogBox'" :destroy-on-close="true"
5 ref="dialogBox">
5 <div slot="title" class="dialog_title" ref="dialogTitle"> 6 <div slot="title" class="dialog_title" ref="dialogTitle">
6 <b>{{ title }}</b> 7 <b>{{ title }}</b>
7 <div v-if="isFullscreen" class="dialog_full"> 8 <div v-if="isFullscreen" class="dialog_full">
...@@ -27,7 +28,7 @@ export default { ...@@ -27,7 +28,7 @@ export default {
27 value: { type: Boolean, default: false }, 28 value: { type: Boolean, default: false },
28 isMain: { 29 isMain: {
29 type: Boolean, 30 type: Boolean,
30 default: true 31 default: false
31 }, 32 },
32 isButton: { 33 isButton: {
33 type: Boolean, 34 type: Boolean,
......