Files
admin 792131228a Migrate old admin modules and local crud deps
Port pages for data forms, score admin, student maintenance,
vacation records, menu routing, and workbench. Add team switching,
dynamic menu loading, viewport scaling, and bundled local fast-crud
packages.
2026-11-02 12:21:25 +08:00

23 lines
646 B
JavaScript

// 参考 F:\vue3\br_video\video_web\postcss.config.cjs
// 把源码里的 px 按 1920 设计稿换算成 vw,实现整体等比缩放(等价于老平台的 postcss-pxtorem + rem 方案)
import pxToViewport from "postcss-px-to-viewport-8-plugin"
export default {
plugins: [
pxToViewport({
unitToConvert: "px",
viewportWidth: 1920,
unitPrecision: 6,
propList: ["*"],
viewportUnit: "vw",
fontViewportUnit: "vw",
selectorBlackList: ["ignore-vw", "no-vw"],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: [/node_modules/],
landscape: false
})
]
}