diff --git a/packages/components/input/src/input.ts b/packages/components/input/src/input.ts index 6b405a49b0acd..18d3ccf24b794 100644 --- a/packages/components/input/src/input.ts +++ b/packages/components/input/src/input.ts @@ -185,6 +185,34 @@ export const inputProps = buildProps({ type: Boolean, default: false, }, + /** + * @description plain text as Input prefix, only works when type is not 'textarea' + */ + prefix: { + type: String, + default: undefined, + }, + /** + * @description plain text as Input suffix, only works when type is not 'textarea' + */ + suffix: { + type: String, + default: undefined, + }, + /** + * @description plain text as Input prepend, only works when type is not 'textarea' + */ + prepend: { + type: String, + default: undefined, + }, + /** + * @description plain text as Input append, only works when type is not 'textarea' + */ + append: { + type: String, + default: undefined, + }, } as const) export type InputProps = ExtractPropTypes diff --git a/packages/components/input/src/input.vue b/packages/components/input/src/input.vue index 5c439ef4a9b8f..66b2ae727d390 100644 --- a/packages/components/input/src/input.vue +++ b/packages/components/input/src/input.vue @@ -10,15 +10,25 @@