Empty ​

Placeholder hints for empty states.

Basic usage ​

description

Custom image ​

Use image prop to set image URL.

暂无数据

Image size ​

Use image-size prop to control image size.

暂无数据

Bottom content ​

Use the default slot to insert content at the bottom.

暂无数据

Custom styles ​

Now you can set custom style for empty component. Use css/scss language to change the global or local color. We set some global color variables: --elp-empty-fill-color-0, --elp-empty-fill-color-1, --elp-empty-fill-color-2, ......, --elp-empty-fill-color-9. You can use like: :root { --elp-empty-fill-color-0: red; --elp-empty-fill-color-1: blue; }. But usually, if you want to change style, you need to change all color, because these colors are a combination.

Default Variables ​

VariableColor
--elp-empty-fill-color-0var(--elp-color-white)
--elp-empty-fill-color-1#fcfcfd
--elp-empty-fill-color-2#f8f9fb
--elp-empty-fill-color-3#f7f8fc
--elp-empty-fill-color-4#eeeff3
--elp-empty-fill-color-5#edeef2
--elp-empty-fill-color-6#e9ebef
--elp-empty-fill-color-7#e5e7e9
--elp-empty-fill-color-8#e0e3e9
--elp-empty-fill-color-9#d5d7de

API ​

Attributes ​

NameDescriptionTypeDefault
imageimage URL of emptystring''
image-sizeimage size (width) of emptynumber—
descriptiondescription of emptystring''

Slots ​

NameDescription
defaultcontent as bottom content
imagecontent as image
descriptioncontent as description

Source ​

Component • Style • Docs

Contributors ​