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

a-col的span支持0,使得可以直接控制显隐 #42

Closed
1 task done
wraptor opened this issue Oct 30, 2021 · 1 comment
Closed
1 task done

a-col的span支持0,使得可以直接控制显隐 #42

wraptor opened this issue Oct 30, 2021 · 1 comment
Assignees
Labels
type: feature request New feature or request

Comments

@wraptor
Copy link

wraptor commented Oct 30, 2021

Basic Info

预期解决问题

<a-col    :xs="0"    :md="24">
    ......
</a-col>

现有案例

<a-col    class="xs-hide"   :md="24">
    ......
</a-col>
@media screen and (max-width: 576px) {
  .xs-hide {
    display: none;
  }
}
@flsion flsion added the type: feature request New feature or request label Nov 1, 2021
@kirazxyun kirazxyun modified the milestone: 2.1.0 Nov 5, 2021
@kirazxyun
Copy link
Member

你好,我们的 span 和响应式都是通过修改 width 来控制显示的大小的,直接隐藏会使得响应式失效。如果是想要不展示的话,建议通过 v-if 的方式来处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants