# vue3-gantt-component **Repository Path**: zhouruixin_0/vue3-gantt ## Basic Information - **Project Name**: vue3-gantt-component - **Description**: vue3版本轻量级甘特图 TypeScript - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/zhouruixin_0 - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 0 - **Created**: 2024-04-04 - **Last Updated**: 2025-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vue, gantt, TypeScript, 甘特图 ## README # vue3-gantt-component 基于 vue3 的甘特图 ## 相关参数去这里查看 跟 react 版本参数一样 除去 render 不可用 [https://github.com/zrx-888/react-gantt](https://github.com/zrx-888/react-gantt) ## Install ```bash npm i vue3-gantt-component 或者 yarn add vue3-gantt-component ``` ## Demo 需要翻墙 [https://react-gantt.vercel.app/](https://react-gantt.vercel.app/)  ## 自定义进度条的内容与 React 版本 不太一样这里使用 slot ```js import type { GanttDataProps, GanttHeadProps, GanttRefProps, } from "vue3-gantt-component"; import Gantt from "vue3-gantt-component"; /** * * @param width 进度条宽度(不包含超出的宽度) * @param activeWidth 选中进度条宽度 * @param surplusWidth 剩余进度条宽度 * @param overflowWidth 超出的宽度 * @returns 自定义进度条的宽度 */ 我的宽度是:{{ activeWidth }}px 我的宽度是:{{ overflowWidth && overflowWidth.toFixed(2) }}px {{ row.width.toFixed(0) }}px ```