diff --git a/src/components/base/button/Button.vue b/src/components/base/button/Button.vue index 4f185961..9fe88ec3 100644 --- a/src/components/base/button/Button.vue +++ b/src/components/base/button/Button.vue @@ -85,6 +85,7 @@ function handleClick() { &:disabled { @apply opacity-50; + @apply cursor-not-allowed; } } diff --git a/src/components/base/button/interface.ts b/src/components/base/button/interface.ts index e82be37c..38605fea 100644 --- a/src/components/base/button/interface.ts +++ b/src/components/base/button/interface.ts @@ -1,2 +1,2 @@ -export type Type = "default" | "primary" | "secondary" | "error"; +export type Type = "default" | "primary" | "secondary" | "danger"; export type Size = "lg" | "md" | "sm" | "xs"; diff --git a/src/components/base/input/Input.vue b/src/components/base/input/Input.vue index 8a6ac098..8e49af25 100644 --- a/src/components/base/input/Input.vue +++ b/src/components/base/input/Input.vue @@ -1,17 +1,123 @@ + + diff --git a/src/components/base/input/interface.ts b/src/components/base/input/interface.ts new file mode 100644 index 00000000..b14de4e3 --- /dev/null +++ b/src/components/base/input/interface.ts @@ -0,0 +1 @@ +export type Size = "lg" | "md" | "sm" | "xs"; diff --git a/src/core/icons.ts b/src/core/icons.ts index 841b179e..68e9524f 100644 --- a/src/core/icons.ts +++ b/src/core/icons.ts @@ -8,5 +8,31 @@ import IconBookRead from "~icons/ri/book-read-line"; import IconPages from "~icons/ri/pages-line"; // @ts-ignore import IconMessage from "~icons/ri/message-3-line"; - -export { IconDashboard, IconArrowRight, IconBookRead, IconPages, IconMessage }; +// @ts-ignore +import IconPalette from "~icons/ri/palette-line"; +// @ts-ignore +import IconListSettings from "~icons/ri/list-settings-line"; +// @ts-ignore +import IconMagic from "~icons/ri/magic-line"; +// @ts-ignore +import IconUserSettings from "~icons/ri/user-settings-line"; +// @ts-ignore +import IconSettings from "~icons/ri/settings-4-line"; +// @ts-ignore +import IconPlug from "~icons/ri/plug-2-line"; +// @ts-ignore +import IconEye from "~icons/ri/eye-line"; +export { + IconDashboard, + IconArrowRight, + IconBookRead, + IconPages, + IconMessage, + IconPalette, + IconListSettings, + IconMagic, + IconUserSettings, + IconSettings, + IconPlug, + IconEye, +}; diff --git a/src/router/menus.config.ts b/src/router/menus.config.ts index 9b4f734f..75fef32e 100644 --- a/src/router/menus.config.ts +++ b/src/router/menus.config.ts @@ -1,8 +1,15 @@ import { - IconDashboard, IconBookRead, - IconPages, + IconDashboard, + IconEye, + IconListSettings, + IconMagic, IconMessage, + IconPages, + IconPalette, + IconPlug, + IconSettings, + IconUserSettings, } from "@/core/icons"; import type { Component } from "vue"; @@ -60,17 +67,17 @@ export const menus: MenuGroupType[] = [ { name: "主题", path: "/themes", - icon: IconDashboard, + icon: IconPalette, }, { name: "菜单", path: "/menus", - icon: IconDashboard, + icon: IconListSettings, }, { name: "可视化", path: "/visual", - icon: IconDashboard, + icon: IconEye, }, ], }, @@ -80,17 +87,22 @@ export const menus: MenuGroupType[] = [ { name: "插件", path: "/plugins", - icon: IconDashboard, + icon: IconPlug, }, { name: "用户", path: "/users", - icon: IconDashboard, + icon: IconUserSettings, }, { name: "设置", path: "/settings", - icon: IconDashboard, + icon: IconSettings, + }, + { + name: "组件", + path: "/components", + icon: IconMagic, }, ], }, diff --git a/src/router/routes.config.ts b/src/router/routes.config.ts index 36b05b44..47220517 100644 --- a/src/router/routes.config.ts +++ b/src/router/routes.config.ts @@ -73,6 +73,11 @@ export const routes: Array = [ name: "Settings", component: () => import("../views/AboutView.vue"), }, + { + path: "/components", + name: "Components", + component: () => import("../views/ViewComponents.vue"), + }, ]; export default routes; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index ff1ec75b..4de87555 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,6 +1,5 @@