@zykjcommon/questions 0.0.29 → 0.0.31
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/dist/zykjcommon-questions.common.js +45 -27
- package/dist/zykjcommon-questions.css +1 -1
- package/dist/zykjcommon-questions.umd.js +45 -27
- package/dist/zykjcommon-questions.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/assets/scss/questions/zykjcommon-questions.scss +1 -0
- package/src/components/questions/Question_Classify.vue +19 -3
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<div class="main-content">
|
|
12
12
|
<div class="main-append">
|
|
13
|
-
<!-- <div class="append-item"></div>-->
|
|
13
|
+
<!-- <div class="append-item"></div>-->
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -74,8 +74,10 @@ export default {
|
|
|
74
74
|
this.unmountedDo()
|
|
75
75
|
},
|
|
76
76
|
mounted() {
|
|
77
|
-
this.
|
|
78
|
-
|
|
77
|
+
this.intervalFindEl().then(()=>{
|
|
78
|
+
this.setRootFontSize()
|
|
79
|
+
window.addEventListener('resize',this.setRootFontSize)
|
|
80
|
+
})
|
|
79
81
|
this.init()
|
|
80
82
|
this.$watch('optionList',(nv)=>{
|
|
81
83
|
if(nv && nv.length){
|
|
@@ -167,6 +169,20 @@ export default {
|
|
|
167
169
|
let correct = this.questionInfo.answerMap.is_correct === '1' ? true : false
|
|
168
170
|
return correct
|
|
169
171
|
},
|
|
172
|
+
intervalFindEl(){
|
|
173
|
+
return new Promise((resolve,reject)=>{
|
|
174
|
+
if(this.$el){
|
|
175
|
+
resolve()
|
|
176
|
+
}else{
|
|
177
|
+
let interval = setInterval(()=>{
|
|
178
|
+
if(this.$el){
|
|
179
|
+
clearInterval(interval)
|
|
180
|
+
resolve()
|
|
181
|
+
}
|
|
182
|
+
},50)
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
},
|
|
170
186
|
parseLists(nv){
|
|
171
187
|
this.classify_question_info = nv.classify_question_info
|
|
172
188
|
let exam_options_data = nv.exam_options_data
|