Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/i-tengfei/vue-styler
- Owner: i-tengfei
- License: mit
- Created: 2018-01-24T04:09:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T12:13:09.000Z (almost 7 years ago)
- Last Synced: 2024-04-14T21:08:48.402Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 83 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
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}
```