diff --git a/src/pages/crontab/index.less b/src/pages/crontab/index.less index c8880dd9..71d7263d 100644 --- a/src/pages/crontab/index.less +++ b/src/pages/crontab/index.less @@ -101,3 +101,9 @@ background: #fafafa; } } + +.crontab-view { + .ant-tabs-nav-wrap { + flex: unset !important; + } +} diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index e3931bb4..986426dc 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -12,6 +12,7 @@ import { Typography, Input, Popover, + Tabs, } from 'antd'; import { ClockCircleOutlined, @@ -816,29 +817,8 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => { }); }, []); - return ( - setSearchValue(e.target.value)} - onSearch={onSearch} - />, - , - ]} - header={{ - style: headerStyle, - }} - > + const panelContent = ( + <> {selectedRowIds.length > 0 && (
, + ]} + header={{ + style: headerStyle, + }} + > + + + {panelContent} + + {