Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -4,29 +4,29 @@ export default {
props: {
defaultVisible: {
type: Boolean,
default: () => false
}
default: () => false,
},
},
data: function () {
data: function() {
return {
isVisible: this.defaultVisible
isVisible: this.defaultVisible,
}
},
render: function (createElement) {
return createElement( this.$vnode.data.tag, [
render: function(createElement) {
return createElement(this.$vnode.data.tag, [
this.$scopedSlots.default({
isVisible: this.isVisible,
toggle: this.toggle
})
toggle: this.toggle,
}),
])
},
methods: {
toggle: function (e) {
toggle: function(e) {
e.preventDefault()
this.isVisible = !this.isVisible
}
}
},
},
}