mali-applet-ui 0.1.67 → 0.1.69

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.
@@ -121,7 +121,6 @@ export default {
121
121
  background: $uni-color-success;
122
122
  }
123
123
  &.ss-info {
124
- color: #ffffff;
125
124
  background: #909399;
126
125
  }
127
126
  &.ss-warning {
@@ -133,7 +132,6 @@ export default {
133
132
  background: $uni-color-error;
134
133
  }
135
134
  &.ss-gray {
136
- color: #ffffff;
137
135
  background: $ml-gray-color;
138
136
  }
139
137
  &.ss-blue {
@@ -71,6 +71,11 @@ export default {
71
71
  return { ...globalStore.loadMore.pageProp, ...this.pageProps }
72
72
  }
73
73
  },
74
+ watch: {
75
+ checked () {
76
+
77
+ }
78
+ },
74
79
  created () {
75
80
  this.$nextTick(() => {
76
81
  if (this.autoload && this.requestMethod) {
@@ -176,16 +181,22 @@ export default {
176
181
  this.updateChecked()
177
182
  },
178
183
  setCheckboxRow (label, checked) {
179
- if (checked) {
180
- if (!this.selection.includes(label)) {
181
- this.selection.push(label)
182
- }
183
- } else {
184
- const index = this.selection.indexOf(label)
185
- if (index > -1) {
186
- this.selection.splice(index, 1)
187
- }
184
+ let labels = label
185
+ if (!XEUtils.isArray(label)) {
186
+ labels = [label]
188
187
  }
188
+ labels.forEach(val => {
189
+ if (checked) {
190
+ if (!this.selection.includes(val)) {
191
+ this.selection.push(val)
192
+ }
193
+ } else {
194
+ const index = this.selection.indexOf(val)
195
+ if (index > -1) {
196
+ this.selection.splice(index, 1)
197
+ }
198
+ }
199
+ })
189
200
  this.updateChecked()
190
201
  },
191
202
  clearCheckboxRow () {
@@ -69,16 +69,22 @@ export default {
69
69
  this.updateChecked()
70
70
  },
71
71
  setCheckboxRow (label, checked) {
72
- if (checked) {
73
- if (!this.selection.includes(label)) {
74
- this.selection.push(label)
75
- }
76
- } else {
77
- const index = this.selection.indexOf(label)
78
- if (index > -1) {
79
- this.selection.splice(index, 1)
80
- }
72
+ let labels = label
73
+ if (!XEUtils.isArray(label)) {
74
+ labels = [label]
81
75
  }
76
+ labels.forEach(val => {
77
+ if (checked) {
78
+ if (!this.selection.includes(val)) {
79
+ this.selection.push(val)
80
+ }
81
+ } else {
82
+ const index = this.selection.indexOf(val)
83
+ if (index > -1) {
84
+ this.selection.splice(index, 1)
85
+ }
86
+ }
87
+ })
82
88
  this.updateChecked()
83
89
  },
84
90
  clearCheckboxRow () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",