添加cl-draggable组件

This commit is contained in:
icssoa
2025-07-27 22:27:53 +08:00
parent 0c4fc52b9a
commit 9a49963a91
10 changed files with 885 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import { computed, ref } from "vue";
import uniTheme from "@/theme.json";
import { router } from "../router";
import { ctx } from "../ctx";
import { isNull } from "../utils";
// 主题类型定义,仅支持 light 和 dark
type Theme = "light" | "dark";
@@ -46,7 +47,7 @@ export function getStyle(key: string): string | null {
* @returns 颜色值
*/
export const getColor = (name: string) => {
if (ctx.color == null) {
if (isNull(ctx.color)) {
return "";
}