Commit 8e12c8df by 李长胜

弹窗改回自定义高度

1 parent d33a8862
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width"> <el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<div style="height:60vh;overflow:auto"> <!-- <div style="height:60vh;overflow:auto"> -->
<el-scrollbar v-if="hasScroll"> <el-scrollbar v-if="hasScroll">
<span slot="title"> <span slot="title">
<span class="main-title">{{ title }}</span> <span class="main-title">{{ title }}</span>
...@@ -21,8 +21,7 @@ ...@@ -21,8 +21,7 @@
</span> </span>
<slot></slot> <slot></slot>
</template> </template>
</div> <!-- </div> -->
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
...@@ -86,6 +85,10 @@ export default { ...@@ -86,6 +85,10 @@ export default {
type:String, type:String,
default:'' default:''
}, },
// modalAppendToBody:{
// type: Boolean,
// default: false
// },
width: { width: {
type: String, type: String,
default: '580px' default: '580px'
...@@ -93,7 +96,7 @@ export default { ...@@ -93,7 +96,7 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'mini'
}, }
}, },
methods: { methods: {
...@@ -116,8 +119,9 @@ export default { ...@@ -116,8 +119,9 @@ export default {
// border-bottom: 1px solid #e6e6e6; // border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px; // padding: 20px 25px;
// } // }
.el-dialog-div {
height: 60vh; // .el-dialog-div {
overflow: auto; // height: 60vh;
} // overflow: auto;
// }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!