Skip to content

Commit

Permalink
fix: vue fix for v-model
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 6, 2020
1 parent f153dfa commit 3e69cc8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/vue/pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = function pager(Vue) {
ref="pagerView"
:items="items"
v-bind="$attrs"
v-on="listeners"
:selectedIndex="selectedIndex"
@itemLoading="onItemLoading"
@itemDisposing="onItemDisposing">
Expand All @@ -44,13 +43,6 @@ module.exports = function pager(Vue) {
deep: true
}
},
computed: {
listeners() {
return Object.assign({}, this.$listeners, {
selectedIndexChange: this.onSelectedIndexChange
})
}
},
mounted() {
if (!this.items) return;
this.getItemContext = (item, index) =>
Expand Down Expand Up @@ -88,9 +80,6 @@ module.exports = function pager(Vue) {
// if (oldVnode) {
// Vue.prototype.__patch__(oldVnode, null);
// }
},
onSelectedIndexChange({ value }) {
this.$emit('selectedIndexChange', value)
}
}
};
Expand Down

0 comments on commit 3e69cc8

Please sign in to comment.