[new feature] Dialog: add getContainer option (#3040)

This commit is contained in:
neverland
2019-03-22 15:13:30 +08:00
committed by GitHub
parent 5a44d204bd
commit c1adaebaa6
9 changed files with 25 additions and 22 deletions
+1 -2
View File
@@ -16,8 +16,6 @@ const initInstance = () => {
instance.$on('input', value => {
instance.value = value;
});
document.body.appendChild(instance.$el);
};
const Dialog = options => {
@@ -47,6 +45,7 @@ Dialog.defaultOptions = {
lockScroll: true,
beforeClose: null,
messageAlign: '',
getContainer: 'body',
confirmButtonText: '',
cancelButtonText: '',
showConfirmButton: true,