mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-10 20:02:54 +00:00
Compare commits
2 Commits
732000aec4
...
9e4981c2d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e4981c2d4 | ||
|
|
fd60485179 |
9
packages/vite-plugin/dist/index.js
vendored
9
packages/vite-plugin/dist/index.js
vendored
@ -2012,8 +2012,13 @@ if (typeof window !== 'undefined') {
|
||||
return {
|
||||
// 处理选择器规则
|
||||
Rule(rule) {
|
||||
if (rule.selector.includes("uni-") ||
|
||||
[".button-hover"].some((e) => rule.selector.includes(e))) {
|
||||
if ([
|
||||
".button-hover",
|
||||
":deep(",
|
||||
"&::",
|
||||
"uni-",
|
||||
".uni-",
|
||||
].some((e) => rule.selector.includes(e))) {
|
||||
return;
|
||||
}
|
||||
// 转换选择器为安全的类名格式
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-vue/vite-plugin",
|
||||
"version": "8.2.14",
|
||||
"version": "8.2.18",
|
||||
"description": "cool-admin、cool-uni builder",
|
||||
"types": "./dist/index.d.ts",
|
||||
"main": "/dist/index.js",
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
import type { Plugin } from "vite";
|
||||
import { SAFE_CHAR_MAP_LOCALE } from "./config";
|
||||
import { createCtx } from "../ctx";
|
||||
import { compareVersion, readFile, rootDir } from "../utils";
|
||||
import { createEps } from "../eps";
|
||||
import { uniq } from "lodash";
|
||||
import { readFile, rootDir } from "../utils";
|
||||
|
||||
// 获取 tailwind.config.ts 中的颜色
|
||||
function getTailwindColor() {
|
||||
|
||||
@ -1,18 +1,5 @@
|
||||
import { firstUpperCase } from "../utils";
|
||||
|
||||
/**
|
||||
* 解析结果的接口定义
|
||||
* @interface ParseResult
|
||||
*/
|
||||
interface ParseResult {
|
||||
/** 解析出的键名 */
|
||||
key: string;
|
||||
/** 解析出的内容 */
|
||||
content: string;
|
||||
/** 层级 */
|
||||
level: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将模板字符串扁平化处理,转换为 Service 类型定义
|
||||
* @param template - 包含 Service 类型定义的模板字符串
|
||||
|
||||
@ -98,10 +98,13 @@ function postcssPlugin(): Plugin {
|
||||
// 处理选择器规则
|
||||
Rule(rule: any) {
|
||||
if (
|
||||
rule.selector.includes("uni-") ||
|
||||
[".button-hover"].some((e) =>
|
||||
rule.selector.includes(e),
|
||||
)
|
||||
[
|
||||
".button-hover",
|
||||
":deep(",
|
||||
"&::",
|
||||
"uni-",
|
||||
".uni-",
|
||||
].some((e) => rule.selector.includes(e))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user