2021-01-07 13:52:31 +08:00
|
|
|
## Empty
|
|
|
|
|
|
|
|
Placeholder hints for empty states.
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Basic usage
|
2021-01-07 13:52:31 +08:00
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
empty/basic-usage
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2021-01-07 13:52:31 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Custom image
|
2021-01-07 13:52:31 +08:00
|
|
|
|
|
|
|
Use `image` prop to set image URL.
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
empty/custom-image
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2021-01-07 13:52:31 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Image size
|
2021-01-07 13:52:31 +08:00
|
|
|
|
|
|
|
Use `image-size` prop to control image size.
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
empty/image-size
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2021-01-07 13:52:31 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Bottom content
|
2021-01-07 13:52:31 +08:00
|
|
|
|
|
|
|
Use the default slot to insert content at the bottom.
|
|
|
|
|
|
|
|
:::demo
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
empty/bottom-content
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2021-01-07 13:52:31 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Empty Attributes
|
2021-09-04 19:29:28 +08:00
|
|
|
|
|
|
|
| Attribute | Description | Type | Acceptable Value | Default |
|
|
|
|
| ----------- | ------------------ | ------ | ---------------- | ------- |
|
|
|
|
| image | image URL | string | — | — |
|
|
|
|
| image-size | image size (width) | number | — | — |
|
|
|
|
| description | description | string | — | — |
|
2021-01-07 13:52:31 +08:00
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Empty Slots
|
2021-01-07 13:52:31 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
| Name | Description |
|
|
|
|
| ----------- | --------------------- |
|
|
|
|
| default | Custom bottom content |
|
|
|
|
| image | Custom image |
|
|
|
|
| description | Custom description |
|