ant-design-vue/components/statistic/index.en-US.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

2019-05-25 09:18:04 +00:00
## API
2019-05-25 14:43:44 +00:00
### Statistic
2019-05-25 09:18:04 +00:00
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
| decimalSeparator | decimal separator | string | . |
2019-05-28 03:10:38 +00:00
| formatter | customize value display logic | v-slot \|(h) => VNode | - |
2019-05-25 09:18:04 +00:00
| groupSeparator | group separator | string | , |
| precision | precision of input value | number | - |
2019-05-28 03:10:38 +00:00
| prefix | prefix node of value | string \| v-slot | - |
| suffix | suffix node of value | string \| v-slot | - |
| title | Display title | string \| v-slot | - |
2019-05-25 09:18:04 +00:00
| value | Display value | string \| number | - |
2019-05-25 14:43:44 +00:00
### Statistic.Countdown
2019-05-25 09:18:04 +00:00
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
| format | Format as [moment](http://momentjs.com/) | string | 'HH:mm:ss' |
2019-05-28 03:10:38 +00:00
| prefix | prefix node of value | string \| v-slot | - |
| suffix | suffix node of value | string \| v-slot | - |
| title | Display title | string \| v-slot | - |
2019-05-25 14:43:44 +00:00
| value | Set target countdown time | number \| moment | - |
#### Statistic.Countdown Events
| Events Name | Description | Arguments |
| --- | --- | --- |
2019-05-28 01:08:26 +00:00
| finish | Trigger when time's up | () => void | - |