Table 组件:1)增加 tableMethods 属性,提升代码的可阅读性;2)Table 和 Pagination 组件的逻辑统一

This commit is contained in:
YunaiV
2023-03-17 22:32:25 +08:00
parent 714dd661c4
commit 96e0ce9866
3 changed files with 8 additions and 4 deletions

View File

@ -218,6 +218,8 @@ export const useTable = <T = any>(config?: UseTableConfig<T>) => {
register,
elTableRef,
tableObject,
methods
methods,
// add by 芋艿:返回 tableMethods 属性,和 tableObject 更统一
tableMethods: methods
}
}