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

@ -14,7 +14,7 @@
/>
<div :class="$style.footer">
<button :class="$style.upload" title="PCからドライブにファイルをアップロード" @click="upload">%fa:upload%</button>
<button :class="$style.cancel" @click="close">キャンセル</button>
<button :class="$style.cancel" @click="cancel">キャンセル</button>
<button :class="$style.ok" :disabled="multiple && files.length == 0" @click="ok">決定</button>
</div>
</mk-window>
@ -50,6 +50,9 @@ export default Vue.extend({
ok() {
this.$emit('selected', this.multiple ? this.files : this.files[0]);
(this.$refs.window as any).close();
},
cancel() {
(this.$refs.window as any).close();
}
}
});