mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
fix: update
This commit is contained in:
parent
b75a07892e
commit
957dda6b12
@ -217,18 +217,12 @@ function useWatcher<T>() {
|
||||
)
|
||||
selection.value = newSelection
|
||||
instance.emit('selection-change', newSelection.slice())
|
||||
} else {
|
||||
const hasSortChanged = selection.value.some(
|
||||
(item, index) => item !== data.value[index]
|
||||
)
|
||||
if (hasSortChanged) {
|
||||
selection.value = data.value.slice()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const getSelectionRows = () => {
|
||||
return (selection.value || []).slice()
|
||||
const selectionList = (selection.value || []).slice()
|
||||
return data.value.filter((item) => selectionList.includes(item))
|
||||
}
|
||||
|
||||
const toggleRowSelection = (
|
||||
|
Loading…
Reference in New Issue
Block a user