Ant Design Pro 使用總結(ProTable)

1. 通過 actionRef 進行表單刷新

//首先聲明
const actionRef = useRef<ActionType>();
//在Protable中綁定屬性
 actionRef={actionRef}
//在需要刷新處調用
if (actionRef.current) {
	actionRef.current.reload();
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章