From 486d4fda19c7b473b6cd08126a3805a28a4e833f Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 9 Mar 2017 14:11:22 +0800 Subject: [PATCH] update Table --- README.md | 2 +- examples/app.vue | 1 + examples/main.js | 4 ++++ examples/routers/table.vue | 87 +++++++++++++++++++++++++++++++++++++++------------------------------------------------ src/components/table/cell.vue | 40 ++++++++++++++++++++++++++++++++-------- src/components/table/table-body.vue | 9 +++++---- src/components/table/table-head.vue | 31 ++++++++++++++++--------------- src/components/table/table.vue | 61 ++++++++++++++++++++++++++++++++----------------------------- src/index.js | 3 ++- 9 files changed, 132 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index b1d1bc8..614f562 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ - [x] Radio - [x] Checkbox - [x] Switch -- [ ] Table +- [x] Table - [x] Select - [x] Slider - [x] DatePicker diff --git a/examples/app.vue b/examples/app.vue index 60183fa..71fb03c 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -49,6 +49,7 @@ li + li { border-left: solid 1px #bbb; padding-left: 10px; margin-left: 10px; }
  • Transfer
  • Date
  • Form
  • +
  • Table
  • diff --git a/examples/main.js b/examples/main.js index 99f0870..af7ad53 100644 --- a/examples/main.js +++ b/examples/main.js @@ -161,6 +161,10 @@ const router = new VueRouter({ path: '/form', component: require('./routers/form.vue') }, + { + path: '/table', + component: require('./routers/table.vue') + }, ] }); diff --git a/examples/routers/table.vue b/examples/routers/table.vue index cb8f082..382a612 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,96 +1,87 @@ diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue index c866e0e..18b7505 100644 --- a/src/components/table/cell.vue +++ b/src/components/table/cell.vue @@ -2,15 +2,17 @@
    - +