JSFiddle - React, Tailwind, and code Playground

by leopoldthecuber

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" @input="handleChange" :min="1" :max="10" label="描述文字"></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
      };
    },
    methods: {
      handleChange(value, o) {
        console.log(this.num1, value, o);
      }
    }
  };
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')