|
@@ -61,7 +61,7 @@ const Option = () => {
|
|
{
|
|
{
|
|
title: '排序',
|
|
title: '排序',
|
|
dataIndex: 'sort',
|
|
dataIndex: 'sort',
|
|
- width: 30,
|
|
|
|
|
|
+ width: 50,
|
|
render: () => <DragHandle />
|
|
render: () => <DragHandle />
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -119,7 +119,7 @@ const Option = () => {
|
|
)
|
|
)
|
|
|
|
|
|
const DraggableBodyRow = ({ className, style, ...restProps }) => {
|
|
const DraggableBodyRow = ({ className, style, ...restProps }) => {
|
|
- const index = menuData
|
|
|
|
|
|
+ const index = state.menuData
|
|
.find(item => item.ID === activeID)
|
|
.find(item => item.ID === activeID)
|
|
?.items.findIndex(x => x.index === restProps['data-row-key'])
|
|
?.items.findIndex(x => x.index === restProps['data-row-key'])
|
|
return <SortableItem index={index} {...restProps} />
|
|
return <SortableItem index={index} {...restProps} />
|