mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
feat(auto-complete): disabled
This commit is contained in:
parent
cc58f5410a
commit
994b4aa2a3
@ -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'`||
|
||||
|
@ -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'`||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user