UNPKG

kui-vue

Version:

A lightweight desktop UI component library suitable for Vue.js 2.

20 lines (19 loc) 500 B
import { defineComponent, provide } from "vue"; import { withInstall } from '../utils/vue'; const Breadcrumb = defineComponent({ name: "Breadcrumb", props: { separator: { type: [String, Object], default: "/" }, }, setup(ps, { slots }) { provide("separator", slots.separator?.() || ps.separator); return () => { return ( <nav class="k-breadcrumb"> <ol>{slots.default?.()}</ol> </nav> ); }; }, }); export default withInstall(Breadcrumb);