Skip to content

Commit

Permalink
type(List): Fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 1, 2020
1 parent 42cafae commit 2432e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-list/src/Item.tsx
Expand Up @@ -12,7 +12,7 @@ export interface ListItemProps
tagName?: keyof JSX.IntrinsicElements | any;
}

export default function Item<T>(props: ListItemProps = {}) {
export default function Item<T>(props = {} as ListItemProps & T) {
const {
prefixCls = 'w-list-item',
className,
Expand Down

0 comments on commit 2432e0c

Please sign in to comment.