jd-opensource / jd-opensource/taro-ui

轮播图无法填充满宽度

Open
#1,347 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/1478821/118630480-2169ec00-b801-11eb-8884-dab514f4f635.png)

```js
render() {
return (


{
this.state.imgUrls.map((item, idx) => (



))
}


)
}
```

index.scss
```
@import "~taro-ui/dist/style/components/flex.scss";
```

**期望行为**
图片能自适应填满宽度

**系统信息**
```
👽 Taro v3.2.8

Taro CLI 3.2.8 environment info:
System:
OS: macOS 11.3.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 7.13.0 - ~/.nvm/versions/node/v15.14.0/bin/npm
npmPackages:
@tarojs/cli: 3.2.8 => 3.2.8
@tarojs/components: 3.2.8 => 3.2.8
@tarojs/mini-runner: 3.2.8 => 3.2.8
@tarojs/react: 3.2.8 => 3.2.8
@tarojs/runtime: 3.2.8 => 3.2.8
@tarojs/taro: 3.2.8 => 3.2.8
@tarojs/webpack-runner: 3.2.8 => 3.2.8
babel-preset-taro: 3.2.8 => 3.2.8
eslint-config-taro: 3.2.8 => 3.2.8
react: ^17.0.0 => 17.0.2
taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.10
```

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.