jd-opensource / jd-opensource/taro-ui

taro-ui@next端能力调用在h5模式中无效的问题

Open
#1,162 2 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

**问题描述**
AtImagePicker选图时报_chooseImage未定义

**复现步骤**

```js
`
import React, { Component } from 'react'
import { View, Text,Button } from '@tarojs/components'
import { AtImagePicker } from 'taro-ui'
import './index.scss'

class Index extends Component {
constructor(props){
super(props)
this.state={
files:[]
}
}

componentWillMount () { }

componentDidMount () {
}

componentWillUnmount () { }

componentDidShow () { }

componentDidHide () { }

onChooseImage(e){
console.log('chooseImage',e)
}
render () {
return (



)
}
}
export default Index

`
```

**期望行为**
不要报错
**报错信息**
AtImagePicker选图时报_chooseImage未定义
**系统信息**
Taro CLI 3.0.5 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.18.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD

**补充信息**
"taro-ui": "3.0.0-alpha.3"

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.