node_modules updated, buefy add to lib folder

This commit is contained in:
2019-06-04 14:29:48 +02:00
parent 0a3f6ff240
commit 5d28bc36e1
3957 changed files with 306575 additions and 21738 deletions
+45
View File
@@ -0,0 +1,45 @@
export default {
name: 'BSlotComponent',
props: {
component: {
type: Object,
required: true
},
name: {
type: String,
default: 'default'
},
tag: {
type: String,
default: 'div'
},
event: {
type: String,
default: 'hook:updated'
}
},
methods: {
refresh() {
this.$forceUpdate()
},
isVueComponent() {
return this.component && this.component._isVue
}
},
created() {
if (this.isVueComponent()) {
this.component.$on(this.event, this.refresh)
}
},
beforeDestroy() {
if (this.isVueComponent()) {
this.component.$off(this.event, this.refresh)
}
},
render(h) {
if (this.isVueComponent()) {
const slots = this.component.$slots[this.name]
return h(this.tag, {}, slots)
}
}
}