0.0.8 • Published 8 months ago
momo-timeline-vue3 v0.0.8
源码目录
src 目录为测试目录 package 为真实打包目录
插件使用
1、main.js 注册
...
import '../node_modules/momo-timeline-vue3/dist/style.css'
import MomoTimelineVue3 from "momo-timeline-vue3"
...
const app = createApp(App)
app.use(MomoTimelineVue3)
app.mount('#app')
2、data 类型
[{
"year":"2022",
"events":[{
"id":174,
"month":"03月",
"title":"测试时间轴",
"desc":"测试时间轴",
"imgUrl":"http://7cec.com:8151/uploads/2022/03/622fefa02dc39.png"
}
...
]}]
3、组件中使用
<template>
<TimeLine :data="data"/>
</template>