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

cell comment 中 justify 无效问题 #2545

Closed
zhuhongyan opened this issue Mar 20, 2018 · 0 comments
Closed

cell comment 中 justify 无效问题 #2545

zhuhongyan opened this issue Mar 20, 2018 · 0 comments

Comments

@zhuhongyan
Copy link

labelClass () {
  console.log(getParentProp(this, 'justify'))
  console.log('just a test')
  return {
    'vux-cell-justify': getParentProp(this, 'justify') === 'justify'
  }
}
  • 上面是源代码,发现并没有在调用getParentProp方法中并没有取到该属性
    console如下
undefined
just a test
  • 下面的方法是vux中的其他组件的实现方式,没有问题,可以直接改成引用过来
labelClass () {
  return {
    'vux-cell-justify': this.$parent.labelAlign === 'justify' || this.$parent.$parent.labelAlign === 'justify'
  }
}
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