no message

Former-commit-id: a50511cb36f6ab3960e5a66b0fd3f952717bd030
Former-commit-id: 7852addc7f9d39775fee6494e7b2088cb84de5d2
Former-commit-id: e91aa14f694da2d585e26aed228d82fa4ab06798
This commit is contained in:
李杨
2018-02-22 18:29:54 +08:00
parent 1fdf438bbb
commit 2cdb105e7b
2 changed files with 2 additions and 20 deletions

View File

@@ -18,7 +18,7 @@
你已经发现了,只需要将图标文件放入项目中就会自动注册
这是因为D2Admin已经配置好 `webpack``svg-sprite-loader` 相关设置,`src/assets/icons/svg` 文件夹中的图标会自动注册全部打包成 svg-sprite同时名称会自动注册到 `Vue.$IconSvg` 属性中
这是因为已经对 `webpack``svg-sprite-loader` 进行了相关设置,`src/assets/icons/svg` 文件夹中的图标会自动注册到项目中,文件全部打包成 svg-sprite名称注册到 `Vue.$IconSvg` 属性中
所以如果你需要检查项目中已经注册的所有图标,可以通过如下方式

View File

@@ -36,22 +36,4 @@
[Font Awesome 中文网](http://www.fontawesome.com.cn/faicons/)
[fontawesome.com](https://fontawesome.com/icons?d=gallery)
PS. 示例中最后一个图标的样式 `SCSS`
```
<style lang="scss">
.icon-class-demo {
transition: all .3s;
font-size: 100px;
color: #409EFF;
cursor: pointer;
user-select: none;
&:hover{
color: #F56C6C;
transform: scale(1.2) rotate(30deg);
}
}
</style>
```
[fontawesome.com](https://fontawesome.com/icons?d=gallery)