提交 7dce50cb 编写于 作者: V Vben

chore: typo

上级 d3d620f4
import { RouteMeta } from '/@/router/types'; import type { RouteMeta } from 'vue-router';
export interface RouteItem { export interface RouteItem {
path: string; path: string;
component: any; component: any;
......
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import PageLayout from '/@/layouts/page/index.vue'; import PageLayout from '/@/layouts/page/index.vue';
import { useDesign } from '/@/hooks/web/useDesign'; import { useDesign } from '/@/hooks/web/useDesign';
import { useRootSetting } from '/@/hooks/setting/useRootSetting'; import { useRootSetting } from '/@/hooks/setting/useRootSetting';
import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting'; import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting';
......
import type { InjectionKey, ComputedRef } from 'vue'; import type { InjectionKey, ComputedRef } from 'vue';
import { createContext, useContext } from '/@/hooks/core/useContext'; import { createContext, useContext } from '/@/hooks/core/useContext';
import {} from 'vue';
export interface ContentContextProps { export interface ContentContextProps {
contentHeight: ComputedRef<number>; contentHeight: ComputedRef<number>;
setPageHeight: (height: number) => Promise<void>; setPageHeight: (height: number) => Promise<void>;
......
...@@ -47,7 +47,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = { ...@@ -47,7 +47,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = {
export const ERROR_LOG_ROUTE: AppRouteRecordRaw = { export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
path: '/error-log', path: '/error-log',
name: 'errorLog', name: 'ErrorLog',
component: LAYOUT, component: LAYOUT,
meta: { meta: {
title: 'ErrorLog', title: 'ErrorLog',
...@@ -56,7 +56,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = { ...@@ -56,7 +56,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
children: [ children: [
{ {
path: 'list', path: 'list',
name: 'errorLogList', name: 'ErrorLogList',
component: () => import('/@/views/sys/error-log/index.vue'), component: () => import('/@/views/sys/error-log/index.vue'),
meta: { meta: {
title: t('routes.basic.errorLogList'), title: t('routes.basic.errorLogList'),
......
import type { RouteRecordRaw } from 'vue-router'; import type { RouteRecordRaw, RouteMeta } from 'vue-router';
import { RoleEnum } from '/@/enums/roleEnum'; import { RoleEnum } from '/@/enums/roleEnum';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export type Component<T extends any = any> = export type Component<T extends any = any> =
...@@ -8,49 +7,6 @@ export type Component<T extends any = any> = ...@@ -8,49 +7,6 @@ export type Component<T extends any = any> =
| (() => Promise<typeof import('*.vue')>) | (() => Promise<typeof import('*.vue')>)
| (() => Promise<T>); | (() => Promise<T>);
export interface RouteMeta {
// title
title: string;
// Whether to ignore permissions
ignoreAuth?: boolean;
// role info
roles?: RoleEnum[];
// Whether not to cache
ignoreKeepAlive?: boolean;
// Is it fixed on tab
affix?: boolean;
// icon on tab
icon?: string;
frameSrc?: string;
// current page transition
transitionName?: string;
// Whether the route has been dynamically added
hideBreadcrumb?: boolean;
// Hide submenu
hideChildrenInMenu?: boolean;
// Carrying parameters
carryParam?: boolean;
// Used internally to mark single-level menus
single?: boolean;
// Currently active menu
currentActiveMenu?: string;
// Never show in tab
hideTab?: boolean;
// Never show in menu
hideMenu?: boolean;
isLink?: boolean;
}
// @ts-ignore // @ts-ignore
export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> { export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
name: string; name: string;
...@@ -61,6 +17,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> { ...@@ -61,6 +17,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
props?: Recordable; props?: Recordable;
fullPath?: string; fullPath?: string;
} }
export interface MenuTag { export interface MenuTag {
type?: 'primary' | 'error' | 'warn' | 'success'; type?: 'primary' | 'error' | 'warn' | 'success';
content?: string; content?: string;
......
...@@ -11,6 +11,7 @@ declare type RefType<T> = T | null; ...@@ -11,6 +11,7 @@ declare type RefType<T> = T | null;
declare type LabelValueOptions = { declare type LabelValueOptions = {
label: string; label: string;
value: any; value: any;
[key: string]: string | number | boolean;
}[]; }[];
declare type EmitType = (event: string, ...args: any[]) => void; declare type EmitType = (event: string, ...args: any[]) => void;
......
export {};
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
// title
title: string;
// Whether to ignore permissions
ignoreAuth?: boolean;
// role info
roles?: RoleEnum[];
// Whether not to cache
ignoreKeepAlive?: boolean;
// Is it fixed on tab
affix?: boolean;
// icon on tab
icon?: string;
frameSrc?: string;
// current page transition
transitionName?: string;
// Whether the route has been dynamically added
hideBreadcrumb?: boolean;
// Hide submenu
hideChildrenInMenu?: boolean;
// Carrying parameters
carryParam?: boolean;
// Used internally to mark single-level menus
single?: boolean;
// Currently active menu
currentActiveMenu?: string;
// Never show in tab
hideTab?: boolean;
// Never show in menu
hideMenu?: boolean;
isLink?: boolean;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册