forked from FoundKeyGang/FoundKey
wip
This commit is contained in:
parent
eb1fa6e43c
commit
5f8021dfff
1 changed files with 10 additions and 14 deletions
|
@ -1,22 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<mk-window ref="window" is-modal @closed="$destroy">
|
<mk-window is-modal @closed="$destroy">
|
||||||
<span slot="header">
|
<span slot="header">
|
||||||
<span v-if="!parent.opts.reply">%i18n:desktop.tags.mk-post-form-window.post%</span>
|
<span v-if="!parent.opts.reply">%i18n:desktop.tags.mk-post-form-window.post%</span>
|
||||||
<span v-if="parent.opts.reply">%i18n:desktop.tags.mk-post-form-window.reply%</span>
|
<span v-if="parent.opts.reply">%i18n:desktop.tags.mk-post-form-window.reply%</span>
|
||||||
<span :class="$style.files" v-if="parent.files.length != 0">{ '%i18n:desktop.tags.mk-post-form-window.attaches%'.replace('{}', parent.files.length) }</span>
|
<span :class="$style.count" v-if="media.length != 0">{{ '%i18n:desktop.tags.mk-post-form-window.attaches%'.replace('{}', media.length) }}</span>
|
||||||
<span :class="$style.files" v-if="parent.uploadingFiles.length != 0">{ '%i18n:desktop.tags.mk-post-form-window.uploading-media%'.replace('{}', parent.uploadingFiles.length) }<mk-ellipsis/></span>
|
<span :class="$style.count" v-if="uploadings.length != 0">{{ '%i18n:desktop.tags.mk-post-form-window.uploading-media%'.replace('{}', uploadings.length) }}<mk-ellipsis/></span>
|
||||||
</span>
|
</span>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<div class="ref" v-if="parent.opts.reply">
|
<mk-post-preview v-if="parent.opts.reply" :class="$style.postPreview" :post="reply"/>
|
||||||
<mk-post-preview :class="$style.postPreview" :post="reply"/>
|
<mk-post-form ref="form"
|
||||||
</div>
|
:reply="reply"
|
||||||
<div class="body">
|
@post="$refs.window.close"
|
||||||
<mk-post-form ref="form"
|
@change-uploadings="onChangeUploadings"
|
||||||
:reply="reply"
|
@change-attached-media="onChangeMedia"/>
|
||||||
@post="$refs.window.close"
|
|
||||||
@change-uploadings="onChangeUploadings"
|
|
||||||
@change-attached-media="onChangeMedia"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</mk-window>
|
</mk-window>
|
||||||
</template>
|
</template>
|
||||||
|
@ -47,7 +43,7 @@ export default Vue.extend({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" module>
|
<style lang="stylus" module>
|
||||||
.files
|
.count
|
||||||
margin-left 8px
|
margin-left 8px
|
||||||
opacity 0.8
|
opacity 0.8
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue