mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 06:49:35 +00:00
[timeline] dynamicke tyzdne, non-working hours
This commit is contained in:
1 parent
9b34d650a3
commit
b56287c535
7 files changed
+156
-61
No files matched your search
@@ -16,7 +16,7 @@
|
||||
<template #weekday-heading="{ heading, view }" v-if="$slots['weekday-heading']">
|
||||
<slot name="weekday-heading" :heading="heading" :view="view"></slot>
|
||||
</template>
|
||||
<template #split-label="{ split }" v-if="$slots['split-label']">
|
||||
<template #split-label="{ split, view }" v-if="$slots['split-label']">
|
||||
<slot name="split-label" :split="split" :view="view.id"></slot>
|
||||
</template>
|
||||
</vuecal-header>
|
||||
@@ -58,7 +58,7 @@
|
||||
<slot name="split-label" :split="split" :view="view.id"></slot>
|
||||
</template>
|
||||
</weekdays-headings>
|
||||
<div class="vuecal__flex vuecal__split-days-headers" v-else-if="hasSplits && stickySplitLabels && minSplitWidth" :style="cellOrSplitMinWidth ? `min-width: ${cellOrSplitMinWidth}px` : ''">
|
||||
<div class="vuecal__flex vuecal__split-days-headers" ref="vuecal_splits_heading" v-else-if="hasSplits && stickySplitLabels && minSplitWidth" :style="cellOrSplitMinWidth ? `min-width: ${cellOrSplitMinWidth}px` : ''">
|
||||
<div class="day-split-header" v-for="(split, i) in daySplits" :key="i" :class="split.class || false">
|
||||
<slot name="split-label" :split="split" :view="view.id">{{ split.label }}</slot>
|
||||
</div>
|
||||
@@ -1307,7 +1307,8 @@ export default {
|
||||
}
|
||||
|
||||
this.$refs['vuecal_scroll'].addEventListener('scroll', () => {
|
||||
this.$refs['vuecal_weekday_heading'].onTimelineScroll(this.$refs['vuecal_scroll'].scrollTop)
|
||||
// this.$refs['vuecal_splits_heading'].onTimelineScroll(this.$refs['vuecal_scroll'].scrollTop)
|
||||
this.$refs['vuecal_splits_heading'].style.top = `${this.$refs['vuecal_scroll'].scrollTop}px`
|
||||
})
|
||||
|
||||
this.viewportTimelineOffset = this.$refs['vuecal_scroll'].getBoundingClientRect().top
|
||||
|
||||
Reference in new issue
Block a user