feat: statistic.ts

pull/802/head
mingyan.yu 2019-05-25 18:02:44 +08:00
parent 14d4b7745d
commit 04ac500c2e
1 changed files with 30 additions and 22 deletions

View File

@ -3,49 +3,57 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types // Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component'; import { AntdComponent } from './component';
import { VNode } from 'vue';
export declare class Statistic extends AntdComponent { export declare class Statistic extends AntdComponent {
/** /**
* the Icon type for an icon statistic, see Icon Component * decimal separator
* @default '.'
* @type string * @type string
*/ */
icon: string; decimalSeparator: string;
/** /**
* the shape of statistic * the shape of statistic
* @default 'circle'
* @type string * @type string
*/ */
shape: 'circle' | 'square'; formatter: () => VNode;
/** /**
* the size of the statistic * group separator
* @default 'default' * @default ','
* @type number | string
*/
size: 'small' | 'large' | 'default' | number;
/**
* the address of the image for an image statistic
* @type string * @type string
*/ */
src: string; groupSeparator: string;
/** /**
* a list of sources to use for different screen resolutions * precision of input value
* @type string * @type number
*/ */
srcSet: string; precision: number;
/** /**
* This attribute defines the alternative text describing the image * prefix node of value
* @type string * @type string | VNode
*/ */
alt: string; prefix: string | VNode;
/** /**
* handler when img load errorreturn false to prevent default fallback behavior * suffix node of value
* @type * @type string | VNode
*/ */
loadError: () => boolean; suffix: string | VNode;;
/**
* Display title
* @type string | VNode
*/
title: string | VNode;
/**
* Display value
* @type string or number
*/
value: string | number;
} }