# f-snake-timeline **Repository Path**: lyf915749119/f-snake-timeline ## Basic Information - **Project Name**: f-snake-timeline - **Description**: vue组件 - 基于vue开发的蛇形时间线组件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2021-05-18 - **Last Updated**: 2024-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # f-snake-timeline ### Install ``` npm install f-snake-timeline -S ``` GitHub地址 https://github.com/liangzaifeng/f-snake-timeline ### 基础使用 ```vue ``` ![Image text](./src/assets/images/1621181819008.png) **** ### 自定义内容(插槽的使用) ```vue ``` ![Image text](./src/assets/images/img2.png) **** ### Attributes | 参数 | 说明 | 类型 | 可选值 | 默认值 | | ------- | ------------ | ------ | ------ | ------ | | list | 渲染数据 | Array | 必传 | [] | | row-num | 一行渲染个数 | Number | - | 3 | ### List 里的参数 | 参数 | 说明 | 类型 | 可选值 | 默认值 | | --------- | ---- | ------ | ------ | ------ | | title | 标题 | String | - | - | | content | 内容 | String | - | - | | timestamp | 时间 | String | - | - | **** ### Slot | name | 说明 | | ------------ | ------------------------------------------------------ | | content | 自定义主体的内容,参数为 { data } 数组里的每个元素数据 | | leftArrows | 自定义左箭头容器,参数为 { data } 数组里的每个元素数据 | | rightArrows | 自定义右箭头容器,参数为 { data } 数组里的每个元素数据 | | bottomArrows | 自定义下箭头容器,参数为 { data } 数组里的每个元素数据 |