zydx-plus 1.35.625 → 1.35.627
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
|
@@ -252,6 +252,9 @@ export default {
|
|
|
252
252
|
</script>
|
|
253
253
|
|
|
254
254
|
<style scoped>
|
|
255
|
+
.choice-list{
|
|
256
|
+
text-indent: 27px;
|
|
257
|
+
}
|
|
255
258
|
.list-cont-input{
|
|
256
259
|
width: 100%;
|
|
257
260
|
height: 30px;
|
|
@@ -263,7 +266,8 @@ export default {
|
|
|
263
266
|
height: 100%;
|
|
264
267
|
border: none;
|
|
265
268
|
outline: none;
|
|
266
|
-
padding: 0 30px 0 10px;
|
|
269
|
+
/* padding: 0 30px 0 10px; */
|
|
270
|
+
padding: 0 30px 0 0;
|
|
267
271
|
box-sizing: border-box;
|
|
268
272
|
}
|
|
269
273
|
.list-cont-input img{
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
<button :disabled="forwardShow" @click="forward">下一步</button>
|
|
25
25
|
<button @click="reset" v-if="resetShow">重置位置</button>
|
|
26
26
|
<button v-if="protectShow" @click="preservation">保存</button>
|
|
27
|
-
<button @click="fullTap" v-if="fullShow">全屏</button>
|
|
28
|
-
<button @click="fullDel" v-
|
|
27
|
+
<button @click="fullTap(false)" v-if="fullShow&&full">全屏</button>
|
|
28
|
+
<button @click="fullDel(true)" v-if="!fullShow">退出</button>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
<div :id="id" class="mindMapContainer"></div>
|
|
@@ -103,6 +103,10 @@ export default {
|
|
|
103
103
|
resetShow: {
|
|
104
104
|
type: Boolean,
|
|
105
105
|
default: true
|
|
106
|
+
},
|
|
107
|
+
full: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: true
|
|
106
110
|
}
|
|
107
111
|
},
|
|
108
112
|
beforeUnmount() {
|
|
@@ -212,8 +216,8 @@ export default {
|
|
|
212
216
|
document.webkitExitFullscreen();
|
|
213
217
|
}
|
|
214
218
|
},
|
|
215
|
-
fullDel() {
|
|
216
|
-
this.fullShow =
|
|
219
|
+
fullDel(v) {
|
|
220
|
+
this.fullShow = v
|
|
217
221
|
this.mindMap.view.setTransformData({
|
|
218
222
|
state: {scale: 1, x: 0, y: 0, sx: 0, sy: 0},
|
|
219
223
|
transform: {
|
|
@@ -236,8 +240,8 @@ export default {
|
|
|
236
240
|
this.cancelFullscreen()
|
|
237
241
|
},
|
|
238
242
|
// 全屏
|
|
239
|
-
fullTap() {
|
|
240
|
-
this.fullShow =
|
|
243
|
+
fullTap(v) {
|
|
244
|
+
this.fullShow = v
|
|
241
245
|
this.fullScreen(document.body)
|
|
242
246
|
},
|
|
243
247
|
msgFun(e) {
|
|
@@ -102,6 +102,10 @@ export default {
|
|
|
102
102
|
isLook: { // 题库资源中,查看试题true,创建试题false(新版题库类资源-选择题编辑状态时,试题选项只在编辑框中显示此时isLook: false)
|
|
103
103
|
type: Boolean,
|
|
104
104
|
default: true
|
|
105
|
+
},
|
|
106
|
+
single: { // 后排按钮单选
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false
|
|
105
109
|
}
|
|
106
110
|
},
|
|
107
111
|
watch: {
|
|
@@ -138,7 +142,18 @@ export default {
|
|
|
138
142
|
},
|
|
139
143
|
customButTap(e,d) {
|
|
140
144
|
if(e.key === 'option') d.open = !d.open
|
|
141
|
-
if(
|
|
145
|
+
if(this.single) {
|
|
146
|
+
if(!e.active) {
|
|
147
|
+
this.value.forEach(x => {
|
|
148
|
+
x.customBut.forEach(y => {
|
|
149
|
+
y.active = false
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
e.active = !e.active
|
|
154
|
+
}else {
|
|
155
|
+
if(e.butStart) e.active = !e.active
|
|
156
|
+
}
|
|
142
157
|
if(e.active) {
|
|
143
158
|
if(e.key === 'disabled') {
|
|
144
159
|
this.disabledFun(true)
|
|
@@ -248,7 +263,7 @@ export default {
|
|
|
248
263
|
this.$emit('changeAll', this.value)
|
|
249
264
|
},
|
|
250
265
|
ques(v) {
|
|
251
|
-
return v
|
|
266
|
+
return v?.indexOf('101') > -1
|
|
252
267
|
},
|
|
253
268
|
styleText(v) {
|
|
254
269
|
if (!v || v === 'null') return
|