mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
chore: 升级至vite7,更新依赖,相关兼容处理
This commit is contained in:
@@ -4,7 +4,7 @@ import intro from "intro.js";
|
||||
import "intro.js/minified/introjs.min.css";
|
||||
|
||||
type GuideStep = {
|
||||
element: string | HTMLElement;
|
||||
element: HTMLElement;
|
||||
title: string;
|
||||
intro: string;
|
||||
position: "left" | "right" | "top" | "bottom";
|
||||
@@ -16,47 +16,43 @@ defineOptions({
|
||||
|
||||
const GUIDE_STEPS = [
|
||||
{
|
||||
element: document.querySelector(".sidebar-logo-container") as
|
||||
| string
|
||||
| HTMLElement,
|
||||
element: document.querySelector(".sidebar-logo-container"),
|
||||
title: "项目名称和Logo",
|
||||
intro: "您可以在这里设置项目名称和Logo",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector("#header-search") as string | HTMLElement,
|
||||
element: document.querySelector("#header-search"),
|
||||
title: "搜索菜单",
|
||||
intro: "您可以在这里搜索想要查看的菜单",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector("#header-translation") as
|
||||
| string
|
||||
| HTMLElement,
|
||||
element: document.querySelector("#header-translation"),
|
||||
title: "国际化",
|
||||
intro: "您可以在这里进行语言切换",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector("#full-screen") as string | HTMLElement,
|
||||
element: document.querySelector("#full-screen"),
|
||||
title: "全屏",
|
||||
intro: "您可以在这里进行全屏切换",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector("#header-notice") as string | HTMLElement,
|
||||
element: document.querySelector("#header-notice"),
|
||||
title: "消息通知",
|
||||
intro: "您可以在这里查看管理员发送的消息",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector(".set-icon") as string | HTMLElement,
|
||||
element: document.querySelector(".set-icon"),
|
||||
title: "系统配置",
|
||||
intro: "您可以在这里查看系统配置",
|
||||
position: "left"
|
||||
},
|
||||
{
|
||||
element: document.querySelector(".tags-view") as string | HTMLElement,
|
||||
element: document.querySelector(".tags-view"),
|
||||
title: "多标签页",
|
||||
intro: "这里是您访问过的页面的历史",
|
||||
position: "bottom"
|
||||
|
||||
Reference in New Issue
Block a user