JSFiddle - React, Tailwind, and code Playground
by leopoldthecuber
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui@next/lib/index.js"></script>
<div id="app">
<el-input placeholder="请输入内容" v-model="input" suffix-icon="el-icon-close">
<template slot="append">.com</template>
</el-input>
</div>
SCSS
@import url("//unpkg.com/element-ui@next/lib/theme-chalk/index.css");
.el-select .el-input {
width: 130px;
}
Babel + JSX
var Main = {
data() {
return {
input: ''
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')