Lobos / react-ui

A collection of components for React, base on bootstrap 4.0.
http://lobos.github.io/react-ui/
MIT License
1.63k stars 302 forks source link

请问下用antd表格columns的fixed 用‘left’和’right‘ 错怎么解决? #107

Closed ng-work closed 7 years ago

ng-work commented 7 years ago

[ts] Type '{ pagination: { total: number; pageSize: number; defaultPageSize: number; showSizeChanger: true; ...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Table<{}>> & Readonly<{ children?: ReactNode; }> &...'. Type '{ pagination: { total: number; pageSize: number; defaultPageSize: number; showSizeChanger: true; ...' is not assignable to type 'Readonly<TableProps<{}>>'. Types of property 'columns' are incompatible. Type '({ title: string; dataIndex: string; key: string; fixed: boolean; width: number; } | { title: str...' is not assignable to type 'ColumnProps<{}>[]'. Type '{ title: string; dataIndex: string; key: string; fixed: boolean; width: number; } | { title: stri...' is not assignable to type 'ColumnProps<{}>'. Type '{ title: string; dataindex: string; fixed: string; key: string; width: number; render: (text: any...' is not assignable to type 'ColumnProps<{}>'. Types of property 'fixed' are incompatible. Type 'string' is not assignable to type 'boolean | "left" | "right"'. (property) pageSize: number

Lobos commented 7 years ago

antd?呃,貌似问错地方了……