From 2874b5218dccbc73625252b66a859860042e4197 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sat, 16 Apr 2022 14:52:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9F=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/enums/menuEnum.ts | 8 ++++---- kicc-ui/types/axios.d.ts | 2 +- kicc-ui/types/config.d.ts | 2 +- kicc-ui/types/global.d.ts | 14 +++----------- kicc-ui/types/store.d.ts | 2 +- kicc-ui/types/vue-router.d.ts | 1 - 6 files changed, 10 insertions(+), 19 deletions(-) diff --git a/kicc-ui/src/enums/menuEnum.ts b/kicc-ui/src/enums/menuEnum.ts index ea69c77e..e1a8d891 100644 --- a/kicc-ui/src/enums/menuEnum.ts +++ b/kicc-ui/src/enums/menuEnum.ts @@ -9,13 +9,13 @@ * 菜单类型 */ export enum MenuTypeEnum { - // left menu + // 左侧菜单模式 SIDEBAR = 'sidebar', - + // 左侧菜单混合模式 MIX_SIDEBAR = 'mix-sidebar', - // mixin menu + // 顶部菜单混合模式 MIX = 'mix', - // top menu + // 顶部菜单模式 TOP_MENU = 'top-menu', } diff --git a/kicc-ui/types/axios.d.ts b/kicc-ui/types/axios.d.ts index 805da971..43f2cb3a 100644 --- a/kicc-ui/types/axios.d.ts +++ b/kicc-ui/types/axios.d.ts @@ -35,7 +35,7 @@ export interface Data { data: T; } -// 多部分表单数据:上传文件 +/** 多部分表单数据:上传文件 */ export interface UploadFileParams { // 其他参数 data?: Recordable; diff --git a/kicc-ui/types/config.d.ts b/kicc-ui/types/config.d.ts index ebc7c353..7158666b 100644 --- a/kicc-ui/types/config.d.ts +++ b/kicc-ui/types/config.d.ts @@ -100,7 +100,6 @@ export interface ProjectConfig { colorWeak: boolean; // 主题颜色 themeColor: string; - // 主界面全屏显示,菜单不显示,顶部 fullContent: boolean; // 内容宽度 @@ -153,6 +152,7 @@ export interface GlobConfig { // clientSecret clientSecret: string; } + export interface GlobEnvConfig { // 网站标题 VITE_GLOB_APP_TITLE: string; diff --git a/kicc-ui/types/global.d.ts b/kicc-ui/types/global.d.ts index 2e224656..50ec20b0 100644 --- a/kicc-ui/types/global.d.ts +++ b/kicc-ui/types/global.d.ts @@ -5,17 +5,11 @@ * @create: 2022/4/10 */ -import type { - ComponentRenderProxy, - VNode, - VNodeChild, - ComponentPublicInstance, - FunctionalComponent, - PropType as VuePropType, -} from 'vue'; +import type { ComponentRenderProxy, VNode, VNodeChild, ComponentPublicInstance, FunctionalComponent, PropType as VuePropType } from 'vue'; declare global { - // vue + + /** vue-type相关 */ declare type PropType = VuePropType; declare type VueNode = VNodeChild | JSX.Element; @@ -58,9 +52,7 @@ declare global { declare function parseInt(s: string | number, radix?: number): number; namespace JSX { - // tslint:disable no-empty-interface type Element = VNode; - // tslint:disable no-empty-interface type ElementClass = ComponentRenderProxy; interface ElementAttributesProperty { $props: any; diff --git a/kicc-ui/types/store.d.ts b/kicc-ui/types/store.d.ts index aba7272a..63bf7058 100644 --- a/kicc-ui/types/store.d.ts +++ b/kicc-ui/types/store.d.ts @@ -7,7 +7,7 @@ import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum'; -// 锁屏信息 +/** 锁屏信息 */ export interface LockInfo { // 要求输入密码 pwd?: string | undefined; diff --git a/kicc-ui/types/vue-router.d.ts b/kicc-ui/types/vue-router.d.ts index b8623ff7..f3e9def6 100644 --- a/kicc-ui/types/vue-router.d.ts +++ b/kicc-ui/types/vue-router.d.ts @@ -35,7 +35,6 @@ declare module 'vue-router' { hideTab?: boolean; // 从不显示在菜单中 hideMenu?: boolean; - isLink?: boolean; // 只为构建菜单 ignoreRoute?: boolean; // 为孩子隐藏路径