UNPKG

song-ui-u

Version:

vue3 + js的PC前端组件库

30 lines (27 loc) 694 B
import { defineComponent, provide, createVNode } from 'vue'; import { useNamespace } from '../../../hook/use-namespace/index.mjs'; import 'song-ui-pro-icon'; import '../../../hook/use-zindex/index.mjs'; import { TIMELINE_KEY } from '../constants.mjs'; var Timeline = /* @__PURE__ */ defineComponent({ name: "x-timeline", props: { position: { type: String, default: "bottom" } }, setup(props, { slots }) { const ns = useNamespace("timeline"); provide(TIMELINE_KEY, { props }); return () => createVNode("div", { "class": ns.b() }, [slots.default?.()]); } }); export { Timeline as default }; //# sourceMappingURL=index.mjs.map