ant desgin pro 的表格组件中的 使用 之自动刷新

ant desgin pro   https://pro.ant.design/docs/getting-started-cn

 

 pro components 表格组件  :  https://procomponents.ant.design/   

 



actionRef.current.reloadAndRest() 
 在次刷新请求


const actionRef = useRef();


 <ProTable
          actionRef={actionRef}
          className={styles.myTabs}
          columns={columns}
          rowKey="id"
          // search={false}
          request={params => getbasesall(params)}
        />

  

posted @ 2020-08-17 11:22  小魏code  阅读(6501)  评论(0)    收藏  举报