zydx-plus 1.32.210 → 1.32.212
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
|
@@ -503,6 +503,14 @@ export default {
|
|
|
503
503
|
.ed-head-but{
|
|
504
504
|
display: inline-block;
|
|
505
505
|
}
|
|
506
|
+
.ed-head-but label{
|
|
507
|
+
display: inline-block;
|
|
508
|
+
width: 100%;
|
|
509
|
+
height: 100%;
|
|
510
|
+
}
|
|
511
|
+
.ed-head-but label span{
|
|
512
|
+
line-height: 15px !important;
|
|
513
|
+
}
|
|
506
514
|
.ed-title{
|
|
507
515
|
flex: 1;
|
|
508
516
|
text-align: left;
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
v-model="item.value" :disabled="item.disabled"/>
|
|
63
63
|
<Calendar v-if="tip" style="top: 35px;" @confirm="confirm($event,item)"></Calendar>
|
|
64
64
|
</div>
|
|
65
|
+
<div class="cal" v-if="item.type === 'calenderYear'">
|
|
66
|
+
<input type="text" :placeholder="item.placeholder" @focus="focusYear" :maxlength="item.maxlength"
|
|
67
|
+
v-model="item.value" :disabled="item.disabled"/>
|
|
68
|
+
<Year v-if="tipYear" style="top: 35px;" @confirm="confirmYear($event,item)"></Year>
|
|
69
|
+
</div>
|
|
65
70
|
<div v-if="item.type === 'text'" class="text">{{ item.value }}</div>
|
|
66
71
|
<div v-if="item.type === 'code'" class="ph-code">
|
|
67
72
|
<input type="text" v-model="item.value" :maxlength="item.maxlength" :placeholder="item.placeholder"/>
|
|
@@ -86,13 +91,15 @@
|
|
|
86
91
|
<script>
|
|
87
92
|
import Select from '../../select/src/select.vue'
|
|
88
93
|
import Calendar from '../../calendar/src/Calendar'
|
|
94
|
+
import Year from '../../year/src/year'
|
|
89
95
|
|
|
90
96
|
export default {
|
|
91
97
|
name: 'zydx-tip-box',
|
|
92
|
-
components: {Select, Calendar},
|
|
98
|
+
components: {Select, Calendar,Year},
|
|
93
99
|
data() {
|
|
94
100
|
return {
|
|
95
101
|
tip: false,
|
|
102
|
+
tipYear: false,
|
|
96
103
|
fileName: ''
|
|
97
104
|
}
|
|
98
105
|
},
|
|
@@ -188,6 +195,13 @@ export default {
|
|
|
188
195
|
})
|
|
189
196
|
this.radioArr[index].checked = true
|
|
190
197
|
},
|
|
198
|
+
focusYear() {
|
|
199
|
+
this.tipYear = true
|
|
200
|
+
},
|
|
201
|
+
confirmYear(e, data) {
|
|
202
|
+
data.value = e
|
|
203
|
+
this.tipYear = false
|
|
204
|
+
},
|
|
191
205
|
focus() {
|
|
192
206
|
this.tip = true
|
|
193
207
|
},
|
|
@@ -115,7 +115,8 @@ export default {
|
|
|
115
115
|
})
|
|
116
116
|
}
|
|
117
117
|
if(item.testKey) {
|
|
118
|
-
item.testKey = JSON.parse(item.testKey).
|
|
118
|
+
item.testKey = typeof item.testKey === 'string'? JSON.parse(item.testKey): item.testKey
|
|
119
|
+
item.testKey = item.testKey.map(x => {
|
|
119
120
|
if(this.ques(item.quesType)) { // 判断是否单选
|
|
120
121
|
x.checked = x.index === item?.judgeAnswer; //答案
|
|
121
122
|
}else {
|
|
@@ -135,7 +136,7 @@ export default {
|
|
|
135
136
|
})
|
|
136
137
|
this.$nextTick(() => { // 保证所有的数据都渲染完毕
|
|
137
138
|
const w = this.$refs.parer.offsetWidth // 获取父级宽度
|
|
138
|
-
for(let i = 0; i< this.$refs
|
|
139
|
+
for(let i = 0; i< this.$refs?.subject?.length; i++) {
|
|
139
140
|
this.value[i].right = w - this.$refs.subject[i].offsetLeft
|
|
140
141
|
if(this.$refs.b && this.$refs.b.length > 0) {
|
|
141
142
|
if(this.value[i].right < this.$refs.b[i].offsetWidth) this.value[i].top = 25 // 判断是否换行
|