console
new Vue({
el: '#app',
data: {
options: [
{ value: 'HTML', label: 'HTML' },
{ value: 'CSS', label: 'CSS' },
{ value: 'JavaScript', label: 'JavaScript' }],
value: []
}
})
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Element UI 2.13.2 ui-select 创建条目</title>
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js">
</script>
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.2/theme-chalk/index.css" />
<script src="https://cdn.staticfile.org/element-ui/2.13.2/index.js">
</script>
</head>
<body>
<div id="app">
<el-select v-model="value" filterable allow-create default-first-option placeholder="请选择文章标签">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
<p>{{ value }}</p>
</div>
</body>
</html>