From 59fc7e883523696825174c54bdfc81463a2e5a96 Mon Sep 17 00:00:00 2001 From: Ephi Blanshey Date: Fri, 20 Jan 2017 20:51:36 -0800 Subject: [PATCH] Update visible rows when rows prop updates --- src/vue-datatable.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vue-datatable.vue b/src/vue-datatable.vue index dedc07b..a75738d 100644 --- a/src/vue-datatable.vue +++ b/src/vue-datatable.vue @@ -75,6 +75,11 @@ module.exports = { sort_by: null, sort_dir: null, }}, + watch: { + rows: function(val){ + this.updateRows(val); + } + }, computed: { column_props: function(){ var i = 0; @@ -154,4 +159,4 @@ module.exports = { this.visible_rows = this.sorted_rows; } } - \ No newline at end of file +