# vole-ui

> A Vue.js 2.0 Easy UI Toolkit for Web

Latest version **0.1.12** (published 2019-07-26) · MIT license · 0 weekly downloads

## Install

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

Provides the commands `lib-all`, `rollup-all`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2019-07-26 |
| First published | 2019-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 644.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | lxs24sxl |
| Maintainers | lxs24sxl |
| Keywords | vole, vole-ui, lxs24sxl, resize, longpress, vue, components |

## Links

- npm: https://www.npmjs.com/package/vole-ui
- Repository: https://github.com/lxs24sxl/vole-ui
- Homepage: https://github.com/lxs24sxl/vole-ui#readme
- Issues: https://github.com/lxs24sxl/vole-ui/issues
- npm.io page: https://npm.io/package/vole-ui

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [throttle-debounce](https://npm.io/package/throttle-debounce.md) ^2.1.0
- [resize-observer-polyfill](https://npm.io/package/resize-observer-polyfill.md) ^1.5.1

## 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
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.1.12 (latest) — 2019-07-26
- 0.1.11 — 2019-07-26
- 0.1.10 — 2019-07-24
- 0.1.9 — 2019-07-23
- 0.1.8 — 2019-07-22
- 0.1.7 — 2019-07-09
- 0.1.6 — 2019-07-03
- 0.1.5 — 2019-06-28
- 0.1.4 — 2019-06-28
- 0.1.3 — 2019-06-28
- 0.1.2 — 2019-06-28
- 0.1.1 — 2019-06-27
- 0.1.0 — 2019-06-27

## README

# vole-ui
A Vue.js 2.0 Easy UI Toolkit for Web


## Install
```shell
npm install vole-ui -S
```

## Quick Start
``` javascript
import Vue from 'vue'
import VoleUI from 'vole-ui'

Vue.use(VoleUI)
```

## Components

### 1. Resize (directive and component) （[Document](https://github.com/lxs24sxl/vole-ui/blob/master/examples/docs/zh-CN/resize.md)）

```html
<template>
  <div class="test-wrap">
    <vo-resize 
      @resize="handleResizeEvent" 
      :immediate="false"
      :delay="500"
      :type="throttle">
      <div>{{rect}}</div>
    </vo-resize>

    <div 
      v-resize.quiet="handleResizeEvent" 
      vue-resize-delay="600" 
      vue-resize-type="debounce">
      {{rect}}
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import Component from 'vue-class-component'

@Component
export default class Test extends Vue {
  rect = {};

  oldRect = {};

  handleResizeEvent (el, rect, oldRect) {
    this.rect = rect
    this.oldRect = oldRect
  }
}
</script>
```


### 2. Longpress (directive) （[Document](https://github.com/lxs24sxl/vole-ui/blob/master/examples/docs/zh-CN/longpress.md)）

```html
<template>
  <div class="test-wrap">
    <button 
      v-longpress="handleLongpressEvent"
      vue-longpress-duration="1000">
    </button>
  </div>
</template>

<script>
import Vue from 'vue'
import Component from 'vue-class-component'

@Component
export default class Test extends Vue {
  options = {
    endStamp: 1562638917679,
    rangeOfTime: 1001,
    startStamp: 1562638916678
  }

  handleLongpressEvent (options) {
    this.options = options
  }
}
</script>
```

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