From fc3f4e19226079e3acedc1551f39a6c8b4e0897d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E7=A6=BB?= Date: Thu, 9 Feb 2017 10:45:42 +0800 Subject: [PATCH] fix AutoComplete size (#4768) * fix AutoComplete size + close #4766 * use input mixin * use css variables * use children directly instead of React.Children.toArray + close #4778 --- .../__tests__/__snapshots__/demo.test.js.snap | 3 +- components/auto-complete/demo/antd.md | 2 +- components/auto-complete/index.tsx | 2 +- components/auto-complete/style/index.less | 69 +++++++++++++------ 4 files changed, 51 insertions(+), 25 deletions(-) diff --git a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap index 51da60b49c..987eaa721e 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap @@ -23,7 +23,8 @@ exports[`test renders ./components/auto-complete/demo/antd.md correctly 1`] = `