diff --git a/src/code/panel.js b/src/code/panel.js
new file mode 100644
index 0000000..8d7d899
--- /dev/null
+++ b/src/code/panel.js
@@ -0,0 +1,14 @@
+let code = {};
+
+code.import = `
+"usingComponents": {
+ "i-panel": "../../dist/panel/index"
+}
+`;
+code.usage = `
+
+ PANEL 内容区域
+
+`;
+
+export default code;
\ No newline at end of file
diff --git a/src/router.js b/src/router.js
index dfd16fc..16ea72e 100755
--- a/src/router.js
+++ b/src/router.js
@@ -37,6 +37,13 @@ const routers = [
},
component: (resolve) => require(['./views/components/grid.vue'], resolve)
},
+ {
+ path: '/components/panel',
+ meta: {
+ title: '面板 Panel'
+ },
+ component: (resolve) => require(['./views/components/panel.vue'], resolve)
+ },
{
path: '*',
redirect: '/'
diff --git a/src/views/components/panel.vue b/src/views/components/panel.vue
new file mode 100644
index 0000000..94a7824
--- /dev/null
+++ b/src/views/components/panel.vue
@@ -0,0 +1,77 @@
+
+
+
+ Panel 面板
+
+ 基础布局组件。
+
+ 在 .json 中引入组件
+ {{ code.import }}
+
+ {{ code.usage }}
+
+
+
+
+
+
+
+
+ 属性 |
+ 说明 |
+ 类型 |
+ 默认值 |
+
+
+
+
+ i-class |
+ 自定义 class 类名 |
+ String |
+ - |
+
+
+ title |
+ 标题 |
+ String |
+ - |
+
+
+ hide-top |
+ 是否将顶部距离置为 0 |
+ Boolean |
+ false |
+
+
+ hide-border |
+ 内容区域隐藏边框 |
+ Boolean |
+ false |
+
+
+
+
+
+
+
+
\ No newline at end of file