# image-list-resize

> Welcome to image-list-resize 👋

Latest version **2.1.0** (published 2020-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-list-resize
pnpm add image-list-resize
yarn add image-list-resize
bun add image-list-resize
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2020-10-12 |
| First published | 2020-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 4 |
| Unpacked size | 63.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 'obf1313' |
| Maintainers | obf1313 |

## Links

- npm: https://www.npmjs.com/package/image-list-resize
- Repository: https://github.com/obf1313/image-list-resize
- Homepage: https://github.com/obf1313/image-list-resize#readme
- Issues: https://github.com/obf1313/image-list-resize/issues
- npm.io page: https://npm.io/package/image-list-resize

## Dependencies (4)

- [less](https://npm.io/package/less.md) ^3.12.2
- [cssnano](https://npm.io/package/cssnano.md) ^4.1.10
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.0.1
- [rollup-plugin-postcss](https://npm.io/package/rollup-plugin-postcss.md) ^3.1.8

## Recent versions

- 2.1.0 (latest) — 2020-10-12
- 2.1.0-0 (next) — 2020-10-12
- 2.0.2-0 — 2020-10-12
- 2.0.1 — 2020-10-12
- 2.0.0 — 2020-10-10
- 1.0.0 — 2020-10-10

## README

<h1 align="center">Welcome to image-list-resize 👋</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000" />
  <img src="https://img.shields.io/badge/node-%3E%3D10-blue.svg" />
  <a href="#" target="_blank">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
  </a>
</p>

## Prerequisites
- React >= 16.8
- node >= 10

## How to use
1. install
```
npm install image-list-resize
```
2. use
```typescript
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import Mock, { Random } from 'mockjs';
import ImageList from 'image-list-resize';
const App = () => {
  // 初始化图片列表
  const initImageList = () => {
    return Mock.mock({
      'imageList|10-15': [{
        'id|+1': 1,
        'sourceUrl': Random.dataImage('300x250'),
        'thumbnailUrl|+1': [
          Random.dataImage('300x250'),
          Random.dataImage('450x300'),
          Random.dataImage('300x500'),
          Random.dataImage('300x600'),
          Random.dataImage('400x400'),
          Random.dataImage('400x400'),
        ],
        'thumbnailTrueUrl|+1': '',
        'name': Random.cname(),
        'width|+1': [300, 450, 300, 300, 400, 400],
        'height|+1': [250, 300, 500, 600, 400, 400]
      }]
    }).imageList;
  };
  return (
    <div style={{ display: 'flex', justifyContent: 'center', flexDirection: 'column', alignItems: 'center' }}>
      <div style={{ fontSize: 20, color: '#333', margin: '10px 0' }}>图片自适应列表</div>
      <ImageList
        imagePropList={initImageList()}
        listChange={false}
        containerWidth={800}
      />
    </div>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));
```

## Author

👤 **'obf1313'**


## Show your support

Give a star if this project helped you!<br>
https://github.com/obf1313/image-list-resize

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

---
_Source: https://npm.io/package/image-list-resize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
