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 type
master
崮生 2024-12-20 15:41:49 +08:00 committed by GitHub
parent 0a3d24bfbd
commit 95668a6410
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -171,6 +171,10 @@ export interface ImageState {
* Defines valid properties in Image component.
*/
export interface ImageProps {
/**
* Image url.
*/
src?: string | undefined;
/**
* Controls the preview functionality.
* @defaultValue false

View File

@ -10,7 +10,7 @@
import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
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;
@ -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.
*/
export interface TextareaProps extends Omit<InputHTMLAttributes, 'size'> {
export interface TextareaProps extends TextareaHTMLAttributes {
/**
* Value of the component.
*/