Skip to content

Commit

Permalink
fix: 重命名
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Jun 13, 2024
1 parent 95fe84f commit 1182802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/search-table-react/src/SearchTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ const SearchTable = (
searchRef.current?.setValue(nextValue)
},
clearSearchValue: () => searchRef.current?.resetValue(),
getTableData: () => dataSource,
setTableDataAndRender: (data) => {
getDataSource: () => dataSource,
setDataSourceAndRender: (data) => {
setDataSource(data)
forceUpdate()
},
Expand Down
4 changes: 2 additions & 2 deletions packages/search-table-react/src/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ export interface ISearchTableRef {
/**
* 获取表格列表数据
*/
getTableData: () => IRequestResult['data']
getDataSource: () => IRequestResult['data']
/**
* 设置表格列表数据
*/
setTableDataAndRender: (dataSource: IObjectAny[]) => void
setDataSourceAndRender: (dataSource: IObjectAny[]) => void
/**
* 获取搜索参数
*/
Expand Down

0 comments on commit 1182802

Please sign in to comment.