UNPKG

zhu-jiang-yi-yuan-bigscreen

Version:

南方医科大学珠江医院大屏端

21 lines (20 loc) 576 B
import { HTMLAttributes } from 'react'; export type IndicatorsProps = { /** 标题 */ title: string; /** 指标值 */ value?: number | string; /** 直接显示指标值,不做转换 */ valueLabel?: true; /** 同比值 */ yearOnYearValue?: number; /** 同比值是否百分数 */ yearOnYearValuePercent?: boolean; /** 环比值 */ monthOnMonthValue?: number; /** 环比值是否百分数 */ monthOnMonthValuePercent?: boolean; /** 今日值是否百分数. value=number 时有效 */ percent?: boolean; } & Pick<HTMLAttributes<any>, 'style'>