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