first commit

This commit is contained in:
zjc
2024-12-12 10:30:11 +08:00
commit 81d7983cb6
37 changed files with 5240 additions and 0 deletions

8
src/utils/dataUtil.js Normal file
View File

@@ -0,0 +1,8 @@
/* Echarts图表尺寸自适应 */
export const fitChartSize = (size, width = 3840) => {
let clientWidth =
window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
if (!clientWidth) return size
let scale = clientWidth / width
return Number((size * scale).toFixed(3))
}