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

大大会加入 mixin 吗? #31

Open
hackchen01 opened this issue Jan 7, 2019 · 1 comment
Open

大大会加入 mixin 吗? #31

hackchen01 opened this issue Jan 7, 2019 · 1 comment

Comments

@hackchen01
Copy link

大大会加入 mixin 吗?

@switer
Copy link
Member

switer commented Jan 8, 2019

你可以通过ES6的解构语法,把任何mixin放进去

Page.P({
    ...someMixin,
    ...someOtherMixin,
   
    data: {},
    onShow() {}
})

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