Commit 78deee06 authored by 若依's avatar 若依 Committed by Gitee

!180 富文本编辑组件支持只读

Merge pull request !180 from JOSWAY/master
parents 4ad00364 339b932a
...@@ -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