前端代码

This commit is contained in:
2026-08-13 22:35:13 +08:00
parent 9044bafdff
commit f1a0b17bb0
412 changed files with 36769 additions and 6617 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* 通过 <html> class 切换卡片模式。
* (菜单风格已由 <g-menu> 的语义 token 驱动,不再需要 kra-menu--* 类。)
* @param {{ settings: object }} context
*/
export const applyStructureTheme = ({ settings }) => {
const html = document.documentElement
html.classList.remove('kra-card--border', 'kra-card--shadow')
html.classList.add(`kra-card--${settings.card.mode}`)
}