## uniapp timeline时间轴提示 > **组件名:uaTimeline** > 代码块: `` `ua-timeline-item` uaTimeline一款基于uniapp vue3自定义多功能时间线组件。支持自定义节点类型/样式、时间戳、节点图标及分割线样式。 > **注意事项** > 如果想自定义图标,需要自己引入iconfont图标 ### 引入方式 本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,只需将本组件放在components目录,在页面`template`中即可直接使用。 ### 基本用法 **示例** - 基础用法 ```html 创建成功 审核通过 提交信息 ``` - 自定义节点及字体大小 ```html 自定义字体大小 bbbb cccc ``` - 自定义设置type、size、icon、color属性自定义节点样式 ```js ``` ```html {{item.content}} ``` - 自定义type=card卡片时间轴 ```html
Create a services site 2015-09-01
Technical testing 1
Technical testing 2
Technical testing 3

更新 Github 模板

王小虎 提交于 2018/4/12 20:46

``` ### API ### uaTimeline Props |属性名|类型|默认值|说明| |:-:|:-:|:-:|:-:| |type|String|-|类型(card)| ### uaTimelineItem Props |属性名|类型|默认值|说明| |:-:|:-:|:-:|:-:| |type|String|-|节点类型(primary / success / warning / danger / info)| |timestamp |String|-|时间戳| |hideTimestamp |Boolean|-|是否隐藏时间戳| |placement |String|bottom|时间戳位置(top / bottom)| |color |String|-|节点颜色| |icon |String|-|节点图标| |size |Number|12|节点尺寸| |lineType |String|solid|分割线类型(solid / dashed / dotted)| |lineColor |String|-|分割线颜色| #### 事件 - @click 触发点击 ### 💝最后 开发不易,希望各位小伙伴们多多支持下哈~~ ☕️☕️