123456789101112131415161718192021222324252627 |
- <template>
- <m-select v-model="selVal" searchable>
- <m-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </m-option>
- </m-select>
- </template>
- <script setup>
- import { ref } from 'vue-demi'
- const selVal = ref('')
- const options = [
- { value: 'value1',label: 'Option1'},
- { value: 'value2',label: 'Option2'},
- { value: 'value3',label: 'Option3'},
- { value: 'value4',label: 'Option4'},
- { value: 'value5',label: 'Option5'},
- { value: 'value6',label: 'Option6'},
- { value: 'value7',label: 'Option7'},
- { value: 'value8',label: 'Option8'},
- { value: 'value9',label: 'Option9'}
- ]
- </script>
|