Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESYTD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дияр Амангельды
ESYTD
Commits
8f82a9df
Commit
8f82a9df
authored
Jul 23, 2024
by
Дияр Амангельды
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pagination
parent
40cf9666
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
6 deletions
+46
-6
src/components/HomePage/Home.tsx
src/components/HomePage/Home.tsx
+6
-2
src/pages/RequestPage.tsx
src/pages/RequestPage.tsx
+6
-1
src/styles/Home/home.css
src/styles/Home/home.css
+23
-3
src/styles/Home/requiestPage.css
src/styles/Home/requiestPage.css
+11
-0
No files found.
src/components/HomePage/Home.tsx
View file @
8f82a9df
import
{
useNavigate
}
from
'
react-router
'
;
import
{
useNavigate
}
from
'
react-router
'
;
import
'
../../styles/Home/home.css
'
;
import
'
../../styles/Home/home.css
'
;
import
add
from
"
/section_add.png
"
;
import
add
from
"
/section_add.png
"
;
import
{
Pagination
}
from
'
antd
'
;
const
Home
=
()
=>
{
const
Home
=
()
=>
{
const
navigate
=
useNavigate
();
const
navigate
=
useNavigate
();
...
@@ -8,7 +9,7 @@ const Home = () => {
...
@@ -8,7 +9,7 @@ const Home = () => {
return
(
return
(
<
section
className=
'section'
>
<
section
className=
'section'
>
<
div
className=
"add"
>
<
div
className=
"add"
>
<
img
src=
{
add
}
alt=
"add_png"
onClick=
{
()
=>
navigate
(
"
/add
"
)
}
className=
'add_button'
/>
<
img
src=
{
add
}
alt=
"add_png"
onClick=
{
()
=>
navigate
(
"
/add
"
)
}
className=
'add_button'
/>
<
span
className=
'add_title'
>
Добавить
</
span
>
<
span
className=
'add_title'
>
Добавить
</
span
>
</
div
>
</
div
>
<
div
className=
"data"
>
<
div
className=
"data"
>
...
@@ -59,8 +60,11 @@ const Home = () => {
...
@@ -59,8 +60,11 @@ const Home = () => {
</
tbody
>
</
tbody
>
</
table
>
</
table
>
</
div
>
</
div
>
<
div
className=
'pagination-container'
>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
/>
</
div
>
</
section
>
</
section
>
)
)
}
}
export
default
Home
export
default
Home
;
src/pages/RequestPage.tsx
View file @
8f82a9df
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
DatePicker
,
Select
,
Button
,
Pagination
}
from
'
antd
'
;
import
{
DatePicker
,
Select
,
Button
,
Pagination
}
from
'
antd
'
;
import
dayjs
from
'
dayjs
'
;
import
dayjs
from
'
dayjs
'
;
import
'
../../src/styles/Home/requiestPage.css
'
;
const
dateFormat
=
'
YYYY/MM/DD
'
;
const
dateFormat
=
'
YYYY/MM/DD
'
;
...
@@ -103,7 +104,11 @@ const RequestPage: React.FC = () => {
...
@@ -103,7 +104,11 @@ const RequestPage: React.FC = () => {
</
table
>
</
table
>
</
div
>
</
div
>
</
section
>
</
section
>
<
div
className=
'pagination'
style=
{
{
marginTop
:
300
,
display
:
'
flex
'
,
justifyContent
:
"
center
"
}
}
>
{
/* <div className='pagination-container' style={{marginTop: 300, display: 'flex', justifyContent: "center"}}>
<Pagination current={1} defaultCurrent={1} pageSize={1} total={10} />
</div> */
}
<
div
className=
'pagination-container'
>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
/>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/styles/Home/home.css
View file @
8f82a9df
...
@@ -3,9 +3,13 @@
...
@@ -3,9 +3,13 @@
margin-top
:
10px
;
margin-top
:
10px
;
margin-left
:
20px
;
margin-left
:
20px
;
margin-right
:
20px
;
margin-right
:
20px
;
display
:
flex
;
flex-direction
:
column
;
height
:
calc
(
100vh
-
60px
);
/* Adjust based on your header height */
}
}
.add
{
.add
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -24,13 +28,17 @@
...
@@ -24,13 +28,17 @@
transform
:
scale
(
1.1
);
transform
:
scale
(
1.1
);
}
}
.add_title
{
.add_title
{
font-size
:
12px
;
font-size
:
12px
;
line-height
:
18px
;
line-height
:
18px
;
margin-left
:
2px
;
margin-left
:
2px
;
}
}
.data
{
flex
:
1
;
overflow-y
:
auto
;
}
.data-table
{
.data-table
{
min-width
:
100%
;
min-width
:
100%
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
@@ -75,4 +83,16 @@
...
@@ -75,4 +83,16 @@
.view-btn
:hover
,
.view-btn
:hover
,
.delete-btn
:hover
{
.delete-btn
:hover
{
opacity
:
0.7
;
opacity
:
0.7
;
}
.pagination-container
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
background
:
white
;
padding
:
10px
20px
;
box-shadow
:
0
-2px
8px
rgba
(
0
,
0
,
0
,
0.1
);
display
:
flex
;
justify-content
:
center
;
}
}
\ No newline at end of file
src/styles/Home/requiestPage.css
0 → 100644
View file @
8f82a9df
.pagination-container
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
background
:
white
;
padding
:
10px
20px
;
box-shadow
:
0
-2px
8px
rgba
(
0
,
0
,
0
,
0.1
);
display
:
flex
;
justify-content
:
center
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment