From 474f8ab4aeedbcad8e832c74a8d24adb80ab9c21 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Tue, 27 Feb 2024 22:04:05 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3:=20=F0=9F=93=9A=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E6=A1=A3=E8=AF=A6=E6=83=85=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++---- package-lock.json | 4 ++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3ced47f..cd1f741 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,35 @@ -# vue-pinia 看板 rem 布局 +# vue-pinia 看板 scale 布局 欢迎使用 bunny-cli。 -这个项目模板只涉及 rem,不涉及其它内容。 +这个项目模板只涉及 scale,不涉及其它内容。 + +## 安装的包 + +1. 使用`v-scale-screen` +2. 去除了`postcss.config.js` + +## 优缺点 + +### 优点 + +1. 开发容易。 +2. 同比例放大,完美还原设计稿。 + +### 缺点 + +1. 文字易模糊。 + +2. 如果不是 16:9 的屏幕下会有留白;但是是 100%按照设计稿进行。 + +3. 如果地图点击事件等会有热区事件失踪。 ## 注意事项 ### 打包成 apk -1. 如果需要打包成 apk,要将路由改为 hash 路由 -2. 打包成 apk 将公共路径改为`./` +1. 如果需要打包成 apk,要将路由改为 hash 路由。 +2. 打包成 apk 将公共路径改为`./`。 3. 打包成 apk,需要考虑跨域,跨域由于打包时没有 NGINX 做代理,所以无法完成,只能后端做跨域,否则接口访问不到。 4. 要设置 APPID,因为 HBuilderX 必须要获取。 diff --git a/package-lock.json b/package-lock.json index 42060d5..ed0dbbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "vue_ts_pina", + "name": "lookbroad-scale", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "vue_ts_pina", + "name": "lookbroad-scale", "version": "0.1.0", "dependencies": { "axios": "^1.6.2",