mali-applet-ui 1.0.93 → 1.0.94
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.
|
@@ -66,7 +66,10 @@ export default {
|
|
|
66
66
|
return XEUtils.eqNull(this.value) || this.value === ''
|
|
67
67
|
},
|
|
68
68
|
selectRows () {
|
|
69
|
-
|
|
69
|
+
if (this.type === 'checkbox') {
|
|
70
|
+
return this.dataList.filter(item => this.value.includes(item[this.optValueField]))
|
|
71
|
+
}
|
|
72
|
+
return this.dataList.filter(item => this.value === item[this.optValueField])
|
|
70
73
|
}
|
|
71
74
|
},
|
|
72
75
|
methods: {
|
|
@@ -103,7 +106,10 @@ export default {
|
|
|
103
106
|
})
|
|
104
107
|
},
|
|
105
108
|
removeItem (item) {
|
|
106
|
-
|
|
109
|
+
let value = null
|
|
110
|
+
if (this.type === 'checkbox') {
|
|
111
|
+
value = this.value.filter(key => key !== item[this.optValueField])
|
|
112
|
+
}
|
|
107
113
|
this.$emit('input', value)
|
|
108
114
|
this.$emit('change', { value })
|
|
109
115
|
},
|
|
@@ -128,7 +134,7 @@ export default {
|
|
|
128
134
|
display: flex;
|
|
129
135
|
flex-direction: row;
|
|
130
136
|
flex-wrap: wrap;
|
|
131
|
-
min-height:
|
|
137
|
+
min-height: 76rpx;
|
|
132
138
|
}
|
|
133
139
|
.ml-list-select-user-item {
|
|
134
140
|
display: flex;
|