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

jsx中使用vBind绑定$attrs提示指令不存在 #134

Closed
FCX666666 opened this issue Apr 8, 2020 · 2 comments
Closed

jsx中使用vBind绑定$attrs提示指令不存在 #134

FCX666666 opened this issue Apr 8, 2020 · 2 comments

Comments

@FCX666666
Copy link

code: vBind={this.$attrs}
console: Failed to resolve directive: bind

@FCX666666
Copy link
Author

在jsx中只能这样传递组件未从定义props中的属性吗?

required = {this.$attrs.required} placeholder={this.$attrs.placeholder}

@haoqunjiang
Copy link
Member

<my-element-or-component {...{ attrs: this.$attrs }} />

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

2 participants