JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/[email protected]/lib/index.js"></script>
<div id="app">
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="textarea">
</el-input>
</div>
SCSS
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");
html,
body {
height: 100%;
}
#app {
height: 100%;
background-color: #ddd;
}
.el-textarea, .el-textarea__inner {
height: 100%;
}
Babel + JSX
var Main = {
data() {
return {
textarea: ''
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')