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

taro 3.0.5 在h5平台上使用AtImagePicker报错 #1167

Open
yxl2628 opened this issue Aug 10, 2020 · 1 comment
Open

taro 3.0.5 在h5平台上使用AtImagePicker报错 #1167

yxl2628 opened this issue Aug 10, 2020 · 1 comment

Comments

@yxl2628
Copy link

yxl2628 commented Aug 10, 2020

问题描述

使用AtImagePicker在h5上报错

复现步骤

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 (
    <View className="repair-body">
      <View className="custom-input">
        <Text className="custom-input-label">问题图片</Text>
        <AtImagePicker
          length={5}
          files={files}
          onChange={(files) => setFiles(files)}
        />
      </View>
      <View className="repair-btn">
        <AtButton type='primary'>确认添加</AtButton>
      </View>
    </View>
  )
}

期望行为

能够正常使用

报错信息

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

补充信息

@taro-ui-bot
Copy link

taro-ui-bot bot commented Aug 10, 2020

欢迎提交 Issue~

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

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

Good luck and happy coding~

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

No branches or pull requests

1 participant