Skip to content

Commit 59fc7e8

Browse files
authored
Update visible rows when rows prop updates
1 parent adc5c77 commit 59fc7e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vue-datatable.vue

Lines changed: 6 additions & 1 deletion
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)