# npm-qh-toast

> toast 提示

Latest version **1.0.2** (published 2023-02-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-qh-toast
pnpm add npm-qh-toast
yarn add npm-qh-toast
bun add npm-qh-toast
```

## 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.2 |
| Published | 2023-02-01 |
| First published | 2023-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | qhseven |

## Links

- npm: https://www.npmjs.com/package/npm-qh-toast
- npm.io page: https://npm.io/package/npm-qh-toast

## Recent versions

- 1.0.2 (latest) — 2023-02-01
- 1.0.1 — 2023-02-01
- 1.0.0 — 2023-02-01

## README

## npm-qh-toast
toast 提示

## 如何引用
第一种方法
import Toast from 'npm-qh-toast';
import 'npm-qh-toast/toast/index.css'
 
new Toast({
  msg: '成功吗？',
  duration: 6000,
});

第二种方法
import Toast from '@/utils/toast';
import 'npm-qh-toast/toast/index.css'
 
// 全局toast
app.config.globalProperties.$toast = (data: any) => {
  return new Toast({
    msg: data.msg,
    duration: data.duration,
  });
};

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