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

请问下多久支持page-container这个标签呢 #9580

Closed
abner-forever opened this issue Jun 21, 2021 · 6 comments
Closed

请问下多久支持page-container这个标签呢 #9580

abner-forever opened this issue Jun 21, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@abner-forever
Copy link

这个特性解决了什么问题?

支持原生微信小程序page-container的功能

这个 API 长什么样?

支持原生微信小程序page-container的功能

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Jun 21, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 22, 2021

@abner-jlm 可以用吧:#9182

@young-ren
Copy link

@abner-jlm 可以用吧:#9182

3.2.13版本没有这个组件呢

@abner-forever
Copy link
Author

@abner-jlm 可以用吧:#9182

最新的版本的代码里没有这个组件,虽然在代码中能引入渲染出来但是监听的方法都没生效

这个问题里面有贡献支持,但是代码没有构建成功 #9025

@guoguozhang
Copy link

这是不维护了吗,半年了都没动静。。。

@Chen-jj
Copy link
Contributor

Chen-jj commented Jan 5, 2022

PageContainer 可以正常使用(3.3.19):

import { Component } from "react";
import { View, Button, PageContainer } from "@tarojs/components";

export default class Index extends Component {
  state = {
    isShow: false
  }

  handleClick = () => {
    this.setState({
      isShow: !this.state.isShow
    })
  }

  render() {
    return (
      <View>
        <PageContainer show={this.state.isShow} onClickOverlay={this.handleClick}>
          <View style='height: 200px'>
            page-container
          </View>
        </PageContainer>
        <Button onClick={this.handleClick}>toggle</Button>
      </View>
    )
  }
}

image

@Chen-jj Chen-jj closed this as completed Jan 5, 2022
@senyawang
Copy link

onAfterLeave , onBeforeLeave 这些事件都无法触发,这个有解决文案吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants