From 744eb0af930ca4d3aaf5c03060948b7fa37a3bb1 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 23 Nov 2016 18:38:39 +0800 Subject: [PATCH] update Table compoent --- src/components/table/table-head.vue | 5 ++++- src/components/table/table.vue | 36 +++++++++++++++++++++++++++++++----- src/styles/components/index.less | 3 ++- src/styles/components/table.less | 35 +++++++++++++++++++++++++++++++++++ test/routers/table.vue | 10 +++++++++- 5 files changed, 81 insertions(+), 8 deletions(-) diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index 23ffcdc..95df6b0 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -1,7 +1,7 @@ @@ -26,6 +26,9 @@ } else { return column.title || '#'; } + }, + fixedCls (column) { + return column.fixed ? `${this.prefixCls}-${column.fixed}` : ''; } } } diff --git a/src/components/table/table.vue b/src/components/table/table.vue index aba3322..3908f9f 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -1,14 +1,21 @@