vue3-gantt-component
vue3甘特图
894
| Install | |
|---|---|
npm install vue3-gantt-component |
|
| Latest Version: | 0.3.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Apr 8, 2024 |
| Links: | Gitee · npm |
Maintainer: zrx_npm123
vue3-gantt-component
基于 vue3 的甘特图
相关参数去这里查看
跟 react 版本参数一样 除去 render 不可用
https://github.com/zrx-888/react-gantt
Install
npm i vue3-gantt-component
或者
yarn add vue3-gantt-component
Demo 需要翻墙
https://react-gantt.vercel.app/
自定义进度条的内容与 React 版本 不太一样这里使用 slot
<Gantt :head="head" :data="list" ref="ganttRef">
/**
*
* @param width 进度条宽度(不包含超出的宽度)
* @param activeWidth 选中进度条宽度
* @param surplusWidth 剩余进度条宽度
* @param overflowWidth 超出的宽度
* @returns 自定义进度条的宽度
*/
<template #parentSlot="{ activeWidth, overflowWidth }">
<div style="display: flex">
<div :style="{ width: activeWidth + 'px' }">
我的宽度是:{{ activeWidth }}px
</div>
<div :style="{ width: overflowWidth + 'px' }" v-if="overflowWidth">
我的宽度是:{{ overflowWidth && overflowWidth.toFixed(2) }}px
</div>
</div>
</template>
<template #childrenSlot="row">
<div style="display: flex">
<div :style="{ width: row.width + 'px' }">{{ row.width.toFixed(0) }}px</div>
</div>
</template>
</Gantt>
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.3.1 | ^3.4.21 | MIT | |
| 0.3.0 | ^3.4.21 | MIT | |
| 0.2.7 | ^3.4.21 | MIT | |
| 0.2.6 | ^3.4.21 | MIT | |
| 0.2.5 | ^3.4.21 | MIT | |
| 0.2.4 | ^3.4.21 | MIT | |
| 0.2.2 | ^3.4.21 | MIT | |
| 0.2.1 | ^3.4.21 | MIT | |
| 0.2.0 | ^3.4.21 | MIT | |
| 0.1.9 | ^3.4.21 | MIT | |
| 0.1.8 | ^3.4.21 | MIT | |
| 0.1.7 | ^3.4.21 | MIT | |
| 0.1.6 | ^3.4.21 | MIT | |
| 0.1.5 | ^3.4.21 | MIT | |
| 0.1.4 | ^3.4.21 | MIT | |
| 0.1.3 | ^3.4.21 | MIT | |
| 0.1.2 | ^3.4.21 | MIT | |
| 0.1.1 | ^3.4.21 | MIT | |
| 0.0.9 | ^3.4.21 | MIT | |
| 0.0.8 | ^3.4.21 | MIT | |
| 0.0.7 | ^3.4.21 | MIT | |
| 0.0.6 | ^3.4.21 | MIT | |
| 0.0.5 | ^3.4.21 | MIT | |
| 0.0.3 | ^3.4.21 | MIT | |
| 0.0.2 | ^3.4.21 | MIT | |
| 0.0.1 | ^3.4.21 | MIT |