当前位置:网站首页>uni-app:uni-icons的使用及如何自定义图标
uni-app:uni-icons的使用及如何自定义图标
2022-07-30 05:41:00 【前端小白jyj】
官方文档:https://uniapp.dcloud.io/component/uniui/uni-icons.html
uni-icons 已经收录了日常开发中常用的图标 ,但是因为体积问题 ,不可能一直无限添加新图标 ,所以uni-icons 也提供了扩展的方法。
使用 custom-prefix 和 type 属性自定义图标。
<uni-icons custom-prefix="custom-icon" type="icon-youxi" size="30"></uni-icons>fontClass 是图标的前缀 ,需要传入组件type属性(type属性前缀),fontFamily 是图标集名称,需要传入组件custom-prefix 属性,字体格式可以只勾选 ttf。

边栏推荐
猜你喜欢

131.分割回文串

650.只有两个键的键盘(动态规划)

pwn-ROP

C语言自定义类型一网打尽(结构体、位段/位域、枚举、联合体)

秒杀项目的总结及面试常见问题

union中有struct的情况-从内存分析

Memories · The last system design in the university era

How is crawler data collected and organized?

It is enough for MySQL to have this article (37k words, just like Bojun!!!)

C语言指针(指针数组、数组指针、函数指针、传参、回调函数等)超详细
随机推荐
net start mysql MySQL service is starting. MySQL service failed to start.The service did not report any errors.
MySQL database basics (a systematic introduction)
Mysql
Qt通过QSttings类读取*.ini配置文件
猜数字游戏
三子棋游戏——C语言
C语言:快速排序三种方法(递归)
torch.load()
argparse —— 命令行选项、参数和子命令解析器
easyexcel使用教程-导出篇
配环境 / 初步测试
650.只有两个键的键盘(动态规划)
Introduction to Oracle Patch System and Opatch Tool
技术人该访问的论坛
爬虫数据是如何收集和整理的?
create-nuxt-app创建出来的项目没有server
P3 元宝的笔记
信号量解决生产者消费者问题
面试前需要巩固的算法知识点(自用,更新中)
MySQL 安装报错的解决方法