@molejs/mole-components-web
Version:
React组件库
27 lines (26 loc) • 907 B
TypeScript
import React, { MouseEventHandler } from 'react';
import { Board } from './PropsType';
export interface BoardProps extends Board {
prefixCls?: string;
isOnlyOneChild?: boolean;
extraText?: any;
text?: string;
number?: number | string;
numColor?: string;
textColor?: string;
index?: number;
isNotOverNum?: boolean;
error?: boolean;
isShowDivideLine?: boolean;
isShowRedSpot?: boolean;
unit?: string;
onClick?: MouseEventHandler<HTMLDivElement>;
}
declare class ChildBoard extends React.Component<BoardProps, any> {
static defaultProps: Partial<BoardProps>;
constructor(props: BoardProps);
renderNumAndText: (text: string, number: React.ReactText, onlyOneChild: boolean, textColor: string, numColor: string) => any;
isRenderLine: (index: number, isShowDivideLine: boolean) => any;
render(): JSX.Element;
}
export default ChildBoard;