init
This commit is contained in:
2
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/code.d.ts
vendored
Normal file
2
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/code.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { Plugin } from "vite";
|
||||
export declare function codePlugin(): Plugin[];
|
9
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/color.d.ts
vendored
Normal file
9
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/color.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
type primaryColor = "emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink";
|
||||
type surfaceColor = "slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean";
|
||||
export declare function colorPalette(options: {
|
||||
primary: primaryColor;
|
||||
surface: surfaceColor;
|
||||
}): {
|
||||
[x: string]: string;
|
||||
};
|
||||
export {};
|
8
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/config.d.ts
vendored
Normal file
8
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/config.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 特殊字符映射表
|
||||
*/
|
||||
export declare const SAFE_CHAR_MAP: Record<string, string>;
|
||||
/**
|
||||
* 特殊字符映射表(国际化)
|
||||
*/
|
||||
export declare const SAFE_CHAR_MAP_LOCALE: Record<string, string>;
|
7
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/flatten.d.ts
vendored
Normal file
7
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/flatten.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* 将模板字符串扁平化处理,转换为 Service 类型定义
|
||||
* @param template - 包含 Service 类型定义的模板字符串
|
||||
* @returns 处理后的 Service 类型定义字符串
|
||||
* @throws {Error} 当模板中找不到 Service 类型定义时抛出错误
|
||||
*/
|
||||
export declare function flatten(template: string): string;
|
7
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/index.d.ts
vendored
Normal file
7
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/index.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Plugin } from "vite";
|
||||
/**
|
||||
* uniappX 入口,自动注入 Tailwind 类名转换插件
|
||||
* @param options 配置项
|
||||
* @returns Vite 插件数组
|
||||
*/
|
||||
export declare function uniappX(): Promise<Plugin<any>[]>;
|
9
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/tailwind.d.ts
vendored
Normal file
9
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/tailwind.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Plugin } from "vite";
|
||||
/**
|
||||
* 转换类名中的特殊字符为安全字符
|
||||
*/
|
||||
export declare function toSafeClass(className: string): string;
|
||||
/**
|
||||
* Tailwind 类名转换插件
|
||||
*/
|
||||
export declare function tailwindPlugin(): Plugin<any>[];
|
28
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/utils.d.ts
vendored
Normal file
28
cool-admin-vue/packages/vite-plugin/dist/uniapp-x/utils.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 获取动态类名
|
||||
*/
|
||||
export declare const getDynamicClassNames: (value: string) => string[];
|
||||
/**
|
||||
* 获取类名
|
||||
*/
|
||||
export declare function getClassNames(code: string): string[];
|
||||
/**
|
||||
* 获取 class 内容
|
||||
*/
|
||||
export declare function getClassContent(code: string): string[];
|
||||
/**
|
||||
* 获取节点
|
||||
*/
|
||||
export declare function getNodes(code: string): string[];
|
||||
/**
|
||||
* 添加 script 标签内容
|
||||
*/
|
||||
export declare function addScriptContent(code: string, content: string): string;
|
||||
/**
|
||||
* 判断是否为 Tailwind 类名
|
||||
*/
|
||||
export declare function isTailwindClass(className: string): boolean;
|
||||
/**
|
||||
* 将 interface 转换为 type
|
||||
*/
|
||||
export declare function interfaceToType(code: string): string;
|
Reference in New Issue
Block a user