mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix: 人员选择ts类型错误 (#5427)
* fix: 人员选择ts 类型错误 Co-authored-by: zhangxulong <zhangxulong@baidu.com>
This commit is contained in:
parent
c72ca5a82c
commit
5b743dd31f
@ -58,7 +58,6 @@ export interface UserSelectProps extends ThemeProps, LocaleProps {
|
||||
isReplace?: boolean,
|
||||
isDelete?: boolean
|
||||
) => void;
|
||||
onTempChange: (value: Array<Option>) => void;
|
||||
}
|
||||
|
||||
export interface UserSelectState {
|
||||
@ -261,11 +260,10 @@ export class UserSelect extends React.Component<
|
||||
|
||||
@autobind
|
||||
onOpen() {
|
||||
const {selection, tempSelection} = this.props;
|
||||
const {selection} = this.props;
|
||||
this.setState({
|
||||
isOpened: true,
|
||||
selection: selection || [],
|
||||
tempSelection: tempSelection || []
|
||||
selection: selection || []
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user