-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8689a
commit b947649
Showing
70 changed files
with
10,504 additions
and
6,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Github Pages Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: pages | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
if: contains(github.event.head_commit.message, 'release') || contains(github.event.head_commit.message, 'deploy') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: 9.7.1 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pnpm install | ||
- name: Build | ||
run: | | ||
pnpm run build:pages | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.GHB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: playground/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# use-antd-resizable-header@3.0.0 | ||
|
||
## 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 的等待时间 | ||
- 可给单独列设置以下选项 | ||
```tsx | ||
type ResizableConfig = { | ||
/** | ||
* @description 列宽度 | ||
*/ | ||
width?: WidthType | ||
/** | ||
* @description 默认列宽度 | ||
*/ | ||
defaultWidth?: number | ||
/** | ||
* @description 是否可以拖动 | ||
*/ | ||
resizable?: boolean | ||
/** | ||
* @description 最小拖动宽度 | ||
*/ | ||
minConstraints?: number | ||
/** | ||
* @description 最大拖动宽度 | ||
*/ | ||
maxConstraints?: number | ||
} | ||
``` |
Oops, something went wrong.