From a931c8a3a29e89606f8814585dc5b20b7d24f24c Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 15 Dec 2022 10:52:31 +0800 Subject: [PATCH] feat: notice editor readonly --- yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue | 3 ++- yudao-ui-admin-vue3/src/views/system/notice/index.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue b/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue index 00f636e2c..7a264d31e 100644 --- a/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue +++ b/yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue @@ -23,6 +23,7 @@ const props = defineProps({ type: Object as PropType, default: () => undefined }, + readonly: propTypes.bool.def(false), modelValue: propTypes.string.def('') }) @@ -61,7 +62,7 @@ const editorConfig = computed((): IEditorConfig => { return Object.assign( { placeholder: '请输入内容...', - readOnly: false, + readOnly: props.readonly, customAlert: (s: string, t: string) => { switch (t) { case 'success': diff --git a/yudao-ui-admin-vue3/src/views/system/notice/index.vue b/yudao-ui-admin-vue3/src/views/system/notice/index.vue index eeed4c4f4..239c0b414 100644 --- a/yudao-ui-admin-vue3/src/views/system/notice/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/notice/index.vue @@ -53,7 +53,7 @@ :data="detailData" >