vue-class
vue class decorator
2,712
7
| Install | |
|---|---|
npm install vue-class |
|
| Latest Version: | 2.0.1 |
| Vue: | 2 |
| License: | ISC |
| Last Updated: | Feb 24, 2018 |
| Links: | GitHub · npm |
Maintainer: chenjiahan
Vue Class
Decorator for building Vue2 & TypeScript2 Component.
Install
npm
npm i vue-class --save
yarn
yarn add vue-class
Usage
app.ts
import render from './app.html';
import { Vue, Component, Watch } from 'vue-class';
@Component({
render,
name: 'app',
props: ['value']
})
class App extends Vue {
value: number;
@Watch('value')
onValueChange(value: number): void {
console.log(value);
}
}
Dependences
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.1 | ^2.5.0 | ISC | |
| 2.0.0 | ^2.2.6 | ISC | |
| 1.3.13 | ^2.2.6 | ISC | |
| 1.3.12 | ^2.2.6 | ISC | |
| 1.3.11 | ^2.2.6 | ISC | |
| 1.3.10 | ^2.2.6 | ISC | |
| 1.3.9 | ^2.2.6 | ISC | |
| 1.3.8 | ^2.2.6 | ISC | |
| 1.3.7 | ^2.2.6 | ISC | |
| 1.3.6 | ^2.2.6 | ISC | |
| 1.3.5 | ^2.2.6 | ISC | |
| 1.3.4 | ^2.2.6 | ISC | |
| 1.3.3 | ^2.2.6 | ISC | |
| 1.3.2 | ^2.2.6 | ISC | |
| 1.3.1 | ^2.2.6 | ISC | |
| 1.3.0 | ^2.2.6 | ISC | |
| 1.2.1 | ^2.2.6 | ISC | |
| 1.2.0 | ^2.2.1 | ISC | |
| 1.1.0 | ^2.2.1 | ISC | |
| 1.0.1 | ^2.2.1 | ISC | |
| 1.0.0 | ^2.1.10 | ISC | |
| 0.4.0 | ^2.1.10 | ISC | |
| 0.3.4 | ^2.1.10 | ISC | |
| 0.3.2 | ^2.1.10 | ISC | |
| 0.3.1 | ^2.1.10 | ISC | |
| 0.3.0 | ^2.1.10 | ISC | |
| 0.2.2 | ^2.1.10 | ISC | |
| 0.2.1 | ^2.1.10 | ISC | |
| 0.2.0 | ^2.1.10 | ISC | |
| 0.1.0 | ^2.1.10 | ISC |
Showing the latest 30 of 37. See every release on npm