zydx-plus 1.32.209 → 1.32.211
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
|
@@ -317,7 +317,7 @@ export default {
|
|
|
317
317
|
xhr.send(param)
|
|
318
318
|
})
|
|
319
319
|
},
|
|
320
|
-
upload(e,v) {
|
|
320
|
+
upload(e,v) { // 上传文件
|
|
321
321
|
const file = e.target.files[0]
|
|
322
322
|
if(this.uploadType) {
|
|
323
323
|
if(v === 'uploadAtt') {
|
|
@@ -345,7 +345,7 @@ export default {
|
|
|
345
345
|
}
|
|
346
346
|
e.target.value = ''
|
|
347
347
|
},
|
|
348
|
-
imgHtml(data) {
|
|
348
|
+
imgHtml(data) { // 插入图片
|
|
349
349
|
const url = this.uploadImage.url + data
|
|
350
350
|
const cla = this.randomId()
|
|
351
351
|
const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" /></p>`
|
|
@@ -503,6 +503,14 @@ export default {
|
|
|
503
503
|
.ed-head-but{
|
|
504
504
|
display: inline-block;
|
|
505
505
|
}
|
|
506
|
+
.ed-head-but label{
|
|
507
|
+
display: inline-block;
|
|
508
|
+
width: 100%;
|
|
509
|
+
height: 100%;
|
|
510
|
+
}
|
|
511
|
+
.ed-head-but label span{
|
|
512
|
+
line-height: 15px !important;
|
|
513
|
+
}
|
|
506
514
|
.ed-title{
|
|
507
515
|
flex: 1;
|
|
508
516
|
text-align: left;
|
|
@@ -569,6 +577,7 @@ export default {
|
|
|
569
577
|
height: 20px;
|
|
570
578
|
display: inline-block;
|
|
571
579
|
line-height: 16px;
|
|
580
|
+
box-sizing: border-box;
|
|
572
581
|
}
|
|
573
582
|
.but-f{
|
|
574
583
|
float: left;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<button class="but" @click="del(item)">删除</button>
|
|
14
14
|
</b>
|
|
15
15
|
<b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="replace" ref="b">
|
|
16
|
-
<button class="but" @click="replaceTap(item,index)"
|
|
16
|
+
<button class="but" @click="replaceTap(item,index)">{{ replaceText }}</button>
|
|
17
17
|
</b>
|
|
18
18
|
<b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="choice" ref="b">
|
|
19
19
|
<button class="but"
|
|
@@ -94,7 +94,11 @@ export default {
|
|
|
94
94
|
scoreShow: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
default: false
|
|
97
|
-
}
|
|
97
|
+
},
|
|
98
|
+
replaceText: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: '替换题目'
|
|
101
|
+
},
|
|
98
102
|
},
|
|
99
103
|
watch: {
|
|
100
104
|
data: {
|
|
@@ -211,4 +215,4 @@ export default {
|
|
|
211
215
|
}
|
|
212
216
|
</script>
|
|
213
217
|
|
|
214
|
-
<style scoped src="./word.css"></style>
|
|
218
|
+
<style scoped src="./word.css"></style>
|