This commit is contained in:
syuilo
2018-10-12 14:34:54 +09:00
parent dded76099c
commit 9b253ccb3a
6 changed files with 27 additions and 54 deletions

View File

@@ -18,6 +18,7 @@ export default (os) => (opts) => {
}).$mount();
vm.$once('cancel', recover);
vm.$once('posted', recover);
if (opts.cb) vm.$once('closed', opts.cb);
document.body.appendChild(vm.$el);
(vm as any).focus();
};

View File

@@ -89,26 +89,6 @@ export default Vue.extend({
type: Object,
required: true
}
},
data() {
return {
showContent: false
};
},
methods: {
reply() {
(this as any).apis.post({
reply: this.appearNote
});
},
renote() {
(this as any).apis.post({
renote: this.appearNote
});
},
}
});
</script>