-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4760e45
commit b8ed920
Showing
4 changed files
with
118 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,43 @@ | ||
/// <reference types="svelte" /> | ||
import type { ClassValue } from 'clsx'; | ||
export type KStatisticProps = { | ||
/** | ||
* @description Setting the decimal point | ||
*/ | ||
decimalSeparator: string | ||
/** | ||
* @description Sets the thousandth identifier | ||
*/ | ||
groupSeparator: string | ||
/** | ||
* @description numerical precision | ||
*/ | ||
precision: number | ||
/** | ||
* @description Custom numerical presentation | ||
*/ | ||
formatter: ((value: number) => string | number) | undefined, | ||
/** | ||
* @description TODO: ❓ Numerical content | ||
*/ | ||
value: number | ||
/** | ||
* @description Sets the prefix of a number | ||
*/ | ||
prefix: string | undefined, | ||
|
||
/** | ||
* @description Sets the suffix of a number | ||
*/ | ||
suffix: string | undefined, | ||
/** | ||
* @description Numeric titles | ||
*/ | ||
title: string | undefined, | ||
/** | ||
* @description Styles numeric values | ||
*/ | ||
valueStyle: string | undefined, | ||
cls: ClassValue, | ||
attrs: Record<string, string> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const statisticShortcuts: Record<string, string> = { | ||
// statistic | ||
'k-statistic__head': 'text-base text-ikun-tx-base mb-4px leading-20px', | ||
'k-statistic__content': 'text-base text-ikun-tx-base', | ||
'k-statistic__value': 'inline-block', | ||
'k-statistic__prefix': 'inline-block mr-4px', | ||
'k-statistic__suffix': 'inline-block ml-4px', | ||
}; |