Initial commit: X-Server Mobile enterprise tool system
- Frontend: React 18 + TypeScript + Vite + Ant Design Mobile - Backend: PHP 8.5 + Webman 2.x + MySQL + Redis - i18n support: Chinese, English, Russian, Spanish, French - Approval workflow engine - Docker development environment - Feishu integration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// 动态计算 rem 基准,适应桌面浏览器和真实移动设备
|
||||
const setRootValue = () => {
|
||||
// 桌面浏览器模拟移动端时,使用较小的基准
|
||||
// 真实移动设备上,使用标准基准
|
||||
return 16
|
||||
}
|
||||
|
||||
export default {
|
||||
plugins: {
|
||||
'postcss-pxtorem': {
|
||||
rootValue: setRootValue(),
|
||||
propList: ['*'],
|
||||
selectorBlackList: ['.no-rem'],
|
||||
replace: true,
|
||||
mediaQuery: false,
|
||||
minPixelValue: 1,
|
||||
exclude: /node_modules/i,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user