ElemeFE / ElemeFE/element

[Feature Request] Custom value display when select

Open
#20,483 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
Yes

### Component Name
Select

### Description
I wana custom input with phone number and select country code, example code below:
< el-input v-model="form.phone">
< el-select
slot="prepend"
v-model="form.prefixPhone"
>
< el-option
label="Viet nam ( 84)"
value=" 84"
>
< /el-option>
< el-option
label="Ameican ( 1)"
value=" 1"
>
< /el-option>
< /el-select>
< /el-input >
I expect it show 84 or 1 when selected and "Viet Nam ( 84)" "Ameican ( 1)" when show option to select
Screen Shot 2020-11-25 at 10 54 05
Screen Shot 2020-11-25 at 10 54 11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.