/// import type { CommonPropsType } from '../../../types'; import { IDataSource, IField } from './interface'; import './style'; interface PropsType extends CommonPropsType { /** * 数据源 */ dataSource?: IDataSource; /** * 数据筛选 */ filterData?: any; /** * 字段 */ field?: IField; /** * 统计方式 */ operationType?: string; /** * 字段展示名称 */ label?: string; /** * 是否统计空值 */ isCountEmpty?: boolean; /** * 是否显示单位 */ isShowUnit?: boolean; /** * 单位 */ unit?: number; /** * 小数位数 */ decimalDigits?: number; /** * 后缀 */ suffix?: number; /** * app.cloud 对象依赖,默认会从 window.app 取值 */ appCloud?: { callDataSource?: any; callWedaApi?: any; }; /** * 其他属性 */ [key: string]: any; } /** * 修复科学计数法问题 * @param num 小数 * @returns {string} */ export declare function scientificToNumber(num: any): any; /** * 补齐小数位数0 * @param source 源字符串 * @param targetLength 目标长度 * @returns {string} */ export declare function padEnd(source: any, targetLength: any): any; /** * 修复toFixed四舍五入不准确问题 * @param num * @param digit 小数位数 * @returns {string} */ export declare function customToFixed(num: any, digit?: number): string; /** * 添加千位分隔符 * @param fixedString * @param digit */ export declare function addDelimiter(fixedString: any, digit: any): string; export default function StatisticsCard({ dataSource, filterData, field, operationType, label, isCountEmpty, isShowUnit, unit, decimalDigits, suffix, className, style, events, id, role, appCloud, }: PropsType): JSX.Element; export {};