mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
docs: [el-select]change default of reserve-keyword (#5355)
This commit is contained in:
parent
db41ec5d5e
commit
260e491011
@ -140,7 +140,7 @@ If the binding value of Select is an object, make sure to assign `value-key` as
|
||||
| no-match-text | displayed text when no data matches the filtering query, you can also use slot `empty` | string | — | No matching data |
|
||||
| no-data-text | displayed text when there is no options, you can also use slot `empty` | string | — | No data |
|
||||
| popper-class | custom class name for Select's dropdown | string | — | — |
|
||||
| reserve-keyword | when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option | boolean | — | false |
|
||||
| reserve-keyword | when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option | boolean | — | true |
|
||||
| default-first-option | select first matching option on enter key. Use with `filterable` or `remote` | boolean | - | false |
|
||||
| popper-append-to-body | whether to append the popper menu to body. If the positioning of the popper is wrong, you can try to set this prop to false | boolean | - | true |
|
||||
| automatic-dropdown | for non-filterable Select, this prop decides if the option menu pops up when the input is focused | boolean | - | false |
|
||||
|
@ -5,6 +5,7 @@
|
||||
filterable
|
||||
allow-create
|
||||
default-first-option
|
||||
:reserve-keyword="false"
|
||||
placeholder="Choose tags for your article"
|
||||
>
|
||||
<el-option
|
||||
|
@ -297,7 +297,10 @@ export default defineComponent({
|
||||
type: String,
|
||||
},
|
||||
defaultFirstOption: Boolean,
|
||||
reserveKeyword: Boolean,
|
||||
reserveKeyword: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
valueKey: {
|
||||
type: String,
|
||||
default: 'value',
|
||||
|
Loading…
Reference in New Issue
Block a user