This commit is contained in:
syuilo 2018-02-17 18:14:23 +09:00
parent 283c64e6f1
commit 61b95e0c26
11 changed files with 179 additions and 121 deletions

View file

@ -0,0 +1,17 @@
import MkChooseFolderFromDriveWindow from '../../../common/views/components/choose-folder-from-drive-window.vue';
export default function(this: any, opts) {
return new Promise((res, rej) => {
const o = opts || {};
const w = new MkChooseFolderFromDriveWindow({
parent: this,
propsData: {
title: o.title
}
}).$mount();
w.$once('selected', folder => {
res(folder);
});
document.body.appendChild(w.$el);
});
}