Merge branch 'main' of github.com:jekip/naive-ui-admin into main

This commit is contained in:
xiaoma
2021-12-30 15:04:31 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -16,7 +16,7 @@ export const basicProps = {
type: String,
default: 'medium',
},
tableData: {
dataSource: {
type: [Object],
default: () => [],
},
@@ -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)>,