Statistic# 参数说明类型默认值 decimalSeparator设置小数点string. formatter自定义数值展示v-slot | ({h, value}) => VNode- groupSeparator设置千分位标识符string, precision数值精度number- prefix设置数值的前缀string | v-slot- suffix设置数值的后缀string | v-slot- ...
StatusCardViewer = React.memo((p: { status: StatusCardProps[] }) => { return <Row gutter={12}> {p.status.map(i => { return <Col span={6} style={{marginBottom: 8}}> <Card hoverable={true} bordered={true} size={"small"}> <Statistic title={i.Id} value={i.Data}/> </Ca...
antd/es/statistic/utils.d.ts Version: 658 BTypeScriptView Raw 1 import type * as React from 'react'; 2 export type valueType = number | string; 3 export type countdownValueType = number | string; 4export type Formatter = false...
Statistic# PropertyDescriptionTypeDefault decimalSeparatordecimal separatorstring. formattercustomize value display logicv-slot |({h, value}) => VNode- groupSeparatorgroup separatorstring, precisionprecision of input valuenumber- prefixprefix node of valuestring | v-slot- ...
, "statisticnumber" , "precision" , "decimalseparator" , "groupseparator" , "valuenode" , "cells" , "negative" , "int" , "decimal" , "padend" , "statistic" , "valuestyle" , "wrapperstatistic" , "timeunits" , "formattimestr" , "leftduration" , "escaperegex" , "keeplist" , ...
formatterSpecifies the format of the value presentedfunction(value: number | string, info: { userTyping: boolean, input: string }): string-info: 3.0 keyboardIf enable keyboard behaviorbooleantrue3.0 maxmax valuenumberInfinity minmin valuenumber-Infinity ...
statistic: remove top-level redundant div element (#7659) (07df410) steps: remove top-level redundant div element (#7582) (60beabc) typography: focus the element and set the value even if the zone is already stable (#7320) (2d2fe33) Features popconfirm: support async close (#7533) (79...
上一篇我们在 spug 项目中模仿”任务计划“模块实现一个类似的一级导航页面(”My任务计划“),本篇,我们将模仿“Dashboard”来实现一个仪表盘“My Dashboard”。 主要涉及 antd 的Grid、Card、Descriptions等组件、bizcharts的使用、moment日期库和页面适配。
formatter Specifies the format of the value presented function(value: number | string): string - max max value number Infinity min min value number -Infinity parser Specifies the value extracted from formatter function( string): number - precision precision of input value number - decimalSeparator ...
{receiverName}</Descriptions.Item> <Descriptions.Item label="转账金额"> <Statistic value={amount} suffix="元" /> </Descriptions.Item> </Descriptions> ); const extra = ( <> <Button type="primary" onClick={onFinish}> 再转一笔 </Button> <Button>查看账单</Button> </> ); return (...