forward
This commit is contained in:
parent
d81146f7be
commit
df6d151153
1 changed files with 7 additions and 2 deletions
|
@ -24,7 +24,7 @@ Modal.newInstance = properties => {
|
|||
buttonLoading: false,
|
||||
scrollable: false,
|
||||
closable: false,
|
||||
autoClose: false
|
||||
autoClose: true
|
||||
}),
|
||||
render (h) {
|
||||
let footerVNodes = [];
|
||||
|
@ -102,7 +102,8 @@ Modal.newInstance = properties => {
|
|||
props: Object.assign({}, _props, {
|
||||
width: this.width,
|
||||
scrollable: this.scrollable,
|
||||
closable: this.closable
|
||||
closable: this.closable,
|
||||
autoClose: this.autoClose
|
||||
}),
|
||||
domProps: {
|
||||
value: this.visible
|
||||
|
@ -246,6 +247,10 @@ Modal.newInstance = properties => {
|
|||
modal.$parent.onCancel = props.onCancel;
|
||||
}
|
||||
|
||||
if ('autoClose' in props) {
|
||||
modal.$parent.autoClose = props.autoClose;
|
||||
}
|
||||
|
||||
if ('onOk' in props) {
|
||||
modal.$parent.onOk = props.onOk;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue