Commit 4022eef822b7991f24c28fb2d01a157c305561e5
1 parent
86107778
fix
Showing
3 changed files
with
7 additions
and
4 deletions
api.ts
components/List.tsx
1 | import React from "react"; | 1 | import React from "react"; |
2 | -import { Divider, message, Popconfirm, Popover, Table } from "antd"; | 2 | +import { Divider, message, Popconfirm, Table } from "antd"; |
3 | import { delete<feewee>替换name</feewee>Api } from "../api"; | 3 | import { delete<feewee>替换name</feewee>Api } from "../api"; |
4 | import { useStore } from "../index"; | 4 | import { useStore } from "../index"; |
5 | 5 | ||
@@ -33,7 +33,7 @@ export default function List() { | @@ -33,7 +33,7 @@ export default function List() { | ||
33 | align="left" | 33 | align="left" |
34 | render={(record: <feewee>替换name</feewee>.ListVO) => ( | 34 | render={(record: <feewee>替换name</feewee>.ListVO) => ( |
35 | <> | 35 | <> |
36 | - <a>编辑</a> | 36 | + <a onClick={() => editItem(record)}>编辑</a> |
37 | <Divider type="vertical" /> | 37 | <Divider type="vertical" /> |
38 | <Popconfirm title={<span>确定删除?</span>} onConfirm={() => deleteItem(record.id || -1)}> | 38 | <Popconfirm title={<span>确定删除?</span>} onConfirm={() => deleteItem(record.id || -1)}> |
39 | <a style={{ color: 'red' }}>删除</a> | 39 | <a style={{ color: 'red' }}>删除</a> |