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

Component 组件不支持 pageLifetimes #42

Closed
proc07 opened this issue Jun 17, 2019 · 4 comments
Closed

Component 组件不支持 pageLifetimes #42

proc07 opened this issue Jun 17, 2019 · 4 comments

Comments

@proc07
Copy link

proc07 commented Jun 17, 2019

我现在急需使用这个功能 😭

我看了源码中 /src/core/layers/component.js 是没有配置这个方法的吗

Component({
  pageLifetimes: {
    show: function() {
      // 页面被展示
    },
    hide: function() {
      // 页面被隐藏
    },
    resize: function(size) {
      // 页面尺寸变化
    }
  }
})
@proc07 proc07 closed this as completed Jun 17, 2019
@imyelo
Copy link
Member

imyelo commented Jun 17, 2019

还不支持

duplicated with #37

@callmesoul
Copy link
Contributor

@jxZhangLi 还不支持新的语法,使用旧语法 ,把pageLifetimes里面放到外面就行了。

@imyelo
Copy link
Member

imyelo commented Jul 11, 2019

#44 支持了

@callmesoul
Copy link
Contributor

@imyelo 今天刚上来看很久更新了

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

3 participants