<emui-select v-model="myValue" placeholder="请选择">
<emui-option
v-for="item in options"
:label="item.label"
:value="item.key"
:key="item.key"
></emui-option>
</emui-select>
<script>
export default {
data() {
return {
myValue:"",
options: [
{ key: "key1", label: "选项1" },
{ key: "key2", label: "选项2" },
{ key: "key3", label: "选项3" },
{ key: "key4", label: "选项4" },
{ key: "key5", label: "选项5" },
{ key: "key6", label: "选项6" },
{ key: "key7", label: "选项7" },
],
}
}
}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26