zydx-plus 1.19.102 → 1.19.104
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
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<button class="but" @click="complete">{{ butText }}</button>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="enclosure" v-if="uploadAttData.length > 0 && enclosureShow">
|
|
24
|
-
<p
|
|
24
|
+
<p :style="enclosureStyle">{{ enclosureText }}</p>
|
|
25
25
|
<div class="enclosure-list" v-for="(item,index) in uploadAttData">
|
|
26
26
|
<div class="enclosure-item">
|
|
27
27
|
<span>{{ index + 1 }}. {{ (item.name)? item.name : item.annexName }}</span>
|
|
@@ -122,8 +122,8 @@ export default {
|
|
|
122
122
|
enclosureStyle: {
|
|
123
123
|
type: Object,
|
|
124
124
|
default: {
|
|
125
|
-
'font-size': '
|
|
126
|
-
'font-weight': '
|
|
125
|
+
'font-size': '14px',
|
|
126
|
+
'font-weight': 'normal',
|
|
127
127
|
'color': '#000'
|
|
128
128
|
}
|
|
129
129
|
},
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
176
176
|
default: true
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
|
-
emits: ['see','del','complete','update:data'],
|
|
179
|
+
emits: ['see','del','complete','update:data','enclosureSuccess'],
|
|
180
180
|
watch:{
|
|
181
181
|
data(e) {
|
|
182
182
|
this.editor.commands.setContent(json2html({node: "root",child: (e.html === undefined)? [] : e.html}))
|
|
@@ -285,6 +285,7 @@ export default {
|
|
|
285
285
|
if(v === 'uploadAtt') {
|
|
286
286
|
r.data.annex.active = true
|
|
287
287
|
this.uploadAttData.push(r.data.annex)
|
|
288
|
+
this.$emit('enclosureSuccess', r.data.annex)
|
|
288
289
|
}else {
|
|
289
290
|
const url = this.uploadImage.url + r.data
|
|
290
291
|
const html = [
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
pdf.getPage(that.pageIndex).then(function (page) {
|
|
124
124
|
let canvas = document.getElementById(that.id)
|
|
125
125
|
let ctx = canvas.getContext('2d');
|
|
126
|
-
let viewport = page.getViewport({scale: 1})
|
|
126
|
+
let viewport = page.getViewport({scale: 1.2})
|
|
127
127
|
canvas.width = viewport.width * 2
|
|
128
128
|
canvas.height = viewport.height * 2
|
|
129
129
|
canvas.style.width = viewport.width + 'px'
|