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; defaultData?: object;
className?: any; className?: any;
style?: {
[propName: string]: any;
};
[propName: string]: any; [propName: string]: any;
} }

View File

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

View File

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

View File

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

View File

@ -144,11 +144,9 @@ export interface PortletSchema extends Omit<BaseSchema, 'type'> {
/** /**
* *
*/ */
style?: style?: {
| string [propName: string]: any;
| { };
[propName: string]: any;
};
} }
export interface PortletProps 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; framesClassName?: SchemaClassName;
// 用于设置行内样式 // 用于设置行内样式
style?: any; style?: {
[propName: string]: any;
};
/** /**
* *