zydx-plus 1.28.131 → 1.28.132
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
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
<i @click.stop="close"></i>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="drag-cont" @mousemove="footMove" @mouseleave="footMove">
|
|
13
|
-
<
|
|
13
|
+
<div class="drag-cont-slot">
|
|
14
|
+
<slot name="content"></slot>
|
|
15
|
+
</div>
|
|
14
16
|
<i class="down" v-if="dragStatus" @mousedown="footDown($event,'d')" @mouseup="footUp"></i>
|
|
15
17
|
<i class="in" v-if="dragStatus" @mousedown="footDown($event,'in')" @mouseup="footUp"></i>
|
|
16
18
|
<i class="right" v-if="dragStatus" @mousedown="footDown($event,'r')" @mouseup="footUp"></i>
|
|
@@ -51,7 +53,7 @@ export default {
|
|
|
51
53
|
},
|
|
52
54
|
titleColor: {
|
|
53
55
|
type: String,
|
|
54
|
-
default: '
|
|
56
|
+
default: 'rgba(19, 191, 108, 1)'
|
|
55
57
|
},
|
|
56
58
|
dragStatus: {
|
|
57
59
|
type: Boolean,
|
|
@@ -116,6 +118,11 @@ export default {
|
|
|
116
118
|
</script>
|
|
117
119
|
|
|
118
120
|
<style scoped>
|
|
121
|
+
.drag-cont-slot{
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
overflow: auto;
|
|
125
|
+
}
|
|
119
126
|
.down-text-cont{
|
|
120
127
|
display: inline-block;
|
|
121
128
|
}
|
|
@@ -298,6 +298,10 @@ export default {
|
|
|
298
298
|
if(v === 'uploadAtt') {
|
|
299
299
|
file.active = true
|
|
300
300
|
this.uploadAttData.push(file)
|
|
301
|
+
this.$emit('updateData', {
|
|
302
|
+
html: html2json(this.editor.getHTML()).child,
|
|
303
|
+
enclosure: this.uploadAttData
|
|
304
|
+
})
|
|
301
305
|
}else {
|
|
302
306
|
this.uploadFile(file,this.uploadImage).then(r => {
|
|
303
307
|
this.imgHtml(r.data)
|
|
@@ -342,14 +346,6 @@ export default {
|
|
|
342
346
|
},
|
|
343
347
|
download(index) {
|
|
344
348
|
this.$emit('download', this.uploadAttData[index])
|
|
345
|
-
// const url = this.uploadImage.url + this.uploadAttData[index].filePath
|
|
346
|
-
// let a = document.createElement('a');
|
|
347
|
-
// a.style.display = 'none';
|
|
348
|
-
// a.download = this.uploadAttData[index].filename? this.uploadAttData[index].filename : this.uploadAttData[index].annexName;
|
|
349
|
-
// a.href = url;
|
|
350
|
-
// document.body.appendChild(a);
|
|
351
|
-
// a.click();
|
|
352
|
-
// document.body.removeChild(a);
|
|
353
349
|
},
|
|
354
350
|
selection() {
|
|
355
351
|
const { from } = this.editor.state.selection
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
for (let i = 0; i < that.pdfPages; i++) {
|
|
82
82
|
let inx = i+1
|
|
83
83
|
pdf.getPage(inx).then(function (page) {
|
|
84
|
-
let viewport = page.getViewport({scale: 1})
|
|
84
|
+
let viewport = page.getViewport({scale: 1.3})
|
|
85
85
|
return page.getOperatorList().then(function(opList) {
|
|
86
86
|
let svgGfx = new PdfJs.SVGGraphics(page.commonObjs, page.objs)
|
|
87
87
|
return svgGfx.getSVG(opList, viewport).then(function(svg) {
|