Browse Source
type: type optimization (#42312)
* fix CI
* type: type optimization
pull/42323/head
lijianan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
components/table/hooks/useFilter/FilterWrapper.tsx
|
|
@ -1,5 +1,5 @@ |
|
|
|
import * as React from 'react'; |
|
|
|
import KeyCode from 'rc-util/lib/KeyCode'; |
|
|
|
import * as React from 'react'; |
|
|
|
|
|
|
|
export interface FilterDropdownMenuWrapperProps { |
|
|
|
children?: React.ReactNode; |
|
|
@ -13,7 +13,7 @@ const onKeyDown: React.KeyboardEventHandler<HTMLDivElement> = (event) => { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const FilterDropdownMenuWrapper = (props: FilterDropdownMenuWrapperProps) => ( |
|
|
|
const FilterDropdownMenuWrapper: React.FC<FilterDropdownMenuWrapperProps> = (props) => ( |
|
|
|
<div className={props.className} onClick={(e) => e.stopPropagation()} onKeyDown={onKeyDown}> |
|
|
|
{props.children} |
|
|
|
</div> |
|
|
|