feat: update docs

This commit is contained in:
Justineo
2020-09-22 11:06:13 +08:00
parent d64014f3b4
commit 468f6995c3
32 changed files with 1032 additions and 548 deletions

View File

@@ -19,6 +19,7 @@ Available size variant for the `ui` prop: `s`/`m`.
| `value` | `Array` | `[]` | [^value] |
| `disabled` | `boolean=` | `false` | Whether the checkbox group is disabled. |
| `readonly` | `boolean=` | `false` | Whether the checkbox group is read-only. |
| `empty-value` | `*` | - | The value to be selected when all selected values are deselected. Used when `exclusive` items are present. |
^^^ui
Style variants.
@@ -31,7 +32,7 @@ Style variants.
^^^
^^^items
The datasource of items with the item type being `{label, value, disabled, ...}`.
The datasource of items with the item type being `{label, value, disabled, exclusive ...}`.
+++Properties
| Name | Type | Description |
@@ -39,6 +40,7 @@ The datasource of items with the item type being `{label, value, disabled, ...}`
| `label` | `string` | The descriptive label of the item. |
| `value` | `*` | The value of the item. |
| `disabled` | `boolean=` | Whether the item is disabled. |
| `exclusive` | `boolean=` | Whether the item is exclusive. |
+++
^^^