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 @@
+
+
+
+ Divider 分隔符
+
+
+ 在 .json 中引入组件
+ {{ code.import }}
+
+ {{ code.usage }}
+
+
+
+
+
+
+
+
+ 属性 |
+ 说明 |
+ 类型 |
+ 默认值 |
+
+
+
+
+ i-class |
+ 自定义 class 类名 |
+ String |
+ - |
+
+
+ content |
+ 内容,不定义则使用 slot |
+ String |
+ - |
+
+
+ height |
+ 高度 |
+ Number |
+ 48 |
+
+
+ color |
+ 文字颜色 |
+ String |
+ #80848f |
+
+
+ line-color |
+ 辅助线的颜色 |
+ String |
+ #e9eaec |
+
+
+ size |
+ 文字大小 |
+ String |
+ 12 |
+
+
+
+
+
+
+
+
\ No newline at end of file