+ {taskList.map((item, index) => (
+
+ {(provided, snapshot) => (
+
+ {
+ await Dialog.confirm({
+ content: '确定要关闭吗?',
+ })
+ ref.current?.close()
+ },
+ },
+ {
+ key: 'close',
+ text: '关闭',
+ color: 'warning',
+ onClick: async () => {
+ await Dialog.confirm({
+ content: '确定要关闭吗?',
+ })
+ ref.current?.close()
+ },
+ },
+ {
+ key: 'update',
+ text: '修改',
+ color: 'primary',
+ onClick: async () => {
+ await Dialog.confirm({
+ content: '确定要修改吗?',
+ })
+ ref.current?.close()
+ },
+ },
+ {
+ key: 'complete',
+ text: '完成',
+ color: 'success',
+ onClick: async () => {
+ await Dialog.confirm({
+ content: '确定要完成吗?',
+ })
+ ref.current?.close()
+ },
+ },
+ ]}
+ >
{
// height={40}
// />
// }
- title={{item.name}}
+ title={{item.name}}
children={item.description}
description={item.state}
onClick={
@@ -126,17 +148,20 @@ const ToDoList = () => {
}
}
/>
-
-
- )}
-
- ))}
- {droppableProvided.placeholder}
-