Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
71e37ed0
Commit
71e37ed0
authored
Oct 23, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 分页样式
parent
8bb1009f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
custom-pagination.vue
src/components/custom-pagination/custom-pagination.vue
+5
-17
theme-config.ts
src/config/theme-config.ts
+14
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-1
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-1
No files found.
src/components/custom-pagination/custom-pagination.vue
View file @
71e37ed0
...
...
@@ -76,33 +76,21 @@ async function handleUpdatePageSize(pageSize: number) {
</
template
>
<
style
lang=
"scss"
scoped
>
:deep
(
.custom-pagination
.n-pagination-item
)
{
padding
:
0
;
margin-left
:
2px
;
border-radius
:
5px
;
}
:deep
(
.custom-pagination
.n-pagination-item--button
)
{
background-color
:
white
!
important
;
border
:
none
!
important
;
}
:deep
(
.custom-pagination
.n-base-selection
)
{
width
:
10
0
px
;
border-radius
:
6
px
;
width
:
10
6
px
;
border-radius
:
5
px
;
--n-border
:
1px
solid
#
999
!
important
;
--n-border
:
1px
solid
#
ccc
!
important
;
}
:deep
(
.custom-pagination
.n-pagination-quick-jumper
),
:deep
(
.custom-pagination
.n-input__input-el
),
:deep
(
.custom-pagination
.n-base-selection-input__content
)
{
color
:
#999
;
}
:deep
(
.custom-pagination
.n-input
)
{
border-radius
:
6
px
;
border-radius
:
5
px
;
--n-border
:
1px
solid
#
999
!
important
;
--n-border
:
1px
solid
#
ccc
!
important
;
}
</
style
>
src/config/theme-config.ts
View file @
71e37ed0
...
...
@@ -49,4 +49,18 @@ export const themeOverrides: GlobalThemeOverrides = {
itemColorHover
:
'#EFF0FF'
,
itemHeight
:
'40px'
,
},
Pagination
:
{
itemColor
:
'#FFFFFF'
,
itemTextColorActive
:
'#FFFFFF'
,
itemTextColorPressed
:
'#000DFF'
,
itemTextColorHover
:
'#000DFF'
,
itemColorActive
:
'#000DFF'
,
itemColorActiveHover
:
'#000DFF'
,
jumperTextColor
:
'#999999'
,
itemMarginMedium
:
'0 0 0 5px'
,
buttonBorder
:
'none'
,
buttonBorderHover
:
'none'
,
buttonBorderPressed
:
'none'
,
itemBorderDisabled
:
'none'
,
},
}
src/locales/langs/zh-cn.yaml
View file @
71e37ed0
...
...
@@ -67,7 +67,7 @@ common_module:
page_size
:
'
页'
page_unit
:
'
每页'
total
:
'
共'
goto
:
'
跳至'
goto
:
'
跳
转
至'
router_title_module
:
login
:
'
登录'
...
...
src/locales/langs/zh-hk.yaml
View file @
71e37ed0
...
...
@@ -67,7 +67,7 @@ common_module:
page_size
:
'
頁'
page_unit
:
'
每頁'
total
:
'
共'
goto
:
'
跳至'
goto
:
'
跳
轉
至'
router_title_module
:
login
:
'
登錄'
...
...
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