NumberCard

Digital cards, usually used to display key indicator information.

Used on the chart page

{
"Number of pets_last month": {
"bind": "prev_pet_count",
"link": "/x/Table/pet",
"view": {
"type": "Number",
"props": {
"cardStyle": { "padding": 0 },
"unit": "unit",
"prev_title": "Last month data"
}
}
}
}

Props

interface IProps {
data:
| number
| {
current: number
prev: number
}
prefix?: string
unit?: string
decimals?: number
prev_title?: string
}

API

PropertiesDescriptionTypeDefaultRequiredVersion
namedata keystring-yes
unitunitstring-no
decimalsdecimal pointnumber-no
prev_titletitle of previous datastring-no

NumberCard

Digital cards, usually used to display key indicator information.

Used on the chart page

{
"Number of pets_last month": {
"bind": "prev_pet_count",
"link": "/x/Table/pet",
"view": {
"type": "Number",
"props": {
"cardStyle": { "padding": 0 },
"unit": "unit",
"prev_title": "Last month data"
}
}
}
}

Props

interface IProps {
data:
| number
| {
current: number
prev: number
}
prefix?: string
unit?: string
decimals?: number
prev_title?: string
}

API

PropertiesDescriptionTypeDefaultRequiredVersion
namedata keystring-yes
unitunitstring-no
decimalsdecimal pointnumber-no
prev_titletitle of previous datastring-no