Commit b63e79fb authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 修复角色管理中父子组件不关联

parent d33f998e
...@@ -220,6 +220,7 @@ const TabTree: React.FC<TabTreeProps> = props => { ...@@ -220,6 +220,7 @@ const TabTree: React.FC<TabTreeProps> = props => {
handleCheck, handleCheck,
customExpandkeys, customExpandkeys,
enableSearch = false, enableSearch = false,
checkStrictly = false
} = props; } = props;
const selfActions = useTreeActions(actions) const selfActions = useTreeActions(actions)
...@@ -352,6 +353,7 @@ const TabTree: React.FC<TabTreeProps> = props => { ...@@ -352,6 +353,7 @@ const TabTree: React.FC<TabTreeProps> = props => {
checkedKeys={selected} checkedKeys={selected}
expandedKeys={expandkeys} expandedKeys={expandkeys}
autoExpandParent={autoExpandParent} autoExpandParent={autoExpandParent}
checkStrictly={checkStrictly}
onExpand={onExpand} onExpand={onExpand}
onCheck={(keys, nodes) => { onCheck={(keys, nodes) => {
const { node, checked, checkedNodes } = nodes; const { node, checked, checkedNodes } = nodes;
......
...@@ -210,6 +210,7 @@ const MemberDetail: React.FC<{}> = () => { ...@@ -210,6 +210,7 @@ const MemberDetail: React.FC<{}> = () => {
actions={treeActions} actions={treeActions}
treeData={treeData} treeData={treeData}
handleSelect={handleSelect} handleSelect={handleSelect}
checkStrictly={true}
customKey='id' customKey='id'
disabled={pageStatus === PageStatus.PREVIEW} disabled={pageStatus === PageStatus.PREVIEW}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment