diff --git a/components/time-picker/index.tsx b/components/time-picker/index.tsx index aafee077f5..211a566a4d 100644 --- a/components/time-picker/index.tsx +++ b/components/time-picker/index.tsx @@ -21,7 +21,7 @@ export interface TimePickerProps { /** 没有值的时候显示的内容 */ placeholder?: string; /** 国际化配置 */ - locale?: Object; + locale?: {}; /** 隐藏禁止选择的选项 */ hideDisabledOptions?: boolean; /** 禁止选择部分小时选项 */ diff --git a/components/transfer/list.tsx b/components/transfer/list.tsx index fb65f2cb02..b3b273e672 100644 --- a/components/transfer/list.tsx +++ b/components/transfer/list.tsx @@ -27,16 +27,16 @@ export interface TransferListProps { /** 标题 */ titleText?: string; style?: React.CSSProperties; - handleFilter?: Function; - handleSelect?: Function; - handleSelectAll?: Function; - handleClear?: Function; + handleFilter?: () => void; + handleSelect?: () => void; + handleSelectAll?: () => void; + handleClear?: () => void; /** 每行渲染函数 */ - render?: Function; + render?: () => void; /** 主体渲染函数 */ - body?: Function; + body?: () => void; /** 底部渲染函数 */ - footer?: Function; + footer?: () => void; /** 选中项 */ checkedKeys?: Array; checkStatus?: boolean;