ประกาศค่าในไฟล์ interface
This commit is contained in:
parent
a61dfb8789
commit
e7198525a2
5 changed files with 49 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
||||||
|
interface Pagination {
|
||||||
|
rowsPerPage: number
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DataOption {
|
||||||
|
id: string
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type { Pagination, DataOption }
|
||||||
28
src/modules/02_meta/interface/request/Main.ts
Normal file
28
src/modules/02_meta/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
interface DataProps {
|
||||||
|
row: RequestItemsObject
|
||||||
|
rowIndex: number
|
||||||
|
}
|
||||||
|
|
||||||
|
//ข้อมูล
|
||||||
|
interface RequestItemsObject {
|
||||||
|
id: string
|
||||||
|
name: string
|
||||||
|
certiNumber: string
|
||||||
|
start: Date
|
||||||
|
end: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
//columns
|
||||||
|
interface Columns {
|
||||||
|
[index: number]: {
|
||||||
|
name: String
|
||||||
|
align: String
|
||||||
|
label: String
|
||||||
|
sortable: Boolean
|
||||||
|
field: String
|
||||||
|
headerStyle: String
|
||||||
|
style: String
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type { RequestItemsObject, Columns, DataProps }
|
||||||
11
src/modules/02_meta/interface/response/Main.ts
Normal file
11
src/modules/02_meta/interface/response/Main.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
//ข้อมูล
|
||||||
|
interface ResponseObject {
|
||||||
|
id: string
|
||||||
|
date: Date
|
||||||
|
status: string
|
||||||
|
level: string
|
||||||
|
refNo: string
|
||||||
|
refDate: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
export type { ResponseObject }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue