# @beisen-platform/platform-tip

> 全局展示操作反馈信息。有正确、错误、警告、提示四种类型；可选择手动关闭或自动关闭

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

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.20-rc.1 |
| Published | 2019-04-28 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 236.2 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/platform-tip
- Repository: git@gitlab.beisencorp.com:ux-share-platform/ux-platform-tip
- npm.io page: https://npm.io/package/@beisen-platform/platform-tip

## Dependencies (2)

- [nanoid](https://npm.io/package/nanoid.md) 2.0.0
- [@beisen-platform/platform-runtime-helpers](https://npm.io/package/@beisen-platform/platform-runtime-helpers.md) 1.0.x

## Recent versions

- 1.0.20-rc.1 (latest) — 2019-04-28
- 1.0.20 — 2019-04-16
- 1.0.19 — 2019-04-10
- 1.0.18 — 2019-03-22
- 1.0.17 — 2019-01-25
- 1.0.16 — 2019-01-25
- 1.0.15 — 2019-01-23
- 1.0.14 — 2019-01-23
- 1.0.13 — 2019-01-22
- 1.0.12 — 2019-01-22
- 1.0.11 — 2019-01-15
- 1.0.10 — 2019-01-14
- 1.0.9 — 2019-01-08
- 1.0.8 — 2019-01-08
- 1.0.7 — 2019-01-08
- … 7 more at https://npm.io/package/@beisen-platform/platform-tip/versions

## README

### Platform-Tip 使用说明
> 提示弹层默认是放在屏幕头部正中间，全局唯一，只有在提示弹层消失后，才会显示出第二个提示弹层，弹层不会叠加显示

#### 项目运行
- npm install
- npm run examples
- npm run lib (打包)

#### Platform-Tip 参数

```javascript
const props = {
	//包括： 'success'：是“对号”图标, 'error'：是“叉号”图标, 'warning'：是“感叹号”图标, 'normalTip'：是“提示i”图标；, 'questionTip'：是“问号”图标；, 'specialTip'：是“灯泡”图标
	infoType:'success', 
	isAutomaticCloseTip： false, //true/false   是否自动关闭 , 默认： 如果 infoType为 success或者 warning时为自动关闭，其他都是手动关闭
	disappearTime: '3000', //提示消失时间，默认3000毫秒
	title:'显示的内容'， //要显示的内容
	content: [ 'aaaaaaaa', 'bbbbbbb', '3333333333' ], //带内容提示弹层的内容。
	maxHeight: 100, //最大高度
	top: 0, //自定义位置
	left: 0, //自定义位置
	bottom: 0, //自定义位置
	right: 0, //自定义位置
	offsetTop: //上偏移量，如果没有自定义位置,依据默认居中位置上偏移
	offsetLeft: //左偏移量，如果没有自定义位置,依据默认居中位置左偏移
	tipContainer: this.tipContainer, // 指定tip被挂载的容器， tipContainer与上面的定位是互斥关系
	showMask: false, //true/false 是否显示遮罩
	hide: ()=>{ console.log('提示消失的回调函数') }  //提示消失的回调函数
}

<Tip  {...props}/>
```

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