zydx-plus 1.35.525 → 1.35.526

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.35.525",
3
+ "version": "1.35.526",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -297,7 +297,8 @@ export default defineComponent({
297
297
  matrix,
298
298
  } = this;
299
299
  return (
300
- <div class="table_wrapper" style={[getHeight, getWidth]}>
300
+ // <div class="table_wrapper" style={[getHeight, getWidth]}>
301
+ <div class="table_wrapper" style={[getWidth]}>
301
302
  {draggable ? (
302
303
  <div class="table_root" aria-label="draggbale-table">
303
304
  <VueDraggableNext tag={"table"} border="0" cellpadding="0" cellspacing="0" animation={"200"} onEnd={onDragEnd}>
@@ -343,6 +344,7 @@ export default defineComponent({
343
344
  opacity: 1;
344
345
  overflow: scroll;
345
346
  border-top: 1px solid #cccccc;
347
+ border-left: 1px solid #cccccc;
346
348
  }
347
349
 
348
350
  .table_wrapper::-webkit-scrollbar {
@@ -354,7 +356,6 @@ export default defineComponent({
354
356
  table-layout: fixed;
355
357
  display: table;
356
358
  max-width: 100%;
357
- border-left: 1px solid #cccccc;
358
359
  margin: 0 auto;
359
360
  border-spacing: 0;
360
361
  }
@@ -404,8 +404,10 @@
404
404
  </div>
405
405
  <div class="tip-box" style="min-width:600px;max-height: 900px;">
406
406
  <div class="tip-title" v-html="`${item.fileName}`"></div>
407
- <div class="tip-boxContent" style="height: 700px;">
408
- <zydx-read :url="item.url" style="height: 100%"></zydx-read>
407
+ <div class="tip-boxContent" :style="{height: item.isPPT?'590px':'700px'}">
408
+ <iframe v-if="item.isPPT" :src="item.url" frameborder="no" height="590"
409
+ scrolling="no" width="100%"></iframe>
410
+ <zydx-read v-else :url="item.url" style="height: 100%"></zydx-read>
409
411
  </div>
410
412
  </div>
411
413
  <div style="display: flex;flex-direction: row;justify-content: flex-end;margin-top: 10px;">
@@ -2614,33 +2616,57 @@ export default {
2614
2616
  const r = await this.signIdData('reference')
2615
2617
  const html = butJson(this.editor, this.menusText)[v].html
2616
2618
  // if (r === -1) {
2617
- const last = this.editor.state.selection.$anchor.path[0].content.size
2618
- const id = new Date().getTime()
2619
- let dataInfo = {
2619
+ const last = this.editor.state.selection.$anchor.path[0].content.size
2620
+ const id = new Date().getTime()
2621
+ if (t === -1) this.editor.chain().focus().insertContentAt(to, html).run()
2622
+ const num = this.upSort(this.editor, 'enclosure')
2623
+ const html2 = `<p contenteditable="false" data-signId="u-${id}" data-url="${url}" class="indent mu"><span>${num.num}. ${name}</span></p>`
2624
+ this.editor.chain().focus().insertContentAt(num.len, html2).run()
2625
+ const json = this.editor.getJSON()
2626
+ for (let i = 0; i < json.content.length; i++) {
2627
+ const item = json.content[i]
2628
+ if (item.attrs.signId === 'enclosure' && item.content[0].text === '附件列表:') {
2629
+ item.attrs.titleId = this.checkbox ? 'indent' : null
2630
+ }
2631
+ }
2632
+ this.editor.chain().setContent(<p></p>).run()
2633
+ this.editor.chain().setContent(json).run()
2634
+ this.isShowUpload = false
2635
+ const ext = file.name.split('.').pop().toLowerCase();
2636
+ let pptArr = ['pptx', 'ppt', 'pptm', 'potx', 'potm', 'pot', 'ppsx', 'ppsm', 'ppam', 'ppa', 'odp']
2637
+ let dataInfo = {}
2638
+ if (pptArr.includes(ext)) {
2639
+ let officeInfo = this.getOffice
2640
+ let annex = res.data.annex
2641
+ officeInfo.meta.wordPath = annex.showPath
2642
+ officeInfo.meta.filePath = annex.filePath
2643
+ officeInfo.meta.fileName = annex.fileName
2644
+ officeInfo.meta.useType = 'view'
2645
+ officeInfo.meta.height = '590'
2646
+ let officeRes = await this.getOfficePath(officeInfo)
2647
+ dataInfo = {
2620
2648
  isShow: false,
2621
2649
  edit: false,
2622
2650
  id: `${id}`,
2623
2651
  type: v,
2624
2652
  exegesis: this.tipTitle,
2625
2653
  fileName: name,
2626
- url: url
2654
+ isPPT:true,
2655
+ url: officeRes.data
2627
2656
  }
2628
- if (t === -1) this.editor.chain().focus().insertContentAt(to, html).run()
2629
- const num = this.upSort(this.editor, 'enclosure')
2630
- const html2 = `<p contenteditable="false" data-signId="u-${id}" data-url="${url}" class="indent mu"><span>${num.num}. ${name}</span></p>`
2631
- this.editor.chain().focus().insertContentAt(num.len, html2).run()
2632
- const json = this.editor.getJSON()
2633
- for (let i = 0; i < json.content.length; i++) {
2634
- const item = json.content[i]
2635
- if (item.attrs.signId === 'enclosure' && item.content[0].text === '附件列表:') {
2636
- item.attrs.titleId = this.checkbox ? 'indent' : null
2637
- }
2657
+ } else {
2658
+ dataInfo = {
2659
+ isShow: false,
2660
+ edit: false,
2661
+ id: `${id}`,
2662
+ type: v,
2663
+ exegesis: this.tipTitle,
2664
+ fileName: name,
2665
+ url: url
2638
2666
  }
2639
- this.editor.chain().setContent(<p></p>).run()
2640
- this.editor.chain().setContent(json).run()
2641
- this.isShowUpload = false
2642
- this.interpositionData.push(dataInfo)
2643
- this.documentClick()
2667
+ }
2668
+ this.interpositionData.push(dataInfo)
2669
+ this.documentClick()
2644
2670
  // return
2645
2671
  // }
2646
2672
  /*const num1 = this.upSort(this.editor, 'reference')
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.525',
92
+ version: '1.35.526',
93
93
  install,
94
94
  Calendar,
95
95
  Message,