# sw-vue-ui

> ## 安装 ```sh yarn add sw-vue-ui // or npm install sw-vue-ui ```

Latest version **0.1.4** (published 2020-08-21) · 0 weekly downloads

## Install

```sh
npm install sw-vue-ui
pnpm add sw-vue-ui
yarn add sw-vue-ui
bun add sw-vue-ui
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-08-21 |
| First published | 2020-08-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 58 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | vipsunwei |
| Keywords | vue-ui, loading |

## Links

- npm: https://www.npmjs.com/package/sw-vue-ui
- npm.io page: https://npm.io/package/sw-vue-ui

## Dependencies (2)

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

## Recent versions

- 0.1.4 (latest) — 2020-08-21
- 0.1.3 — 2020-08-20
- 0.1.2 — 2020-08-20
- 0.1.1 — 2020-08-20
- 0.1.0 — 2020-08-20

## README

# sw-vue-ui

## 安装
```sh
yarn add sw-vue-ui
// or
npm install sw-vue-ui
```

## 使用
```js
// main.js

// 完整引入
import swui from 'sw-vue-ui'
import 'sw-vue-ui/lib/sw-vue-ui.css'
Vue.use(swui)

// 按需引入
import { SwLoading } from 'sw-vue-ui'
Vue.use(SwLoading)

```

```vue
// App.vue
<template>
  <sw-loading ref="loading" background-color="rgba(0, 0, 0, 0.7)"></sw-loading>
</template>

<script>
export default {
  mounted () {
    this.$refs.loading.show()

    setTimeout(() => {
      this.$refs.loading.hide()
    }, 2000)
  }
}
</script>

```

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