feat: clear selection when reloading data in multi-check mode
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
cbb36d0ec7
commit
42cd002a5f
|
@ -331,9 +331,15 @@ function stopEventPropagation(event) {
|
|||
event.stopPropagation();
|
||||
}
|
||||
|
||||
function clearSelected() {
|
||||
if ($props.multiCheck.expand) {
|
||||
selectAll.value = false;
|
||||
selected.value = [];
|
||||
}
|
||||
}
|
||||
|
||||
function reload(params) {
|
||||
selected.value = [];
|
||||
selectAll.value = false;
|
||||
clearSelected();
|
||||
CrudModelRef.value.reload(params);
|
||||
}
|
||||
|
||||
|
@ -684,10 +690,7 @@ const handleHeaderSelection = (evt, data) => {
|
|||
ref="CrudModelRef"
|
||||
@on-fetch="
|
||||
(...args) => {
|
||||
if ($props.multiCheck.expand) {
|
||||
selectAll = false;
|
||||
selected = [];
|
||||
}
|
||||
clearSelected();
|
||||
emit('onFetch', ...args);
|
||||
}
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue