feat: publicize doc implemetation

This commit is contained in:
Justineo
2020-08-13 11:47:56 +08:00
parent 55b9b044f2
commit 1e5fcff6ad
372 changed files with 50636 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Option
:::tip
`Option` is required to be used within [`Select`](./select), [`Dropdown`](./dropdown) or [`OptionGroup`](./option-group).
:::
## Demos
See [the demos of `Select`](./select#demos) or [the demos of `Dropdown`](./dropdown#demos).
## API
### Props
| Name | Type | Default | Description |
| -- | -- | -- | -- |
| `label` | `string` | The descriptive label of the option. |
| `value` | `*` | The value of the option. |
| `disabled` | `boolean=` | Whether the option is disabled. |
| `hidden` | `boolean=` | `false` | Whether the option is hidden. |
### Slots
| Name | Description |
| -- | -- |
| `default` | The entire content area of the option. Displays the label and potential check icon by default.
| `label` | The content of the option label. Displays the `label` prop by default. |
### Events
The `click` event is triggered upon clicks without callback parameters.
### Icons
| Name | Description |
| -- | -- |
| `checked` | Checked state. |