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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.28.138",
3
+ "version": "1.28.139",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -39,10 +39,16 @@ export default {
39
39
  },
40
40
  props: {
41
41
  value: {
42
- handler: function (val, oldVal) {
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
- immediate: true
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
- this.value.forEach(x => {
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>
package/src/index.js CHANGED
@@ -67,7 +67,7 @@ function install(app) {
67
67
  }
68
68
 
69
69
  export default {
70
- version: '1.28.138',
70
+ version: '1.28.139',
71
71
  install,
72
72
  Calendar,
73
73
  Message,