关于如何支持其他组件库 #1
yyz945947732
started this conversation in
General
Replies: 1 comment
-
需要注意的是:
const authedData = useAuthData(data, { isTree: false }); 如果你的数据需要处理树形结构,同时需要 const authedData = useAuthData(data, { isTree: true, childrenKey: "child" }); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如果目前的权限组件无法满足你的需求,或者你希望你的权限组件是基于其他组件库,这些场景你都可以基于基础权限组件
Wrapper
等或工具方法useAuthData
来轻易的封装你的权限组件。例如你想封装一个基于
antd
的权限表格组件,你可以:这样便实现了一个基本的能过滤权限数据的表格组件。
Beta Was this translation helpful? Give feedback.
All reactions