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

父组件向子组件中传递数据能多层级传递吗? #814

Closed
whkendny opened this issue Jan 21, 2018 · 2 comments
Closed

父组件向子组件中传递数据能多层级传递吗? #814

whkendny opened this issue Jan 21, 2018 · 2 comments

Comments

@whkendny
Copy link

<heartbeatbox :childdata.sync="state.heartbeat"></heartbeatbox>
 data = {
.....
      'state': {
        heartbeat: {
          'boxHead': '运动心率',
          'note': '要求115-125次/分钟',
          'boxImg': '../image/sportRate.png',
          'unit': '次/分钟',
          'value': '--'
        }
      }
.....
    }

像这样数据没有传递到子组件, 这样写行吗?

@Gcaufy
Copy link
Collaborator

Gcaufy commented Jan 21, 2018

暂不支持,先赋值给data, 或者使用computed

@Gcaufy Gcaufy closed this as completed Jan 21, 2018
@kala888
Copy link
Contributor

kala888 commented Apr 10, 2018

我觉得这个bug不应该被关闭,最少在文档里体现一下,这个需求很强烈啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants