# vue-xd-message

> 消息提示框组件

Latest version **2.0.1** (published 2022-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-xd-message
pnpm add vue-xd-message
yarn add vue-xd-message
bun add vue-xd-message
```

## 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 | 2.0.1 |
| Published | 2022-02-24 |
| First published | 2022-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 789.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | 西电集团-马国胜 |
| Maintainers | cwebmgs |
| Keywords | vue, message, notice, toast, vue-message |

## Links

- npm: https://www.npmjs.com/package/vue-xd-message
- npm.io page: https://npm.io/package/vue-xd-message

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.14
- [core-js](https://npm.io/package/core-js.md) ^3.8.3

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2022-02-24
- 2.0.0 — 2022-02-24
- 1.0.1 — 2022-02-24
- 1.0.0 — 2022-02-24

## README

# vue-xd-message

> a vue plugins about notice or toast

## Build Setup

### install the plugin on bash and the sass module support

```
npm install vue-xd-message --save-dev
```

### register the plugins on the vue project in the entry file (main.js)

```
import message from 'vue-xd-message '
Vue.use(message);
```

### on the vue template file ,you can use it by

```
this.$message.success("hello vill-message");
this.$message.error("hello vill-message");
this.$message.warning("hello vill-message");
this.$message.info("hello vill-message");
```

### on the vue template file ,you can also use it by

```
this.$message({
    duration:2000,
    type:'success',
    conten:'hello vill-message'
});
this.$message({
    duration:2000,
    type:'error',
    message:'hello vill-message'
});

```

| 字段 | 说明 | 类型 | 默认值
|----- | ----- | ----- | ----- 
| type | 可选值 success/error/info/warning| String | -
| content | 必选值，提示信息 | String | -
| duration | 可选值 | Number | 3000ms
| animation | 可选值，动画效果 | String | fade=
| icon | 可选值，前缀图片自定义 | String | ../assets/w1.png
| hasClose | 可选值，是否有关闭按钮 | String | false

<!-- ### demos
![demo](https://github.com/Harhao/vill-messgae/blob/master/src/lib/demo.gif)
## License
[MIT](http://opensource.org/licenses/MIT) -->

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