fix(Table): fix disappearing content after selecting a row (#3726)
This commit is contained in:
parent
8be6f9078f
commit
b0705843e5
@ -145,15 +145,7 @@ export const useTableBlockProps = () => {
|
|||||||
field.componentProps.pagination.total = ctx?.service?.data?.meta?.count;
|
field.componentProps.pagination.total = ctx?.service?.data?.meta?.count;
|
||||||
field.componentProps.pagination.current = ctx?.service?.data?.meta?.page;
|
field.componentProps.pagination.current = ctx?.service?.data?.meta?.page;
|
||||||
}
|
}
|
||||||
}, [
|
}, [ctx?.service?.data, ctx?.service?.loading]); // 这里如果依赖了 ctx?.field?.data?.selectedRowKeys 的话,会导致这个问题:
|
||||||
ctx?.field?.data?.selectedRowKeys,
|
|
||||||
ctx?.service?.data?.data,
|
|
||||||
ctx?.service?.data?.meta?.count,
|
|
||||||
ctx?.service?.data?.meta?.page,
|
|
||||||
ctx?.service?.data?.meta?.pageSize,
|
|
||||||
ctx?.service?.loading,
|
|
||||||
field,
|
|
||||||
]);
|
|
||||||
return {
|
return {
|
||||||
childrenColumnName: ctx.childrenColumnName,
|
childrenColumnName: ctx.childrenColumnName,
|
||||||
loading: ctx?.service?.loading,
|
loading: ctx?.service?.loading,
|
||||||
|
Loading…
Reference in New Issue
Block a user