@alicloud/cloud-charts
Version:

31 lines (30 loc) • 1.19 kB
TypeScript
import * as React from 'react';
import { Status, Trend } from '../common/types';
import './index.scss';
export interface WnumberProps {
className?: string;
style?: React.CSSProperties;
status?: Status | string;
unit?: React.ReactNode;
numberTrend?: Trend;
rightRatioTrend?: Trend;
rightTitle?: React.ReactNode;
rightRatio?: React.ReactNode;
rightRatioStatus?: Status | string;
trend?: () => React.ReactNode;
bottomTitle?: React.ReactNode;
}
export default class Wnumber extends React.Component<WnumberProps> {
static displayName: string;
static defaultProps: {
numberTrend: string;
rightRatioTrend: string;
status: string;
};
labelRef: React.RefObject<unknown>;
numberRef: React.RefObject<unknown>;
constructor(props: WnumberProps);
renderBottom(bottomTitle: React.ReactNode): React.JSX.Element;
renderMain(status: string, unit: React.ReactNode, numberTrend: Trend, rightRatioTrend: Trend, rightTitle: React.ReactNode, rightRatio: React.ReactNode, rightRatioStatus: string, trend: () => React.ReactNode, children: React.ReactNode): React.JSX.Element;
render(): React.JSX.Element;
}