移动目录
This commit is contained in:
8
mdui_patched/functions/removeColorScheme.js
Normal file
8
mdui_patched/functions/removeColorScheme.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { remove } from '../internal/colorScheme.js';
|
||||
/**
|
||||
* 移除指定元素上的配色方案
|
||||
* @param target 要移除配色方案的元素。可以是 CSS 选择器、DOM 元素、或 JQ 对象。默认为 `<html>` 元素
|
||||
*/
|
||||
export const removeColorScheme = (target = document.documentElement) => {
|
||||
remove(target);
|
||||
};
|
||||
Reference in New Issue
Block a user