Open qlandroid opened 1 year ago
package.json "dumi": "^2.1.24", "dumi-theme-antd-style": "^0.25.1", "dumi-theme-mobile": "^2.0.0", .dumirc.ts themeConfig: { name: '@qt-core/mobile', hd: { rules: [ { maxWidth: 375, mode: 'vw', options: [100, 750] }, { minWidth: 376, maxWidth: 750, mode: 'vw', options: [100, 1500] }, ], deviceWidth: 375, }, }, 这些都配置过了。没有达到预期移动端样式。
"dumi": "^2.1.24", "dumi-theme-antd-style": "^0.25.1", "dumi-theme-mobile": "^2.0.0",
themeConfig: { name: '@qt-core/mobile', hd: { rules: [ { maxWidth: 375, mode: 'vw', options: [100, 750] }, { minWidth: 376, maxWidth: 750, mode: 'vw', options: [100, 1500] }, ], deviceWidth: 375, }, },
之前没考虑兼容移动端的主题,这块可能要花点时间研究下。先用dumi默认的吧
🧐 问题描述
package.json
"dumi": "^2.1.24", "dumi-theme-antd-style": "^0.25.1", "dumi-theme-mobile": "^2.0.0",
.dumirc.tsthemeConfig: { name: '@qt-core/mobile', hd: { rules: [ { maxWidth: 375, mode: 'vw', options: [100, 750] }, { minWidth: 376, maxWidth: 750, mode: 'vw', options: [100, 1500] }, ], deviceWidth: 375, }, },
这些都配置过了。没有达到预期移动端样式。💻 示例代码