From 6f92d5b7aa7627e79386b8eafec662af4592401a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com>
Date: Sat, 10 Feb 2018 20:53:37 +0800
Subject: [PATCH] no message
Former-commit-id: a5a79c56821d2740d7caeedd693ee3b0d2789d78
Former-commit-id: ff3644d92902815dfc198c7889eaf20941269c6d
Former-commit-id: febdf06a50063ce86001f42544e66addd56517ae
---
src/pages/demo/components/icon/index.vue | 34 ++++++++++++-
src/router/menu/_components.js | 2 +-
.../markdownFiles/article/组件 - 图标组件.md | 48 +++++++++++++++++++
.../article/组件 - 图标选择器.md | 1 -
4 files changed, 82 insertions(+), 3 deletions(-)
create mode 100644 static/markdownFiles/article/组件 - 图标组件.md
diff --git a/src/pages/demo/components/icon/index.vue b/src/pages/demo/components/icon/index.vue
index ee8f1b15..89aef274 100644
--- a/src/pages/demo/components/icon/index.vue
+++ b/src/pages/demo/components/icon/index.vue
@@ -1,5 +1,37 @@
- Hello
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/menu/_components.js b/src/router/menu/_components.js
index 1ec7d020..7f9c53b9 100644
--- a/src/router/menu/_components.js
+++ b/src/router/menu/_components.js
@@ -14,7 +14,7 @@ export const menu = {
// 图标
{
title: '图标',
- icon: 'flask',
+ icon: 'font-awesome',
children: [
{
title: '演示',
diff --git a/static/markdownFiles/article/组件 - 图标组件.md b/static/markdownFiles/article/组件 - 图标组件.md
new file mode 100644
index 00000000..4e62199e
--- /dev/null
+++ b/static/markdownFiles/article/组件 - 图标组件.md
@@ -0,0 +1,48 @@
+# 图标
+
+## 使用方法
+
+基本
+
+```
+// 并无卵用的使用方式
+
+// 指定图标名称
+
+// 设置行内样式
+
+// 设置 class
+
+```
+
+这个组件只是简化了写法而已
+
+`` 等于 ``
+
+## 参数
+
+| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
+| --- | --- | --- | --- | --- | --- |
+| name | 图标名称 | 非 | String | font-awesome 所有图标名 | font-awesome |
+
+## 参考
+
+推荐一个国内的图表索引 [Font Awesome 中文网](http://www.fontawesome.com.cn/faicons/)
+
+PS. 左侧最后一个图标的样式 `SCSS`
+
+```
+
+```
\ No newline at end of file
diff --git a/static/markdownFiles/article/组件 - 图标选择器.md b/static/markdownFiles/article/组件 - 图标选择器.md
index 8e0ceaeb..61459cc6 100644
--- a/static/markdownFiles/article/组件 - 图标选择器.md
+++ b/static/markdownFiles/article/组件 - 图标选择器.md
@@ -2,7 +2,6 @@
## 参数
-
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- | --- |
| value | 绑定的值,可以使用 v-model | 非 | String | | |