# v-new-ui

> learning for element

Latest version **0.0.5** (published 2021-06-07) · 0 weekly downloads

## Install

```sh
npm install v-new-ui
pnpm add v-new-ui
yarn add v-new-ui
bun add v-new-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.0.5 |
| Published | 2021-06-07 |
| First published | 2021-05-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 283.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | haovincent |
| Keywords | vue, new-ui |

## Links

- npm: https://www.npmjs.com/package/v-new-ui
- npm.io page: https://npm.io/package/v-new-ui

## Dependencies (2)

- [core-js](https://npm.io/package/core-js.md) ^3.4.4
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.11

## Recent versions

- 0.0.5 (latest) — 2021-06-07
- 0.0.4 — 2021-06-02
- 0.0.3 — 2021-05-21
- 0.0.2 — 2021-05-21
- 0.0.1 — 2021-05-21

## README

## v-new-ui

### 开发流程
```
npm run lib
npm run build:style
```

### npm 安装
```
npm i v-new-ui
```

### 目前组件
- new-button

### 使用说明

1. 完整引入
在 main.js 中写入以下内容：

```js
import Vue from 'vue';
import NewUI from 'v-new-ui';
import 'v-new-ui/lib/theme-chalk/index.css';
import App from './App.vue';

Vue.use(NewUI);

new Vue({
  el: '#app',
  render: h => h(App)
});
```
2. 按需引入
借助 `babel-plugin-component`，我们可以只引入需要的组件，以达到减小项目体积的目的。

&nbsp;&nbsp;&nbsp;&nbsp;然后，将 .babelrc 修改为：

```json
{
  "plugins": [
    [
      "component",
      {
        "libraryName": "v-new-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
}
```
在 main.js 中写入以下内容：

```js
import Vue from 'vue';
import {Button} from 'v-new-ui';
import App from './App.vue';

Vue.use(Button);

new Vue({
  el: '#app',
  render: h => h(App)
});
```

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