# zu-time-line **Repository Path**: zulezhe/zu-time-line ## Basic Information - **Project Name**: zu-time-line - **Description**: 特殊业务中的时间轴,适用于雷达图,实况数据,格点预报的等展示场景 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-11-23 - **Last Updated**: 2024-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # w-time-line ## 演示 [demo](https://zulezhe.github.io/zu-time-line/#/) ## 安装 ``` yarn add zu-time-line ``` ## 使用 ```js // main.js引入 import Vue from 'vue'; import TimeLine 'zu-time-line' Vue.use(TimeLine) ``` ```html ``` ## 属性 | 参数 | 说明 | 类型 | 可选 | 默认 | | ----------- | ----------- | ----- | ---- | ---------------- | | lineData | 时间列表 | Array | | 当前一天 24 小时 | | playImg | 播放时 icon | Date | | | | stopPlayImg | 停止时 icon | Date | | | ## 方法 | 方法名称 | 说明 | 回调 | | ----------------- | ------------ | -------- | | handlePlay | 播放 | 当前时间 | | handleMarkerClick | 点击时间点 | 当前时间 | | handleInit | 时间轴初始化 | 当前时间 |