Refactored Schedule.vue contain more than one month. Started working on selecting cells.

This commit is contained in:
Sockenklaus
2021-10-11 00:00:44 +02:00
parent 0e64a815ea
commit 9d8b3c27a2
3 changed files with 184 additions and 101 deletions

View File

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