mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
fix: 统一组件style属性ts校验格式 (#5968)
* fix(InputImage): 细节调整 * fix: 统一组件style属性ts校验格式
This commit is contained in:
parent
9540a58562
commit
330e3c6d98
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -22,7 +22,9 @@ export interface TagSchema extends BaseSchema {
|
|||||||
/**
|
/**
|
||||||
* 自定义样式
|
* 自定义样式
|
||||||
*/
|
*/
|
||||||
style?: React.CSSProperties;
|
style?: {
|
||||||
|
[propName: string]: any;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标签颜色
|
* 标签颜色
|
||||||
|
@ -57,7 +57,9 @@ export interface VideoSchema extends BaseSchema {
|
|||||||
framesClassName?: SchemaClassName;
|
framesClassName?: SchemaClassName;
|
||||||
|
|
||||||
// 用于设置行内样式
|
// 用于设置行内样式
|
||||||
style?: any;
|
style?: {
|
||||||
|
[propName: string]: any;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 如果是实时的,请标记一下
|
* 如果是实时的,请标记一下
|
||||||
|
Loading…
Reference in New Issue
Block a user