摘要: // 首先是一个立即执行函数,执行时传入的参数是window和document (function flexible (window, document) { let docEl = document.documentElement // 返回文档的root元素 let dpr = window.d 阅读全文
posted @ 2025-08-03 00:32 OvOGhostFace 阅读(8) 评论(0) 推荐(0)
摘要: 其实现在的组件库支持浅色深色模式切换的很多,听说tailwindCss好像很方便,但是我还没用过,我用elemen-plus比较多,先记录一篇vueuse + elementplus 主题切换思路 首先 安装vueuse 和elementplus,这里就不做演示了 根目录创建composables, 阅读全文
posted @ 2025-08-03 00:20 OvOGhostFace 阅读(28) 评论(0) 推荐(0)