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`|| |blur-after-select|`boolean`|`false`||
|clear-after-select|`boolean`|`false`|| |clear-after-select|`boolean`|`false`||
|disabled|`boolean`|`false`||
|options|`Array<string \| AutoCompleteOption \| AutoCompleteOptionGroup>`|`[]`|| |options|`Array<string \| AutoCompleteOption \| AutoCompleteOptionGroup>`|`[]`||
|placeholder|`string`|`'Please Input'`|| |placeholder|`string`|`'Please Input'`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`|| |size|`'small' \| 'medium' \| 'large'`|`'medium'`||

View File

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

View File

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