We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5279d12 commit e9d0600Copy full SHA for e9d0600
components/input/Input.tsx
@@ -129,6 +129,12 @@ export default defineComponent({
129
{hasFeedback && feedbackIcon}
130
</>
131
);
132
+ const prefixNode = (hasFeedback || prefix) && (
133
+ <>
134
+ {prefix}
135
+ {hasFeedback && feedbackIcon}
136
+ </>
137
+ );
138
const prefixClsValue = prefixCls.value;
139
const inputHasPrefixSuffix = hasPrefixSuffix({ prefix, suffix }) || !!hasFeedback;
140
const clearIcon = slots.clearIcon || (() => <CloseCircleFilled />);
@@ -144,6 +150,7 @@ export default defineComponent({
144
150
autocomplete={autocomplete.value}
145
151
onBlur={handleBlur}
146
152
onFocus={handleFocus}
153
+ prefix={prefixNode}
147
154
suffix={suffixNode}
148
155
allowClear={allowClear}
149
156
addonAfter={
0 commit comments