diff --git a/src/App.vue b/src/App.vue index 3b141ad..c48f2f5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,15 +1,20 @@ diff --git a/src/components/common/MobileScale.vue b/src/components/common/MobileScale.vue new file mode 100644 index 0000000..baf7ab1 --- /dev/null +++ b/src/components/common/MobileScale.vue @@ -0,0 +1,100 @@ +/** + * 移动端 viewport 缩放方案 + * + * 功能说明: + * 1. PC 端保持原有布局不变 + * 2. 移动端通过动态调整 viewport scale 等比例缩放 + * 3. 滚动功能正常工作 + * 4. 有最小缩放值限制,防止内容过小 + * + * 使用方式: + * 在 App.vue 中引入并使用 + */ + + + + + +