diff --git a/src/components/auto-complete/auto-complete.vue b/src/components/auto-complete/auto-complete.vue index 9d83d2fcb..3e989572e 100644 --- a/src/components/auto-complete/auto-complete.vue +++ b/src/components/auto-complete/auto-complete.vue @@ -31,6 +31,7 @@ :disabled="itemDisabled" :size="size" :icon="inputIcon" + :maxlength="maxlength" @on-click="handleClear" @on-focus="handleFocus" @on-blur="handleBlur"> @@ -128,7 +129,10 @@ eventsEnabled: { type: Boolean, default: false - } + }, + maxlength: { + type: [String, Number] + }, }, data () { return {