From 08fd628d1f5badec33d62d12198a58a4eb4f710c Mon Sep 17 00:00:00 2001 From: Aresn Date: Sat, 27 May 2017 15:13:10 +0800 Subject: [PATCH] Table support expand --- examples/components/table.vue | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ examples/routers/table.vue | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- src/components/table/cell.vue | 27 ++++++++++++++++++++++++--- src/components/table/expand.vue | 37 +++++++++++++++++++++++++++++++++++++ src/components/table/table-body.vue | 67 ++++++++++++++++++++++++++++++++++++++++++++++--------------------- src/components/table/table-head.vue | 3 ++- src/components/table/table.vue | 21 +++++++++++++++++++-- src/styles/components/table.less | 29 +++++++++++++++++++++++++++++ 8 files changed, 339 insertions(+), 38 deletions(-) create mode 100644 examples/components/table.vue create mode 100644 src/components/table/expand.vue diff --git a/examples/components/table.vue b/examples/components/table.vue new file mode 100644 index 0000000..e882eb2 --- /dev/null +++ b/examples/components/table.vue @@ -0,0 +1,101 @@ + + diff --git a/examples/routers/table.vue b/examples/routers/table.vue index 23adae4..e42834a 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,21 +1,33 @@ diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue index 9368e0b..d4dfa84 100644 --- a/src/components/table/cell.vue +++ b/src/components/table/cell.vue @@ -5,16 +5,22 @@ + \ No newline at end of file diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index 73dd9d8..59e72e7 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -4,39 +4,47 @@ - - - + + + - - + + + + + + + +