For vue2 projects, use @94ai/common-ui
LLMs.md

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 ​

PropDescriptionType / valuesDefault
imageCustom image URL overrides built-in illustrationsstring''
typeEmpty state typedata / internet / message / server / loading / authority / call / seatdata
borderShow a borderbooleanfalse
image-sizeImage width in px; 0 keeps the default sizenumberundefined
descriptionCustom message; empty values use the current localestring''

Slots ​

SlotDescription
descriptionCustom description; overrides the description prop
defaultBottom 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.