框架优化
This commit is contained in:
@@ -110,7 +110,6 @@ const CategoryDrawer = () => {
|
||||
{
|
||||
title: '分类名称',
|
||||
dataIndex: ['attributes', 'name'],
|
||||
width: '60%',
|
||||
render: (text, record) => {
|
||||
const isEditing = record.id === editingKey;
|
||||
return isEditing ? (
|
||||
@@ -128,7 +127,6 @@ const CategoryDrawer = () => {
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '40%',
|
||||
render: (_, record) => {
|
||||
const isEditing = record.id === editingKey;
|
||||
return isEditing ? (
|
||||
@@ -221,6 +219,7 @@ const CategoryDrawer = () => {
|
||||
</Button>
|
||||
<Form form={form}>
|
||||
<Table
|
||||
scroll={{ x: true }}
|
||||
columns={columns}
|
||||
dataSource={data}
|
||||
rowKey="id"
|
||||
|
||||
Reference in New Issue
Block a user