1 说明
1 文档中有很多代码是让人难以接受的
2
2 难以接受的代码
文档 --> const columns: ProColumns<GithubIssueItem>[] = [ ...]
实际 --> columns = [ ...]
文档 --> <ProTable <TableListItem> columns={
this.columns}/>
实际 --> <ProTable columns={
this.columns}/>
文档 --> const ref = useRef<ActionType>()
实际 --> const ref = React.createRef()
文档 --> {
transform: (value: any) => any }
实际 --> {
transform: }
文档 --> (action) => ReactNode[]
实际 --> () => [<Button>呵呵<Button/>, <Button>哈哈<Button/>]
3 文档常识问题
1 ReactNode --> 表示元素标签
3 组件标签的常用 API 属性
<ProTable
headerTitle = ""
bordered
actionRef={
this.actionRef}
formRef={
this.formRef}
rowKey="id"
search={
{
}}
pagination={
{
}}
toolBarRender={
()=>{
}}
columns={
this.columns}
request={
}
rowSelection={
{
}}
expandedRowRender={
}
>
1 actionRef
-------------------------------------------------------------------------------
actionRef = React.createRef()
<ProTable actionRef={
this.actionRef} />
----------------------