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

omi2 是否支持类似于westore的函数属性 #565

Open
yhhwpp opened this issue May 25, 2020 · 0 comments
Open

omi2 是否支持类似于westore的函数属性 #565

yhhwpp opened this issue May 25, 2020 · 0 comments

Comments

@yhhwpp
Copy link

yhhwpp commented May 25, 2020

因为,store里我想复用根据某个store某些data,自动计算出两外一个属性,很多页面都需要公用这个数据

能否支持类似westore的函数属性
如下:

export default {
  data: {
    motto: 'Hello World',
    firstName: 'dnt',
    lastName: 'zhang',
    fullName: function () {
      return this.firstName + this.lastName
    }
  }
}
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