wip
This commit is contained in:
parent
5d05a25ae2
commit
205e728025
|
@ -10,7 +10,7 @@
|
||||||
<mk-post-preview v-if="reply" :class="$style.postPreview" :post="reply"/>
|
<mk-post-preview v-if="reply" :class="$style.postPreview" :post="reply"/>
|
||||||
<mk-post-form ref="form"
|
<mk-post-form ref="form"
|
||||||
:reply="reply"
|
:reply="reply"
|
||||||
@posted="$refs.window.close"
|
@posted="onPosted"
|
||||||
@change-uploadings="onChangeUploadings"
|
@change-uploadings="onChangeUploadings"
|
||||||
@change-attached-media="onChangeMedia"/>
|
@change-attached-media="onChangeMedia"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,6 +39,9 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
onChangeMedia(media) {
|
onChangeMedia(media) {
|
||||||
this.media = media;
|
this.media = media;
|
||||||
|
},
|
||||||
|
onPosted() {
|
||||||
|
(this.$refs.window as any).close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,9 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openPostForm() {
|
openPostForm() {
|
||||||
document.body.appendChild(new MkPostFormWindow().$mount().$el);
|
document.body.appendChild(new MkPostFormWindow({
|
||||||
|
parent: this
|
||||||
|
}).$mount().$el);
|
||||||
},
|
},
|
||||||
onKeydown(e) {
|
onKeydown(e) {
|
||||||
if (e.target.tagName == 'INPUT' || e.target.tagName == 'TEXTAREA') return;
|
if (e.target.tagName == 'INPUT' || e.target.tagName == 'TEXTAREA') return;
|
||||||
|
|
Loading…
Reference in New Issue