From 93f7335e1a52591662d5d37f41ac352860b2ca2a Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期二, 04 六月 2024 18:39:50 +0800
Subject: [PATCH] 1、对象引用改动。
---
Source/ProjectWeb/src/components/PLT-basic-component/richText.vue | 35 ++++++++++++++++++++++++++---------
1 files changed, 26 insertions(+), 9 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..025248d 100644
--- a/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue
+++ b/Source/ProjectWeb/src/components/PLT-basic-component/richText.vue
@@ -1,5 +1,5 @@
<template>
- <div id='quillEditorQiniu'>
+ <div id='quillEditorQiniu' v-if="display">
<!-- 鍩轰簬elementUi鐨勪笂浼犵粍浠� el-upload begin-->
<el-upload
:accept="'image'"
@@ -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" :disabled="disabled" :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,24 @@
['clean'] // 娓呴櫎鏂囨湰鏍煎紡
];
export default {
+ name: 'richText',
+ props: {
+ visible: {
+ type: Boolean,
+ default: false,
+ },
+ value: {
+ type: String
+ },
+ disabled:{
+ type:Boolean,
+ default:false
+ },
+ display:{
+ type:Boolean,
+ default:true
+ }
+ },
data() {
return {
headers: {
@@ -65,6 +87,7 @@
},
}
},
+ computed: {},
methods: {
//涓婁紶鍥剧墖涔嬪墠async
beforeEditorUpload(file) {
@@ -126,13 +149,7 @@
console.log("寮�濮嬪姞杞�")
// 鍒濆缁欑紪杈戝櫒璁剧疆title
},
- watch: {
- content(newVal, oldVal) {
- //this.$emit('input', newVal);
- console.log(newVal)
- console.log(oldVal)
- }
- },
+ watch: {},
}
--
Gitblit v1.10.0