JSFiddle - React, Tailwind, and code Playground
by khamer
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui@next/lib/index.js"></script>
<div id="app">
<template>
<el-select v-model="value8" filterable placeholder="Select" multiple>
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</template>
</div>
SCSS
@import url("//unpkg.com/element-ui@next/lib/theme-chalk/index.css");
Babel + JSX
var Main = {
data() {
return {
options: [{
value: 'Option1',
label: 'Alpha'
}, {
value: 'Option2',
label: 'Beta'
}, {
value: 'Option3',
label: 'Gamma'
}, {
value: 'Option4',
label: 'Arnold'
}, {
value: 'Option5',
label: 'Bert'
}],
value8: ''
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')