From fc8667bd05f535acc3815e020131c97550d29994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Thu, 22 Feb 2018 18:01:26 +0800 Subject: [PATCH] no message Former-commit-id: e53eb6f9a1aec5c29922346342f0f1490a8dee22 Former-commit-id: 5952c33f74a3221ffcdcd43d5e5fd785b8d37aef Former-commit-id: f95df5675d25421fe527c4ac3b77140f24ab5341 --- src/pages/demo/components/icon/svg.vue | 44 ++++++++++++------- .../article/组件 - 图标组件 - svg.md | 35 +++++++++++++++ 2 files changed, 63 insertions(+), 16 deletions(-) create mode 100644 static/markdownFiles/article/组件 - 图标组件 - svg.md diff --git a/src/pages/demo/components/icon/svg.vue b/src/pages/demo/components/icon/svg.vue index 82b0d455..cd24bf0c 100644 --- a/src/pages/demo/components/icon/svg.vue +++ b/src/pages/demo/components/icon/svg.vue @@ -1,17 +1,22 @@ @@ -23,16 +28,23 @@ align-items: center; flex-direction: column; height: 150px; + &:hover { + .icon { + transform: scale(1.1); + } + .icon-title { + color: $color-text-main; + } + } } .icon { height: 80px; width: 80px; + transition: all .3s; } .icon-title { font-size: 12px; margin-top: 10px; - span { - color: $color-text-sub; - } + color: $color-text-placehoder; } diff --git a/static/markdownFiles/article/组件 - 图标组件 - svg.md b/static/markdownFiles/article/组件 - 图标组件 - svg.md new file mode 100644 index 00000000..fa2cdb23 --- /dev/null +++ b/static/markdownFiles/article/组件 - 图标组件 - svg.md @@ -0,0 +1,35 @@ +## 参数 + +| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 | +| --- | --- | --- | --- | --- | --- | +| name | 图标名称 | 非 | String | font-awesome 所有图标名 | font-awesome | + +## 使用方法 + +基本 + +``` +// 这样用没有毛病 但是也没什么用 + + +// 指定图标名称 + + +// 设置行内样式 + + +// 设置 class + +``` + +这个组件只是简化了写法而已 + +``` + +// 等同于 + +``` + +## 参考 + +演示图表来源 [http://iconfont.cn/ @小啊小二饼 《2.5D工作日记》](http://iconfont.cn/collections/detail?spm=a313x.7781069.1998910419.d9df05512&cid=8219) \ No newline at end of file