docs: [el-select]change default of reserve-keyword (#5355)

This commit is contained in:
Alan Wang 2022-01-19 15:17:19 +08:00 committed by GitHub
parent db41ec5d5e
commit 260e491011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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 |

View File

@ -5,6 +5,7 @@
filterable
allow-create
default-first-option
:reserve-keyword="false"
placeholder="Choose tags for your article"
>
<el-option

View File

@ -297,7 +297,10 @@ export default defineComponent({
type: String,
},
defaultFirstOption: Boolean,
reserveKeyword: Boolean,
reserveKeyword: {
type: Boolean,
default: true,
},
valueKey: {
type: String,
default: 'value',