初始化

This commit is contained in:
砂糖
2025-11-08 10:38:36 +08:00
commit 3beeec7296
1626 changed files with 198488 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
export default function updateTheme (data) {
const querySelectorName = data === false ? false : !data ? '.el-button--primary' : data
if (querySelectorName) {
window.requestAnimationFrame(() => {
const primaryButton = document.querySelector(querySelectorName)
if (primaryButton) {
const backgroundColor = window.getComputedStyle(primaryButton).getPropertyValue('background-color')
const element = document.querySelector('.bs-body-theme-wrap')
element.style.setProperty('--bs-el-color-primary', backgroundColor)
}
})
}
}