zydx-plus 1.32.209 → 1.32.210
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>`
|
|
@@ -569,6 +569,7 @@ export default {
|
|
|
569
569
|
height: 20px;
|
|
570
570
|
display: inline-block;
|
|
571
571
|
line-height: 16px;
|
|
572
|
+
box-sizing: border-box;
|
|
572
573
|
}
|
|
573
574
|
.but-f{
|
|
574
575
|
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>
|