Modal add fullscreen prop

This commit is contained in:
梁灏 2018-06-26 18:46:20 +08:00
parent 877c7fd870
commit d42d4def98
3 changed files with 107 additions and 2 deletions

View file

@ -95,6 +95,10 @@
transfer: {
type: Boolean,
default: true
},
fullscreen: {
type: Boolean,
default: false
}
},
data () {
@ -120,7 +124,15 @@
return `${prefixCls}-mask`;
},
classes () {
return `${prefixCls}`;
return [
`${prefixCls}`,
{
[`${prefixCls}-fullscreen`]: this.fullscreen,
[`${prefixCls}-fullscreen-no-header`]: this.fullscreen && !this.showHead,
[`${prefixCls}-fullscreen-no-footer`]: this.fullscreen && this.footerHide
}
];
},
mainStyles () {
let style = {};