askbot-dragon 1.4.43 → 1.4.45
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
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
<script>
|
|
86
86
|
import pdfPosition from './pdfPosition.vue'
|
|
87
|
-
|
|
87
|
+
import { zoomElement } from '../assets/js/hammer'
|
|
88
88
|
export default {
|
|
89
89
|
data () {
|
|
90
90
|
return {
|
|
@@ -99,7 +99,6 @@ export default {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
mounted() {
|
|
102
|
-
// zoomElement(document.getElementById('drawer_content_pre'))
|
|
103
102
|
},
|
|
104
103
|
props:{
|
|
105
104
|
url:{
|
|
@@ -118,6 +117,15 @@ export default {
|
|
|
118
117
|
components:{
|
|
119
118
|
pdfPosition
|
|
120
119
|
},
|
|
120
|
+
watch:{
|
|
121
|
+
drawer(value) {
|
|
122
|
+
if(value) {
|
|
123
|
+
this.$nextTick(() =>{
|
|
124
|
+
zoomElement(document.getElementById('drawer_content_pre'))
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
121
129
|
computed:{
|
|
122
130
|
previewUrl() {
|
|
123
131
|
console.debug('VUE_APP_ENV',process.env.VUE_APP_ENV)
|