From 64de8de933b6a8d469cd37e4a7f762e938dc7279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Wed, 4 Sep 2019 17:48:53 +0800 Subject: [PATCH] AutoComplete prop: placement add more value --- examples/routers/auto-complete.vue | 117 +++++++++++++----- .../auto-complete/auto-complete.vue | 4 +- 2 files changed, 91 insertions(+), 30 deletions(-) diff --git a/examples/routers/auto-complete.vue b/examples/routers/auto-complete.vue index ba8cc5c5..d40c09c4 100644 --- a/examples/routers/auto-complete.vue +++ b/examples/routers/auto-complete.vue @@ -1,40 +1,101 @@ + diff --git a/src/components/auto-complete/auto-complete.vue b/src/components/auto-complete/auto-complete.vue index 716224f9..c80bc8f3 100644 --- a/src/components/auto-complete/auto-complete.vue +++ b/src/components/auto-complete/auto-complete.vue @@ -87,9 +87,9 @@ }, placement: { validator (value) { - return oneOf(value, ['top', 'bottom']); + return oneOf(value, ['top', 'bottom', 'top-start', 'bottom-start', 'top-end', 'bottom-end']); }, - default: 'bottom' + default: 'bottom-start' }, transfer: { type: Boolean,