Refactored Schedule.vue contain more than one month. Started working on selecting cells.
This commit is contained in:
13
src/types/schedule-data.d.ts
vendored
13
src/types/schedule-data.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
type ScheduleData = [
|
||||
...ScheduleRow[]
|
||||
...ScheduleMonth[]
|
||||
]
|
||||
|
||||
type Employee = {
|
||||
@@ -12,4 +12,15 @@ type Employee = {
|
||||
type ScheduleRow = {
|
||||
dates : (Date | null)[],
|
||||
employees : Employee[]
|
||||
}
|
||||
|
||||
type ScheduleMonth = [
|
||||
...ScheduleRow[]
|
||||
]
|
||||
|
||||
type Coordinates = {
|
||||
mIndex : number,
|
||||
rIndex : number,
|
||||
eIndex : number,
|
||||
dIndex : number
|
||||
}
|
||||
Reference in New Issue
Block a user