Skip to content

Commit dfb67e7

Browse files
gongjsvanoneang
authored andcommitted
Feat tinymce (#249)
* Update README.md * Update axios.js * feat: publish new version * Update README.md * Update README.md * Update README.md * fix:版本日志中字段名拼写错误 * feat:增加tinymce组件默认内容功能 * fix * fix:修复defaultContent无效的bug
1 parent ada6a21 commit dfb67e7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/base/tinymce/index.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ export default {
9696
}
9797
},
9898
watch: {
99-
// eslint-disable-next-line
100-
content: function() {
101-
this.$emit('change', this.content)
99+
content: {
100+
handler() {
101+
this.$emit('change', this.content)
102+
},
103+
},
104+
defaultContent: {
105+
handler() {
106+
this.content = this.defaultContent
107+
},
108+
immediate: true,
102109
},
103110
},
104111
activated() {

0 commit comments

Comments
 (0)