# @beisen/common-label

> common-label

Latest version **0.0.34** (published 2019-05-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen/common-label
pnpm add @beisen/common-label
yarn add @beisen/common-label
bun add @beisen/common-label
```

## 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.34 |
| Published | 2019-05-22 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xiaosiyu |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6, karma, jasmine, form, input |

## Links

- npm: https://www.npmjs.com/package/@beisen/common-label
- Repository: git@gitlab.beisen.co:cnpm/beisen-module-template
- npm.io page: https://npm.io/package/@beisen/common-label

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.34 (latest) — 2019-05-22
- 0.0.33 — 2019-05-22
- 0.0.31 — 2019-05-20
- 0.0.32 — 2019-05-20
- 0.0.28-1 — 2018-10-30
- 0.0.1 — 2018-09-28
- 0.0.24 — 2018-07-19
- 0.0.23 — 2018-06-28
- 0.0.22 — 2018-06-28
- 0.0.21 — 2018-06-28
- 0.0.20 — 2018-06-28
- 0.0.19 — 2018-06-08
- 0.0.18 — 2018-05-21
- 0.0.17 — 2018-05-04
- 0.0.16 — 2018-03-13
- … 10 more at https://npm.io/package/@beisen/common-label/versions

## README

# common-label 使用说明

## 项目运行

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

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

3. npm run test （测试用例）

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

## common-label参数

```

{
	readOnly:false,
	required: true,
	helpMsg:'qdwdqwd',
	sideTip:false, //toolTip是否左右显示
	hiddenTip:false, //toolTip是否显示
	labelText: 'AutoComplete', //左侧 label 文字
	hiddenLabel: false,  //隐藏整个组件
	lablePos: true, //label位置，true时在左边，false在上边
	lableTxt: false, //label中文字对齐方式，true左对齐，false右对齐
	iconClick: function(){} //没有iconClick这个字段即不支持此功能。 有即是支持这个特性
}
```

## common-label调用方法

1.安装npm组件包

```
npm install @beisen/common-label --save-dev
```

2.引用组件

  ```
import CommonLabel from "@beisen/common-label"
  ```


3. 传入参数

	该参数为上述参数，传入方式使用: {...参数}
	```
	{
		readOnly:false,
		required: true,
		helpMsg:'qdwdqwd',
		sideTip:false, //toolTip是否左右显示
		hiddenTip:false, //toolTip是否显示
		labelText: 'AutoComplete', //左侧 label 文字
		lablePos: true, //label位置，true时在左边，false在上边
		lableTxt: false, //label中文字对齐方式，true左对齐，false右对齐
	}

	render () {
			return (
				<CommonLabel {...data} />
			)
		}
	```

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