docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions
+18 -18
View File
@@ -95,18 +95,18 @@ export default {
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| actions | Options | `Action[]` | `[]` | - |
| title | Title | `string` | - | - |
| cancel-text | Text of cancel button | `string` | - | - |
| overlay | Whether to show overlay | `boolean` | `true` | - |
| round | Whether to show round corner | `boolean` | `false` | 2.0.9 |
| close-on-click-action | Whether to close when click action | `boolean` | `false` | - |
| close-on-click-overlay | Whether to close when click overlay | `boolean` | `true` | - |
| lazy-render | Whether to lazy render util appeared | `boolean` | `true` | - |
| lock-scroll | Whether to lock background scroll | `boolean` | `true` | - |
| duration | Transition duration, unit second | `number` | `0.3` | 2.0.3 |
| get-container | Return the mount node for action-sheet | `string | () => HTMLElement` | - | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `boolean` | `false` | - |
| actions | Options | *Action[]* | `[]` | - |
| title | Title | *string* | - | - |
| cancel-text | Text of cancel button | *string* | - | - |
| overlay | Whether to show overlay | *boolean* | `true` | - |
| round | Whether to show round corner | *boolean* | `false` | 2.0.9 |
| close-on-click-action | Whether to close when click action | *boolean* | `false` | - |
| close-on-click-overlay | Whether to close when click overlay | *boolean* | `true` | - |
| lazy-render | Whether to lazy render util appeared | *boolean* | `true` | - |
| lock-scroll | Whether to lock background scroll | *boolean* | `true` | - |
| duration | Transition duration, unit second | *number* | `0.3` | 2.0.3 |
| get-container | Return the mount node for action-sheet | *string \| () => HTMLElement* | - | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | *boolean* | `false` | - |
### Events
@@ -124,9 +124,9 @@ export default {
| Key | Description | Type |
|------|------|------|
| name | Title | `string` |
| subname | Subtitle | `string` |
| color | Text color | `string` |
| className | className for the option | `any` |
| loading | Whether to be loading status | `boolean` |
| disabled | Whether to be disabled | `boolean` |
| name | Title | *string* |
| subname | Subtitle | *string* |
| color | Text color | *string* |
| className | className for the option | *any* |
| loading | Whether to be loading status | *boolean* |
| disabled | Whether to be disabled | *boolean* |