From 16dbfecbded804eeecff38c6e1cacda84f160d79 Mon Sep 17 00:00:00 2001 From: zhenghui <1334295412@qq.com> Date: Mon, 19 Sep 2022 19:19:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20auto-complete=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=8A=A0=E4=B8=8Amaxlength=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auto-complete/auto-complete.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {