Vant: [Bug Report] van-info为空值依然渲染导致组件占位

Created on 12 May 2019  ·  4Comments  ·  Source: youzan/vant

Describe the bug
van-info为空值依然渲染导致组件占位

Screenshots
image

Environment

  • Device: iphonexs Max
  • Browser: 微信内置x5
  • Vant Version: 1.6.18

Reproduce

🐞 bug

All 4 comments

发现给undefined不会出现此情况,可否优化一波,传0 || '' 不渲染或者不显示

空字符串不应该渲染的,下个版本会修复这个问题

空字符串不应该渲染的,下个版本会修复这个问题

ok~

已在 1.6.19 版本修复

Was this page helpful?
0 / 5 - 0 ratings