From 14a4907bba265fc4160de057b905df163e1e89ca Mon Sep 17 00:00:00 2001 From: viarotel Date: Thu, 20 Jul 2023 10:51:19 +0800 Subject: [PATCH] fix: bugfix --- package.json | 5 ++--- .../float-bubble/src/libs/float-bubble/components/index.vue | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 935905e..8345a2a 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,9 @@ "packages/*" ], "scripts": { - "build": "pnpm lerna run build", - "changelog":"pnpm lerna version --conventional-commits", "clean": "pnpm lerna clean", - "release": "pnpm lerna publish --no-private --loglevel verbose" + "build": "pnpm lerna run build", + "release": "pnpm lerna publish --conventional-commits --no-private --loglevel verbose" }, "devDependencies": { "@viarotel-org/float-bubble": "workspace:^", diff --git a/packages/float-bubble/src/libs/float-bubble/components/index.vue b/packages/float-bubble/src/libs/float-bubble/components/index.vue index ca42b9f..5661efe 100644 --- a/packages/float-bubble/src/libs/float-bubble/components/index.vue +++ b/packages/float-bubble/src/libs/float-bubble/components/index.vue @@ -105,8 +105,7 @@ export default { const top = this.writeOffset.y const left = this.writeOffset.x return { - top: `${top}px`, - left: `${left}px`, + transform: `translate(${left}px, ${top}px)`, } }, halfRect() {