From d8f4c116e79d3f387d054ce76f58eb8028b65ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=BC=BA?= Date: Tue, 7 May 2024 20:41:58 +0800 Subject: [PATCH 1/2] fix: fix slider handle error and click tail error when scaled --- packages/semi-ui/slider/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/semi-ui/slider/index.tsx b/packages/semi-ui/slider/index.tsx index af4e9868a2..8d693c72ad 100644 --- a/packages/semi-ui/slider/index.tsx +++ b/packages/semi-ui/slider/index.tsx @@ -132,9 +132,11 @@ export default class Slider extends BaseComponent { getSliderLengths: () => { if (this.sliderEl && this.sliderEl.current) { const rect = this.sliderEl.current.getBoundingClientRect(); + const offsetParentRect = this.sliderEl.current.offsetParent?.getBoundingClientRect(); + const offset = { - x: this.sliderEl.current.offsetLeft, - y: this.sliderEl.current.offsetTop, + x: offsetParentRect ? (rect.left - offsetParentRect.left): this.sliderEl.current.offsetLeft, + y: offsetParentRect ? (rect.top - offsetParentRect.top) : this.sliderEl.current.offsetTop, }; return { sliderX: offset.x, From d911c08d3b5e459aa328fa56a426526e05ef3ce8 Mon Sep 17 00:00:00 2001 From: pointhalo Date: Tue, 7 May 2024 20:47:13 +0800 Subject: [PATCH 2/2] v2.57.1-alpha.0 --- lerna.json | 2 +- packages/semi-animation-react/package.json | 6 +++--- packages/semi-animation-styled/package.json | 2 +- packages/semi-animation/package.json | 2 +- packages/semi-eslint-plugin/package.json | 2 +- packages/semi-foundation/package.json | 4 ++-- packages/semi-icons-lab/package.json | 2 +- packages/semi-icons/package.json | 2 +- packages/semi-illustrations/package.json | 2 +- packages/semi-next/package.json | 4 ++-- packages/semi-rspack/package.json | 2 +- packages/semi-scss-compile/package.json | 2 +- packages/semi-theme-default/package.json | 2 +- packages/semi-ui/package.json | 14 +++++++------- packages/semi-webpack/package.json | 2 +- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/lerna.json b/lerna.json index 01c8c7f401..8bb9d87740 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { "useWorkspaces": true, "npmClient": "yarn", - "version": "2.57.0" + "version": "2.57.1-alpha.0" } \ No newline at end of file diff --git a/packages/semi-animation-react/package.json b/packages/semi-animation-react/package.json index 4ac348a79d..c2338f4d7c 100644 --- a/packages/semi-animation-react/package.json +++ b/packages/semi-animation-react/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-animation-react", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "motion library for semi-ui-react", "keywords": [ "motion", @@ -25,8 +25,8 @@ "prepublishOnly": "npm run build:lib" }, "dependencies": { - "@douyinfe/semi-animation": "2.57.0", - "@douyinfe/semi-animation-styled": "2.57.0", + "@douyinfe/semi-animation": "2.57.1-alpha.0", + "@douyinfe/semi-animation-styled": "2.57.1-alpha.0", "classnames": "^2.2.6" }, "devDependencies": { diff --git a/packages/semi-animation-styled/package.json b/packages/semi-animation-styled/package.json index f844453a46..9e2b9154fb 100644 --- a/packages/semi-animation-styled/package.json +++ b/packages/semi-animation-styled/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-animation-styled", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi styled animation", "keywords": [ "semi", diff --git a/packages/semi-animation/package.json b/packages/semi-animation/package.json index b870e97bae..19a3ca15b7 100644 --- a/packages/semi-animation/package.json +++ b/packages/semi-animation/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-animation", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "animation base library for semi-ui", "keywords": [ "animation", diff --git a/packages/semi-eslint-plugin/package.json b/packages/semi-eslint-plugin/package.json index a056ce9a0a..d9cae80b1e 100644 --- a/packages/semi-eslint-plugin/package.json +++ b/packages/semi-eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-semi-design", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi ui eslint plugin", "keywords": [ "semi", diff --git a/packages/semi-foundation/package.json b/packages/semi-foundation/package.json index 212166ef65..23161bf4bc 100644 --- a/packages/semi-foundation/package.json +++ b/packages/semi-foundation/package.json @@ -1,13 +1,13 @@ { "name": "@douyinfe/semi-foundation", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "", "scripts": { "build:lib": "node ./scripts/compileLib.js", "prepublishOnly": "npm run build:lib" }, "dependencies": { - "@douyinfe/semi-animation": "2.57.0", + "@douyinfe/semi-animation": "2.57.1-alpha.0", "async-validator": "^3.5.0", "classnames": "^2.2.6", "date-fns": "^2.29.3", diff --git a/packages/semi-icons-lab/package.json b/packages/semi-icons-lab/package.json index c1d84fe795..2982bddc04 100644 --- a/packages/semi-icons-lab/package.json +++ b/packages/semi-icons-lab/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-icons-lab", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi icons lab", "keywords": [ "semi", diff --git a/packages/semi-icons/package.json b/packages/semi-icons/package.json index e69f9a8876..f9f6e5aa56 100644 --- a/packages/semi-icons/package.json +++ b/packages/semi-icons/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-icons", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi icons", "keywords": [ "semi", diff --git a/packages/semi-illustrations/package.json b/packages/semi-illustrations/package.json index b2c3dbec55..42f9f28c1d 100644 --- a/packages/semi-illustrations/package.json +++ b/packages/semi-illustrations/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-illustrations", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi illustrations", "keywords": [ "semi", diff --git a/packages/semi-next/package.json b/packages/semi-next/package.json index 4c0ca6ac93..05eccd25ff 100644 --- a/packages/semi-next/package.json +++ b/packages/semi-next/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-next", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "Plugin that support Semi Design in Next.js", "author": "伍浩威 ", "homepage": "", @@ -23,7 +23,7 @@ "typescript": "^4" }, "dependencies": { - "@douyinfe/semi-webpack-plugin": "2.57.0" + "@douyinfe/semi-webpack-plugin": "2.57.1-alpha.0" }, "gitHead": "eb34a4f25f002bb4cbcfa51f3df93bed868c831a" } diff --git a/packages/semi-rspack/package.json b/packages/semi-rspack/package.json index b39ba402e2..a7ab24b8c3 100644 --- a/packages/semi-rspack/package.json +++ b/packages/semi-rspack/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-rspack-plugin", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "", "homepage": "", "license": "MIT", diff --git a/packages/semi-scss-compile/package.json b/packages/semi-scss-compile/package.json index 6d4c26ef8b..d06d5069cb 100644 --- a/packages/semi-scss-compile/package.json +++ b/packages/semi-scss-compile/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-scss-compile", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "compile semi scss to css", "author": "daiqiang@bytedance.com", "license": "MIT", diff --git a/packages/semi-theme-default/package.json b/packages/semi-theme-default/package.json index 216a18d3d4..4da271cf2c 100644 --- a/packages/semi-theme-default/package.json +++ b/packages/semi-theme-default/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-theme-default", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "semi-theme-default", "keywords": [ "semi-theme", diff --git a/packages/semi-ui/package.json b/packages/semi-ui/package.json index d4d09d6a92..1f63bdf997 100644 --- a/packages/semi-ui/package.json +++ b/packages/semi-ui/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-ui", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.", "main": "lib/cjs/index.js", "module": "lib/es/index.js", @@ -20,12 +20,12 @@ "@dnd-kit/core": "^6.0.8", "@dnd-kit/sortable": "^7.0.2", "@dnd-kit/utilities": "^3.2.1", - "@douyinfe/semi-animation": "2.57.0", - "@douyinfe/semi-animation-react": "2.57.0", - "@douyinfe/semi-foundation": "2.57.0", - "@douyinfe/semi-icons": "2.57.0", - "@douyinfe/semi-illustrations": "2.57.0", - "@douyinfe/semi-theme-default": "2.57.0", + "@douyinfe/semi-animation": "2.57.1-alpha.0", + "@douyinfe/semi-animation-react": "2.57.1-alpha.0", + "@douyinfe/semi-foundation": "2.57.1-alpha.0", + "@douyinfe/semi-icons": "2.57.1-alpha.0", + "@douyinfe/semi-illustrations": "2.57.1-alpha.0", + "@douyinfe/semi-theme-default": "2.57.1-alpha.0", "async-validator": "^3.5.0", "classnames": "^2.2.6", "copy-text-to-clipboard": "^2.1.1", diff --git a/packages/semi-webpack/package.json b/packages/semi-webpack/package.json index 7f3ddefc82..fd17c5dc87 100644 --- a/packages/semi-webpack/package.json +++ b/packages/semi-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@douyinfe/semi-webpack-plugin", - "version": "2.57.0", + "version": "2.57.1-alpha.0", "description": "", "author": "伍浩威 ", "homepage": "",