aa8cb7bc by zhen

添加如删除的文件

1 parent 33235b33
...@@ -3,18 +3,12 @@ ...@@ -3,18 +3,12 @@
3 <transition name="fade-transform" mode="out-in"> 3 <transition name="fade-transform" mode="out-in">
4 <router-view :key="key" /> 4 <router-view :key="key" />
5 </transition> 5 </transition>
6 <ResetPassDialog></ResetPassDialog>
7 </section> 6 </section>
8 </template> 7 </template>
9 8
10 <script> 9 <script>
11 import ResetPassDialog from '@/views/components/ResetPassDialog'
12
13 export default { 10 export default {
14 name: 'AppMain', 11 name: 'AppMain',
15 components: {
16 ResetPassDialog
17 },
18 data() { 12 data() {
19 return { 13 return {
20 visible: true 14 visible: true
......
1 <template>
2 <div class="wrapper">
3 <el-pagination
4 background
5 layout="total, prev, pager, next, sizes, jumper"
6 :total="pagination.total"
7 @current-change="handleCurrentChange"
8 @size-change="handleSizeChange"
9 ></el-pagination>
10 </div>
11 </template>
12
13 <script>
14 export default {
15 props: {
16 total: {
17 type: Number,
18 default: 0
19 }
20 },
21 data() {
22 return {
23 pagination: {
24 size: 10,
25 total: this.total,
26 page: 1
27 }
28 }
29 },
30 watch: {
31 total(val) {
32 this.pagination.total = val
33 }
34 },
35 mounted() {
36 this.$emit('pager', { ...this.pagination })
37 },
38 methods: {
39 handleCurrentChange(page) {
40 this.$emit('pager', { ...this.pagination, page })
41 },
42 handleSizeChange(size) {
43 this.$emit('pager', { ...this.pagination, size })
44 }
45 }
46 }
47 </script>
48 <style lang="scss" scoped>
49 .wrapper {
50 display: flex;
51 justify-content: flex-end;
52 }
53 </style>
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!