style:弹框组件重构完成
Showing
2 changed files
with
5 additions
and
4 deletions
| 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, | ... | ... |
-
Please register or sign in to post a comment