Skip to content

Commit

Permalink
revert: "refactor(VTabsSlider): convert to functional"
Browse files Browse the repository at this point in the history
This reverts commit d9877f0.
  • Loading branch information
johnleider committed Sep 26, 2019
1 parent 61eb791 commit 1c0f0ad
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/vuetify/src/components/VTabs/VTabsSlider.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
// Libraries
import Vue from 'vue'

// Mixins
import Colorable from '../../mixins/colorable'

// Utilities
import mixins from '../../util/mixins'

// Types
import { VNode } from 'vue/types'

/* @vue/component */
export default Vue.extend({
export default mixins(Colorable).extend({
name: 'v-tabs-slider',

functional: true,

props: {
color: String,
},

render (h, { props }): VNode {
return h('div', Colorable.options.methods.setBackgroundColor(props.color, {
render (h): VNode {
return h('div', this.setBackgroundColor(this.color, {
staticClass: 'v-tabs-slider',
}))
},
Expand Down

0 comments on commit 1c0f0ad

Please sign in to comment.