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

@tarojs/components Image组件在h5环境下缺少imgProps字段 #8219

Closed
heiazu opened this issue Dec 8, 2020 · 2 comments · Fixed by #10207
Closed

@tarojs/components Image组件在h5环境下缺少imgProps字段 #8219

heiazu opened this issue Dec 8, 2020 · 2 comments · Fixed by #10207
Assignees
Labels
E-easy Helper Wanted - Easy T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@heiazu
Copy link
Member

heiazu commented Dec 8, 2020

相关平台

H5

浏览器版本: 87.0.4280.88(正式版本) (x86_64)
使用框架: Nerv

复现步骤

1、Image组件传入imgProps={{alt: 'hello'}}

期望结果

h5环境下img标签正常显示imgProps的属性

实际结果

实际渲染没有出现alt属性

环境信息

 Taro v3.0.17


  Taro CLI 3.0.17 environment info:
    System:
      OS: macOS 11.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.3.0 - /usr/local/bin/node
      Yarn: 1.22.5 - ~/.yarn/bin/yarn
      npm: 7.0.14 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.17 => 3.0.17
      @tarojs/mini-runner: 3.0.17 => 3.0.17
      @tarojs/router: 3.0.17 => 3.0.17
      @tarojs/taro: 3.0.17 => 3.0.17
      @tarojs/taro-h5: 3.0.17 => 3.0.17
      @tarojs/webpack-runner: 3.0.17 => 3.0.17
      babel-plugin-transform-taroapi: 3.0.17 => 3.0.17
      babel-preset-taro: 3.0.17 => 3.0.17
      eslint-config-taro: 1.3.38 => 1.3.38
      eslint-plugin-taro: 1.3.38 => 1.3.38
      nerv-devtools: ^1.4.0 => 1.5.7
      nervjs: ^1.5.7 => 1.5.7
    npmGlobalPackages:
      typescript: 4.1.2

补充信息

https://github.com/NervJS/taro/blob/next/packages/taro-components/src/components/image/image.tsx 里面缺少imgProps

@ZakaryCode
Copy link
Contributor

旧版本的属性,欢迎 PR

@wx1322
Copy link
Contributor

wx1322 commented Sep 4, 2021

提了PR,麻烦review一下。 @ZakaryCode

@Chen-jj Chen-jj linked a pull request Sep 6, 2021 that will close this issue
17 tasks
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Helper Wanted - Easy T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants