From 72202591a5e5bcc2ff27a321eff3b9693903974e Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 15 Mar 2019 22:56:05 +0800 Subject: [PATCH] fix: input-search support addonAfter and addonBefore slot #581 --- components/input/Search.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/input/Search.jsx b/components/input/Search.jsx index 3ad5f74bd..d5b3aaeae 100644 --- a/components/input/Search.jsx +++ b/components/input/Search.jsx @@ -77,6 +77,8 @@ export default { const { prefixCls, inputPrefixCls, size, ...others } = getOptionProps(this); const suffix = getComponentFromProp(this, 'suffix'); const enterButton = getComponentFromProp(this, 'enterButton'); + const addonAfter = getComponentFromProp(this, 'addonAfter'); + const addonBefore = getComponentFromProp(this, 'addonBefore'); const buttonOrIcon = this.getButtonOrIcon(); let searchSuffix = suffix ? [suffix, buttonOrIcon] : buttonOrIcon; if (Array.isArray(searchSuffix)) { @@ -99,6 +101,8 @@ export default { prefixCls: inputPrefixCls, size, suffix: searchSuffix, + addonAfter, + addonBefore, }, attrs: this.$attrs, on: {