WIP Сделала разлиновку

This commit is contained in:
Daria Golova
2023-06-05 13:41:40 +03:00
parent ea7761349d
commit 8007fe7fa9
6 changed files with 185 additions and 7 deletions

View File

@@ -0,0 +1,39 @@
<template lang="pug">
.w-full.flex.flex-col
.line-wrapper
.line.flex.items-center(
v-for="hour in timeCount",
:key="hour"
)
.middle-line
</template>
<script>
import { mapState } from "vuex";
export default {
name: "CalendarBackground",
computed: {
...mapState({
workingHours: (state) => state.calendar.workingHours,
}),
timeCount() {
console.log(this.workingHours);
return (
this.workingHours.end.split(":")[0] -
this.workingHours.start.split(":")[0] +
1
);
},
},
};
</script>
<style lang="sass" scoped>
.line
border-top: 1px solid var(--border-light-grey-color)
height: 76px
.middle-line
border-top: 1px dashed var(--border-light-grey-color)
width: 100%
</style>