• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language Vue
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📊Gantt chart

v-gantt

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

image.png

中文文档

Table of Contents

Introduction

Base on vue + element-ui, create web version omniplan。

⬆ Back to Top

Feature

  1. fold & collapse tree node
  2. support tree header slot
  3. drag gantt node to modify dates
  4. drag to modify duration
  5. jump to 'today'
  6. col unit base on days or weeks or months
  7. monthly view hover node to display date info
  8. click tree node to jump to gantt node
  9. click milestone's line to jump to milestone node
  10. get chinese festivals by public-api

⬆ Back to Top

Quick Start

v-gantt is based on el-button, el-select, el-progress and el-tree. So you need to register those in global environment with Vue.component or simply with Vue.use(Element)

yarn add @femessage/v-gantt @femessage/element-ui
<template>
  <v-gantt style="height: 400px;" :data.sync="data" />
</template>

<script>
  export default {
    data() {
      const y = new Date().getFullYear()
      const m = `${new Date().getMonth() + 1}`.padStart(2, 0)
      const d = (date) => `${y}-${m}-${date}`
      return {
        data: [
          {
            id: 'group-1',
            name: '群组-1',
            children: [
              {
                id: 'item-1',
                name: '叶节点-1',
                progress: 30,
                startDate: d('06'),
                endDate: d('07'),
              },
            ],
          },
          {
            id: 'milestone-1',
            name: '里程碑-1',
            date: d('10'),
            done: true,
          },
        ],
      }
    },
  }
</script>

Development

develop on top of vue-styleguide

yarn dev

Todo

  • support tree node dragging
  • support header-slot to place button like 'new'
  • support delete action
  • fix 'rowH' doesn't inpact tree nodes
  • support drag to change progress
  • support click to toggle milestone
  • lost <gantt-layout> in <gantt-group> when compile with rollup

⬆ Back to Top

Links

⬆ Back to Top

Inspiration

thanks to

⬆ Back to Top

Contributing

For those who are interested in contributing to this project, such as:

  • report a bug
  • request new feature
  • fix a bug
  • implement a new feature

Please refer to our contributing guide.

⬆ Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):


Donald Shen

💻 📝 🔧 🎨

4Ark

📖 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

⬆ Back to Top

License

MIT

⬆ Back to Top

More Repositories

1

el-data-table

🥘Base on element-ui, makes crud easily
Vue
486
star
2

el-form-renderer

🎩A data-driven dynamic and complex form solution
JavaScript
231
star
3

nuxt-micro-frontend

🎳Nuxt module for micro-frontend solution
JavaScript
121
star
4

log-viewer

💻View terminal logs in browser
JavaScript
110
star
5

dique

🐦移动端语雀,你的掌上知识库
Dart
70
star
6

v-img

📸Use webp and lazyload images
JavaScript
48
star
7

hire

🤝 Join us
JavaScript
47
star
8

create-nuxt-app

⚡️Create deepexi style nuxt app in seconds
JavaScript
44
star
9

el-data-tree

🌴Base on element-ui, makes tree component crud easily
Vue
29
star
10

update-popup

💬Display an update message at right bottom
JavaScript
24
star
11

upload-to-ali

☁️Upload to ali-oss easily
Vue
21
star
12

v-editor

📝Write md or rich text easily
JavaScript
21
star
13

data-list

📜Load more list items easily
Vue
16
star
14

el-select-area

🇨🇳Chinese area select component(including Taiwan、Hongkong、Macao)
JavaScript
15
star
15

blog

📖团队博客
JavaScript
13
star
16

app-download

build your app's download page easily
JavaScript
9
star
17

excel-it

⬇️import/export excel easily
JavaScript
9
star
18

el-semver-input

🖊Semantic version input component
Vue
8
star
19

img-preview

🖼Preview your img  easily
JavaScript
7
star
20

dockerize-cli

🐳 Dockerize your web project in one minute
JavaScript
4
star
21

direct-mail

📧Send DirectMail with Node.js
JavaScript
4
star
22

serverless-nestjs-starter

🚀 serverless + nestjs + postgres
TypeScript
1
star
23

nuxt-jest-puppeteer

JavaScript
1
star
24

release-script

🖨Process FEMessage's release stuff
Shell
1
star
25

el-number-range

🔢Number range input component
JavaScript
1
star