31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
## API
|
|
|
|
### Statistic
|
|
|
|
| Property | Description | Type | Default |
|
|
| -------- | ----------- | ---- | ------- |
|
|
| decimalSeparator | decimal separator | string | . |
|
|
| formatter | customize value display logic | v-slot \|(h) => 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 | - |
|
|
|
|
|
|
### Statistic.Countdown
|
|
|
|
| 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 | - |
|
|
|
|
#### Statistic.Countdown Events
|
|
| Events Name | Description | Arguments |
|
|
| --- | --- | --- |
|
|
| finish | Trigger when time's up | () => void | - |
|