赞
踩
方案一、(如果添加append-to-body属性,则此方案不生效)
在<el-dialog>外层添加一个父盒子比如class='batch-box',然后在style scoped中用::v-deep(); 具体代码如下:
.batch-box{
::v-deep(.el-dialog__body){
max-height: none;
}
}
方案二、
用文档里的自定义属性custom-class=‘batch-box’,然后在style中写(不能有scoped属性,如果不想删该属性,则在style scoped下面再写一个style即可。亲测:如果写到style scoped中即使用::v-deep也不生效~)
<style scoped lang='scss'></style>
<style>
.dialog-batch .el-dialog__body{
max-height: none;
}
</style>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。