| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <template>
- <div style="float: right;">
- <el-pagination
- :current-page.sync="current"
- :page-size="pageSize"
- layout="prev, pager, next, jumper"
- :total="total"
- @current-change="handleCurrentChange">
- </el-pagination>
- </div>
- </template>
- <script>
- export default {
- props: ['current', 'total', 'pageSize'],
- methods: {
- handleCurrentChange: function (changedPage) {
- this.$emit('childEvent', changedPage)
- }
- }
- }
- </script>
- <style>
- a {
- color: #2d8cf0;
- background: 0 0;
- text-decoration: none;
- outline: 0;
- cursor: pointer;
- transition: color .2s ease;
- }
- .el-pager li{
- color: #337ab7;
- text-decoration: none;
- background-color: #fff;
- border: 1px solid #ddd;
- font-size: 10px;
- }
- .el-pager li:not(.active):hover {
- z-index: 3;
- color: #23527c;
- background-color: #eee;
- border-color: #ddd;
- }
- .el-pager li.active {
- background: #5078cb!important;
- }
- .el-icon-arrow-left:before {
- content: "\f100";
- font-family: FontAwesome;
- }
- .el-icon-arrow-right:before {
- content: "\f101";
- font-family: FontAwesome;
- }
- .el-pagination button.disabled {
- color: #337ab7;
- background-color: #fff;
- cursor: not-allowed;
- }
- </style>
|