mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 13:42:50 +00:00
添加 unix 纯净版模式
This commit is contained in:
parent
83360678c2
commit
798ecc7304
1
packages/vite-plugin/dist/config.d.ts
vendored
1
packages/vite-plugin/dist/config.d.ts
vendored
@ -31,4 +31,5 @@ export declare const config: {
|
|||||||
rpxRatio: number;
|
rpxRatio: number;
|
||||||
darkTextClass: string;
|
darkTextClass: string;
|
||||||
};
|
};
|
||||||
|
clean: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
7
packages/vite-plugin/dist/index.js
vendored
7
packages/vite-plugin/dist/index.js
vendored
@ -56,6 +56,7 @@
|
|||||||
rpxRatio: 2,
|
rpxRatio: 2,
|
||||||
darkTextClass: "dark:text-surface-50",
|
darkTextClass: "dark:text-surface-50",
|
||||||
},
|
},
|
||||||
|
clean: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
// 根目录
|
// 根目录
|
||||||
@ -2407,6 +2408,12 @@ if (typeof window !== 'undefined') {
|
|||||||
config.type = options.type;
|
config.type = options.type;
|
||||||
// 请求地址
|
// 请求地址
|
||||||
config.reqUrl = getProxyTarget(options.proxy);
|
config.reqUrl = getProxyTarget(options.proxy);
|
||||||
|
// 是否纯净版
|
||||||
|
config.clean = options.clean;
|
||||||
|
if (config.clean) {
|
||||||
|
// 默认设置为测试地址
|
||||||
|
config.reqUrl = "https://show.cool-admin.com/api";
|
||||||
|
}
|
||||||
// 是否开启名称标签
|
// 是否开启名称标签
|
||||||
config.nameTag = options.nameTag ?? true;
|
config.nameTag = options.nameTag ?? true;
|
||||||
// svg
|
// svg
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-vue/vite-plugin",
|
"name": "@cool-vue/vite-plugin",
|
||||||
"version": "8.2.5",
|
"version": "8.2.6",
|
||||||
"description": "cool-admin、cool-uni builder",
|
"description": "cool-admin、cool-uni builder",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"main": "/dist/index.js",
|
"main": "/dist/index.js",
|
||||||
|
|||||||
@ -53,4 +53,5 @@ export const config = {
|
|||||||
rpxRatio: 2,
|
rpxRatio: 2,
|
||||||
darkTextClass: "dark:text-surface-50",
|
darkTextClass: "dark:text-surface-50",
|
||||||
},
|
},
|
||||||
|
clean: false,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -14,6 +14,14 @@ export function cool(options: Config.Options) {
|
|||||||
// 请求地址
|
// 请求地址
|
||||||
config.reqUrl = getProxyTarget(options.proxy);
|
config.reqUrl = getProxyTarget(options.proxy);
|
||||||
|
|
||||||
|
// 是否纯净版
|
||||||
|
config.clean = options.clean;
|
||||||
|
|
||||||
|
if (config.clean) {
|
||||||
|
// 默认设置为测试地址
|
||||||
|
config.reqUrl = "https://show.cool-admin.com/api";
|
||||||
|
}
|
||||||
|
|
||||||
// 是否开启名称标签
|
// 是否开启名称标签
|
||||||
config.nameTag = options.nameTag ?? true;
|
config.nameTag = options.nameTag ?? true;
|
||||||
|
|
||||||
|
|||||||
2
packages/vite-plugin/types/index.d.ts
vendored
2
packages/vite-plugin/types/index.d.ts
vendored
@ -119,5 +119,7 @@ export declare namespace Config {
|
|||||||
// 暗黑模式文本类名
|
// 暗黑模式文本类名
|
||||||
darkTextClass?: string;
|
darkTextClass?: string;
|
||||||
};
|
};
|
||||||
|
// 是否纯净版
|
||||||
|
clean: boolean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user