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

33 lines
2.0 KiB
Markdown
Raw Normal View History

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