mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 06:39:01 +08:00
style: 删除无用注释代码
This commit is contained in:
parent
3c2e120e34
commit
e14bd2084a
@ -40,23 +40,5 @@ async function toggleDark({ clientX, clientY }) {
|
|||||||
pseudoElement: `::view-transition-${isDark.value ? 'old' : 'new'}(root)`,
|
pseudoElement: `::view-transition-${isDark.value ? 'old' : 'new'}(root)`,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
// const maxRadius = Math.hypot(
|
|
||||||
// Math.max(clientX, window.innerWidth - clientX),
|
|
||||||
// Math.max(clientY, window.innerHeight - clientY),
|
|
||||||
// )
|
|
||||||
// const style = document.documentElement.style
|
|
||||||
// style.setProperty('--circle-x', `${clientX}px`)
|
|
||||||
// style.setProperty('--circle-y', `${clientY}px`)
|
|
||||||
// style.setProperty('--circle-r', `${maxRadius}px`)
|
|
||||||
|
|
||||||
// function handler() {
|
|
||||||
// appStore.toggleDark()
|
|
||||||
// useToggle(isDark)()
|
|
||||||
// }
|
|
||||||
|
|
||||||
// document.startViewTransition
|
|
||||||
// ? document.startViewTransition(handler)
|
|
||||||
// : handler()
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user