Feat tree select opt (#3902)

* treeselect支持 selfDisabledAffectChildren

* 单测

Co-authored-by: pianruijie <pianruijie@baidu.com>
This commit is contained in:
骈瑞杰 2022-03-30 15:29:56 +08:00 committed by GitHub
parent a43c43251e
commit bed95ca0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,8 @@ export default class TreeSelectControl extends React.Component<
resetValue: '',
hideNodePathLabel: false,
enableNodePath: false,
pathSeparator: '/'
pathSeparator: '/',
selfDisabledAffectChildren: true
};
treeRef: any;
@ -534,7 +535,8 @@ export default class TreeSelectControl extends React.Component<
rootCreateTip,
translate: __,
deferLoad,
expandTreeOptions
expandTreeOptions,
selfDisabledAffectChildren
} = this.props;
let filtedOptions =
@ -589,6 +591,7 @@ export default class TreeSelectControl extends React.Component<
bultinCUD={!addControls && !editControls}
onDeferLoad={deferLoad}
onExpandTree={expandTreeOptions}
selfDisabledAffectChildren={selfDisabledAffectChildren}
/>
);
}