diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index 3a84834..46b1b42 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -17,7 +17,7 @@ Modal.newInstance = properties => { const div = document.createElement('div'); div.innerHTML = ` - +
{{{ title }}}
@@ -49,7 +49,8 @@ Modal.newInstance = properties => { cancelText: t('i.modal.cancelText'), showCancel: false, loading: false, - buttonLoading: false + buttonLoading: false, + scrollable: false }), computed: { iconTypeCls () { @@ -153,6 +154,10 @@ Modal.newInstance = properties => { modal.$parent.loading = props.loading; } + if ('scrollable' in props) { + modal.$parent.scrollable = props.scrollable; + } + // notice when component destroy modal.$parent.onRemove = props.onRemove; diff --git a/test/routers/more.vue b/test/routers/more.vue index 9a702f2..a820145 100644 --- a/test/routers/more.vue +++ b/test/routers/more.vue @@ -18,6 +18,8 @@

对话框内容

Toggle scrollable + Create Instance Scrollable + Create Instance Non-scrollable