zydx-plus 1.28.138 → 1.28.139
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
|
@@ -39,10 +39,16 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
props: {
|
|
41
41
|
value: {
|
|
42
|
-
|
|
42
|
+
type: Array,
|
|
43
|
+
default: true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
watch: {
|
|
47
|
+
value: {
|
|
48
|
+
handler(val) {
|
|
43
49
|
this.list = this.organize(val)
|
|
44
50
|
},
|
|
45
|
-
|
|
51
|
+
deep: true
|
|
46
52
|
}
|
|
47
53
|
},
|
|
48
54
|
mounted() {
|
|
@@ -50,9 +56,9 @@ export default {
|
|
|
50
56
|
},
|
|
51
57
|
methods: {
|
|
52
58
|
// 整理数据
|
|
53
|
-
organize() {
|
|
59
|
+
organize(v) {
|
|
54
60
|
let arr = []
|
|
55
|
-
|
|
61
|
+
v.forEach(x => {
|
|
56
62
|
arr.push({
|
|
57
63
|
type: (x.isRight)? 'correct' : 'disturb',
|
|
58
64
|
letter: x.index,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<span>{{ index + 1 }}.<em v-html="item.title"></em></span>
|
|
10
10
|
</label>
|
|
11
11
|
</div>
|
|
12
|
-
<div class="subject-but">
|
|
12
|
+
<div class="subject-but" v-if="butShow">
|
|
13
13
|
<button class="but" @click="modify(item)">修改</button>
|
|
14
14
|
<button class="but" @click="del(item)">删除</button>
|
|
15
15
|
</div>
|