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

Merge pull request !180 from JOSWAY/master
This commit is contained in:
若依 2021-03-07 10:44:04 +08:00 committed by Gitee
commit 78deee063d
1 changed files with 200 additions and 195 deletions

View File

@ -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,
},
};
},