Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 Table 在虚拟列表大数据下拖拽滚动条时和调用scrollToIndex的性能问题(since: v.3.5.4) #939

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sheinx",
"private": true,
"version": "3.5.8-beta.9",
"version": "3.5.8-beta.10",
"description": "A react library developed with sheinx",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
13 changes: 0 additions & 13 deletions packages/base/src/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,6 @@ const recoverCircle = [
d='M10.1967 6.28261C10.5929 6.66737 10.6022 7.30046 10.2174 7.69667L9.39504 8.54349H13.3752C15.8901 8.54349 18 10.51 18 13.0217C18 15.5335 15.8901 17.5 13.3752 17.5H8.84425C8.29196 17.5 7.84425 17.0523 7.84425 16.5C7.84425 15.9477 8.29196 15.5 8.84425 15.5H13.3752C14.8641 15.5 16 14.352 16 13.0217C16 11.6915 14.8641 10.5435 13.3752 10.5435H9.43488L10.1964 11.2823C10.5927 11.6669 10.6023 12.3 10.2177 12.6964C9.83312 13.0927 9.20003 13.1023 8.80365 12.7177L6.30365 10.2921C6.11325 10.1073 6.00406 9.85452 6.00011 9.58925C5.99616 9.32399 6.09779 9.06803 6.28261 8.87771L8.78261 6.30333C9.16737 5.90713 9.80046 5.89785 10.1967 6.28261Z'
fill='white'
></path>,
// <path
// key={'1'}
// d='M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z'
// fill='currentColor'
// />,
// <path
// key={'2'}
// d='M9 9.00001H14C16.2091 9.00001 18 10.7909 18 13C18 15.2092 16.2091 17 14 17H9M10.5004 12.5711L6.96484 9.03553L10.5004 5.5'
// stroke='white'
// strokeWidth='2'
// strokeLinecap='round'
// strokeLinejoin='round'
// />,
];

const arrowDown = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const useTableVirtual = (props: UseTableVirtualProps) => {
setStartIndex(currentIndex);

// startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
if(!fromDrag && startIndex < currentIndex){
if(rowSpanInfo && !fromDrag && startIndex < currentIndex){
context.autoAddRows = currentIndex - startIndex
setTimeout(() => {
context.autoAddRows = 0
Expand Down
6 changes: 3 additions & 3 deletions packages/shineout/src/table/__doc__/changelog.cn.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## 3.5.8-beta.8
2024-12-24
## 3.5.8-beta.10
2025-01-21

### 🐞 BugFix
- 修复 `Table` 在虚拟列表大数据下拖拽滚动条时的性能问题 ([#937](https://github.com/sheinsight/shineout-next/pull/937))
- 修复 `Table` 在虚拟列表大数据下拖拽滚动条时和调用scrollToIndex的性能问题(Regression: since: v3.5.4) ([#937](https://github.com/sheinsight/shineout-next/pull/937))

## 3.5.5
2024-12-24
Expand Down
Loading