From ef416ffa27bb9935ae4a2b71282b88f730426bc2 Mon Sep 17 00:00:00 2001 From: Ahmad Saad Aldin Date: Thu, 1 Feb 2018 04:27:41 +0100 Subject: [PATCH 1/3] remove the extra close div tag, and realign the code in the right way --- src/components/Vuetable.vue | 53 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/src/components/Vuetable.vue b/src/components/Vuetable.vue index cfce6996..c5f94a1d 100644 --- a/src/components/Vuetable.vue +++ b/src/components/Vuetable.vue @@ -100,38 +100,37 @@ v-html="renderNormalField(field, item)" > - - - - - - + + + + From c6fa197905c8e7472a3b1b562c46591ea996cb12 Mon Sep 17 00:00:00 2001 From: Ahmad Saad Aldin Date: Thu, 1 Feb 2018 04:31:13 +0100 Subject: [PATCH 2/3] add sortclass to the regular table --- src/components/Vuetable.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Vuetable.vue b/src/components/Vuetable.vue index c5f94a1d..85b4e9b8 100644 --- a/src/components/Vuetable.vue +++ b/src/components/Vuetable.vue @@ -148,29 +148,29 @@ From 783d40d037df5844769a29f1daa113f1dd4aa1aa Mon Sep 17 00:00:00 2001 From: Rati Wannapanop Date: Fri, 2 Feb 2018 11:39:36 +0700 Subject: [PATCH 3/3] add key for v-for and reformat template --- index.html | 1 - src/components/Vuetable.vue | 352 +++++++++++++++++++++--------------- src/main.js | 19 +- 3 files changed, 214 insertions(+), 158 deletions(-) diff --git a/index.html b/index.html index 359fe2cd..66b4050d 100644 --- a/index.html +++ b/index.html @@ -106,7 +106,6 @@

List of Users

:sort-order="sortOrder" :multi-sort="multiSort" :per-page="perPage" - :query-params="queryParams" :append-params="moreParams" detail-row-component="my-detail-row" detail-row-transition="expand" diff --git a/src/components/Vuetable.vue b/src/components/Vuetable.vue index 85b4e9b8..eac007b0 100644 --- a/src/components/Vuetable.vue +++ b/src/components/Vuetable.vue @@ -4,40 +4,47 @@
+ :class="['vuetable-th-sequence', field.titleClass || '', sortClass(field)]" v-html="renderTitle(field)"> + :class="['vuetable-th-'+field.name, field.titleClass || '', sortClass(field)]" v-html="renderTitle(field)">
-