Skip to content

Commit

Permalink
fix(scrollbar): 去掉 perfect-scrollbar 依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Nov 11, 2024
1 parent fcab1d5 commit a3a1dfb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/good-comics-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hi-ui/scrollbar": patch
"@hi-ui/hiui": patch
---

fix(scrollbar): Scrollbar 组件中去掉 perfect-scrollbar 依赖,因为通过 patch-package 修改了这个库的源码,所以必现将依赖去掉,这样才能将修改的源码打包到 Scrollbar 组件的 lib 中
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"lodash": "^4.17.21",
"nodemon": "^2.0.12",
"patch-package": "^6.4.7",
"perfect-scrollbar": "1.5.5",
"pinyin-pro": "^3.15.1",
"postinstall-postinstall": "^2.1.0",
"rc-virtual-list": "^3.4.8",
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/scrollbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"dependencies": {
"@hi-ui/classname": "^4.0.5",
"@hi-ui/env": "^4.0.5",
"@hi-ui/use-merge-refs": "^4.0.4",
"perfect-scrollbar": "^1.5.5"
"@hi-ui/use-merge-refs": "^4.0.4"
},
"peerDependencies": {
"@hi-ui/core": ">=4.0.8",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14220,9 +14220,9 @@ pbkdf2@^3.0.3:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

perfect-scrollbar@^1.5.5:
[email protected]:
version "1.5.5"
resolved "https://registry.yarnpkg.com/perfect-scrollbar/-/perfect-scrollbar-1.5.5.tgz#41a211a2fb52a7191eff301432134ea47052b27f"
resolved "https://registry.npmmirror.com/perfect-scrollbar/-/perfect-scrollbar-1.5.5.tgz#41a211a2fb52a7191eff301432134ea47052b27f"
integrity sha512-dzalfutyP3e/FOpdlhVryN4AJ5XDVauVWxybSkLZmakFE2sS3y3pc4JnSprw8tGmHvkaG5Edr5T7LBTZ+WWU2g==

performance-now@^0.2.0:
Expand Down

0 comments on commit a3a1dfb

Please sign in to comment.