zydx-plus 1.30.157 → 1.30.158
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
|
<template>
|
|
2
2
|
<we-toolbar v-show="!readOnly && toolbar.length > 0" class="toolbar" :handle="handle"/>
|
|
3
|
-
<we-editable v-show="!editableShow" class="editable" :style="{'min-height': height + 'px'}" :handle="handle" v-model:json="formData.html" />
|
|
3
|
+
<we-editable v-show="!editableShow" class="editable" :style="{'min-height': height + 'px',opacity: readOnly? '0':'1'}" :handle="handle" v-model:json="formData.html" />
|
|
4
4
|
<div class="but" v-if="!readOnly && toolbar.length > 0">
|
|
5
5
|
<button class="def-but" v-if="butShow" @click="confirm">完成</button>
|
|
6
6
|
</div>
|
|
@@ -77,13 +77,13 @@ export default defineComponent({
|
|
|
77
77
|
watch: {
|
|
78
78
|
html: {
|
|
79
79
|
handler: function (e, oldVal) {
|
|
80
|
+
this.editableShow = false
|
|
80
81
|
this.formData.html = e
|
|
81
82
|
if(this.readOnly) {
|
|
82
|
-
this.editableShow = false
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
this.editableShow = true
|
|
85
|
-
|
|
86
|
-
},
|
|
85
|
+
this.readOnlyPage()
|
|
86
|
+
},10)
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
deep: true,
|
|
@@ -91,7 +91,6 @@ export default defineComponent({
|
|
|
91
91
|
},
|
|
92
92
|
readOnly: {
|
|
93
93
|
handler: function (e, oldVal) {
|
|
94
|
-
this.opts.editable.config.readOnly = e
|
|
95
94
|
this.editableShow = e
|
|
96
95
|
if(e) this.readOnlyPage()
|
|
97
96
|
},
|
|
@@ -126,7 +125,6 @@ export default defineComponent({
|
|
|
126
125
|
break
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
|
-
console.log(this.htmlArr)
|
|
130
128
|
},
|
|
131
129
|
closeMaker(data) {
|
|
132
130
|
this.$emit('enclosure',data)
|
|
@@ -155,7 +153,7 @@ export default defineComponent({
|
|
|
155
153
|
editable: {
|
|
156
154
|
config: {
|
|
157
155
|
placeholder: props.placeholder,
|
|
158
|
-
readOnly:
|
|
156
|
+
readOnly: false,
|
|
159
157
|
// autoFocus: (props.html !== ''),
|
|
160
158
|
autoFocus: true, // 自动聚焦
|
|
161
159
|
MENU_CONF: {
|