UNPKG

buefy

Version:

Lightweight UI components for Vue.js (v3) based on Bulma

42 lines (38 loc) 720 B
'use strict'; var vue = require('vue'); var BSlotComponent = vue.defineComponent({ name: "BSlotComponent", props: { component: { type: Object, required: true }, name: { type: String, default: "default" }, scoped: { type: Boolean }, props: { type: Object }, tag: { type: [String, Object], default: "div" } }, methods: { refresh() { this.$forceUpdate(); } }, render() { return vue.h( this.tag, {}, this.component.$slots ? this.scoped ? this.component.$slots[this.name](this.props) : this.component.$slots[this.name]() : void 0 ); } }); exports.BSlotComponent = BSlotComponent;