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 +1 -1
- package/src/components/word2/src/word.vue +18 -17
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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) -
|
|
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
|
|
126
|
-
|
|
127
|
-
|
|
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 = ''
|