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

[new feature] hope to support vue class component #22

Open
cat-walk opened this issue Aug 31, 2020 · 0 comments
Open

[new feature] hope to support vue class component #22

cat-walk opened this issue Aug 31, 2020 · 0 comments

Comments

@cat-walk
Copy link

First of all, thanks for the great plugin 'vue-helper', it do help me a lot in the work. It works great with the normal vue component that using vue.extends and {}.
However, there are some users that using the vue-class-component as it has some nice feature like decoartor etc.
So I sincerely hope that u can support vue-class-component at the next version.

@Component
export default class Mine extends Vue {
  @Action(Types.FETCH_AND_SET_USER_INFO) dispatchFetchAndSetUserInfo

  @Mutation(Types.LOGOUT) mutationLogout

  @State((state) => state.user) user: IstoreUser

  get secretedPhone() {
    return Utils.Formatter.secertMobile(this.user.info.mobile)
  }
}
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

1 participant