zydx-plus 1.28.130 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.28.130",
3
+ "version": "1.28.132",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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
- <slot name="content"></slot>
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: '#5daf34'
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
  }
@@ -6,7 +6,7 @@
6
6
  <div class="ed-head-but" v-for="(item,index) in toolbar">
7
7
  <button v-if="item.key === 'but'" class="but" @click="item.onClick(item,info)" :style="{color: (item.active)? '#00ff00' :'#000'}">{{ item.title }}</button>
8
8
  <label v-else-if="item.key === 'upImg' || item.key === 'uploadAtt'">
9
- <input type="file" @change="upload($event,item.key)" :accept="(item.key === 'upImg')?'image/*':'application/*'" style="display: none;">
9
+ <input type="file" @change="upload($event,item.key)" :accept="(item.key === 'upImg')?'image/*':'.docx,.pptx,.pdf,.xlsx,.mp3,.mp4'" style="display: none;">
10
10
  <span class="but">{{ item.title }}</span>
11
11
  </label>
12
12
  <button v-else class="but" @click="toolTap(item.key)">{{ item.title }}</button>
@@ -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) {
@@ -192,7 +192,8 @@ export default {
192
192
  height: v-bind(height);
193
193
  cursor: grabbing;
194
194
  gap: 16px;
195
- border-bottom: v-bind(border)
195
+ border-bottom: v-bind(border);
196
+ position:relative;
196
197
  }
197
198
 
198
199
  .tree_text_active {
@@ -245,6 +246,9 @@ export default {
245
246
  font-size: 16px;
246
247
  line-height: 30px;
247
248
  letter-spacing: 0px;
249
+ white-space: nowrap;
250
+ overflow: hidden;
251
+ text-overflow: ellipsis;
248
252
  }
249
253
 
250
254
  .children {
package/src/index.js CHANGED
@@ -67,7 +67,7 @@ function install(app) {
67
67
  }
68
68
 
69
69
  export default {
70
- version: '1.28.130',
70
+ version: '1.28.132',
71
71
  install,
72
72
  Calendar,
73
73
  Message,