fix: 统一组件style属性ts校验格式 (#5968)

* fix(InputImage): 细节调整

* fix: 统一组件style属性ts校验格式
This commit is contained in:
刘丹 2022-12-23 16:01:21 +08:00 committed by GitHub
parent 9540a58562
commit 330e3c6d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 10 deletions

View File

@ -73,6 +73,9 @@ export interface RendererProps extends ThemeProps, LocaleProps, OnEventProps {
};
defaultData?: object;
className?: any;
style?: {
[propName: string]: any;
};
[propName: string]: any;
}

View File

@ -122,7 +122,9 @@ export function getTheme(theme: string): ThemeInstance {
export interface ThemeProps {
className?: string;
style?: any;
style?: {
[propName: string]: any;
};
classPrefix: string;
classnames: ClassNamesFn;
theme?: string;
@ -131,7 +133,9 @@ export interface ThemeProps {
export interface ThemeOutterProps {
theme?: string;
className?: string;
style?: any;
style?: {
[propName: string]: any;
};
classPrefix?: string;
classnames?: ClassNamesFn;
}

View File

@ -7,6 +7,9 @@ export interface ListGroupProps
expand?: boolean;
items?: Array<any>;
itemClassName?: string;
style?: {
[propName: string]: any;
};
itemRender: (item: any, index: number) => JSX.Element;
placeholder?: JSX.Element;
getItemProps?: (props: {item: any; index: number}) => any;

View File

@ -75,7 +75,9 @@ export interface CityPickerProps
allowDistrict: boolean;
allowStreet: boolean;
useMobileUI?: boolean;
style?: any;
style?: {
[propName: string]: any;
};
}
export interface CityDb {

View File

@ -144,11 +144,9 @@ export interface PortletSchema extends Omit<BaseSchema, 'type'> {
/**
*
*/
style?:
| string
| {
[propName: string]: any;
};
style?: {
[propName: string]: any;
};
}
export interface PortletProps

View File

@ -22,7 +22,9 @@ export interface TagSchema extends BaseSchema {
/**
*
*/
style?: React.CSSProperties;
style?: {
[propName: string]: any;
};
/**
*

View File

@ -57,7 +57,9 @@ export interface VideoSchema extends BaseSchema {
framesClassName?: SchemaClassName;
// 用于设置行内样式
style?: any;
style?: {
[propName: string]: any;
};
/**
*