Comments (3)
不清楚你的项目环境是什么,但是看 woff2 的兼容性还是没问题的
from vant.
刚刚测试出来,的确不是woff2的兼容性问题。
在文件中 https://github.com/youzan/vant/blob/main/packages/vant-icons/src/common.less
.van-icon {
position: relative;
display: inline-block;
// compatible with the browser range of Vant 2
font: normal normal normal 14px/1 'vant-icon';
font: normal normal normal 14px/1 var(--van-icon-font-family, 'vant-icon');
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
&:before {
display: inline-block;
}
}
这段代码的:before里面加上 font-family:vant-icon
即可。很奇怪,我的手机上会出现这个问题。我的真机环境是小米10
在自己的小程序代码中可以修改修改miniprogram_npm/@vant/weapp/icon/index.wxss
希望能够帮助到出现同样问题的朋友
from vant.
抱歉,提错地方了。 应该到 vant-weapp 下提问题
from vant.
Related Issues (20)
- 引入index.css文件之后会导致vue内存溢出崩溃 HOT 1
- Notify showNotify方法入参,跟文档不一致
- van-tabs 在动态van-tab时,active存在不变化情况 HOT 3
- vant2 Dialog 可以不要自动在 Vue 的 prototype 上挂载 $dialog 方法吗,项目里本身已经注册了自己的$dialog HOT 1
- [Bug Report] 表单验证方法的问题。直接使用 ref获取表单实例,然后使用 ref.valud.validate 方法时报错。
- text-ellipsis 如果包裹的父元素使用flex 布局, 导致计算offsetHeight 出错. 省略失效 HOT 1
- [Feature Request] PullRefresh 下拉刷新,当里面的子元素变化时,自动滚动到底部 HOT 1
- [Bug Report] Title van-calendar 日历控件切换问题 HOT 6
- [Bug Report] css file always exist van-icon HOT 3
- 能否在vant4加回DatetimePicker HOT 2
- [Bug Report] vanTab组件添加属性scrollspy开启滚动导航后,控制台报错 HOT 2
- [Feature Request] 日期组件,选择日期后在上方或者下方展示自定义的tooltip,可以增加这样的功能吗?
- [Bug Report] [Calendar 日历] 选中31号时,月份切换bug HOT 1
- van-uploader 的v-model如果绑定的是计算属性,不能显示状态,上传中 HOT 2
- 微信小程序中使用vant组件,开发工具中显示icon和empty,但是真机调试时不显示,也试了在app.wxss中加代码,还是不显示[Bug Report] 请在此填写标题 HOT 1
- [Feature Request] ImagePreview 组件优化体验
- Field type="textarea"时,在数字或字母中间输入emoji表情包,换行错位。 HOT 1
- [Feature Request] 更新原生标签初始化样式 HOT 7
- [Bug Report] Title HOT 1
- 使用自定义的tabs不能自动滚动 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vant.