flyw / Weapp Fontawesome Component
Licence: mit
微信小程序的 fa 图标模块
Stars: ✭ 21
Projects that are alternatives of or similar to Weapp Fontawesome Component
Weapp
🐧 微信小程序组件和功能封装,基于微信Component自定义组件开发
Stars: ✭ 235 (+1019.05%)
Mutual labels: weapp, wxapp, component
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (+1647.62%)
Mutual labels: weapp, wxapp
weapp-OpenRadio
A base music weapp named OpenRadio for wechat. Can use on weapp getting started.
Stars: ✭ 14 (-33.33%)
Mutual labels: weapp, wxapp
weapp.request
为微信小程序提供的网络请求组件,是 wx.request 的扩展,基于 Promise API,添加缓存控制
Stars: ✭ 29 (+38.1%)
Mutual labels: weapp, wxapp
wxapp-boilerplate
微信小程序开发脚手架 (ES6, Redux, Immutable-js, Async/await, Promise, Reselect, Babel, ESLint, Stylelint, Gulp ... )
Stars: ✭ 35 (+66.67%)
Mutual labels: weapp, wxapp
xdk-cli
微信小程序cli脚手架,目前提供的功能有:快速创建启动模版功能【页面 / 组件】, 自动发布体验版功能,设置版本号/版本描述功能,自定义指令功能
Stars: ✭ 43 (+104.76%)
Mutual labels: weapp, wxapp
Alaweb
一套 Vue 代码,多端可用(H5、小程序、苹果App、安卓App、头条等)。系统含150+页面,200+组件(5端通用),30+元件(每个终端独立完成)
Stars: ✭ 837 (+3885.71%)
Mutual labels: weapp, wxapp
weapp-fontawesome-component
微信小程序的 fa 图标模块,项目使用 fa 的 4.x 版本
安装说明
- 将 src/components 中的文件复制到项目中的 components 路径下.
加载说明
- 在需要引入的 页面(Page) 或者 模块(Components) 中引入这个模块
- 编辑页面/模块中的 json 文件
- 在 json 文件中添加如下内容
{ ... "usingComponents": { ... "fa": "../<PATH_TO_YOUR_COMPONENT_ROOT>/includes/fa/index", ... } ... }
用法
基本用法和fa 用法类似,下面列出一些用法是之前项目开发时候用到的,确认可以使用,其他用法请自行测试。
基本图标
在 wxml 中使用 fa 标签:Example:
<fa icon="fa fa-home"></fa>
大图标
<fa icon="fa fa-home fa-lg"></fa> fa-lg
<fa icon="fa fa-home fa-2x"></fa> fa-2x
<fa icon="fa fa-home fa-3x"></fa> fa-3x
<fa icon="fa fa-home fa-4x"></fa> fa-4x
<fa icon="fa fa-home fa-5x"></fa> fa-5x
堆叠图标
<fa icon="fa-stack fa-lg">
<fa icon="fa fa-user-o fa-stack-1x"></fa>
<fa icon="fa fa-circle-thin fa-2x fa-stack-2x"></fa>
</fa>
图标颜色
组件集成了一些bootstrap 4 的默认颜色,可以直接调用
<fa icon="fa fa-ban text-danger"></fa>
参考来源
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].