|
|
|
@ -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: { |
|
|
|
|