ElemeFE / ElemeFE/element-react
Table -> rowStyle does not exist
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 435
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Property rowStyle in Table components does not exist
### Reproduce Steps
1. Create Table component
2. Define rowStyle property
### Error Trace (if possible)
Error:(10, 17) TS2769: No overload matches this call.
Overload 1 of 2, '(props: Readonly): Table', gave the following error.
Type '{ children: never[]; data: any; rowStyle: { height: string; }; defaultSort: any; className: string; height: number; emptyText: any; showHeader: any; columns: { prop: string; label: string; }[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'.
Property 'rowStyle' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'.
Overload 2 of 2, '(props: TableProps, context?: any): Table', gave the following error.
Type '{ children: never[]; data: any; rowStyle: { height: string; }; defaultSort: any; className: string; height: number; emptyText: any; showHeader: any; columns: { prop: string; label: string; }[]; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'.
Property 'rowStyle' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'.
Contributor guide
Assessment
This issue has not been assessed yet.