Skip to content

Commit 9dec8f1

Browse files
authored
Merge pull request #1 from eblanshey/master
Update visible rows when rows prop updates
2 parents adc5c77 + 59fc7e8 commit 9dec8f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vue-datatable.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ module.exports = {
7575
sort_by: null,
7676
sort_dir: null,
7777
}},
78+
watch: {
79+
rows: function(val){
80+
this.updateRows(val);
81+
}
82+
},
7883
computed: {
7984
column_props: function(){
8085
var i = 0;
@@ -154,4 +159,4 @@ module.exports = {
154159
this.visible_rows = this.sorted_rows;
155160
}
156161
}
157-
</script>
162+
</script>

0 commit comments

Comments
 (0)