Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Tagbar 组件在平板上无法自动导入 Icon 组件,显示为方框 #12811

Closed
xqsrpanz opened this issue Apr 21, 2024 · 1 comment

Comments

@xqsrpanz
Copy link

重现链接

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

Copy link

Hi @xqsrpanz. Current version (2.x) is off the maintenance period. We will only fix critical bugs. This issue will be auto closed.

你好 @xqsrpanz,当前版本(2.x)已经过了维护期。我们仅会修复重要 bug。当前 issue 会被自动关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants