Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jekip/naive-ui-admin into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jekip committed Dec 30, 2021
2 parents a8400ac + d4b173e commit c0ff898
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Table/src/hooks/useDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function useDataSource(
try {
setLoading(true);
const { request, pagination }: any = unref(propsRef);
if (!request) return;
//组装分页信息
const pageField = APISETTING.pageField;
const sizeField = APISETTING.sizeField;
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const basicProps = {
type: String,
default: 'medium',
},
tableData: {
dataSource: {
type: [Object],
default: () => [],
},
Expand All @@ -28,7 +28,6 @@ export const basicProps = {
request: {
type: Function as PropType<(...arg: any[]) => Promise<any>>,
default: null,
required: true,
},
rowKey: {
type: [String, Function] as PropType<string | ((record) => string)>,
Expand Down

0 comments on commit c0ff898

Please sign in to comment.