diff --git a/components/pagination/Pager.vue b/components/pagination/Pager.vue
index d9fc0ca54..95f49e3fb 100644
--- a/components/pagination/Pager.vue
+++ b/components/pagination/Pager.vue
@@ -16,9 +16,6 @@ export default {
active: Boolean,
showTitle: Boolean,
},
- data () {
- return {}
- },
computed: {
classes () {
const prefixCls = `${this.rootPrefixCls}-item`
diff --git a/components/pagination/demo/index.vue b/components/pagination/demo/index.vue
index 2787d175d..829dbe4d5 100644
--- a/components/pagination/demo/index.vue
+++ b/components/pagination/demo/index.vue
@@ -4,7 +4,7 @@
@@ -35,6 +35,9 @@ export default {
showTotal (total) {
return `共 ${total} 条`
},
+ onchange (page) {
+ alert(page)
+ },
},
components: {
Pagination,
diff --git a/components/pagination/pagination.vue b/components/pagination/pagination.vue
index 361bab746..97a4de0e9 100644
--- a/components/pagination/pagination.vue
+++ b/components/pagination/pagination.vue
@@ -23,10 +23,6 @@ export default {
type: Number,
default: 10,
},
- onChange: {
- type: Function,
- default: () => {},
- },
showSizeChanger: {
type: Boolean,
default: false,
@@ -35,10 +31,6 @@ export default {
type: Array,
default: () => ['10', '20', '30', '40'],
},
- onShowSizeChange: {
- type: Function,
- default: () => {},
- },
showQuickJumper: {
type: Boolean,
default: false,
@@ -136,7 +128,7 @@ export default {
}
this.stateCurrent = page
this.$emit('input', page)
- this.$emit('onChange', page, this.pageSize)
+ this.$emit('change', page, this.pageSize)
return page
}
return this.stateCurrent