证书内容输入框支持拖动文件上传

This commit is contained in:
GoEdgeLab
2023-03-24 10:17:05 +08:00
parent 11ffa23a5f
commit 5f02f5ac62
4 changed files with 18 additions and 13 deletions

View File

@@ -21,6 +21,9 @@ Vue.component("file-textarea", {
},
setValue: function (value) {
this.realValue = value
},
focus: function () {
this.$refs.textarea.focus()
}
},
template: `<textarea @drop.prevent="drop" @dragover.prevent="dragover" ref="textarea" v-model="realValue"></textarea>`