diff --git a/ruoyi-ui/src/components/Editor/index.vue b/ruoyi-ui/src/components/Editor/index.vue index 9054995..c4d3269 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 +