-
Notifications
You must be signed in to change notification settings - Fork 353
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
[Checkbox] Performance Optimization #2583
Merged
Merged
Conversation
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
chaishi
changed the title
[Checkbox] Performance Optimization
[WIP][Checkbox] Performance Optimization
Jul 15, 2023
chaishi
changed the title
[WIP][Checkbox] Performance Optimization
[Checkbox] Performance Optimization
Jul 15, 2023
transfer的测试用例删了是因为checkbox的改动影响吗? |
@uyarn transfer unit tests 已恢复 |
chaishi
changed the title
[Checkbox] Performance Optimization
[WIP][Checkbox] Performance Optimization
Jul 16, 2023
chaishi
changed the title
[WIP][Checkbox] Performance Optimization
[Checkbox] Performance Optimization
Jul 16, 2023
uyarn
approved these changes
Jul 17, 2023
xiaosansiji
added a commit
that referenced
this pull request
Jul 19, 2023
* Release/1.4.0 (#2481) * feat: release 1.4.0 * feat: update common * chore: changelog's changes * docs: add language pack contributing doc --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: 1.4.0 changelog render error (#2482) * fix(input-number): do not set value if value is undefined/null (#2483) * docs: update documentation for vue2.7 support (#2491) * feat: move popup align style to less from inline style (#2496) * feat: move popup align style to less from inline style * chore: fix spelling error * fix: spelling error * test: update snapshot * chore: add 2.7 infra (#2497) * chore: add 2.7 infra * chore: fix snapshot * chore(deps-dev): bump workbox-precaching from 6.6.1 to 7.0.0 (#2467) Bumps [workbox-precaching](https://github.com/googlechrome/workbox) from 6.6.1 to 7.0.0. - [Release notes](https://github.com/googlechrome/workbox/releases) - [Commits](https://github.com/googlechrome/workbox/commits/v7.0.0) --- updated-dependencies: - dependency-name: workbox-precaching dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(timeline): async timeline render (#2501) * chore: update snapshot * fix(timeline): fix async render timeline item * chore: fix unused lint * Feat/submenu popup props (#2504) * feat: add popupProps interface to submenu * feat: add submenu.popupProps * test: submenu.popupProps demo * chore: add ts type * fix(table): 通过current修改分页,序列号没有变化问题修复 (#2506) * fix(colorpicker): support empty initial value for graident color (#2511) * feat: release 1.4.1 (#2512) * feat: release 1.4.1 * feat: update common * feat: update common * feat: release 1.4.2 (#2515) * fix(Drawer): 修复destroyOnClose不符合预期问题 (#2517) * docs: provide en-version docs (#2520) * docs: provide en-version docs * chore: fix spell check * feat(dropdown): 新增带图标的下拉菜单示例 (#2523) * feat(dropdown): 新增带图标的下拉菜单示例 * feat(dropdown): 新增带图标的下拉菜单示例 更新 common 的 submodule ID * fix: textarea auto height (#2527) * fix(swiper): navigation slot (#2514) * Release/1.4.3 (#2528) * feat: release 1.4.3 * feat: update common * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat: release 1.4.4 (#2532) * feat: dialog support full-screen mode (#2529) * [Table] 修复列配置和列宽调整场景,列数量由多变少时未能更新宽度;新增事件 onColumnResizeChange (#2535) * fix(table): onColumnResizeChange * fix(table): resize table width on column reduce * fix(table): update snapshots * test: update snapshots * chore: setup with pnpm (#2536) * docs: add EN version site (#2521) * docs: en version documentation * docs: complete docs * chore: update docs * feat: release 1.4.5 (#2539) * feat: release 1.4.5 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: complete en docs (#2541) * feat(DatePicker): 新增 onConfirm事件 (#2545) * fix(input-number): calibration invalid for value=0 (#2546) fix #2516 * chore: fix test script (#2553) * feat(table): add new class name t-table-tr--level-${level} to table row element (#2547) * feat(table): add new class name t-table-tr--level-${level} to table row element * test: update snapshots * fix(input): fix limit disabled bg color (#2557) * chore: update snapshot * fix(Input): disabled limitNumber style * chore: update helper tips (#2544) * chore: update helper tips * chore: update helper tips * feat: release 1.4.6 (#2560) * feat: release 1.4.6 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(deps-dev): bump @commitlint/cli from 17.4.4 to 17.6.6 (#2552) Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.4.4 to 17.6.6. - [Release notes](https://github.com/conventional-changelog/commitlint/releases) - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.6.6/@commitlint/cli) --- updated-dependencies: - dependency-name: "@commitlint/cli" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @babel/core from 7.16.12 to 7.22.5 (#2551) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.12 to 7.22.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.22.5/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: alert opacity style when closed (#2571) * [Upload] `theme=image` fileListDisplay support, click fileName to open new tab;add more English API description (#2568) * feat(upload): support displayFiles if theme=image * feat(upload): support uploadFilePercent instance function * feat(upload): add instance function uploadFilePercent * test(upload): update snapshots * test(upload): update snapshots * feat(upload): add size=small to link * feat(upload): filter drag files with accept * feat: update common * test: update snapshots * fix(popup): fix comparison of initial state (#2573) * feat: release 1.4.7 (#2574) * feat: release 1.4.7 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * docs(Input): value type remove Number (#2582) * feat(datepicker): 优化关闭浮层后重置默认选中区域 (#2585) * fix: action ci script security (#2588) * [Checkbox] Performance Optimization (#2583) * refactor(checkbox): code * feat(checkbox): performance * feat(checkbox): checked & disabled performance * feat(checkbox): performance * feat(checkbox): update snapshots and fix test bug * fix: lint error * feat(checkbox): add useKeyboardEvent * test(checkbox): update snapshots * chore: remove useless code * test: revert transfer test * feat(checkbox): support options and slots * test(checkbox): update snapshots * feat(checkbox): checkbox add lazyload to checkboxgroup * feat(checkbox): slot data * docs(Grid): row Props.gutterTS类型补充lg,xl,xxl (#2584) * docs(Input): value type remove Number * docs(Grid): row Props.gutterTS类型补充lg,xl,xxl * test: update * [+] 销毁前需要移除dialog创建的DOM (#2581) * feat: release 1.4.8 (#2590) * feat: release 1.4.8 * feat: update common * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(tabs): change tab navs dom to method render (#2595) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: azhe <xiaosansiji@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: sheepluo <yaoyanhuoyi@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LoopZhou <13745660+LoopZhou@users.noreply.github.com> Co-authored-by: Yuhang <aicmortal@gmail.com> Co-authored-by: omnis <39907007+aomnisz@users.noreply.github.com> Co-authored-by: Nero.hua <848760247@qq.com> Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: imp2002 <imp07@qq.com> Co-authored-by: ikeq <ikeq@foxmail.com> Co-authored-by: Kyrie Lin <a154571896@gmail.com> Co-authored-by: logan <wuyunlonggo@163.com>
xiaosansiji
added a commit
that referenced
this pull request
Jul 26, 2023
* Release/1.4.0 (#2481) * feat: release 1.4.0 * feat: update common * chore: changelog's changes * docs: add language pack contributing doc --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: 1.4.0 changelog render error (#2482) * fix(input-number): do not set value if value is undefined/null (#2483) * docs: update documentation for vue2.7 support (#2491) * feat: move popup align style to less from inline style (#2496) * feat: move popup align style to less from inline style * chore: fix spelling error * fix: spelling error * test: update snapshot * chore: add 2.7 infra (#2497) * chore: add 2.7 infra * chore: fix snapshot * chore(deps-dev): bump workbox-precaching from 6.6.1 to 7.0.0 (#2467) Bumps [workbox-precaching](https://github.com/googlechrome/workbox) from 6.6.1 to 7.0.0. - [Release notes](https://github.com/googlechrome/workbox/releases) - [Commits](https://github.com/googlechrome/workbox/commits/v7.0.0) --- updated-dependencies: - dependency-name: workbox-precaching dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(timeline): async timeline render (#2501) * chore: update snapshot * fix(timeline): fix async render timeline item * chore: fix unused lint * Feat/submenu popup props (#2504) * feat: add popupProps interface to submenu * feat: add submenu.popupProps * test: submenu.popupProps demo * chore: add ts type * fix(table): 通过current修改分页,序列号没有变化问题修复 (#2506) * fix(colorpicker): support empty initial value for graident color (#2511) * feat: release 1.4.1 (#2512) * feat: release 1.4.1 * feat: update common * feat: update common * feat: release 1.4.2 (#2515) * fix(Drawer): 修复destroyOnClose不符合预期问题 (#2517) * docs: provide en-version docs (#2520) * docs: provide en-version docs * chore: fix spell check * feat(dropdown): 新增带图标的下拉菜单示例 (#2523) * feat(dropdown): 新增带图标的下拉菜单示例 * feat(dropdown): 新增带图标的下拉菜单示例 更新 common 的 submodule ID * fix: textarea auto height (#2527) * fix(swiper): navigation slot (#2514) * Release/1.4.3 (#2528) * feat: release 1.4.3 * feat: update common * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat: release 1.4.4 (#2532) * feat: dialog support full-screen mode (#2529) * [Table] 修复列配置和列宽调整场景,列数量由多变少时未能更新宽度;新增事件 onColumnResizeChange (#2535) * fix(table): onColumnResizeChange * fix(table): resize table width on column reduce * fix(table): update snapshots * test: update snapshots * chore: setup with pnpm (#2536) * docs: add EN version site (#2521) * docs: en version documentation * docs: complete docs * chore: update docs * feat: release 1.4.5 (#2539) * feat: release 1.4.5 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: complete en docs (#2541) * feat(DatePicker): 新增 onConfirm事件 (#2545) * fix(input-number): calibration invalid for value=0 (#2546) fix #2516 * chore: fix test script (#2553) * feat(table): add new class name t-table-tr--level-${level} to table row element (#2547) * feat(table): add new class name t-table-tr--level-${level} to table row element * test: update snapshots * fix(input): fix limit disabled bg color (#2557) * chore: update snapshot * fix(Input): disabled limitNumber style * chore: update helper tips (#2544) * chore: update helper tips * chore: update helper tips * feat: release 1.4.6 (#2560) * feat: release 1.4.6 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(deps-dev): bump @commitlint/cli from 17.4.4 to 17.6.6 (#2552) Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 17.4.4 to 17.6.6. - [Release notes](https://github.com/conventional-changelog/commitlint/releases) - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.6.6/@commitlint/cli) --- updated-dependencies: - dependency-name: "@commitlint/cli" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @babel/core from 7.16.12 to 7.22.5 (#2551) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.16.12 to 7.22.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.22.5/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: alert opacity style when closed (#2571) * [Upload] `theme=image` fileListDisplay support, click fileName to open new tab;add more English API description (#2568) * feat(upload): support displayFiles if theme=image * feat(upload): support uploadFilePercent instance function * feat(upload): add instance function uploadFilePercent * test(upload): update snapshots * test(upload): update snapshots * feat(upload): add size=small to link * feat(upload): filter drag files with accept * feat: update common * test: update snapshots * fix(popup): fix comparison of initial state (#2573) * feat: release 1.4.7 (#2574) * feat: release 1.4.7 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * docs(Input): value type remove Number (#2582) * feat(datepicker): 优化关闭浮层后重置默认选中区域 (#2585) * fix: action ci script security (#2588) * [Checkbox] Performance Optimization (#2583) * refactor(checkbox): code * feat(checkbox): performance * feat(checkbox): checked & disabled performance * feat(checkbox): performance * feat(checkbox): update snapshots and fix test bug * fix: lint error * feat(checkbox): add useKeyboardEvent * test(checkbox): update snapshots * chore: remove useless code * test: revert transfer test * feat(checkbox): support options and slots * test(checkbox): update snapshots * feat(checkbox): checkbox add lazyload to checkboxgroup * feat(checkbox): slot data * docs(Grid): row Props.gutterTS类型补充lg,xl,xxl (#2584) * docs(Input): value type remove Number * docs(Grid): row Props.gutterTS类型补充lg,xl,xxl * test: update * [+] 销毁前需要移除dialog创建的DOM (#2581) * feat: release 1.4.8 (#2590) * feat: release 1.4.8 * feat: update common * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(tabs): change tab navs dom to method render (#2595) * fix(transfer): fix disabled value removed from target (#2599) * [Table] editable table support setting colKey to be like a.b.c; support updateEditedCellValue (#2605) * refactor(checkbox): useCheckboxLazyLoad to useElementLazyRender * feat(table): add lazyLoad to table * fix(table): editble table support setting colKey to be like a.b.c * fix(table): modify edited value * fix(table): can show show data with colKey like a.b.c * fix(table): loading render * refactor: tree 组件改进列表渲染逻辑 (#2586) * test(tree): tree 组件,虚拟滚动调试示例添加过滤功能 * test(tree): tree 组件,虚拟滚动完善过滤示例 * docs(tree): tree 组件修正代码注释文案 * refactor(tree): tree 组件改进列表渲染逻辑 * fix(tree): tree 组件,解决结构改造后,非虚拟滚动模式未能缓存已创建节点的问题 * docs(tree): tree 组件,完善调试页面配置 * fix(tree): tree 组件完善示例,部分示例事件发生后,控制台输出节点状态 * test(tree): tree 组件,更新 test snapshot * test(tree): tree 组件,update snapshot * fix(table): column resizable for affixed header table (#2606) * fix(table): column resizable * fix(table): lint error * test(table): update snapshots * fix(checkbox): support custom node in checkbox group (#2604) * fix(checkbox): support custom node in checkbox group * test(checkbox): update snapshots * fix(checkbox): update snapshots * feat(transfer): support draggable on target list (#2612) * feat(transfer): support draggable on target list * chore: update docs * feat(slider): label support % format (#2613) * feat(menu-item): 新增API: routerLink,可指定菜单项渲染为Router控制跳转的a标签 (#2603) Co-authored-by: gc_yezhibin <gc_yezhibin@ieggtc.com> * fix(input-number): tValue (#2617) * feat: use common collapse animation (#2561) * feat: use common collapse animation * feat: update common * test: update snapshot * test: update snapshot * fix: menu item click event params * feat: update common * feat: update common * fix: menu item event param * feat(time-picker): disableTime callback add ms params (#2618) * feat(timepicker): disabletime callback add ms params * chore: update snapshot * Release/1.5.0 (#2620) * feat: update common * feat: release 1.5.0 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: add naruto auto publish workflow (#2624) * Revert "chore: add naruto auto publish workflow (#2624)" (#2625) This reverts commit 7da9217. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: azhe <xiaosansiji@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: sheepluo <yaoyanhuoyi@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LoopZhou <13745660+LoopZhou@users.noreply.github.com> Co-authored-by: Yuhang <aicmortal@gmail.com> Co-authored-by: omnis <39907007+aomnisz@users.noreply.github.com> Co-authored-by: Nero.hua <848760247@qq.com> Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: imp2002 <imp07@qq.com> Co-authored-by: ikeq <ikeq@foxmail.com> Co-authored-by: Kyrie Lin <a154571896@gmail.com> Co-authored-by: logan <wuyunlonggo@163.com> Co-authored-by: TabSpace <pillar0514@163.com> Co-authored-by: BoogieBen <Boogie.Ben@outlook.com> Co-authored-by: gc_yezhibin <gc_yezhibin@ieggtc.com>
KMethod
pushed a commit
to KMethod/tdesign-vue
that referenced
this pull request
Aug 25, 2023
* refactor(checkbox): code * feat(checkbox): performance * feat(checkbox): checked & disabled performance * feat(checkbox): performance * feat(checkbox): update snapshots and fix test bug * fix: lint error * feat(checkbox): add useKeyboardEvent * test(checkbox): update snapshots * chore: remove useless code * test: revert transfer test * feat(checkbox): support options and slots * test(checkbox): update snapshots * feat(checkbox): checkbox add lazyload to checkboxgroup * feat(checkbox): slot data
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
lazyLoad
,懒加载,用于需要渲染大量数据,或加载复杂内容/图片场景options
定义选项列表的同时,使用插槽label
定义选项内容。可用于数据量较大的场景,不会重复渲染复选框列表渲染性能优化之前
2023-07-15.14.35.45.mov
复选框列表渲染性能优化之后
2023-07-15.14.37.13.mov
复选框键盘事件
2023-07-15.16.45.56.mov
☑️ 请求合并前的自查清单