第一次提交
This commit is contained in:
28
src/api/apps/example/form/advanced/index.ts
Normal file
28
src/api/apps/example/form/advanced/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { UserItem } from './model';
|
||||
|
||||
/**
|
||||
* 获取数据
|
||||
*/
|
||||
export async function queryList() {
|
||||
const data: UserItem[] = [
|
||||
{
|
||||
key: '1',
|
||||
number: '00001',
|
||||
name: 'John Brown',
|
||||
department: '研发部'
|
||||
},
|
||||
{
|
||||
key: '2',
|
||||
number: '00002',
|
||||
name: 'Jim Green',
|
||||
department: '产品部'
|
||||
},
|
||||
{
|
||||
key: '3',
|
||||
number: '00003',
|
||||
name: 'Joe Black',
|
||||
department: '产品部'
|
||||
}
|
||||
];
|
||||
return data;
|
||||
}
|
||||
7
src/api/apps/example/form/advanced/model/index.ts
Normal file
7
src/api/apps/example/form/advanced/model/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface UserItem {
|
||||
key: string;
|
||||
isEdit?: boolean;
|
||||
number?: string;
|
||||
name?: string;
|
||||
department?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user