We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc72620 commit 7220259Copy full SHA for 7220259
components/input/Search.jsx
@@ -77,6 +77,8 @@ export default {
77
const { prefixCls, inputPrefixCls, size, ...others } = getOptionProps(this);
78
const suffix = getComponentFromProp(this, 'suffix');
79
const enterButton = getComponentFromProp(this, 'enterButton');
80
+ const addonAfter = getComponentFromProp(this, 'addonAfter');
81
+ const addonBefore = getComponentFromProp(this, 'addonBefore');
82
const buttonOrIcon = this.getButtonOrIcon();
83
let searchSuffix = suffix ? [suffix, buttonOrIcon] : buttonOrIcon;
84
if (Array.isArray(searchSuffix)) {
@@ -99,6 +101,8 @@ export default {
99
101
prefixCls: inputPrefixCls,
100
102
size,
103
suffix: searchSuffix,
104
+ addonAfter,
105
+ addonBefore,
106
},
107
attrs: this.$attrs,
108
on: {
0 commit comments