UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

18 lines (17 loc) 473 B
import { defineComponent, provide, h } from "vue"; import "../style/timeline.css"; import { timelineProps } from "./main.props.mjs"; import { TIMELINE_PROVIDE } from "./type.mjs"; const Timeline = defineComponent({ name: "CuTimeline", props: timelineProps, setup(props, { slots }) { provide(TIMELINE_PROVIDE, { props }); return () => h("ul", { class: ["cu-timeline", { "is-cross": props.cross }] }, slots); } }); export { Timeline as default };