Forráskód Böngészése

pc端分页器隐藏每页条数选择

shaogen1995 2 éve
szülő
commit
2c8b6e310b
3 módosított fájl, 3 hozzáadás és 3 törlés
  1. 1 1
      webNew/src/App.tsx
  2. 1 1
      webNew/src/AppM.tsx
  3. 1 1
      webNew/src/pages/Home/index.tsx

+ 1 - 1
webNew/src/App.tsx

@@ -1,4 +1,4 @@
-import 'antd/dist/antd.css';
+import 'antd/dist/antd.min.css';
 import '@/assets/styles/base.css'
 // import { useDispatch, useSelector } from 'react-redux'
 // import { RootState } from './store'

+ 1 - 1
webNew/src/AppM.tsx

@@ -1,4 +1,4 @@
-import 'antd/dist/antd.css';
+import 'antd/dist/antd.min.css';
 import '@/assets/styles/base.css'
 // import { useDispatch, useSelector } from 'react-redux'
 // import { RootState } from './store'

+ 1 - 1
webNew/src/pages/Home/index.tsx

@@ -176,7 +176,7 @@ export default function Home() {
 
         {/* 分页器 */}
         <div className='page'>
-          <Pagination size="small" current={pageNum} total={total} pageSize={12} hideOnSinglePage={true} onChange={pageChangeFu} />
+          <Pagination size="small" current={pageNum} total={total} pageSize={12} hideOnSinglePage={true} onChange={pageChangeFu} showSizeChanger={false}/>
 
         </div>