# @wallowyou/ui

> vue3 admin components

Latest version **1.0.0** (published 2022-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wallowyou/ui
pnpm add @wallowyou/ui
yarn add @wallowyou/ui
bun add @wallowyou/ui
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-21 |
| First published | 2022-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 138.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wallowyou |
| Maintainers | wallowyou |
| Keywords | vue, @wallowyou/ui |

## Links

- npm: https://www.npmjs.com/package/@wallowyou/ui
- npm.io page: https://npm.io/package/@wallowyou/ui

## Recent versions

- 1.0.0 (latest) — 2022-12-21

## README

---
layout: doc
---
# 快速上手
`@nw/ui`为封装的常用组件库
> 在开始之前，由于大部分组件都是基于ant-design-vue,所以首先需要安装ant-design-vue,样式文件暂时打包进封装的@nw/ui  
## 安装
你可以选择`npm`, `yarn`, `pnpm` 安装  


组件库的`peerDependencies`有 @ant-design/icons-vue,@vueuse/core,ant-design-vue,lodash-es,resize-observer-polyfill,vue所以你需要提前安装它们

```bash
# 选择一个包管理器

# NPM
npm install @nw/ui --save

# Yarn
yarn add @nw/ui

# pnpm
pnpm install @nw/ui

```
## 使用组件
该组件库没有把`ant-design-vue`组件库的样式文件打包，所以使用先需要先引入以下组件
```
import {Button, Menu,Divider,Popover,Modal,Tooltip} from 'ant-design-vue'
app.use(Button).use(Menu).use(Divider).use(Popover).use(Modal).use(Tooltip)
```
### 全局完整注册

```ts
import { createApp } from 'vue';
import nwui from '@nw/ui'
import App from './App';
import '@nw/ui/dist/es/style.css'
const app = createApp(App);
app.use(nwui).mount('#app');
```
### 局部注册组件
样式文件暂时全部在main.ts全局引入
```ts
import {  ScrollBar } from '@nw/ui'
export default {
  components: {
   ScrollBar
  },
};
```

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