mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +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;
|
||||
className?: any;
|
||||
style?: {
|
||||
[propName: string]: any;
|
||||
};
|
||||
[propName: string]: any;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -75,7 +75,9 @@ export interface CityPickerProps
|
||||
allowDistrict: boolean;
|
||||
allowStreet: boolean;
|
||||
useMobileUI?: boolean;
|
||||
style?: any;
|
||||
style?: {
|
||||
[propName: string]: any;
|
||||
};
|
||||
}
|
||||
|
||||
export interface CityDb {
|
||||
|
@ -144,11 +144,9 @@ export interface PortletSchema extends Omit<BaseSchema, 'type'> {
|
||||
/**
|
||||
* 自定义样式
|
||||
*/
|
||||
style?:
|
||||
| string
|
||||
| {
|
||||
[propName: string]: any;
|
||||
};
|
||||
style?: {
|
||||
[propName: string]: any;
|
||||
};
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
// 用于设置行内样式
|
||||
style?: any;
|
||||
style?: {
|
||||
[propName: string]: any;
|
||||
};
|
||||
|
||||
/**
|
||||
* 如果是实时的,请标记一下
|
||||
|
Loading…
Reference in New Issue
Block a user