@ovine/core
Version:
Build flexible admin system with json.
20 lines (19 loc) • 651 B
TypeScript
/**
* lib-css 样式渲染器
* 可为组件 传入自定义 css
*/
import { RendererProps } from 'amis/lib/factory';
import React from 'react';
import { DefaultTheme, FlattenSimpleInterpolation } from 'styled-components';
declare type CssType = (theme: DefaultTheme) => FlattenSimpleInterpolation;
export declare type LibCssProps = RendererProps & {
css?: string | CssType;
htmlClassName?: string;
tag?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
};
export declare class LibCss extends React.Component<LibCssProps> {
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
}
export {};