mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
Feat tree select opt (#3902)
* treeselect支持 selfDisabledAffectChildren * 单测 Co-authored-by: pianruijie <pianruijie@baidu.com>
This commit is contained in:
parent
a43c43251e
commit
bed95ca0dd
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user