jd-opensource / jd-opensource/taro-ui
taro 3.0.5 在h5平台上使用AtImagePicker报错
Open
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
**问题描述**
使用AtImagePicker在h5上报错
**复现步骤**
```js
import React, { useState } from 'react'
import { View, Text } from '@tarojs/components'
import { AtImagePicker, AtButton } from 'taro-ui'
import './index.less'
export default () => {
const [files, setFiles] = useState([]);
return (
问题图片
setFiles(files)}
/>
确认添加
)
}
```
**期望行为**
能够正常使用
**报错信息**
index.umd.js?ccf5:6533 Uncaught ReferenceError: _chooseImage is not defined
at HTMLElement.AtImagePicker._this.chooseFile (index.umd.js?ccf5:6533)
**系统信息**
- Taro v3.0.5
- Taro UI v3.0.5
- 报错平台 h5
**补充信息**
Contributor guide
Assessment
This issue has not been assessed yet.