From 0922410a22a16f54f9b1271ebe37c244a7d3bf27 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 7 Mar 2021 15:21:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=E5=8F=AA=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/Editor/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/components/Editor/index.vue b/ruoyi-ui/src/components/Editor/index.vue index 905499536..c4d326911 100644 --- a/ruoyi-ui/src/components/Editor/index.vue +++ b/ruoyi-ui/src/components/Editor/index.vue @@ -26,6 +26,11 @@ export default { type: Number, default: null, }, + /* 只读 */ + readOnly: { + type: Boolean, + default: false, + } }, data() { return { @@ -51,7 +56,7 @@ export default { ], }, placeholder: "请输入内容", - readOnly: false, + readOnly: this.readOnly, }, }; }, @@ -192,4 +197,4 @@ export default { .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { content: "等宽字体"; } - \ No newline at end of file +