# vion

> A Vue.js 3.0 UI Components for Mobile Web

Latest version **1.0.6** (published 2023-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install vion
pnpm add vion
yarn add vion
bun add vion
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-08-04 |
| First published | 2021-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 8 |
| Unpacked size | 3.2 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | yangling |
| Maintainers | plqqlp |

## Links

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

## Dependencies (8)

- [vue](https://npm.io/package/vue.md) ^3.3.4
- [autosize](https://npm.io/package/autosize.md) ^5.0.1
- [clipboard](https://npm.io/package/clipboard.md) ^2.0.6
- [qrcode.vue](https://npm.io/package/qrcode.vue.md) ^3.3.3
- [vue-router](https://npm.io/package/vue-router.md) ^4.0.12
- [highlight.js](https://npm.io/package/highlight.js.md) ^9.15.10
- [vion-svg-icon](https://npm.io/package/vion-svg-icon.md) ^1.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.16.5

## Recent versions

- 1.0.6 (latest) — 2023-08-04
- 1.0.5 — 2023-08-03
- 1.0.4 — 2023-08-03
- 1.0.3 — 2023-08-03
- 1.0.2 — 2023-08-02
- 1.0.1 — 2023-07-10
- 1.0.0 — 2023-07-09
- 0.0.1 — 2021-03-14

## README

<p align="center">
  <a href="https://nice-plq.github.io/vion/" target="_blank" rel="noopener noreferrer">
    <img width="200" src="https://raw.githubusercontent.com/Nice-PLQ/vion/master/logo.svg" alt="Vion logo">
  </a>
</p>
<br/>
<p align="center">
  <a href="https://npmjs.com/package/vion"><img src="https://badgen.net/npm/v/vion"></a>
  <img src="https://img.shields.io/badge/coverage-88.15%25-green">
  <img src="https://img.shields.io/badge/PR-welcome-brightgreen">
</p>
<br/>

# Vion 组件库

## 🎉 特性

- 基于 Vue3 构建
- 30 个组件
- 完善的示例和文档说明
- 单元测试覆盖 88%
- 支持 tree-shaking
- 支持主题定制
- 支持国际化
- 支持服务端渲染

## 快速上手

### 1、安装

```
npm install vion --save
```

### 2、引用组件

#### 方式一: 自动按需引入组件（推荐）

Vion 原生支持基于 ES Module 按需引入组件，未使用的组件会自动 Tree Shaking 掉，包括 js 和 css 代码，无需配置任何插件即可实现。

以`Button`为例，下面的代码打包后，只会保留 Button 组件的 js 和 css 代码，其他的都会被剔除掉。

```js
import { createApp } from "vue";
// 以 Button 为例
import { Button } from "vion";

const app = createApp();
app.use(Button);
```

#### 方式二：手动按需引入组件

在不使用插件的情况下，可以手动引入需要的组件

```js
import { createApp } from "vue";

import Button from "vion/lib/button";
import "vion/lib/style/button.css";

const app = createApp();
app.use(Button);
```

#### 方式三：全量引入

组件全量引入会将没有使用的组件一同打包到代码里，会导致业务代码体积增加，一般不推荐全量引入

```js
import { createApp } from "vue";

import Vion from "vion/lib";
import "vion/lib/style/index.css";

const app = createApp();
app.use(Vion);
```

通过`app.use`加载的组件，都可以用`<v-xxx />`的标签形式使用，如`<v-button>按钮</v-button>`

## 贡献

我们十分期待你的任何贡献，无论是修复错别字、提 Bug 还是提交一个新的特性。

如果你使用过程中发现 Bug，请通过 issues 来提交并描述相关的问题，你也可以在这里查看其它的 issue，通过解决这些 issue 来贡献代码

如果你是第一次贡献代码，请阅读 [CONTRIBUTING](./CONTRIBUTING.md) 了解我们的贡献流程，并提交 Merge Request 给我们。

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