zydx-plus 1.30.165 → 1.30.167

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": "zydx-plus",
3
- "version": "1.30.165",
3
+ "version": "1.30.167",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="editor">
2
+ <div class="z-editor">
3
3
  <div class="editor-header" v-show="!readOnly">
4
4
  <div class="editor-but" v-for="(item,index) in butData">
5
5
  <div class="editor-but-name" v-if="item.key === 'group-upload'">
@@ -151,7 +151,6 @@ export default {
151
151
  }
152
152
  },
153
153
  deep: true,
154
- immediate: true
155
154
  },
156
155
  readOnly: {
157
156
  handler: function (e, oldVal) {
@@ -169,7 +168,7 @@ export default {
169
168
  mounted() {
170
169
  const _this = this
171
170
  _this.editor = new Editor({
172
- content: '',
171
+ content: json2html({node: "root",child: (_this.html === undefined)? [] : _this.html}),
173
172
  editable: !_this.readOnly,
174
173
  extensions: [
175
174
  signId, // 签名
@@ -650,7 +649,7 @@ label{
650
649
  li{
651
650
  list-style: none;
652
651
  }
653
- .editor{
652
+ .z-editor{
654
653
  border: 1px solid rgba(204, 204, 204, 1);
655
654
  position: relative;
656
655
  }
package/src/index.js CHANGED
@@ -71,7 +71,7 @@ function install(app) {
71
71
  }
72
72
 
73
73
  export default {
74
- version: '1.30.165',
74
+ version: '1.30.167',
75
75
  install,
76
76
  Calendar,
77
77
  Message,