UNPKG

@lemonadejs/timeline

Version:

LemonadeJS timeline component

31 lines (25 loc) 682 B
import { h, getCurrentInstance } from 'vue'; import component from "./index"; import "./style.css"; export const Timeline = { inheritAttrs: false, mounted() { const { attrs } = getCurrentInstance(); let options = { ...attrs }; this.el = this.$refs.container; this.current = component(this.$refs.container, options); }, setup() { let containerProps = { ref: 'container', style: { width: '100%', height: '100%', } }; return () => h('div', containerProps); } } export default Timeline;