Skip to content

Commit

Permalink
chore: release v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Aug 29, 2024
1 parent 0648880 commit cb6ad6c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# [3.0.0](https://github.com/hemengke1997/use-antd-resizable-header/compare/v2.9.5...v3.0.0) (2024-08-29)

## Breaking Changes

- 废弃了 `cache`
- 废弃了 `tooltipRender`
- css 采用 BEM 命名方式
- css 变量改为 `--resizable-line-background`
- css 文件重名为 `style.css`
- `ResizableUniqIdPrefix``resizable-table-id` 重命名为 `resizable-col-id`

## Feat

- 新增 `refresh` 方法,用于手动刷新组件
- 新增 `debounceWaitTime`,用于设置 resize窗口时 debounce 的等待时间
- `resetColumns` 新增入参 `resetStorage` 选项,可以重置storage中的列宽度,默认为 `true`
- 可给单独列设置以下选项
```tsx
type ResizableConfig = {
/**
* @description 列宽度
*/
width?: WidthType
/**
* @description 默认列宽度
*/
defaultWidth?: number
/**
* @description 是否可以拖动
*/
resizable?: boolean
/**
* @description 最小拖动宽度
*/
minConstraints?: number
/**
* @description 最大拖动宽度
*/
maxConstraints?: number
}
```
### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"test": "vitest",
"test:ui": "vitest --ui",
"lint": "tsc --noEmit && eslint . --fix",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"bump": "bumpp package.json -c --no-push -t --all -x \"npm run changelog\""
},
"peerDependencies": {
Expand Down

0 comments on commit cb6ad6c

Please sign in to comment.