|
|
@@ -238,7 +238,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
const { transform } = this.schema
|
|
|
- options.list = transform ? data.map(transform) : data
|
|
|
+ const list = transform ? data.map(transform) : data
|
|
|
+ if (this.schema.cols[0]?.type === 'selection' && list.length === options.list.length) {
|
|
|
+ const currList = options.list
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ Object.assign(currList[i], list[i])
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ options.list = list
|
|
|
+ }
|
|
|
this.$emit('changed', options.list)
|
|
|
}
|
|
|
},
|