UNPKG

@alicloud/cloud-charts

Version:

![](https://img.shields.io/npm/v/@alicloud/cloud-charts?color=%23ff8200)

30 lines (29 loc) 1.09 kB
import * as React from 'react'; import { Status, Trend } from '../common/types'; import './index.scss'; 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; }; constructor(props: WnumberProps); renderBottom(bottomTitle: React.ReactNode): 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): JSX.Element; render(): JSX.Element; } export {};