/*! For license information please see 6138.f6675fec.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([["6138"],{7052:function(s,n,a){"use strict";a.r(n);var t=a("80681");let e=["innerHTML"];n.default={setup:()=>({html:""}),render:()=>((0,t.wg)(),(0,t.iD)("div",{class:"van-doc-markdown-body",innerHTML:'
Occupation reminder when empty.
\nRegister component globally via app.use, refer to Component Registration for more registration ways.
import { createApp } from 'vue';\nimport { Empty } from 'vant';\n\nconst app = createApp();\napp.use(Empty);\n\n<van-empty description="Description" />\n\nUse the image prop to display different placeholder images.
\n<!-- Error -->\n<van-empty image="error" description="Description" />\n<!-- Network -->\n<van-empty image="network" description="Description" />\n<!-- Search -->\n<van-empty image="search" description="Description" />\n\nUsing image-size prop to custom the size of image.
<!-- The default unit is px -->\n<van-empty image-size="100" description="Description" />\n<!-- Support other units, such as rem, vh, vw -->\n<van-empty image-size="10rem" description="Description" />\n\nYou can set the width and height separately.
\n<van-empty :image-size="[60, 40]" description="Description" />\n\n<van-empty\n image="https://fastly.jsdelivr.net/npm/@vant/assets/leaf.jpeg"\n image-size="80"\n description="Description"\n/>\n\n<van-empty description="Description">\n <van-button round type="primary" class="bottom-button">Button</van-button>\n</van-empty>\n\n<style>\n .bottom-button {\n width: 160px;\n height: 40px;\n }\n</style>\n\n| Attribute | \nDescription | \nType | \nDefault | \n
|---|---|---|---|
| image | \nImage type, can be set to error network search or image URL | \nstring | \ndefault | \n
| image-size | \nImage size | \nnumber | string | Array | \n- | \n
| description | \nDescription | \nstring | \n- | \n
| Name | \nDescription | \n
|---|---|
| default | \nCustom bottom content | \n
| image | \nCustom image | \n
| description | \nCustom description | \n
The component exports the following type definitions:
\nimport type { EmptyProps } from 'vant';\n\nThe component provides the following CSS variables, which can be used to customize styles. Please refer to ConfigProvider component.
\n| Name | \nDefault Value | \nDescription | \n
|---|---|---|
| --van-empty-padding | \nvar(--van-padding-xl) 0 | \n- | \n
| --van-empty-image-size | \n160px | \n- | \n
| --van-empty-description-margin-top | \nvar(--van-padding-md) | \n- | \n
| --van-empty-description-padding | \n0 60px | \n- | \n
| --van-empty-description-color | \nvar(--van-text-color-2) | \n- | \n
| --van-empty-description-font-size | \nvar(--van-font-size-md) | \n- | \n
| --van-empty-description-line-height | \nvar(--van-line-height-md) | \n- | \n
| --van-empty-bottom-margin-top | \n24px | \n- | \n