如何编写Vue子组件JSX获得传递$ attrs?

时间:2018-03-26 09:18:23

标签: vue.js jsx

现在的情况是这样的。

我的子组件是用JSX编写的,父组件将信息传递给props,子组件不是由 **Parent Component** <InputSection ref="inputS" ImD={this.getData} imageUri={require(this.state.imageurl)} /> **Child Component** <img ref="image" src={this.props.imageUri} />收集的,但我现在如何将它写入JSX?

如果它是这样写的,它不起作用,我尝试了几种方法: If it is written like this, it doesn't work, I've tried several ways.

这是我父亲的组成部分; enter image description here

1 个答案:

答案 0 :(得分:0)

我找到了解决这个问题的新方法。