Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuzhen@situdata.com
/
yunxiao-admin-fe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
aa8cb7bc
authored
2020-10-15 11:20:22 +0800
by
zhen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加如删除的文件
1 parent
33235b33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
6 deletions
src/layout/components/AppMain.vue
src/views/components/FooterPagination.vue
src/layout/components/AppMain.vue
View file @
aa8cb7b
...
...
@@ -3,18 +3,12 @@
<transition
name=
"fade-transform"
mode=
"out-in"
>
<router-view
:key=
"key"
/>
</transition>
<ResetPassDialog></ResetPassDialog>
</section>
</
template
>
<
script
>
import
ResetPassDialog
from
'@/views/components/ResetPassDialog'
export
default
{
name
:
'AppMain'
,
components
:
{
ResetPassDialog
},
data
()
{
return
{
visible
:
true
...
...
src/views/components/FooterPagination.vue
0 → 100644
View file @
aa8cb7b
<
template
>
<div
class=
"wrapper"
>
<el-pagination
background
layout=
"total, prev, pager, next, sizes, jumper"
:total=
"pagination.total"
@
current-change=
"handleCurrentChange"
@
size-change=
"handleSizeChange"
></el-pagination>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
total
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
pagination
:
{
size
:
10
,
total
:
this
.
total
,
page
:
1
}
}
},
watch
:
{
total
(
val
)
{
this
.
pagination
.
total
=
val
}
},
mounted
()
{
this
.
$emit
(
'pager'
,
{
...
this
.
pagination
})
},
methods
:
{
handleCurrentChange
(
page
)
{
this
.
$emit
(
'pager'
,
{
...
this
.
pagination
,
page
})
},
handleSizeChange
(
size
)
{
this
.
$emit
(
'pager'
,
{
...
this
.
pagination
,
size
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.wrapper
{
display
:
flex
;
justify-content
:
flex-end
;
}
</
style
>
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment