0.0.1 • Published 6 years ago

@lazyskills/iconfont v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@lazyskills/iconfont

a simple and practical iconfont package

小程序 iconfont 最佳实践

如何使用

通过 npm 安装

npm install minapp-iconfont

构建

在开发者工具中点选 工具 - 构建 npm

下载 Font-class 的 iconfont.css 并重命名为 iconfont.wxss 置于项目根目录下

在 .json 文件中引入

{
    "usingComponents": {
        "iconfont": "minapp-iconfont"
    }
}

.wxml 中使用

<iconfont icon="name"></iconfont>

属性

icon: String

iconfontfont class 的类名,不包括 icon-

iconfont 中存在一个 .icon-name 的类,使用时只需传递 name

<iconfont icon="name"></iconfont>

更新记录

v0.0.1 时间: 2019-12-27

Chores:

  • 添加 keywords

Feats:

  • 实现功能
0.0.1

6 years ago