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,
|
isReplace?: boolean,
|
||||||
isDelete?: boolean
|
isDelete?: boolean
|
||||||
) => void;
|
) => void;
|
||||||
onTempChange: (value: Array<Option>) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserSelectState {
|
export interface UserSelectState {
|
||||||
@ -261,11 +260,10 @@ export class UserSelect extends React.Component<
|
|||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
onOpen() {
|
onOpen() {
|
||||||
const {selection, tempSelection} = this.props;
|
const {selection} = this.props;
|
||||||
this.setState({
|
this.setState({
|
||||||
isOpened: true,
|
isOpened: true,
|
||||||
selection: selection || [],
|
selection: selection || []
|
||||||
tempSelection: tempSelection || []
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user