JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui/lib/index.js"></script>
<div id="app">
<template>
<el-input-number v-model="num1" @change="handleChange" :controls="false" :min="-10000" :max="10000"></el-input-number>
</template>
</div>
SCSS
@import url("//unpkg.com/element-ui/lib/theme-default/index.css");
Babel + JSX
var Main = {
data() {
return {
num1: 1
};
},
methods: {
handleChange(value) {
console.log(value);
}
}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')