mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
48a056b051
* docs: modify layout style * docs: modify nav padding * docs: update style * feat: update * docs: upadte * docs: update * docs: modify layout style * docs: update style * feat: update * docs: upadte * docs: update * docs: update * docs: update * docs: remove empty script * docs: update --------- Co-authored-by: kooriookami <bingshuanglingluo@163.com> Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
43 lines
892 B
Vue
43 lines
892 B
Vue
<template>
|
|
<div class="flex flex-wrap gap-4 items-center">
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
size="large"
|
|
style="width: 240px"
|
|
/>
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
style="width: 240px"
|
|
/>
|
|
<el-select-v2
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Please select"
|
|
size="small"
|
|
style="width: 240px"
|
|
/>
|
|
</div>
|
|
</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>
|