|
|
@@ -65,6 +65,7 @@ const DraggableTab: React.FC<TabsProps & { onItemsChange?: (items: any[]) => voi |
|
|
|
|
|
|
|
return ( |
|
|
|
<Tabs |
|
|
|
style={{ position: 'relative' }} |
|
|
|
renderTabBar={(tabBarProps, DefaultTabBar) => ( |
|
|
|
<DndContext sensors={[sensor]} onDragEnd={onDragEnd} modifiers={[restrictToHorizontalAxis]}> |
|
|
|
<SortableContext items={items.map((i) => i.key)} strategy={horizontalListSortingStrategy}> |
|
|
@@ -80,7 +81,7 @@ const DraggableTab: React.FC<TabsProps & { onItemsChange?: (items: any[]) => voi |
|
|
|
)} |
|
|
|
{...props} |
|
|
|
items={items} |
|
|
|
tabBarStyle={{ marginBottom: 8 }} |
|
|
|
tabBarStyle={{ marginBottom: 8, position: 'sticky', top: 0, zIndex: 997}} |
|
|
|
className='tab-layout' |
|
|
|
/> |
|
|
|
); |
|
|
|