zydx-plus 1.30.173 → 1.30.174
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/word/src/word.vue +4 -23
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -57,14 +57,6 @@ export default {
|
|
|
57
57
|
borderShow: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: true
|
|
60
|
-
},
|
|
61
|
-
selected: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: []
|
|
64
|
-
},
|
|
65
|
-
selectedID: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: ''
|
|
68
60
|
}
|
|
69
61
|
},
|
|
70
62
|
watch: {
|
|
@@ -79,28 +71,17 @@ export default {
|
|
|
79
71
|
this.multipleShow = val
|
|
80
72
|
},
|
|
81
73
|
deep: true
|
|
82
|
-
}
|
|
83
|
-
selected: {
|
|
84
|
-
handler: function (val, oldVal) {
|
|
85
|
-
if(val.length > 0) {
|
|
86
|
-
this.value.map(x => {
|
|
87
|
-
val.forEach(v => {
|
|
88
|
-
if(this.selectedID === '') return
|
|
89
|
-
if(x[this.selectedID] === v[this.selectedID]) x.checked = true
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
immediate: true
|
|
95
|
-
},
|
|
74
|
+
}
|
|
96
75
|
},
|
|
97
|
-
emits: ['change','modify','del'],
|
|
76
|
+
emits: ['change','modify','del','changeAll'],
|
|
98
77
|
methods: {
|
|
99
78
|
checkboxChange(e,index) {
|
|
79
|
+
this.value[index].checked = e.target.checked
|
|
100
80
|
this.$emit('change', {
|
|
101
81
|
data: this.value[index],
|
|
102
82
|
value: e.target.checked
|
|
103
83
|
})
|
|
84
|
+
this.$emit('changeAll', this.value)
|
|
104
85
|
},
|
|
105
86
|
modify(v) {
|
|
106
87
|
this.$emit('modify',v)
|