refactor: ♻️ 完善TS的类型定义,更高的类型安全

This commit is contained in:
超凡
2025-04-17 23:09:42 +08:00
parent 5f886825bb
commit c3aefbb2df
3 changed files with 44 additions and 90 deletions

View File

@@ -46,7 +46,7 @@ export default defineConfig({
primary_dark: "var(--el-color-primary-light-5)",
},
breakpoints: Object.fromEntries(
[640, 768, 1024, 1280, 1536, 1920, 2048].map((size, index) => [
[640, 768, 1024, 1280, 1536, 1920, 2560].map((size, index) => [
["sm", "md", "lg", "xl", "2xl", "3xl", "4xl"][index],
`${size}px`,
])