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