-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Syntax sugar for extending components #149
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
Comments
Another approach, more explicit: Vue.component('form', {})
Vue.component('login-form', { extends: 'form' })
// …but this is where it becomes a horrible idea :(
var Form = Vue.extend({})
var LoginForm = Vue.extend({ extends: 'form' }) |
I know |
Maybe return new created objects from all static |
Or C++ style extend ... |
closing due to lack of consensus and the benefits is not that substantial. |
fix: vuejs#149 恢复对组件 ref 的支持
Currently, to extend a registered component you'd have to do this:
or
I'm thinking of a new syntax to make this easier, maybe something like this:
Thoughts?
The text was updated successfully, but these errors were encountered: