mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
Merge branch 'main' of https://bitbucket.org/studiotem/jandl-taskmanager-app
This commit is contained in:
commit
8d49ad7122
10 files changed
+476
-168
No files matched your search
@@ -157,9 +157,8 @@ export default {
|
||||
},
|
||||
|
||||
onDragStart(e) {
|
||||
console.log(`ID from dragStart: ${this.event.id}`)
|
||||
if (this.event.nonWorking) return
|
||||
this.event.draggingStatic = false
|
||||
|
||||
this.dnd && this.dnd.eventDragStart(e, this.event);
|
||||
},
|
||||
|
||||
|
||||
@@ -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