Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
a9bfa365
authored
Aug 27, 2023
by
芋道源码
Committed by
Gitee
Aug 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!216 update src/components/Pagination/index.vue.
Merge pull request !216 from AKING/N/A
parents
65f9e3ee
ff8a8e72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
src/components/Pagination/index.vue
+11
-1
No files found.
src/components/Pagination/index.vue
View file @
a9bfa365
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
:page-sizes=
"[10, 20, 30, 50, 100]"
:page-sizes=
"[10, 20, 30, 50, 100]"
:pager-count=
"pagerCount"
:pager-count=
"pagerCount"
:total=
"total"
:total=
"total"
:small=
"isSmall"
class=
"float-right mt-15px mb-15px"
class=
"float-right mt-15px mb-15px"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
...
@@ -15,10 +16,19 @@
...
@@ -15,10 +16,19 @@
/>
/>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
computed
}
from
'vue'
import
{
computed
,
watchEffect
}
from
'vue'
import
{
useAppStore
}
from
'@/store/modules/app'
defineOptions
({
name
:
'Pagination'
})
defineOptions
({
name
:
'Pagination'
})
// 此处解决了当全局size为small的时候分页组件样式太大的问题
const
appStore
=
useAppStore
()
const
layoutCurrentSize
=
computed
(()
=>
appStore
.
currentSize
)
const
isSmall
=
ref
<
boolean
>
(
layoutCurrentSize
.
value
===
'small'
)
watchEffect
(()
=>
{
isSmall
.
value
=
layoutCurrentSize
.
value
===
'small'
})
const
props
=
defineProps
({
const
props
=
defineProps
({
// 总条目数
// 总条目数
total
:
{
total
:
{
...
...
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