NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.55k stars 754 forks source link

range组件在drawer组件内,无法正常使用 #987

Open vivinbear opened 4 years ago

vivinbear commented 4 years ago

问题描述

range组件单独使用没问题,但是放在drawer组件内无法正常使用 复现步骤

// 这里可以贴代码
import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'
import {  AtDrawer, AtRange} from 'taro-ui'

class Product extends Component {
  state = {
    rightOpened: false
  }
  handle = () => {
    this.setState({ rightOpened: true })
  }
  handleRightRangeChange = (value) => {
    console.log(value)
  }
  render() {
    const { rightOpened } = this.state;
    return (
      <View>
        <View onClick={this.handle}>
          点击
        </View>
        <AtDrawer
          show={rightOpened}
          right
          mask
          width='90%'
          onClose={this.handleCancel}
        >
          <AtRange
            value={[20, 60]}
            min={0}
            max={100}
            onChange={this.handleRightRangeChange}
          />
        </AtDrawer>
      </View>
    )
  }
}

export default Product

期望行为

期望在drawer中也可以正常使用 报错信息

系统信息

Taro CLI 2.0.7 environment info: System: OS: macOS 10.14.4 Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - /usr/local/bin/node Yarn: 1.3.2 - /usr/local/bin/yarn npm: 6.12.1 - /usr/local/bin/npm npmPackages: @tarojs/components: 2.0.7 => 2.0.7 @tarojs/components-qa: 2.0.7 => 2.0.7 @tarojs/mini-runner: 2.0.7 => 2.0.7 @tarojs/plugin-babel: 2.0.7 => 2.0.7 @tarojs/plugin-csso: 2.0.7 => 2.0.7 @tarojs/plugin-less: 2.0.7 => 2.0.7 @tarojs/plugin-uglifyjs: 2.0.7 => 2.0.7 @tarojs/redux: 2.0.7 => 2.0.7 @tarojs/redux-h5: 2.0.7 => 2.0.7 @tarojs/router: 2.0.7 => 2.0.7 @tarojs/taro: 2.0.7 => 2.0.7 @tarojs/taro-alipay: 2.0.7 => 2.0.7 @tarojs/taro-h5: 2.0.7 => 2.0.7 @tarojs/taro-qq: 2.0.7 => 2.0.7 @tarojs/taro-quickapp: 2.0.7 => 2.0.7 @tarojs/taro-rn: 2.0.7 => 2.0.7 @tarojs/taro-swan: 2.0.7 => 2.0.7 @tarojs/taro-tt: 2.0.7 => 2.0.7 @tarojs/taro-weapp: 2.0.7 => 2.0.7 @tarojs/webpack-runner: 2.0.7 => 2.0.7 eslint-config-taro: 2.0.7 => 2.0.7 eslint-plugin-taro: 2.0.7 => 2.0.7 nerv-devtools: ^1.5.6 => 1.5.6 nervjs: ^1.5.6 => 1.5.6 stylelint-config-taro-rn: 2.0.7 => 2.0.7 stylelint-taro-rn: 2.0.7 => 2.0.7 npmGlobalPackages: typescript: 2.4.2

补充信息

taro-ui-bot[bot] commented 4 years ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

vivinbear commented 4 years ago

没有人跟进处理么?

Garfield550 commented 4 years ago

有的,不要着急

vivinbear commented 4 years ago

想问一下,你们这个UI库多久更新一次版本?

Garfield550 commented 4 years ago

目前属于比较慢的状态,同时进行 Taro 2 和 Taro 3 的适配,大概两周发布一个版本

vivinbear commented 4 years ago

好的 多谢了