vue vxe-gantt 甘特图的使用

[复制链接]
发表于 2025-8-15 21:46:45 | 显示全部楼层 |阅读模式
vue vxe-gantt 甘特图的使用
查看官网:https://vxeui.com
Github:https://github.com/x-extends/vxe-gantt
Gitee:https://gitee.com/x-extends/vxe-gantt
  1. npm install vxe-pc-ui@4.8.19 vxe-table@4.16.0 vxe-gantt@4.0.0
复制代码
  1. // ...
  2. import VxeUIAll from 'vxe-pc-ui'
  3. import 'vxe-pc-ui/es/style.css'
  4. import VxeUITable from 'vxe-table'
  5. import 'vxe-table/es/style.css'
  6. import VxeUIGantt from 'vxe-gantt'
  7. import 'vxe-gantt/lib/style.css'
  8. // ...
  9. createApp(App).use(VxeUIAll).use(VxeUITable).use(VxeUIGantt).mount('#app')
  10. // ...
复制代码
基础功能

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
显示使命进度

通过 task-bar-config.showProgress 显示使命进度
  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
设置颜色

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
单选框

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
复选框

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
子使命

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
查询表单

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
数据分页

  1. <template>
  2.   
  3.     <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  4.   
  5. </template>
复制代码
https://gitee.com/x-extends/vxe-gantt

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

×
登录参与点评抽奖,加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表