From 9fbf7bec1ad870d51246653b04eb9b3bc56a07c9 Mon Sep 17 00:00:00 2001
From: powersir <1576775122@qq.com>
Date: Mon, 11 Dec 2023 09:27:42 +0800
Subject: [PATCH] update:tabls-layout style
---
src/layout/tabs-layout.tsx | 11 ++--
src/pages/custom/product/material/index.tsx | 60 ++++++++++++++-------
2 files changed, 48 insertions(+), 23 deletions(-)
diff --git a/src/layout/tabs-layout.tsx b/src/layout/tabs-layout.tsx
index 12723b0..ceb535d 100644
--- a/src/layout/tabs-layout.tsx
+++ b/src/layout/tabs-layout.tsx
@@ -77,10 +77,13 @@ const TabsLayout: React.FC = () => {
height: 'calc(100vh - 107px)'
}}
>
-
+
{tab.children}
diff --git a/src/pages/custom/product/material/index.tsx b/src/pages/custom/product/material/index.tsx
index d36edc5..b01011e 100644
--- a/src/pages/custom/product/material/index.tsx
+++ b/src/pages/custom/product/material/index.tsx
@@ -6,6 +6,7 @@ import type { FilterConfirmProps, TableRowSelection } from 'antd/es/table/interf
import { t } from '@/utils/i18n';
import { PlusOutlined, ExclamationCircleFilled, DeleteOutlined, SearchOutlined } from '@ant-design/icons';
import { antdUtils } from '@/utils/antd';
+import { useSize, useEventListener } from 'ahooks';
import mData from '../../../../../mock/findMaterialPage.json'
import MaterialClassifyView from './classify';
@@ -122,7 +123,7 @@ const TablePage: React.FC = () => {
dataIndex: DataIndex,
) => {
setOnSearching(true);
- setTimeout(()=>{
+ setTimeout(() => {
setOnSearching(false);
confirm();
}, 1000)
@@ -147,8 +148,8 @@ const TablePage: React.FC = () => {
onSearch={() => handleSearch(selectedKeys as string[], confirm, dataIndex)}
allowClear
style={{ marginBottom: 8, display: 'block' }}
- enterButton="搜索"
- size="large"
+ enterButton="搜索"
+ size="large"
loading={onSearching}
/>
@@ -257,8 +258,6 @@ const TablePage: React.FC = () => {
},
];
-
-
const data: Array