mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 12:48:04 +08:00
37 lines
717 B
Vue
37 lines
717 B
Vue
<template>
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
size="large"
|
|
/>
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
/>
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
size="small"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
const initials = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
|
|
|
|
const value = ref()
|
|
const options = Array.from({ length: 1000 }).map((_, idx) => ({
|
|
value: `Option ${idx + 1}`,
|
|
label: `${initials[idx % 10]}${idx}`,
|
|
}))
|
|
</script>
|
|
|
|
<style scoped>
|
|
.example-showcase .el-select-v2 {
|
|
margin-right: 20px;
|
|
}
|
|
</style>
|