# hsvui

> A Component Library for Vue.js.

Latest version **0.0.9** (published 2019-03-14) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2019-03-14 |
| First published | 2018-12-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 116.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | godfrey |
| Maintainers | wgfjy |
| Keywords | hsvui, vue, vue.js, component, components, ui |

## Links

- npm: https://www.npmjs.com/package/hsvui
- Repository: https://github.com/Godfrey-W/hsvui
- Homepage: https://godfrey-w.github.io/hsvui/
- Issues: https://github.com/Godfrey-W/hsvui/issues
- npm.io page: https://npm.io/package/hsvui

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2019-03-14
- 0.0.8 — 2019-03-02
- 0.0.7 — 2019-03-02
- 0.0.6 — 2018-12-25
- 0.0.5 — 2018-12-21
- 0.0.4 — 2018-12-21
- 0.0.3 — 2018-12-21
- 0.0.2 — 2018-12-21
- 0.0.1 — 2018-12-21

## README

# Hsvui

## [demo](https://godfrey-w.github.io/hsvui)

## Install

``` js
npm install hsvui -S
```

## Quick Start

#### 完整引入

在 main.js 中写入以下内容：

``` js
import Vue from 'vue';
import Hsvui from 'hsvui';
import 'hsvui/lib/hsvui-css/index.css';
import App from './App.vue';

Vue.use(Hsvui);

new Vue({
  el: '#app',
  render: h => h(App)
});
```

#### 按需引入

借助 [**babel-plugin-component**](https://github.com/ElementUI/babel-plugin-component)，我们可以只引入需要的组件，以达到减小项目体积的目的。

首先，安装 babel-plugin-component：

``` js
npm install babel-plugin-component -D
```

然后，将 .babelrc 修改为：

``` js
{
  "presets": [
    "@vue/app"
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "hsvui",
        "styleLibraryName": "hsvui-css"
      }
    ]
  ]
}
```

引入部分组件：

``` js
import Vue from 'vue';
import { Rollnotice, RollnoticeItem } from 'hsvui';
import App from './App.vue';

Vue.component(Rollnotice.name, Rollnotice);
Vue.component(RollnoticeItem.name, RollnoticeItem);
/* 或写为
 * Vue.use(Rollnotice)
 * Vue.use(RollnoticeItem)
 */

new Vue({
  el: '#app',
  render: h => h(App)
});
```

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