Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/i-tengfei/vue-styler

Simple, performant styler for vue
https://github.com/i-tengfei/vue-styler

Last synced: 21 days ago
JSON representation

Simple, performant styler for vue

Awesome Lists containing this project

README

        

# vue-styler

## Installation

Install via NPM...

```sh
$ npm install vue-styler
```

...and require the plugin like so:

```js
import VueStylerPlugin from 'vue-styler'
Vue.use(VueStylerPlugin)
```

## Usage

```html





import { valueTypes } from 'vue-styler'

export default {
data() {
valueTypes: {
x: valueTypes.percent,
top: valueTypes.percent
}
}
}

```

```
styler (
values:State, // { x: 1, y: 10 }
types:{ [key: string]: valueTypes.ValueType } = {}, // { x: valueTypes.percent }
enableHardwareAcceleration:boolean = false // enable hardware acceleration
): {[key: string]: string | number}
```