可插入的组件,可将 Kanban 板添加到应用程序中
可插入的组件,可将 Trello(类似)的 Kanban 板添加到您的应用程序中
此库与 Trello, Inc. 没有任何关联、授权、认可或官方关系。
Trello是 Atlassian, Inc. 的注册商标。
const data = {
lanes: [
{
id: 'lane1',
title: 'Planned Tasks',
label: '2/2',
cards: [
{id: 'Card1', title: 'Write Blog', description: 'Can AI make memes', label: '30 mins', draggable: false},
{id: 'Card2', title: 'Pay Rent', description: 'Transfer via NEFT', label: '5 mins', metadata: {sha: 'be312a1'}}
]
},
{
id: 'lane2',
title: 'Completed',
label: '0/0',
cards: []
}
]
}
``` Card 对象的 `draggable` 属性默认为 `true`。数据会传递给板块组件,这就是全部了。```jsx
import React from 'react'
import Board from 'react-trello'
export default class App extends React.Component {
render() {
return <Board data={data} />
}
}
``` 详细示例请参阅 storybook:https://rcdexta.github.io/react-trello/ 也请参阅使用 React-trello 的示例项目:https://github.com/rcdexta/react-trello-example ## 使用项目的边缘版本(当前主分支)
[Storybook](https://rcdexta.github.io/react-trello/)暂无开放 Issues,或尚未同步最近议题。