mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-02 18:08:40 +08:00
chore: typo
This commit is contained in:
parent
d3d620f4fc
commit
7dce50cb1f
@ -1,4 +1,4 @@
|
|||||||
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 @@
|
|||||||
</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';
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
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 = {
|
|||||||
|
|
||||||
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 = {
|
|||||||
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'),
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
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> =
|
|||||||
| (() => 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'> {
|
|||||||
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;
|
||||||
|
1
types/index.d.ts
vendored
1
types/index.d.ts
vendored
@ -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;
|
||||||
|
0
types/store.ts → types/store.d.ts
vendored
0
types/store.ts → types/store.d.ts
vendored
0
types/utils.ts → types/utils.d.ts
vendored
0
types/utils.ts → types/utils.d.ts
vendored
36
types/vue-router.d.ts
vendored
Normal file
36
types/vue-router.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user