sone-ui-component-3.2.4 2.1.26 → 2.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sone-ui.common.js +52 -51
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.css +1 -1
- package/lib/sone-ui.umd.js +52 -51
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +3 -3
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/editor/src/main.vue +10 -9
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -108,14 +108,15 @@ export default {
|
|
|
108
108
|
this.initEditor();
|
|
109
109
|
},
|
|
110
110
|
watch: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
111
|
+
//下段不注释会导致用户无法输入回车换行,改为开发自行使用.txt.html手动设置初始值
|
|
112
|
+
// content: {
|
|
113
|
+
// immediate: true,
|
|
114
|
+
// handler: function (newV) {
|
|
115
|
+
// this.$nextTick(() => {
|
|
116
|
+
// this.editor.txt.html(newV);
|
|
117
|
+
// });
|
|
118
|
+
// },
|
|
119
|
+
// },
|
|
119
120
|
disabled: {
|
|
120
121
|
immediate: true,
|
|
121
122
|
handler: function (newV) {
|
|
@@ -182,7 +183,7 @@ export default {
|
|
|
182
183
|
|
|
183
184
|
// 4.配置 onchange 回调函数,将数据同步到 vue 中
|
|
184
185
|
this.editor.config.onchange = (newHtml) => {
|
|
185
|
-
this.$emit("change",
|
|
186
|
+
this.$emit("change", newHtml);
|
|
186
187
|
this.$emit("update:content", newHtml);
|
|
187
188
|
};
|
|
188
189
|
|