This commit is contained in:
dap
2024-09-15 09:16:26 +08:00
28 changed files with 127 additions and 78 deletions

View File

@@ -14,6 +14,7 @@ function generatorColorVariables(colorItems: ColorItem[]) {
colorItems.forEach(({ alias, color, name }) => {
if (color) {
const colorsMap = getColors(new TinyColor(color).toHexString());
let mainColor = colorsMap['500'];
const colorKeys = Object.keys(colorsMap);

View File

@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { openWindow } from '../window'; // 假设你的函数在 'openWindow' 文件中
import { openWindow } from '../window';
describe('openWindow', () => {
// 保存原始的 window.open 函数