Ver código fonte

feat: 元素编辑位置回显

TIANYONG 1 ano atrás
pai
commit
6b249d7ef4
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/view/plugins/move-music-score/index.tsx

+ 4 - 4
src/view/plugins/move-music-score/index.tsx

@@ -258,10 +258,10 @@ function setModelPostion(item: any, x: number, y: number) {
 		} else {
 			/** 如果是app内嵌打开,需要通过rem转换 */
 			let tsX = x, tsY = y;
-			if (storeData.isApp && (item.xRem || item.yRem)) {
-				tsX = item.xRem * clientWidth/10
-				tsY = item.yRem * clientWidth/10
-			}
+			// if (storeData.isApp && (item.xRem || item.yRem)) {
+			// 	tsX = item.xRem * clientWidth/10
+			// 	tsY = item.yRem * clientWidth/10
+			// }
 			g && g.setAttribute("transform", `translate(${tsX / moveData.zoom}, ${tsY / moveData.zoom})`);
 			el && (el.style.transform = `translate(${tsX}px, ${tsY}px)`);
 		}