Skip to content

Commit 04ac500

Browse files
author
mingyan.yu
committed
feat: statistic.ts
1 parent 14d4b77 commit 04ac500

File tree

1 file changed

+28
-20
lines changed

1 file changed

+28
-20
lines changed

types/statistic.ts

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,57 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent } from './component';
6+
import { VNode } from 'vue';
67

78
export declare class Statistic extends AntdComponent {
89
/**
9-
* the Icon type for an icon statistic, see Icon Component
10+
* decimal separator
11+
* @default '.'
1012
* @type string
1113
*/
12-
icon: string;
14+
decimalSeparator: string;
1315

1416
/**
1517
* the shape of statistic
16-
* @default 'circle'
1718
* @type string
1819
*/
19-
shape: 'circle' | 'square';
20+
formatter: () => VNode;
2021

2122
/**
22-
* the size of the statistic
23-
* @default 'default'
24-
* @type number | string
23+
* group separator
24+
* @default ','
25+
* @type string
2526
*/
26-
size: 'small' | 'large' | 'default' | number;
27+
groupSeparator: string;
2728

2829
/**
29-
* the address of the image for an image statistic
30-
* @type string
30+
* precision of input value
31+
* @type number
3132
*/
32-
src: string;
33+
precision: number;
3334

3435
/**
35-
* a list of sources to use for different screen resolutions
36-
* @type string
36+
* prefix node of value
37+
* @type string | VNode
3738
*/
38-
srcSet: string;
39+
prefix: string | VNode;
3940

4041
/**
41-
* This attribute defines the alternative text describing the image
42-
* @type string
42+
* suffix node of value
43+
* @type string | VNode
4344
*/
44-
alt: string;
45+
suffix: string | VNode;;
4546

4647
/**
47-
* handler when img load error,return false to prevent default fallback behavior
48-
* @type
48+
* Display title
49+
* @type string | VNode
4950
*/
50-
loadError: () => boolean;
51+
title: string | VNode;
52+
53+
/**
54+
* Display value
55+
* @type string or number
56+
*/
57+
value: string | number;
58+
5159
}

0 commit comments

Comments
 (0)