MCPcopy Index your code
hub / github.com/ahwgs/react-gantt

github.com/ahwgs/react-gantt @v0.3.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.3 ↗ · + Follow
155 symbols 335 edges 54 files 1 documented · 1% updated 15mo agov0.3.3 · 2025-03-14★ 13422 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rc-gantt

React Gantt Component

English | 简体中文

官网

https://ahwgs.github.io/react-gantt/#/

快速使用

# 安装依赖
$ yarn add rc-gantt

# 使用组件

import RcGantt, { GanttProps } from 'rc-gantt'

const data = new Array(100).fill({
  name: '一个名称一个名称一个名称一个名称',
  startDate: '2021-07-10',
  endDate: '2021-07-12',
  collapsed: false,
  children: [
    {
      startDate: '2021-07-10',
      endDate: '2021-07-12',
      name: '一个名称',
      collapsed: false,
      content: '123123123',
    },
  ],
})

const App = () => {
  return (



      <RcGantt
        data={data}
        columns={[
          {
            name: 'name',
            label: '名称',
            width: 200,
            maxWidth: 200,
            minWidth: 200,
          },
        ]}
        onUpdate={async () => {
          return true
        }}
      />



  )
}

ReactDOM.render(<App />, document.getElementById('root'))

问题反馈

请访问 Github 或加微信,备注 rc-gantt

微信号:JavaScript_97

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 68
Function 53
Interface 29
Class 4
Enum 1

Languages

TypeScript100%

Modules by API surface

src/store.ts70 symbols
src/types.ts10 symbols
src/Gantt.tsx5 symbols
src/components/invalid-task-bar/index.tsx4 symbols
src/components/drag-resize/AutoScroller.ts4 symbols
src/components/dependencies/Dependence.tsx4 symbols
website/demo/custom.tsx3 symbols
website/demo/child.tsx3 symbols
website/demo/basic.tsx3 symbols
website/demo/basic.en-US.tsx3 symbols
src/utils.ts3 symbols
src/components/task-bar/index.tsx3 symbols

For agents

$ claude mcp add react-gantt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page