This commit is contained in:
lyp 2025-05-20 10:05:39 +08:00
parent 869d429657
commit 87a1a2b155

View File

@ -1,9 +1,22 @@
import React from 'react'
import { useState, useEffect } from 'react'
import {
Pagination,
// Table,
// Modal,
// Spin
} from 'antd';
import './app-election.css'
import nothingImg from '../../static/appimgs/nothing.png'
export default function AppElectron() {
const height = window.innerHeight - 180;
const data = []
const [page, setPage] = useState(1);
const [total, setTotal] = useState(0);
const data = [
{ name: '123' }
]
useEffect(() => {
setTotal(100)
}, [page])
return (
<div className='appElectionBox' style={{ height: `${height}px`, overflow: 'auto' }}>
{data.length <= 0 ? (<div style={{ height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', flexDirection: 'column' }}>
@ -14,7 +27,21 @@ export default function AppElectron() {
fontSize: 16,
color: '#D0D0D0'
}}></div>
</div>) : (<></>)}
</div>) : (
<div className='transaction-order-table'>
<div style={{ height: `${height - 80}px` }}>
</div>
<div className='product-release-pagination'>
<Pagination
showSizeChanger={false}
current={page} total={total} defaultPageSize={10} onChange={(page) => {
setPage(page)
}} />
</div>
</div>
)}
</div>
)
}