zent
Version:
一套前端设计语言和基于React的实现
26 lines (25 loc) • 688 B
TypeScript
import { PureComponent } from 'react';
export interface IPlaceholderTextBlockProps {
rows: number;
lineSpacing?: string | number;
widths?: number[];
dashSegments?: Array<Array<string | number>>;
animate?: boolean;
dashed?: boolean;
style?: React.CSSProperties;
className?: string;
}
export default class TextBlock extends PureComponent<IPlaceholderTextBlockProps> {
static defaultProps: {
widths: number[];
dashSegments: number[][];
animate: boolean;
dashed: boolean;
lineSpacing: string;
};
getRowStyle: (i: any) => {
width: string;
};
getRows: () => any[];
render(): JSX.Element;
}