[Bug Report] Tagbar 组件在平板上无法自动导入 Icon 组件,显示为方框
xqsrpanz opened this issue · comments
xqsrpanz commented
重现链接
https://github.com/xqsrpanz/hm-shopping.git
Vant 版本
2.13.2
描述一下你遇到的问题。
如果我不导入 Icon 组件,直接使用 Tabbar 组件,会导致 Icon 无法在 ipad 上显示的问题,不知道其他平板设备是否有此问题
import Vue from 'vue'
// import { Icon, Tabbar, TabbarItem } from 'vant'
import { Tabbar, TabbarItem } from 'vant'
// Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
由于该组件似乎已经被我的平板缓存,我无法复现此bug
重现步骤
- 写一个含有 tabbar 组件的页面,使用 babel-plugin-import 提供的按需导入语法,只导入 { Tabbar, TabbarItem }
- 使用一台从未访问包含 vant 的页面的 ipad 访问该页面
设备/浏览器
ipad10 chrome
github-actions commented