From 5dc1eb8074f52b2fdc03216b62ae4e2d82acbe0f Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 03 Nov 2025 08:45:21 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v7.0/7.0.4' into 图层管理

---
 src/utils/rem.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/utils/rem.js b/src/utils/rem.js
index 741e12b..f2c3ace 100644
--- a/src/utils/rem.js
+++ b/src/utils/rem.js
@@ -10,3 +10,10 @@
 export const pxToRem = width => {
 	return width * 0.1 + 'rem'
 }
+
+
+// 不带单位的px转rem
+export const pxToRemNum = width => {
+	const scale = document.documentElement.clientWidth / 192
+	return width * 0.1 * scale
+}
\ No newline at end of file

--
Gitblit v1.9.3