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();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearSelected() {
|
||||||
|
if ($props.multiCheck.expand) {
|
||||||
|
selectAll.value = false;
|
||||||
|
selected.value = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function reload(params) {
|
function reload(params) {
|
||||||
selected.value = [];
|
clearSelected();
|
||||||
selectAll.value = false;
|
|
||||||
CrudModelRef.value.reload(params);
|
CrudModelRef.value.reload(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -684,10 +690,7 @@ const handleHeaderSelection = (evt, data) => {
|
||||||
ref="CrudModelRef"
|
ref="CrudModelRef"
|
||||||
@on-fetch="
|
@on-fetch="
|
||||||
(...args) => {
|
(...args) => {
|
||||||
if ($props.multiCheck.expand) {
|
clearSelected();
|
||||||
selectAll = false;
|
|
||||||
selected = [];
|
|
||||||
}
|
|
||||||
emit('onFetch', ...args);
|
emit('onFetch', ...args);
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue