From f698878cc5bfeafdcdae8f63162295672f9b69ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 4 Jun 2018 13:10:06 +0800 Subject: [PATCH] add Card --- src/code/card.js | 15 +++++ src/router.js | 7 +++ src/views/components/card.vue | 102 ++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 src/code/card.js create mode 100644 src/views/components/card.vue diff --git a/src/code/card.js b/src/code/card.js new file mode 100644 index 0000000..e98ab22 --- /dev/null +++ b/src/code/card.js @@ -0,0 +1,15 @@ +let code = {}; + +code.import = ` +"usingComponents": { + "i-card": "../../dist/card/index" +} +`; +code.usage = ` + + 内容不错 + 尾部内容 + +`; + +export default code; \ No newline at end of file diff --git a/src/router.js b/src/router.js index 5f44ae4..33e72ef 100755 --- a/src/router.js +++ b/src/router.js @@ -51,6 +51,13 @@ const routers = [ }, component: (resolve) => require(['./views/components/list.vue'], resolve) }, + { + path: '/components/card', + meta: { + title: '卡片 Card' + }, + component: (resolve) => require(['./views/components/card.vue'], resolve) + }, { path: '*', redirect: '/' diff --git a/src/views/components/card.vue b/src/views/components/card.vue new file mode 100644 index 0000000..cc30369 --- /dev/null +++ b/src/views/components/card.vue @@ -0,0 +1,102 @@ + + \ No newline at end of file