Complete main UI #37

Merged
FatttSnake merged 192 commits from FatttSnake into dev 2024-02-23 16:31:17 +08:00
Showing only changes of commit 0e602224cb - Show all commits

View File

@@ -261,15 +261,7 @@ const Log: React.FC = () => {
JSON.stringify(tableParams.pagination?.current) JSON.stringify(tableParams.pagination?.current)
]) ])
return ( const toolbar = (
<>
<FitFullScreen>
<HideScrollbar
style={{ padding: 30 }}
isShowVerticalScrollbar
autoHideWaitingTime={500}
>
<FlexBox gap={20}>
<FlexBox direction={'horizontal'} gap={10}> <FlexBox direction={'horizontal'} gap={10}>
<Card style={{ overflow: 'inherit' }}> <Card style={{ overflow: 'inherit' }}>
<AntdInput <AntdInput
@@ -286,14 +278,9 @@ const Log: React.FC = () => {
suffix={ suffix={
<> <>
{!isRegexLegal ? ( {!isRegexLegal ? (
<span style={{ color: COLOR_ERROR_SECONDARY }}> <span style={{ color: COLOR_ERROR_SECONDARY }}></span>
</span>
) : undefined} ) : undefined}
<AntdCheckbox <AntdCheckbox checked={useRegex} onChange={handleOnUseRegexChange}>
checked={useRegex}
onChange={handleOnUseRegexChange}
>
<AntdTooltip title={'正则表达式'}>.*</AntdTooltip> <AntdTooltip title={'正则表达式'}>.*</AntdTooltip>
</AntdCheckbox> </AntdCheckbox>
</> </>
@@ -319,6 +306,9 @@ const Log: React.FC = () => {
</AntdButton> </AntdButton>
</Card> </Card>
</FlexBox> </FlexBox>
)
const table = (
<Card> <Card>
<AntdTable <AntdTable
dataSource={logData} dataSource={logData}
@@ -329,6 +319,19 @@ const Log: React.FC = () => {
onChange={handleOnTableChange} onChange={handleOnTableChange}
/> />
</Card> </Card>
)
return (
<>
<FitFullScreen>
<HideScrollbar
style={{ padding: 30 }}
isShowVerticalScrollbar
autoHideWaitingTime={500}
>
<FlexBox gap={20}>
{toolbar}
{table}
</FlexBox> </FlexBox>
</HideScrollbar> </HideScrollbar>
</FitFullScreen> </FitFullScreen>