From 89504036742a64ac44c821b9a069220faf150915 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 15 四月 2024 10:32:52 +0800 Subject: [PATCH] 文件上传整合代码 --- Source/ProjectWeb/src/components/PLT-basic-component/richText.vue | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue b/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue index 662bc32..36cddd7 100644 --- a/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue +++ b/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue @@ -12,9 +12,13 @@ class="avatar-uploader"> </el-upload> <!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload end--> - <quill-editor ref="customQuillEditor" v-model="content" :options="editorOption" class="editor"> + <quill-editor ref="customQuillEditor" v-model="value" :options="editorOption" class="editor"> </quill-editor> </div> + <!-- <template #footer>--> + <!-- <el-button size="small">纭畾</el-button>--> + <!-- <el-button size="small" @click="dialogVisible = false">鍏抽棴</el-button>--> + <!-- </template>--> </template> <script> @@ -36,6 +40,16 @@ ['clean'] // 娓呴櫎鏂囨湰鏍煎紡 ]; export default { + name: 'richText', + props: { + visible: { + type: Boolean, + default: false, + }, + value: { + type: String + } + }, data() { return { headers: { @@ -65,6 +79,7 @@ }, } }, + computed: {}, methods: { //涓婁紶鍥剧墖涔嬪墠async beforeEditorUpload(file) { @@ -126,13 +141,7 @@ console.log("寮�濮嬪姞杞�") // 鍒濆缁欑紪杈戝櫒璁剧疆title }, - watch: { - content(newVal, oldVal) { - //this.$emit('input', newVal); - console.log(newVal) - console.log(oldVal) - } - }, + watch: {}, } -- Gitblit v1.9.3