UNPKG

vuetify

Version:

Vue Material Component Framework

45 lines (37 loc) 778 B
// Styles import './VTimeline.sass' // Types import { VNode } from 'vue' import mixins from '../../util/mixins' // Mixins import Themeable from '../../mixins/themeable' export default mixins( Themeable /* @vue/component */ ).extend({ name: 'v-timeline', provide (): object { return { timeline: this } }, props: { alignTop: Boolean, dense: Boolean, reverse: Boolean, }, computed: { classes (): {} { return { 'v-timeline--align-top': this.alignTop, 'v-timeline--dense': this.dense, 'v-timeline--reverse': this.reverse, ...this.themeClasses, } }, }, render (h): VNode { return h('div', { staticClass: 'v-timeline', class: this.classes, }, this.$slots.default) }, })