# @beisen-platform/empty-component

> 用于组件无数据时的提示，可根据组件的不同宽高，显示不同大小的展示图片描述文字可自定义

Latest version **0.0.11-rc.1** (published 2019-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/empty-component
pnpm add @beisen-platform/empty-component
yarn add @beisen-platform/empty-component
bun add @beisen-platform/empty-component
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11-rc.1 |
| Published | 2019-04-29 |
| First published | 2018-11-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 169.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | beisen |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6 |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/empty-component
- npm.io page: https://npm.io/package/@beisen-platform/empty-component

## Recent versions

- 0.0.11-rc.1 (latest) — 2019-04-29
- 0.0.11 — 2019-04-16
- 0.0.10 — 2019-03-15
- 0.0.8 — 2018-11-29

## README

# empty-component（无数据显示）使用说明

## 项目运行

1. cnpm install 或 npm install cnpm使用教程

2. npm run dev （开发环境打包 port:8080）

3. npm run test （测试用例）

4. npm run build （生产环境打包）

## empty-component参数

```javascript
  {
      ContainerHeight: 444, //外界容器高度,默认宽度为150px
      ContainerWidth: 222    //外界容器宽度
  }

```

## empty-component使用方法

1.安装npm组件包

```
npm install @beisen/empty-component --save-dev
```

2.引用组件

```javascript
import EmptyComponent from './src/index.js';
```
3.传入参数

	该参数为上述参数，传入方式使用props传入，如果不传入默认高度为150px。
  ```javascript
class Demo extends Component {
  constructor() {
  	super();
  	this.state = {
      ContainerHeight: 444,  //外界容器高度，默认宽度150px
      ContainerWidth: 222    //外界容器宽度
    }
  }
  render() {
    return (
      <div>
      	  <EmptyComponent {...this.state}/>
      </div>
    )
  }
}
render(<Demo />, document.getElementById('content'))
```
# Beisen-module-template

没有数据时使用该组件展示

## 使用

```js
import Empty from '@beisen-cmps/empty'

<Empty />

```

## API

| 属性 | 描述 | 类型 | 默认值 |
| -------- | ----------- | ---- | ------- |
| ContainerHeight | 容器高度 | number | 150 |
| ContainerWidth | 容器宽度 | number | - |

---
_Source: https://npm.io/package/@beisen-platform/empty-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
