Modal add fullscreen prop
This commit is contained in:
parent
877c7fd870
commit
d42d4def98
3 changed files with 107 additions and 2 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue