be used like this
<form action="-sharp" method="post" id="demo">
<el-select v-model="selected" placeholder="" name="ui">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value" >
</el-option>
</el-select>
<input type="submit" name="">
</form>
<script type="text/javascript">
new Vue({
el:"-sharpdemo",
data() {
return {
options: [{
value: "1",
label: ""
}, {
value: "2",
label: ""
}, {
value: "3",
label: ""
}, {
value: "4",
label: ""
}, {
value: "5",
label: ""
}],
selected: ""
}
}
})
</script>
but there is a problem with using it this way. The data submitted by the form is the value of el-option, not the value of value. How to deal with this
ask the gods.