fix TextareaProps type And Image src props (#6973)
* fix: #5903 * renaming GlobalComponentConstructor https://github.com/primefaces/primevue/pull/6088#issuecomment-2374917228 * Delete package-lock.json * Update how component types are defined * Image props add src * fix TextareaProps typepull/6767/merge
parent
0a3d24bfbd
commit
95668a6410
|
@ -171,6 +171,10 @@ export interface ImageState {
|
||||||
* Defines valid properties in Image component.
|
* Defines valid properties in Image component.
|
||||||
*/
|
*/
|
||||||
export interface ImageProps {
|
export interface ImageProps {
|
||||||
|
/**
|
||||||
|
* Image url.
|
||||||
|
*/
|
||||||
|
src?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Controls the preview functionality.
|
* Controls the preview functionality.
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
|
import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
|
||||||
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
||||||
import type { PassThroughOptions } from 'primevue/passthrough';
|
import type { PassThroughOptions } from 'primevue/passthrough';
|
||||||
import { InputHTMLAttributes } from 'vue';
|
import type { TextareaHTMLAttributes } from 'vue';
|
||||||
|
|
||||||
export declare type TextareaPassThroughOptionType = TextareaPassThroughAttributes | ((options: TextareaPassThroughMethodOptions) => TextareaPassThroughAttributes | string) | string | null | undefined;
|
export declare type TextareaPassThroughOptionType = TextareaPassThroughAttributes | ((options: TextareaPassThroughMethodOptions) => TextareaPassThroughAttributes | string) | string | null | undefined;
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ export interface TextareaContext {
|
||||||
/**
|
/**
|
||||||
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
|
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
|
||||||
*/
|
*/
|
||||||
export interface TextareaProps extends Omit<InputHTMLAttributes, 'size'> {
|
export interface TextareaProps extends TextareaHTMLAttributes {
|
||||||
/**
|
/**
|
||||||
* Value of the component.
|
* Value of the component.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue