# webopenfather-ui

> 一款轻量级、模块化基于Vue2.x的前端 UI 组件库

Latest version **0.0.1** (published 2021-06-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install webopenfather-ui
pnpm add webopenfather-ui
yarn add webopenfather-ui
bun add webopenfather-ui
```

## 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.1 |
| Published | 2021-06-23 |
| First published | 2021-06-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 481.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | webopenfather |
| Maintainers | webopenfather |
| Keywords | wof-ui, webopenfather, 神龙教主 |

## Links

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

## Recent versions

- 0.0.1 (latest) — 2021-06-23

## README

# 说明
> WOF-UI 是一款基于 Vue.js 2.0 的前端 UI 组件库，主要用于快速开发 PC 网站中后台产品

# 安装
```
cnpm i webopenfather-ui -S
```

# 使用
```
在src/main.js
import WOFUI from 'webopenfather-ui';
Vue.use(WOFUI);
import 'webopenfather-ui/wof-ui.css';
```

# 组件

## 按钮
```
<wof-row>
    <wof-button>默认按钮</wof-button>
    <wof-button type="primary">主要按钮</wof-button>
    <wof-button type="success">成功按钮</wof-button>
    <wof-button type="info">信息按钮</wof-button>
    <wof-button type="warning">警告按钮</wof-button>
    <wof-button type="danger">危险按钮</wof-button>
</wof-row>

<wof-row>
    <wof-button round>默认按钮</wof-button>
    <wof-button type="primary" round>主要按钮</wof-button>
    <wof-button type="success" round>成功按钮</wof-button>
    <wof-button type="info" round>信息按钮</wof-button>
    <wof-button type="warning" round>警告按钮</wof-button>
    <wof-button type="danger" round>危险按钮</wof-button>
</wof-row>
```

## 分组
```
<wof-fieldset>
  <h1>神龙教主</h1>
</wof-fieldset>

<wof-fieldset title="神龙教主">
  <h1>洪福齐天，寿与天齐</h1>
</wof-fieldset>
```

## 表格
```
<wof-table :column="column" :data="data"></wof-table>
<script>
export default {
  data() {
    return {
        column: [
          {title: '编号', key: 'id'},
          {title: '姓名', key: 'name', render(row, data) { return `<b>${data}</b>`}},
          {title: '年龄', key: 'age'},
          {title: '性别', key: 'sex', render(row, data) { return data==1? '男' : '女'}},
        ],
        data: [
          {id:1, name: '武大郎', age: 998, sex: 1},
          {id:2, name: '西门庆', age: 18, sex: 1},
          {id:3, name: '潘金莲', age: 32, sex: 1},
          {id:4, name: '神龙教主', age: 32, sex: 1},
        ]
    }
  },
}
</script>

```

## 分页
```
<wof-row>
  <wof-page :total="10" @changePage="changePageFn"></wof-page>
</wof-row>

<script>
export default {
  methods: {
    changePageFn(n) {
      alert(n)
    }
  }
}
</script>
```

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