UNPKG

buefy

Version:

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

40 lines (37 loc) 704 B
import { defineComponent, h } from 'vue'; var BSlotComponent = 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 h( this.tag, {}, this.component.$slots ? this.scoped ? this.component.$slots[this.name](this.props) : this.component.$slots[this.name]() : void 0 ); } }); export { BSlotComponent as B };