-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb8eb6a2382e8eea43ba5.js
2 lines (2 loc) · 1.36 KB
/
b8eb6a2382e8eea43ba5.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{158:function(t,e,n){},212:function(t,e,n){"use strict";var c=n(158);n.n(c).a},232:function(t,e,n){"use strict";n.r(e);var c={name:"ScheduleTable",components:{TabItem:function(){return n.e(20).then(n.bind(null,236))},DayTable:function(){return n.e(23).then(n.bind(null,229))}},props:{days:{type:Array,required:!0}},data:function(){return{activeDay:1,sticky:!1}},mounted:function(){var t=this,e=this.$refs.tabs.getBoundingClientRect().top-document.body.getBoundingClientRect().top-52;window.addEventListener("scroll",function(){window.pageYOffset>=e?t.sticky=!0:t.sticky=!1})}},d=(n(212),n(17)),component=Object(d.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"scheduleTable"},[n("div",{ref:"tabs",staticClass:"scheduleTable__tabs",class:{"scheduleTable__tabs--sticky":t.sticky}},t._l(t.days,function(e){return n("tab-item",{key:e.date,attrs:{day:e,active:e.day===t.activeDay},on:{click:function(n){t.activeDay=e.day}}})}),1),t._v(" "),t._l(t.days,function(e){return[n("transition",{key:e.date,attrs:{name:"fade-transition",mode:"out-in"}},[n("day-table",{directives:[{name:"show",rawName:"v-show",value:t.activeDay===e.day,expression:"activeDay === day.day"}],attrs:{day:e}})],1)]})],2)},[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=b8eb6a2382e8eea43ba5.js.map