docs(spin): improve docs a little bit (#967)

* docs(spin): improve docs a little bit

* already named
This commit is contained in:
Yanming Deng 2021-08-26 23:32:13 +08:00 committed by GitHub
parent b8663a171a
commit 472f373ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Spin
It can be called loading, but why it's called loading? Because there is another internal component with less props called loading.
It could've been called `loading`, but why is it called `spin`? Because there is another internal component with less props already named `loading`.
## Demos
@ -14,10 +14,10 @@ customize-icon
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| rotate | `boolean` | `true` | If icon is rotating, only works for custom icon. |
| rotate | `boolean` | `true` | Specify whether icon rotates, only working for custom icon. |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | Size of the spin. |
| 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. |
| show | `boolean` | `true` | Specify whether spin is active. |
| stroke-width | `number` | `undefined` | Relative width of spin's stroke, assuming the outer radius of spin is 100. |
| stroke | `string` | `undefined` | Color of the spin. |
## Slots

View File

@ -14,9 +14,9 @@ customize-icon
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| rotate | `boolean` | `true` | 自定义加载图标是否有旋转动画 |
| rotate | `boolean` | `true` | 自定义加载图标是否有旋转动画 |
| size | `'small' \| 'medium' \| 'large' \| number` | `'medium'` | Spin 的尺寸 |
| show | `boolean` | `true` | Spin 在填入内容的状态是否激活 |
| show | `boolean` | `true` | 在填入内容时 Spin 是否激活 |
| stroke-width | `number` | `undefined` | Spin 边缘的相对宽度,假定 Spin 的外侧半径是 100 |
| stroke | `string` | `undefined` | Spin 的颜色 |
@ -25,4 +25,4 @@ customize-icon
| 名称 | 参数 | 说明 |
| ------- | ---- | ------------------------------- |
| default | `()` | 如果填入Spin 会包裹填入的内容 |
| icon | `()` | 自定义加载图标 |
| icon | `()` | 自定义加载图标 |