From e56eda3f07f679689483d5e9aad9e4a6d3c1e402 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 15 Jan 2024 11:34:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=BB=84=E4=B8=AD=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81=E8=BF=98=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=A7=BB=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 9cf388cb59..92e8e17ab7 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -92,10 +92,15 @@ const props = defineProps({ themes: { type: String as PropType, default: 'dark' + }, + canvasActive: { + type: Boolean, + required: false, + default: true } }) -const { scale, element, editMode, active, disabled, showPosition } = toRefs(props) +const { scale, element, editMode, active, disabled, showPosition, canvasActive } = toRefs(props) const state = reactive({ data: null, @@ -272,7 +277,7 @@ const showPlaceHolder = computed(() => { }) const setEdit = () => { - if (computedCanEdit.value) { + if (computedCanEdit.value && canvasActive.value) { canEdit.value = true element.value['editing'] = true myValue.value = element.value.propValue.textValue