From 19f0e68b3fe3cf5244a2b936bfef4e0712bdf025 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 20 六月 2026 11:02:12 +0800
Subject: [PATCH] tooltip错位修改
---
src/main.js | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/src/main.js b/src/main.js
index abaac2e..4282195 100644
--- a/src/main.js
+++ b/src/main.js
@@ -43,15 +43,19 @@
// 瀵屾枃鏈粍浠�
import Editor from "@/components/Editor";
// 鏂囦欢涓婁紶缁勪欢
-import FileUpload from "@/components/FileUpload";
+import FileUpload from "@/components/AttachmentUpload/file";
// 鍥剧墖涓婁紶缁勪欢
-import ImageUpload from "@/components/ImageUpload";
+import ImageUpload from "@/components/AttachmentUpload/image";
// 鍥剧墖棰勮缁勪欢
-import ImagePreview from "@/components/ImagePreview";
+import ImagePreview from "@/components/AttachmentPreview/image";
+// 闄勪欢寮圭獥缁勪欢
+import FileListDialog from "@/components/Dialog/FileList.vue";
// 瀛楀吀鏍囩缁勪欢
import DictTag from "@/components/DictTag";
// 琛ㄦ牸缁勪欢
import PIMTable from "@/components/PIMTable/PIMTable.vue";
+// 椤甸潰澶撮儴缁勪欢
+import PageHeader from "@/components/PageHeader/index.vue";
import { getToken } from "@/utils/auth";
import {
@@ -90,9 +94,11 @@
app.component("FileUpload", FileUpload);
app.component("ImageUpload", ImageUpload);
app.component("ImagePreview", ImagePreview);
+app.component("FileListDialog", FileListDialog);
app.component("RightToolbar", RightToolbar);
app.component("Editor", Editor);
app.component("PIMTable", PIMTable);
+app.component("PageHeader", PageHeader);
app.use(router);
app.use(store);
@@ -109,5 +115,22 @@
size: Cookies.get("size") || "default",
});
app._context.components.ElDialog.props.closeOnClickModal.default = false;
+const ElTable = app._context.components.ElTable;
+if (ElTable?.props?.tooltipOptions) {
+ if (ElTable.props.tooltipOptions === Object) {
+ ElTable.props.tooltipOptions = {
+ type: Object,
+ default: () => ({
+ appendTo: "body",
+ }),
+ };
+ } else if (typeof ElTable.props.tooltipOptions === "object") {
+ ElTable.props.tooltipOptions.default =
+ ElTable.props.tooltipOptions.default ||
+ (() => ({
+ appendTo: "body",
+ }));
+ }
+}
app.mount("#app");
--
Gitblit v1.9.3