2019-12-09 18:09:07 +08:00
|
|
|
# Spin
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2020-03-08 20:24:38 +08:00
|
|
|
It can be called loading, but why it's called loading? Because there is another internal component with less props called loading.
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2020-01-31 21:58:21 +08:00
|
|
|
## Demos
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2019-10-15 17:40:21 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
wrap
|
2020-01-31 21:58:21 +08:00
|
|
|
```
|
2020-12-12 14:44:44 +08:00
|
|
|
|
2020-01-31 21:58:21 +08:00
|
|
|
## Props
|
2020-12-12 14:44:44 +08:00
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | |
|
|
|
|
| show | `boolean` | `true` | If spin is active |
|
|
|
|
| stroke-width | `number` | `undefined` | Relative width of spin's stroke, you can assume the outer radius of spin is 100 |
|
|
|
|
| stroke | `string` | `undefined` | Color of spin |
|
|
|
|
| theme | `'light' \| 'dark' \| string` | `undefined` | |
|
2020-01-31 21:58:21 +08:00
|
|
|
|
|
|
|
## Slots
|
2020-12-12 14:44:44 +08:00
|
|
|
|
|
|
|
| Name | Parameters | Description |
|
|
|
|
| ------- | ---------- | ---------------------------------- |
|
|
|
|
| default | `()` | If set, spin will wrap the content |
|