mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-19 17:18:17 +09:00
18 lines
437 B
TypeScript
18 lines
437 B
TypeScript
|
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);
|
||
|
});
|
||
|
}
|