Skip to content

Empty State

Unified empty state visual language component. Supports 5 built-in types + custom mode.

Built-in Types

TypeDefault TitleDefault DescriptionScene
defaultNo data-General empty data
searchNo results foundTry modifying search conditionsSearch no results
networkNetwork errorCheck network connectionOffline
errorPage errorPlease try again laterSystem error
404Page not foundThe page you visited does not exist404

Basic Usage

vue
<template>
  <see-empty type="default" />
</template>

Search No Results

vue
<template>
  <see-empty type="search" />
</template>

With Action Button

vue
<template>
  <see-empty type="network" :is-show-action="true" action-text="Retry" @on-action="onRetry" />
</template>

Custom Title and Description

vue
<template>
  <see-empty title="Cart is empty" description="Go pick your favorite items" />
</template>

Props

PropertyTypeDefaultDescription
type'default' | 'search' | 'network' | 'error' | '404' | 'custom''default'Empty state type
imagestring''Custom image
titlestring''Title text
descriptionstring''Description text
actionTextstring''Action button text
isShowActionbooleanfalseWhether to show action button
imageSizestring'320rpx'Image size

Events

EventParametersDescription
onAction-Action button click

Slots

Slot NameDescription
imageCustom image
actionCustom action button

Liao ICP No. 2025070134