移动目录

This commit is contained in:
CrescentLeaf
2025-11-23 13:27:15 +08:00
parent f13623f4fc
commit 1cb8ac3fff
479 changed files with 49 additions and 49 deletions

10
mdui_patched/functions/getTheme.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
import type { Theme } from '../internal/theme.js';
import type { JQ } from '@mdui/jq/shared/core.js';
/**
* 获取在指定元素上设置的主题。
* 未传入参数时,默认获取 `<html>` 元素上的主题。
* 元素上未设置过主题时,默认返回 `light`。
* @param target 获取该元素上的主题。可以是 CSS 选择器、DOM 元素、或 JQ 对象。默认为 `<html>` 元素
* @return Theme 当前主题,值为 `light`、`dark` 或 `auto`
*/
export declare const getTheme: (target?: string | HTMLElement | JQ<HTMLElement>) => Theme;