v-model="select_value"
placeholder
id="QSXS"
filterable
allow-create
default-first-option
>
v-for="item in optionsGX"
:key="item.valueGX"
:label="item.labelGX"
:value="item.valueGX"
>
获取选择值
import { add } from "@/api/test";
export default {
data() {
return {
optionsGX: [
{
valueGX: "爸爸",
labelGX: "爸爸",
},
{
valueGX: "妈妈",
labelGX: "妈妈",
},
],
select_value: "",
form: {
num1: 0,
},
rules2: {},
};
},
methods: {
get_select()
{
var mm=this.select_value;
debugger;
}
},
};
.line {
text-align: center;
}