Commit 339b932a authored by Josway's avatar Josway

富文本编辑组件支持只读

parent 0b5c7f4c
...@@ -26,6 +26,11 @@ export default { ...@@ -26,6 +26,11 @@ export default {
type: Number, type: Number,
default: null, default: null,
}, },
/* 只读 */
readOnly: {
type: Boolean,
default: false,
}
}, },
data() { data() {
return { return {
...@@ -51,7 +56,7 @@ export default { ...@@ -51,7 +56,7 @@ export default {
], ],
}, },
placeholder: "请输入内容", placeholder: "请输入内容",
readOnly: false, readOnly: this.readOnly,
}, },
}; };
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment