Empty
Display empty data, network errors and permission states with the eight original illustrations and slots. Use the header menus to switch component theme and language.
Built-in types
暂无数据
网络连接失败
暂无消息
服务器异常
加载失败
暂无权限
呼叫失败,请重呼
暂无坐席
Built-in types
Image and size
暂无数据
Custom description
暂无数据
Image and size
Description and actions
Loading example…
Description and actions
Interactive example
暂无数据
On-demand usage
ts
import { createApp } from 'vue'
import NfEmpty from '@94ai-plus/nf-empty'
import '@94ai-plus/nf-theme-chalk/nf-empty.css'
const app = createApp(App)
app.use(NfEmpty)Supports standalone installation, named full-library exports and automatic resolver imports. Illustrations follow Chalk/OEM and default messages follow the locale. Explicit descriptions and slots remain application-controlled.
Props
| Prop | Description | Type / values | Default |
|---|---|---|---|
| image | Custom image URL overrides built-in illustrations | string | '' |
| type | Empty state type | data / internet / message / server / loading / authority / call / seat | data |
| border | Show a border | boolean | false |
| image-size | Image width in px; 0 keeps the default size | number | undefined |
| description | Custom message; empty values use the current locale | string | '' |
Slots
| Slot | Description |
|---|---|
| description | Custom description; overrides the description prop |
| default | Bottom actions |
Migration notes
Fixes the missing seat message, reversed OEM seat/server mapping and incorrect imageSize default. Use NfConfigProvider theme or data-nf-theme instead of window.$agentCustomization. SVGs are inlined and rendering is SSR-safe.
