feat(auto-complete): disabled

This commit is contained in:
07akioni 2020-12-08 13:47:01 +08:00
parent cc58f5410a
commit 994b4aa2a3
3 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@ after-select
|-|-|-|-|
|blur-after-select|`boolean`|`false`||
|clear-after-select|`boolean`|`false`||
|disabled|`boolean`|`false`||
|options|`Array<string \| AutoCompleteOption \| AutoCompleteOptionGroup>`|`[]`||
|placeholder|`string`|`'Please Input'`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||

View File

@ -14,6 +14,7 @@ after-select
|-|-|-|-|
|blur-after-select|`boolean`|`false`||
|clear-after-select|`boolean`|`false`||
|disabled|`boolean`|`false`||
|options|`Array<string \| AutoCompleteOption \| AutoCompleteOptionGroup>`|`[]`||
|placeholder|`string`|`'请输入'`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||

View File

@ -23,6 +23,7 @@
:value="value"
:placeholder="placeholder"
:size="mergedSize"
:disabled="disabled"
@focus="canBeActivated = true"
@input="handleInput"
@blur="handleBlur"
@ -110,6 +111,10 @@ export default {
type: Boolean,
default: undefined
},
disabled: {
type: Boolean,
default: false
},
placeholder: {
type: String,
default: undefined