mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00

* feat(components): [select] support options prop rendering * feat(components):[select] format * feat(components):[select] format * Update packages/components/select/src/select.vue Thanks for the guidance! Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> * Update packages/components/select/src/select.vue Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> * Merge remote-tracking branch 'upstream/dev' into feat/autocomplete-size * feat(components): [select] format * feat(components): [select] Add test case * feat(components): [select] Add doc * Update packages/components/select/src/select.ts Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> * feat(components): [select] Code optimization * feat(components): [select] Code optimization * feat(components): [select] format * feat(components): [select] format * docs: refact * refactor: simplify * chore: useless diff change * Update shared.ts * Update message.ts * Update popper.ts * Update result.ts * Update form-item.ts * Update cascader-panel.test.tsx * chore: useless change * Update select.vue * Update option.vue * Update select.vue --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> Co-authored-by: Dsaquel <291874700n@gmail.com>
38 lines
505 B
Vue
38 lines
505 B
Vue
<template>
|
|
<el-select
|
|
v-model="value"
|
|
:options="options"
|
|
placeholder="Select"
|
|
style="width: 240px"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const value = ref('')
|
|
|
|
const options = [
|
|
{
|
|
value: 'Option1',
|
|
label: 'Option1',
|
|
},
|
|
{
|
|
value: 'Option2',
|
|
label: 'Option2',
|
|
},
|
|
{
|
|
value: 'Option3',
|
|
label: 'Option3',
|
|
},
|
|
{
|
|
value: 'Option4',
|
|
label: 'Option4',
|
|
},
|
|
{
|
|
value: 'Option5',
|
|
label: 'Option5',
|
|
},
|
|
]
|
|
</script>
|