zydx-plus 1.32.236 → 1.32.237

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.32.236",
3
+ "version": "1.32.237",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -3,18 +3,18 @@
3
3
  <div class="word-slot" :style="page?style:{}" :ref="'test'+id">
4
4
  <slot></slot>
5
5
  </div>
6
- <!-- <div class="answer">-->
7
- <!-- <div class="answer-max">-->
8
- <!-- <div class="answer-title">一、单选题《共2题,合计20分)</div>-->
9
- <!-- <div class="answer-list">-->
10
- <!-- <div class="answer-list-title">1.我们从分享时机、分享形式、分享动机、分享场量4个来聊聊了社交分享]的那些事儿在常用的杜交分享姐件中,微信 (微信好友和朋友西) 、微、QQ?</div>-->
11
- <!-- <div class="answer-const">-->
12
- <!-- <div class="answer-const-title">参考答案:</div>-->
13
- <!-- <div class="answer-const-text">A.景4个址度来聊聊 社交分享] 的那些事儿在常用的社交分享组件中,微信《微信好友和朋友圈) 、微博、QQ</div>-->
14
- <!-- </div>-->
15
- <!-- </div>-->
16
- <!-- </div>-->
17
- <!-- </div>-->
6
+ <!-- <div class="answer">-->
7
+ <!-- <div class="answer-max">-->
8
+ <!-- <div class="answer-title">一、单选题《共2题,合计20分)</div>-->
9
+ <!-- <div class="answer-list">-->
10
+ <!-- <div class="answer-list-title">1.我们从分享时机、分享形式、分享动机、分享场量4个来聊聊了社交分享]的那些事儿在常用的杜交分享姐件中,微信 (微信好友和朋友西) 、微、QQ?</div>-->
11
+ <!-- <div class="answer-const">-->
12
+ <!-- <div class="answer-const-title">参考答案:</div>-->
13
+ <!-- <div class="answer-const-text">A.景4个址度来聊聊 社交分享] 的那些事儿在常用的社交分享组件中,微信《微信好友和朋友圈) 、微博、QQ</div>-->
14
+ <!-- </div>-->
15
+ <!-- </div>-->
16
+ <!-- </div>-->
17
+ <!-- </div>-->
18
18
  <div class="word-page" :ref="'wordPage'+id" v-if="page">
19
19
  <div class="page-cont" v-for="(item,index) in htmlArr" :key="index" :style="{'z-index': zIndex}">
20
20
  <div class="page-cont-html" v-html="item" :style="{padding: padding?'100px':'100px 0', 'padding-top': index === 0?'10px': '100px'}"></div>
@@ -89,7 +89,7 @@ export default {
89
89
  this.html = ''
90
90
  setTimeout(() => {
91
91
  const data = this.$refs[`test${this.id}`].children[0].childNodes
92
- this.max = (this.$refs[`wordPage${this.id}`].offsetWidth * 1.4) - 200
92
+ this.max = (this.$refs[`wordPage${this.id}`].offsetWidth * 1.4) - 300
93
93
  this.children(data)
94
94
  },100)
95
95
  },
@@ -97,7 +97,7 @@ export default {
97
97
  for (let i = 0; i < data.length; i++) {
98
98
  let mar = this.marginCal(data[i])
99
99
  let text = data[i].offsetHeight + mar
100
- if((this.pHeight + text) > this.max) {
100
+ if((this.pHeight + text) > (this.htmlArr.length === 0? this.max: this.max - 100)) {
101
101
  this.propsClass(data[i].children)
102
102
  }else {
103
103
  this.pHeight += text
@@ -122,9 +122,10 @@ export default {
122
122
  },
123
123
  propsClass(data) {
124
124
  for (let i = 0; i < data.length; i++) {
125
- let text = data[i].offsetHeight
126
- if((this.pHeight + text) > this.max) {
127
- if(data[i].children.length < 3 || data[i].className.indexOf('paper-choice') !== -1 || data[i].localName === 'table') {
125
+ let mar = this.marginCal(data[i])
126
+ let text = data[i].offsetHeight + mar
127
+ if((this.pHeight + text) > (this.htmlArr.length === 0? this.max: this.max - 100)) {
128
+ if(data[i].children.length === 0 || data[i].className.indexOf('paper-choice') !== -1 || data[i].localName === 'table') {
128
129
  this.htmlArr.push(this.html)
129
130
  this.pHeight = 0
130
131
  this.html = ''
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ function install(app) {
79
79
  }
80
80
 
81
81
  export default {
82
- version: '1.32.236',
82
+ version: '1.32.237',
83
83
  install,
84
84
  Calendar,
85
85
  Message,