diff --git a/src/code/divider.js b/src/code/divider.js new file mode 100644 index 0000000..ce36467 --- /dev/null +++ b/src/code/divider.js @@ -0,0 +1,18 @@ +let code = {}; + +code.import = ` +"usingComponents": { + "i-divider": "../../dist/divider/index" +} +`; +code.usage = ` + + + + + +加载已经完成,没有其他数据 +加载已经完成,没有其他数据 +`; + +export default code; \ No newline at end of file diff --git a/src/config/navigate.js b/src/config/navigate.js index 54acec3..0567ea5 100644 --- a/src/config/navigate.js +++ b/src/config/navigate.js @@ -150,6 +150,10 @@ const list = { title: 'CountDown 倒计时', path: '/components/count-down' }, + { + title: 'Divider 分隔符', + path: '/components/divider' + }, ] }, { diff --git a/src/router.js b/src/router.js index ed04487..d7a8690 100755 --- a/src/router.js +++ b/src/router.js @@ -254,6 +254,13 @@ const routers = [ }, component: (resolve) => require(['./views/components/index.vue'], resolve) }, + { + path: '/components/divider', + meta: { + title: '分隔符 Divider' + }, + component: (resolve) => require(['./views/components/divider.vue'], resolve) + }, { path: '*', redirect: '/' diff --git a/src/views/components/divider.vue b/src/views/components/divider.vue new file mode 100644 index 0000000..57d9941 --- /dev/null +++ b/src/views/components/divider.vue @@ -0,0 +1,88 @@ + + \ No newline at end of file