diff --git a/components/lib/textarea/Textarea.d.ts b/components/lib/textarea/Textarea.d.ts index 261fc70f5..375e82e05 100755 --- a/components/lib/textarea/Textarea.d.ts +++ b/components/lib/textarea/Textarea.d.ts @@ -19,6 +19,7 @@ export declare type TextareaPassThroughOptionType = TextareaPassThroughAttribute export interface TextareaPassThroughMethodOptions { instance: any; props: TextareaProps; + context: TextareaContext; } /** @@ -44,6 +45,22 @@ export interface TextareaPassThroughAttributes { [key: string]: any; } +/** + * Defines current options in Textarea component. + */ +export interface TextareaContext { + /** + * Current filled state of the component as a boolean. + * @defaultValue false + */ + filled: boolean; + /** + * Current disabled state of the component as a boolean. + * @defaultValue false + */ + disabled: boolean; +} + /** * Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component. * @extends TextareaHTMLAttributes diff --git a/components/lib/textarea/Textarea.vue b/components/lib/textarea/Textarea.vue index 859cdf053..df295e998 100755 --- a/components/lib/textarea/Textarea.vue +++ b/components/lib/textarea/Textarea.vue @@ -1,5 +1,5 @@