mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
8fdf558b04
- Remove `type` field. - Add `title` field
63 lines
1.0 KiB
Markdown
63 lines
1.0 KiB
Markdown
---
|
|
title: Empty
|
|
lang: en-US
|
|
---
|
|
|
|
# Empty
|
|
|
|
Placeholder hints for empty states.
|
|
|
|
## Basic usage
|
|
|
|
:::demo
|
|
|
|
empty/basic-usage
|
|
|
|
:::
|
|
|
|
## Custom image
|
|
|
|
Use `image` prop to set image URL.
|
|
|
|
:::demo
|
|
|
|
empty/custom-image
|
|
|
|
:::
|
|
|
|
## Image size
|
|
|
|
Use `image-size` prop to control image size.
|
|
|
|
:::demo
|
|
|
|
empty/image-size
|
|
|
|
:::
|
|
|
|
## Bottom content
|
|
|
|
Use the default slot to insert content at the bottom.
|
|
|
|
:::demo
|
|
|
|
empty/bottom-content
|
|
|
|
:::
|
|
|
|
## Empty Attributes
|
|
|
|
| Attribute | Description | Type | Acceptable Value | Default |
|
|
| ----------- | ------------------ | ------ | ---------------- | ------- |
|
|
| image | image URL | string | — | — |
|
|
| image-size | image size (width) | number | — | — |
|
|
| description | description | string | — | — |
|
|
|
|
## Empty Slots
|
|
|
|
| Name | Description |
|
|
| ----------- | --------------------- |
|
|
| default | Custom bottom content |
|
|
| image | Custom image |
|
|
| description | Custom description |
|