diff --git a/docs/components/center-tips.md b/docs/components/center-tips.md
new file mode 100644
index 0000000..889a4aa
--- /dev/null
+++ b/docs/components/center-tips.md
@@ -0,0 +1,19 @@
+# CenterTips 居中提示
+
+在容器中显示居中提示文案。
+
+## 基础用法
+
+:::preview 基础用法 || 默认文案为「没有更多数据」,也可以使用默认插槽
+
+demo-preview=../demos/center-tips/basic.vue
+
+:::
+
+## 何时使用
+
+默认插槽内容会替换默认文案,可用于放入自定义提示或操作。
+
+## API
+
+
diff --git a/docs/components/empty-tips.md b/docs/components/empty-tips.md
deleted file mode 100644
index 5fc8885..0000000
--- a/docs/components/empty-tips.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# EmptyTips 空状态
-
-列表或容器无数据时的居中占位文案。
-
-## 基础用法
-
-:::preview 基础用法 || 默认文案为「没有更多数据」,可整体替换
-
-demo-preview=../demos/empty-tips/basic.vue
-
-:::
-
-## 何时使用
-
-列表请求成功但没有数据、或筛选后结果为空时使用。它只负责一行居中文字,需要插图或操作按钮时请自行组合。
-
-## API
-
-
diff --git a/docs/components/index.md b/docs/components/index.md
index 8bae2b2..bbb07ce 100644
--- a/docs/components/index.md
+++ b/docs/components/index.md
@@ -8,7 +8,7 @@
| --- | --- |
| [Icon](/components/icon) | 内置 149 个 SVG 图标,支持缩放、着色与禁用态。 |
| [Loading](/components/loading) | 四段线动画的加载指示器,可延迟显示并支持内联或铺满两种形态。 |
-| [EmptyTips](/components/empty-tips) | 列表或容器无数据时的居中占位文案。 |
+| [CenterTips](/components/center-tips) | 在容器中显示居中提示文案。 |
| [Copyright](/components/copyright) | 统一页脚:版权声明、备案号与自定义文案。 |
## 数据展示
diff --git a/docs/demos/empty-tips/basic.vue b/docs/demos/center-tips/basic.vue
similarity index 61%
rename from docs/demos/empty-tips/basic.vue
rename to docs/demos/center-tips/basic.vue
index 8f0e631..eef0e3b 100644
--- a/docs/demos/empty-tips/basic.vue
+++ b/docs/demos/center-tips/basic.vue
@@ -1,16 +1,19 @@
-
+
-
+
+
+
+ 使用默认插槽自定义提示
diff --git a/src/components/empty-tips/index.ts b/src/components/empty-tips/index.ts
deleted file mode 100644
index 8d8458d..0000000
--- a/src/components/empty-tips/index.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import view from "./index.vue";
-import WebToolkit from "../../utils/WebToolkit";
-
-export const EmptyTips = WebToolkit.withInstall(view);
-export default EmptyTips;
diff --git a/src/components/index.ts b/src/components/index.ts
index efac085..5c6c960 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -5,7 +5,7 @@ import HoverPopup, { VPopupComponent } from "./v-popup";
import Captcha from "./captcha";
import Loading from "./loading";
import Copyright from "./copyright";
-import EmptyTips from "./empty-tips";
+import CenterTips, { EmptyTips } from "./center-tips";
import MarkdownView from "./markdown-view";
import BEFlowerFall from "./background-effect/flower-fall";
import MarkdownEditor from "./markdown-editor";
@@ -21,7 +21,7 @@ export default [
Captcha,
Loading,
Copyright,
- EmptyTips,
+ CenterTips,
MarkdownView,
BEFlowerFall,
MarkdownEditor,
@@ -39,6 +39,7 @@ export {
Captcha,
Loading,
Copyright,
+ CenterTips,
EmptyTips,
MarkdownView,
BEFlowerFall,
diff --git a/vite.config.ts b/vite.config.ts
index c45104a..a39b2f2 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -46,7 +46,13 @@ export default defineConfig({
include: [/\.vue$/, /\.md$/]
}),
VueSetupExtend(),
- dts(),
+ dts({
+ // package.json 的 types 与 exports 指向 dist/src/**。
+ // 不显式固定根目录时,插件会按 tsconfig include 推断公共根,
+ // include 一旦变化(例如移除 examples 目录)声明产物就会从
+ // dist/src/** 漂移到 dist/**,进而让所有引用本包类型的地方报错。
+ entryRoot: "."
+ }),
prismjsPlugin({
languages: [
"ini",