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

Cellbox 组件中的内容无法定义样式 #1769

Closed
z-programer opened this issue Jul 28, 2017 · 2 comments
Closed

Cellbox 组件中的内容无法定义样式 #1769

z-programer opened this issue Jul 28, 2017 · 2 comments

Comments

@z-programer
Copy link

z-programer commented Jul 28, 2017

在 CellBox 组件中 slot 被一个div 包含,导致样式无法定义,比如在 cellbox 组件中,使用 flex 组件,会导致宽度无法设置为 100%,是不是应该把以下代码

  <div class="vux-cell-box weui-cell" :class="{'vux-tap-active': isLink || !!link, 'weui-cell_access': isLink || !!link, 'vux-cell-no-border-intent': !borderIntent}" @click="onClick">
    <div><slot></slot></div>
  </div>

修正为:

  <div class="vux-cell-box weui-cell" :class="{'vux-tap-active': isLink || !!link, 'weui-cell_access': isLink || !!link, 'vux-cell-no-border-intent': !borderIntent}" @click="onClick">
    <slot></slot>
  </div>
@greedying
Copy link
Contributor

哈哈,老问题了

@airyland
Copy link
Owner

#1375 我重新考虑一下下怎么处理

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

3 participants