jd-opensource / jd-opensource/taro-ui

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

Open
#987 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**

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

```js
// 这里可以贴代码
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 (


点击





)
}
}

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

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.