From 749665eee776ecddd45aa8a8b331b8f23f15b5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 23 Aug 2018 15:40:26 +0800 Subject: [PATCH] add props --- examples/app.vue | 1 + examples/main.js | 4 ++ examples/routers/drawer.vue | 75 ++++++++++++++++++++++++++++++++ src/components/drawer/drawer.vue | 62 ++++++++++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 examples/routers/drawer.vue diff --git a/examples/app.vue b/examples/app.vue index 4585a6eb..ef605063 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -67,6 +67,7 @@ nav {
  • Divider
  • Time
  • Cell
  • +
  • Drawer
  • diff --git a/examples/main.js b/examples/main.js index 7f8f88b2..748c759a 100644 --- a/examples/main.js +++ b/examples/main.js @@ -225,6 +225,10 @@ const router = new VueRouter({ { path: '/cell', component: (resolve) => require(['./routers/cell.vue'], resolve) + }, + { + path: '/drawer', + component: (resolve) => require(['./routers/drawer.vue'], resolve) } ] }); diff --git a/examples/routers/drawer.vue b/examples/routers/drawer.vue new file mode 100644 index 00000000..720ac0f9 --- /dev/null +++ b/examples/routers/drawer.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/drawer/drawer.vue b/src/components/drawer/drawer.vue index 1550b310..869c776f 100644 --- a/src/components/drawer/drawer.vue +++ b/src/components/drawer/drawer.vue @@ -2,11 +2,73 @@