youzan / vant

A lightweight, customizable Vue UI library for mobile web apps.

Home Page:https://vant-ui.github.io/vant/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

xqsrpanz opened this issue · comments

重现链接

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

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 会被自动关闭。