mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 引入soybean-admin-tab、去除vite-plugin-svg-icons,用unplugin-icons实现自定义svg的iconify写法、代码优化
This commit is contained in:
10
src/typings/common/env.d.ts
vendored
10
src/typings/common/env.d.ts
vendored
@ -9,17 +9,19 @@ declare module '*.vue' {
|
||||
|
||||
interface ImportMetaEnv {
|
||||
/** 项目基本地址 */
|
||||
readonly VITE_APP_BASE_URL: string;
|
||||
readonly VITE_BASE_URL: string;
|
||||
/** 项目名称 */
|
||||
readonly VITE_APP_NAME: string;
|
||||
/** 项目标题 */
|
||||
readonly VITE_APP_TITLE: string;
|
||||
/** 项目描述 */
|
||||
readonly VITE_APP_DESC: string;
|
||||
/** 是否开启打包文件大小结果分析 */
|
||||
readonly VITE_VISUALIZER: 'true' | 'false';
|
||||
/** 网路请求环境类型 */
|
||||
readonly VITE_HTTP_ENV: Service.HttpEnv;
|
||||
/** 是否是部署vercel */
|
||||
readonly VITE_IS_VERCEL?: '1';
|
||||
readonly VITE_HTTP_ENV?: Service.HttpEnv;
|
||||
/** hash路由模式 */
|
||||
readonly VITE_HASH_ROUTE?: 'true' | 'false';
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
15
src/typings/common/util.d.ts
vendored
15
src/typings/common/util.d.ts
vendored
@ -1,15 +0,0 @@
|
||||
declare namespace Util {
|
||||
/** convert a union to an intersection: X | Y | Z ==> X & Y & Z */
|
||||
type UnionToIntersection<T> = (T extends any ? (args: T) => any : never) extends (args: infer R) => any ? R : never;
|
||||
|
||||
/** returns true if the type is a union otherwise false */
|
||||
type IsUnion<T> = [T] extends [UnionToIntersection<T>] ? false : true;
|
||||
|
||||
type LastInUnion<T> = UnionToIntersection<T extends any ? (arg: T) => any : never> extends (arg: infer R) => any
|
||||
? R
|
||||
: never;
|
||||
|
||||
type UnionToTuple<T, U = T> = [T] extends [never]
|
||||
? []
|
||||
: [LastInUnion<T>, ...UnionToTuple<Exclude<U, LastInUnion<T>>>];
|
||||
}
|
Reference in New Issue
Block a user