vxe-gantt-nuxt

Vxe Gantt module for Nuxt
1,287
Install
npm install vxe-gantt-nuxt
Latest Version:1.0.2
Vue:3
License:MIT
Last Updated:Jun 2, 2026
Links: GitHub  ·  npm
Maintainer: x-extends

github star npm version NodeJS with Webpack npm downloads issues issues closed pull requests pull requests closed npm license

Vxe Gantt Nuxt

Vxe gantt module for Nuxt

Features

  • Automatically import components and styles on demand.

Installation

npm install vxe-gantt-nuxt -D

Configuration

export default defineNuxtConfig({
  modules: [
    'vxe-pc-ui-nuxt',
    'vxe-table-nuxt',
    'vxe-gantt-nuxt'
  ],
  vxeGanttSetting: { /** Options */ }
})

Usage

<template>
  <div>
    <vxe-gantt v-bind="ganttOptions"></vxe-gantt>
  </div>
</template>

<script>
export default {
  data() {
    const ganttOptions = {
      border: true,
      taskBarConfig: {
        showProgress: true
      },
      columns: [
        { field: 'title', title: '任务名称' },
        { field: 'start', title: '开始时间', width: 100 },
        { field: 'end', title: '结束时间', width: 100 }
      ],
      data: [
        { id: 10001, title: 'A项目', start: '2024-03-01', end: '2024-03-04', progress: 3 },
        { id: 10002, title: '城市道路修理进度', start: '2024-03-03', end: '2024-03-08', progress: 10 },
        { id: 10003, title: 'B大工程', start: '2024-03-03', end: '2024-03-11', progress: 90 },
        { id: 10004, title: '超级大工程', start: '2024-03-05', end: '2024-03-11', progress: 15 },
        { id: 10005, title: '地球净化项目', start: '2024-03-08', end: '2024-03-15', progress: 100 },
        { id: 10006, title: '一个小目标项目', start: '2024-03-10', end: '2024-03-21', progress: 5 },
        { id: 10007, title: '某某计划', start: '2024-03-15', end: '2024-03-24', progress: 70 },
        { id: 10008, title: '某某科技项目', start: '2024-03-20', end: '2024-03-29', progress: 50 },
        { id: 10009, title: '地铁建设工程', start: '2024-03-19', end: '2024-03-20', progress: 5 },
        { id: 10010, title: '铁路修建计划', start: '2024-03-12', end: '2024-03-20', progress: 10 }
      ]
    }
    return {
      ganttOptions
    }
  }
}
</script>

Reference Nuxt documentation and playground use.

Development

  • Run npm run update i to install the dependencies.
  • Run npm run run to start playground in development mode.
  • Run npm run build to build this project.

Related Packages

vxe-design-nuxt

Vxe Design module for Nuxt

1,250 0
vxe-table-nuxt

Vxe Table module for Nuxt

1,238 0
vxe-pc-ui-nuxt

Vxe UI module for Nuxt

1,260 0
vxe-gantt

A vue based gantt component

53,670 30
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903

Version History

Version Released Vue License
1.0.2 ^3.0 MIT
1.0.1 ^3.0 MIT
1.0.0 ^3.0 MIT
0.1.1 ^3.0 MIT
0.1.0 ^3.0 MIT