JSFiddle - React, Tailwind, and code Playground
by Theara Yuom
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/[email protected]/lib/index.js"></script>
<div id="app">
<template>
<el-input-number v-model="num1" :value="val" @change="handleChange" :min="1" :max="10"></el-input-number>
</template>
</div>
SCSS
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");
Babel + JSX
var Main = {
data() {
return {
num1: 1
};
},
computed:{
val(){
return 2
}
},
methods: {
handleChange(value) {
console.log(value)
}
}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')