{"id":39605570,"url":"https://github.com/xpyjs/gantt-vue2","last_synced_at":"2026-01-18T08:00:00.315Z","repository":{"id":42027995,"uuid":"482470375","full_name":"xpyjs/gantt-vue2","owner":"xpyjs","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-04T09:46:45.000Z","size":787,"stargazers_count":14,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T06:24:38.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xpyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-17T08:39:40.000Z","updated_at":"2025-04-02T01:38:02.000Z","dependencies_parsed_at":"2022-08-12T02:50:19.172Z","dependency_job_id":null,"html_url":"https://github.com/xpyjs/gantt-vue2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xpyjs/gantt-vue2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpyjs%2Fgantt-vue2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpyjs%2Fgantt-vue2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpyjs%2Fgantt-vue2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpyjs%2Fgantt-vue2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpyjs","download_url":"https://codeload.github.com/xpyjs/gantt-vue2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpyjs%2Fgantt-vue2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28533723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T08:00:00.225Z","updated_at":"2026-01-18T08:00:00.303Z","avatar_url":"https://github.com/xpyjs.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XGantt For vue2\n\n![](./src/assets/logo.png)\n\n![](https://img.shields.io/npm/v/@xpyjs/gantt-vue2.svg) ![](https://img.shields.io/npm/l/@xpyjs/gantt-vue2.svg)\n\n[[English](./README.md)] [[中文](./README_cn.md)]\n\nA high-performance vue2 gantt component.\n\n#### `vue3` version is [here](https://github.com/xpyjs/gantt)\n\n## Use vue2 problem. Please read before use, very important\n\n********************************\n\n`vue2.6.x` and `vue2.7.x` are incompatible.\n\n- #### If you use `vue2.6.14`\n\nDue to the npm upgrade mechanism, please change the dependent version to fixed:\n\n```json\n\"vue\": \"2.6.14\",\n\"vue-template-compiler\": \"2.6.14\"\n```\n\nAnd then, install `@xpyjs/gantt-vue2@1` version 1.x for this.\n\nThe above can solve the initialization error problem, see details [ISSUE](https://github.com/xpyjs/gantt-vue2/issues/5)\n\n- #### If you use `vue2.7.x`\n\nPlease install `@xpyjs/gantt-vue2@2` version 2.x for this. Default install will be v2.\n\n********************************\n\n## Important\n\nThis repo is previous `jz-gantt`. Only vue2 version. If you have used `jz-gantt` before, you should read the following carefully.\n\n**Specification:**\n\n\u003e - 'jz-gantt' vue2 version (v0.0.17) is deprecated.\n\u003e - This project is completely rewritten. Based on the 'vue3' code, support content to '1.3.1', but no updates, just basic maintenance. If you need to update the content, please use the `vue3` version, or update yourself.\n\u003e - Also, if you fork and PR, I will check and merge it into the main branch and update the version content.\n\n### How to migrate\n\n1. package name changed. `@xpyjs/gantt-vue2` replaced `jz-gantt`.\n2. All `j-` or `J` prefix updpate to `x-` or `X`.\n\nBeyond that, no other action is required.\n\n## Snipaste\n\n![Snipaste](./src/assets/Snipaste.png)\n\n## What is XGantt\n\n- [x] Custom table column content\n- [x] Custom gantt row content\n- [x] Custom header content\n- [x] Dynamic update data\n- [x] Custom any style\n\n## How to use\n\n### install\n\n```bash\nnpm install @xpyjs/gantt-vue2 --save\n\n// or\nyarn add @xpyjs/gantt-vue2\n```\n\n### use\n\n```js\nimport Vue from \"vue\";\nimport XGantt from \"@xpyjs/gantt-vue2\";\nimport '@xpyjs/gantt-vue2/lib/index.css';\n\nVue.use(XGantt);\n```\n\n## Document\n\nFor resource code, see [Github](http://github.com/xpyjs/gantt-vue2)\n\nFor more detailed documentation, see [document web](https://docs.xiaopangying.com/gantt/docs/vue2)\n\n### Basic use\n\nData should be Array type, `index`, `startDate`, `endDate` and `children` are supposed in data item, they help to display the data correctly.\n\n```js\nconst dataList = [\n    {\n        index: 1,\n        startDate: \"2020-06-05\",\n        endDate: \"2020-08-20\",\n        ttt: {\n            a: \"aaa\",\n            b: \"bbb\"\n        },\n        name: \"mydata1\",\n        children: []\n    },\n    {\n        index: 2,\n        startDate: \"2020-07-07\",\n        endDate: \"2020-09-11\",\n        ttt: {},\n        name: \"mydata2\",\n        children: [\n            {\n                index: 3,\n                startDate: \"2020-07-10\",\n                endDate: \"2020-08-15\",\n                ttt: {\n                    a: \"aaa\"\n                },\n                name: \"child1\",\n                children: []\n            }\n        ]\n    }\n];\n```\n\n```html\n\u003cx-gantt\n    data-index=\"index\"\n    :data=\"dataList\"\n/\u003e\n```\n\n### Use table column\n\nWe provide a slot named `XGanttColumn`. `label` is required, and it should match data key. `label`'s value should correspond to the name of the field in 'data' (deep query support), which tells the component to render the column.\n\n```html\n\u003cx-gantt\n    data-index=\"index\"\n    :data=\"dataList\"\n\u003e\n    \u003cx-gantt-column label=\"index\" /\u003e\n\u003c/x-gantt\u003e\n```\n\n### Use gantt slider\n\nWe provide a slot named `XGanttSlider`.\n\nOnly one slider whill be rendered. If you insert more than one slider, only last slider will be display.\n\n```html\n\u003cx-gantt\n    data-index=\"index\"\n    :data=\"dataList\"\n\u003e\n    \u003cx-gantt-slider /\u003e  \u003c!-- no render --\u003e\n    \u003cx-gantt-slider /\u003e  \u003c!-- will be rendered --\u003e\n\u003c/x-gantt\u003e\n```\n\n## Differences with vue3 version\n\n- Date is not highlighted when hovering `slider`\n- Dragging progress value on `slider` is not allowed\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpyjs%2Fgantt-vue2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpyjs%2Fgantt-vue2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpyjs%2Fgantt-vue2/lists"}