diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue index 2f8e76c1..7e41f7a8 100644 --- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue +++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue @@ -9,11 +9,15 @@ - + @@ -24,7 +28,8 @@ export default { name: 'new-toot', data () { return { - ctrlPressed: false + ctrlPressed: false, + attachedFiles: [] } }, computed: { @@ -109,6 +114,12 @@ export default { type: 'error' }) }) + }, + selectImage () { + this.$refs.image.click() + }, + uploadImage (e) { + console.log(e.target.files) } } } @@ -154,6 +165,14 @@ export default { .el-dialog__footer { background-color: #f2f6fc; + .upload-image { + text-align: left; + + .image-input { + display: none; + } + } + .text-count { padding-right: 24px; color: #909399;