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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sone-ui-component-3.2.4",
3
- "version": "2.1.26",
3
+ "version": "2.1.27",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -108,14 +108,15 @@ export default {
108
108
  this.initEditor();
109
109
  },
110
110
  watch: {
111
- content: {
112
- immediate: true,
113
- handler: function (newV) {
114
- this.$nextTick(() => {
115
- this.editor.txt.html(newV);
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", this.content);
186
+ this.$emit("change", newHtml);
186
187
  this.$emit("update:content", newHtml);
187
188
  };
188
189
 
package/src/index.js CHANGED
@@ -57,7 +57,7 @@ if (typeof window !== 'undefined' && window.Vue) {
57
57
  }
58
58
 
59
59
  export default {
60
- version: '2.1.26',
60
+ version: '2.1.27',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,