zydx-plus 1.35.556 → 1.35.557
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 +1 -1
- package/src/components/editor/src/editor.vue +10 -8
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -986,13 +986,14 @@ export default {
|
|
|
986
986
|
// this.editor?.commands.setContent(json2html({node: "root", child: (e === undefined || e === null) ? [] : e}))
|
|
987
987
|
this.editor?.commands.setContent(dataHtml)
|
|
988
988
|
if (this.readOnly) {
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
// lxq 25.7.14
|
|
990
|
+
// if (this.page) this.editableShow = true
|
|
991
|
+
// setTimeout(() => {
|
|
991
992
|
if (this.page) {
|
|
992
993
|
this.editableShow = false
|
|
993
994
|
this.readOnlyPage()
|
|
994
995
|
}
|
|
995
|
-
}, 300)
|
|
996
|
+
// }, 300)
|
|
996
997
|
}
|
|
997
998
|
setTimeout(() => {
|
|
998
999
|
this.init = true
|
|
@@ -1005,20 +1006,21 @@ export default {
|
|
|
1005
1006
|
},
|
|
1006
1007
|
readOnly: {
|
|
1007
1008
|
handler: function (e) {
|
|
1008
|
-
|
|
1009
|
+
// lxq 25.7.14
|
|
1010
|
+
// let time = setInterval(() => {
|
|
1009
1011
|
if (this.editor) { // 没有时间以后 停止定时器
|
|
1010
1012
|
this.editor.setOptions({editable: !e})
|
|
1011
1013
|
if (this.page) {
|
|
1012
|
-
setTimeout(() => {
|
|
1014
|
+
// setTimeout(() => {
|
|
1013
1015
|
this.editableShow = !e
|
|
1014
1016
|
if (e) {
|
|
1015
1017
|
this.readOnlyPage() // 只读分页
|
|
1016
1018
|
}
|
|
1017
|
-
}, 300)
|
|
1019
|
+
// }, 300)
|
|
1018
1020
|
}
|
|
1019
|
-
clearInterval(time) //停止计时器,清除定时器
|
|
1021
|
+
// clearInterval(time) //停止计时器,清除定时器
|
|
1020
1022
|
}
|
|
1021
|
-
}, 10)
|
|
1023
|
+
// }, 10)
|
|
1022
1024
|
},
|
|
1023
1025
|
deep: true,
|
|
1024
1026
|
immediate: true
|