Skip to content

Commit

Permalink
feat(1.5.0): weekly sync update to naruto (#2626)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
17 people committed Jul 26, 2023
1 parent 7cad0c6 commit 22e1f29
Show file tree
Hide file tree
Showing 89 changed files with 8,058 additions and 3,217 deletions.
138 changes: 137 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,144 @@ toc: false
docClass: timeline
---

## 🌈 1.4.8 `2023-07-18`
## 🌈 1.5.0 `2023-07-25`
### 🚀 Features
- `Table`: 新增 `lazyLoad` 表格元素懒加载,当出现在可视区域时,再渲染表格第一屏数据 @chaishi ([#2605](https://github.com/Tencent/tdesign-vue/pull/2605))
- `Transfer`: 新增 `targetDraggable` API , 支持对目标列表拖拽排序的功能 @uyarn ([#2612](https://github.com/Tencent/tdesign-vue/pull/2612))
- `Slider`: label 支持 `${value}%` 格式配置 @uyarn ([#2613](https://github.com/Tencent/tdesign-vue/pull/2613))
- `Tree`: tree 组件改进列表渲染逻辑 @TabSpace ([#2586](https://github.com/Tencent/tdesign-vue/pull/2586))
- `Menu`:
- 新增 API `routerLink`,可指定菜单项渲染为 Router 控制跳转的 a 标签 @boogie-ben ([#2603](https://github.com/Tencent/tdesign-vue/pull/2603))
- 重构侧边栏导航子菜单展开/收起动画实现 @xiaosansiji ([#2561](https://github.com/Tencent/tdesign-vue/pull/2561))
- `TimePicker`: @uyarn ([#2618](https://github.com/Tencent/tdesign-vue/pull/2618))
- `disableTime` 回调中新增毫秒参数
- 优化展示不可选时间选项时滚动到不可选选项的体验
### 🐞 Bug Fixes
- `Tabs`: 修复 tabs 组件放在在 dialog 中 tab-bar 不能正常显示的问题 @uyarn ([#2595](https://github.com/Tencent/tdesign-vue/pull/2595))
- `Transfer`: 修复穿梭框存在默认已选且不允许移除的值被移除的异常问题 @uyarn ([#2599](https://github.com/Tencent/tdesign-vue/pull/2599))
- `Table`: @chaishi ([#2605](https://github.com/Tencent/tdesign-vue/pull/2605))
- 可编辑表格场景,支持设置 `colKey` 值为链式属性,如:`a.b.c`
- 可编辑表格场景,行编辑,`edit.props``edit.on` 为函数时,新增参数 `updateEditedCellValue` 用于更新编辑状态的表格数据,[issue#2577](https://github.com/Tencent/tdesign-vue/issues/2577)
- 修复列宽调整 + 表头吸顶 + 列配置自定义综合场景下,列宽变少时,表格宽度无法恢复原来的宽度,[issue#2363](https://github.com/Tencent/tdesign-vue/issues/2363) @chaishi ([#2606](https://github.com/Tencent/tdesign-vue/pull/2606))
- `Checkbox`: 修复版本 `v1.4.8` 中无法在 CheckboxGroup 内部自定义任意节点的问题 @chaishi ([#2604](https://github.com/Tencent/tdesign-vue/pull/2604))
- `InputNumber`: 修复 `decimalPlaces` 存在时,数值满足要求,用户未操作,就已经触发 `onChange` 事件问题,[issue#2616](https://github.com/Tencent/tdesign-vue/issues/2616) @chaishi ([#2617](https://github.com/Tencent/tdesign-vue/pull/2617))
- `Menu`: @boogie-ben ([#2603](https://github.com/Tencent/tdesign-vue/pull/2603))
- 渲染为 a 标签时,a 标签覆盖范围扩大至整个菜单项,而不是只有文本部分
- 修复当菜单项渲染 a 标签并且 `collapsed = true` 状态时,菜单项内区隐藏导致无法点击跳转的问题
- 修复渲染为 a 标签,弹出展示子菜单,文本未对齐的问题
- 修复 SubMenu 菜单项过多时无法完整展示的问题 [issue#2262](https://github.com/Tencent/tdesign-vue/issues/2262)
- 修复 `MenuItem` click 点击事件未传递 event 参数的问题 @xiaosansiji ([#2561](https://github.com/Tencent/tdesign-vue/pull/2561))
- `Tree`: @TabSpace ([common#1535](https://github.com/Tencent/tdesign-common/pull/1535))
- 修复 `treeNodeModel` 实例未能同步 node 属性的问题
- 优化节点状态更新时的性能

## 🌈 1.4.8 `2023-07-18`
### 🚀 Features
- `DatePicker`: 优化关闭浮层后重置默认选中区域 @honkinglin ([#2585](https://github.com/Tencent/tdesign-vue/pull/2585))
- `Checkbox`: @chaishi ([#2583](https://github.com/Tencent/tdesign-vue/pull/2583)
- 新增支持 `lazyLoad`,懒加载,用于需要渲染大量数据,或加载复杂内容/图片的场景
- 渲染性能优化,选择或取消某一个选项时,不再重复渲染全部复选框
- 新增支持键盘控制选项选中或取消选中
- 新增支持 CheckboxGroup 使用 `options` 定义选项列表的同时,使用插槽 `label` 定义选项内容。可用于数据量较大的场景,不会重复渲染
### 🐞 Bug Fixes
- `Checkbox`: @chaishi ([#2583](https://github.com/Tencent/tdesign-vue/pull/2583))
- 复选框禁用逻辑优先级顺序修复,应当为:`Form.disabled < CheckboxGroup.disabled < Checkbox.disabled`
- 修复带禁用按钮的全选逻辑问题
- `Input`: 输入框的值类型移除 `Number` 类型 @liweijie0812 ([#2582](https://github.com/Tencent/tdesign-vue/pull/2582))
- `AutoComplete`: 修复表单内 `AutoComplete` 输入框宽度与 `Input` 组件不一致的问题 @liweijie0812 ([common#1524](https://github.com/Tencent/tdesign-common/pull/1524))
- `InputNumber`:
- 修复大尺寸的 `padding` 样式问题 @uyarn ([common#1533](https://github.com/Tencent/tdesign-common/pull/1533))
- 数字为空时,返回 `null`,而非 `undefined` @uyarn ([common#1533](https://github.com/Tencent/tdesign-common/pull/1533))
- `Transfer`: 优化 transfer item 类名优先级问题 @xixileng ([common#1530](https://github.com/Tencent/tdesign-common/pull/1530))
- `TagInput`: 修复 tag-input 前缀不居中且会发生抖动的问题 @xixileng ([common#1532](https://github.com/Tencent/tdesign-common/pull/1532))
- `Dialog`: 修复组件销毁后,没有正确销毁 DOM,导致的内存泄漏问题 @loganylwu ([#2581](https://github.com/Tencent/tdesign-vue/pull/2581))

### 🚧 Others
- `Grid`: 移除 `span` 默认值,`gutter` 类型补充 `lg/xl/xxl` @liweijie0812 ([#2584](https://github.com/Tencent/tdesign-vue/pull/2584))

## 🌈 1.4.7 `2023-07-11`
### 🚀 Features
- `Upload`: @chaishi ([#2568](https://github.com/Tencent/tdesign-vue/pull/2568))
- 新增组件实例方法,`uploadFilePercent` 用于更新文件上传进度
- `theme=image`,支持使用 `fileListDisplay` 自定义 UI 内容
- `theme=image`,支持点击名称打开新窗口访问图片,[issue#2338](https://github.com/Tencent/tdesign-vue/issues/2338)
- 拖拽上传场景,支持 `accept` 文件类型限制,[issue#3075](https://github.com/Tencent/tdesign-vue-next/issues/3075)
- `Dialog`: 为内容区域增加超长时滚动条样式实现 @liweijie0812 ([common#1523](https://github.com/Tencent/tdesign-common/pull/1523))
### 🐞 Bug Fixes
- `Alert`: 修复内部自定义元素透明度变化,意外导致 Alert 隐藏的问题 @xiaosansiji ([#2571](https://github.com/Tencent/tdesign-vue/pull/2571))
- `Upload`: 自定义上传方法,修复未能正确返回上传成功或失败后的文件问题 @chaishi ([#2568](https://github.com/Tencent/tdesign-vue/pull/2568))
- `Popup`: 修复 `trigger=hover` 时首次鼠标快速移动导致父级关闭的问题 @ikeq ([#2573](https://github.com/Tencent/tdesign-vue/pull/2573))

## 🌈 1.4.6 `2023-07-04`
### 🚀 Features
- `DatePicker`: 新增 `onConfirm` 事件 @liweijie0812 ([#2545](https://github.com/Tencent/tdesign-vue/pull/2545))
- `Table`: 树形结构,添加行层级类名,方便业务设置不同层级的样式 @chaishi ([#2547](https://github.com/Tencent/tdesign-vue/pull/2547))
### 🐞 Bug Fixes
- `DatePicker`: 修复默认值为 `null` 时点击日期选择器报错的问题 @liweijie0812 ([common#1499](https://github.com/Tencent/tdesign-common/pull/1499))
- `Input`: 修复 `limitNumber` 部分在 `disabled` 状态下的样式问题 @uyarn ([#2557](https://github.com/Tencent/tdesign-vue/pull/2557))
- `Tree`: 修复单独设置 `checkable` 属性的功能 @TabSpace @uyarn ([#2557](https://github.com/Tencent/tdesign-vue/pull/2557))
- `InputNumber`: 修复 `value = 0`时自动校正不生效的问题 @imp2002 ([#2546](https://github.com/Tencent/tdesign-vue/pull/2546))
### 🚧 Others
- `编辑器插件`: 更新 WebStorm 等编辑器的组件提示 @liweijie0812 ([#2544](https://github.com/Tencent/tdesign-vue/pull/2544))

## 🌈 1.4.5 `2023-06-27`
### 🚀 Features
- `Dialog`: 支持full-screen模式 @Ghostdar ([#2529](https://github.com/Tencent/tdesign-vue/pull/2529))
- `Table`: 列宽调整场景,新增事件 `onColumnResizeChange`,在列宽调整后触发 @chaishi ([#2535](https://github.com/Tencent/tdesign-vue/pull/2535))
- `Menu`: 为默认侧边导航菜单滚动条增加优化样式 @liweijie0812 ([common#1421](https://github.com/Tencent/tdesign-common/pull/1421))
### 🐞 Bug Fixes
- `Table`: 列配置和列宽调整场景,修复列数量由多变少时未能更新宽度问题;[tdesign-vue-next#2951](https://github.com/Tencent/tdesign-vue-next/issues/2951) @chaishi ([#2535](https://github.com/Tencent/tdesign-vue/pull/2535))
- ### 🚧 Others
- `官网`: 官网新增英文版本,支持中英文切换 @uyarn ([#2521](https://github.com/Tencent/tdesign-vue/pull/2521))

## 🌈 1.4.4 `2023-06-20`
### 🐞 Bug Fixes
- `Drawer`: 修复 `destroyOnClose` 不符合预期问题 @Aicmortal ([#2517](https://github.com/Tencent/tdesign-vue/pull/2517))
- `TextArea`: 修复设置 `value` 值后 autosize 自适应失效的问题 @xiaosansiji ([#2527](https://github.com/Tencent/tdesign-vue/pull/2527))
- `Swiper`: 修复 `navigation` 插槽失效的问题 @uyarn ([#2514](https://github.com/Tencent/tdesign-vue/pull/2514))
- `Table`: 减少斑马纹样式影响范围,避免自定义元素被自定义 @chaishi ([common#1415](https://github.com/Tencent/tdesign-common/pull/1415))
- `Menu`: 侧边导航超长时,不再隐藏滚动条,防止鼠标操作环境下不能拖动滚动条的问题 @xiaosansiji ([common#1416](https://github.com/Tencent/tdesign-common/pull/1416))
### 🚧 Others
- `Dropdown`: 新增带图标的下拉菜单示例 @aomnisz ([#2523](https://github.com/Tencent/tdesign-vue/pull/2523))

## 🌈 1.4.2 `2023-06-13`
### 🚀 Features
- `Menu`:
- Submenu 新增 popupProps 属性,允许透传设置底层 Popup 弹窗属性 @xiaosansiji ([#2504](https://github.com/Tencent/tdesign-vue/pull/2504))
- 去除子菜单 inline 样式,改为样式类实现,方便通过全局 Design Token 方式调整尺寸和间距等 @xiaosansiji ([#2496](https://github.com/Tencent/tdesign-vue/pull/2496))
- `InputNumber`: 初始值为 `undefined/null`,且存在 decimalPlaces 时,不再进行小数点纠正 @chaishi ([#2483](https://github.com/Tencent/tdesign-vue/pull/2483))
### 🐞 Bug Fixes
- `Menu`:
- 修复弹出类菜单内容未对齐的问题 @xiaosansiji ([#2496](https://github.com/Tencent/tdesign-vue/pull/2496))
- 修复侧边导航横向内容可以滚动的问题 @xiaosansiji ([common#1398](https://github.com/Tencent/tdesign-common/pull/1398))
- 修复菜单项与展开箭头 icon 未两端对齐的问题 @xiaosansiji ([common#1390](https://github.com/Tencent/tdesign-common/pull/1390))
- `Timeline`: 修复 `timeline-item` 响应式渲染丢失的问题 @uyarn ([#2501](https://github.com/Tencent/tdesign-vue/pull/2501))
- `Table`: 修复通过 `current` 修改分页,序列号没有变化的问题 @LoopZhou ([#2506](https://github.com/Tencent/tdesign-vue/pull/2506))
- `ColorPicker`: 初始化为渐变模式时 支持空字符串作为初始值 @uyarn ([#2511](https://github.com/Tencent/tdesign-vue/pull/2511))
- `TreeSelect`: 修复 keys配合 `valueType = object` 时使用的异常问题 @uyarn ([#2511](https://github.com/Tencent/tdesign-vue/pull/2511))
- `Cascader`: 修复空数组选项展示异常的问题 @uyarn ([#2511](https://github.com/Tencent/tdesign-vue/pull/2511))
- `Upload`: 删除 Upload 中对 loading 的重复颜色设置 @sinbadmaster ([common#1399](https://github.com/Tencent/tdesign-common/pull/1399))

## 🌈 1.4.0 `2023-06-06`
### 🚀 Features
- `Menu`: @xiaosansiji ([#2461](https://github.com/Tencent/tdesign-vue/pull/2461))
- 设置 `href` 时使用 `<a>` 标签渲染菜单项 [#1671](https://github.com/Tencent/tdesign-vue-next/issues/1671)
- 使用 Popup 重构 Menu 弹出菜单实现
- `Select`: 优化选项结构 移除多余的span节点 @uyarn ([#2480](https://github.com/Tencent/tdesign-vue/pull/2480))
- `InputNumber`: 支持默认格式化小数点 @chaishi ([#2478](https://github.com/Tencent/tdesign-vue/pull/2478))
### 🐞 Bug Fixes
- `Loading`: 修复多次调用关闭全屏函数时控制台报错问题 @huangpiqiao ([#2465](https://github.com/Tencent/tdesign-vue/pull/2465))
- `Menu`: @xiaosansiji ([#2461](https://github.com/Tencent/tdesign-vue/pull/2461))
- 修复收起菜单时超出内容无法滚动的问题 [#2435](https://github.com/Tencent/tdesign-vue/issues/2435)
- 修复侧边导航菜单,次级弹出菜单也会展示 Tooltip 的问题
- `InputNumber`: 修复部分小数点数字无法输入问题 @chaishi ([#2460](https://github.com/Tencent/tdesign-vue/pull/2460))
- `Popup`: 修复 `popupPlugin `用法的 `triggerElement` 参数的类型报错的问题 @zhangpaopao0609 ([#2477](https://github.com/Tencent/tdesign-vue/pull/2477))
- `Input`: 修复快速输入或同时输入时输入值异常的问题 @uyarn ([#2479](https://github.com/Tencent/tdesign-vue/pull/2479))
- `InputAdornment`: 修复 1.3.4 中修复空字符串导致插槽没有正常渲染的问题 @uyarn ([#2480](https://github.com/Tencent/tdesign-vue/pull/2480))
- `ImageViewer`: 修复 closeBtn `prop = false` 时渲染异常的问题 @sinbadmaster ([#2472](https://github.com/Tencent/tdesign-vue/pull/2472))
- `类型问题`: 修复`Radio Checkbox Input Tabs Popup`等组件缺少 type 的问题 @chaishi ([#2475](https://github.com/Tencent/tdesign-vue/pull/2475))

## 🌈 1.3.4 `2023-05-30`
### 🚀 Features

- `DatePicker`: 优化关闭浮层后重置默认选中区域 @honkinglin ([#2585](https://github.com/Tencent/tdesign-vue/pull/2585))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-vue",
"purename": "tdesign",
"version": "1.4.8-naruto",
"version": "1.5.0-naruto",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 90 files
+179 −0 docs/miniprogram/design/icon.md
+19 −14 docs/mobile/api_v2/action-sheet.en-US.md
+8 −8 docs/mobile/api_v2/cell.en-US.md
+15 −15 docs/mobile/api_v2/checkbox.en-US.md
+12 −12 docs/mobile/api_v2/collapse.en-US.md
+5 −5 docs/mobile/api_v2/count-down.en-US.md
+6 −6 docs/mobile/api_v2/date-time-picker.en-US.md
+18 −18 docs/mobile/api_v2/dialog.en-US.md
+2 −2 docs/mobile/api_v2/divider.en-US.md
+4 −4 docs/mobile/api_v2/drawer.en-US.md
+10 −10 docs/mobile/api_v2/dropdown-menu.en-US.md
+7 −7 docs/mobile/api_v2/empty.en-US.md
+6 −5 docs/mobile/api_v2/footer.en-US.md
+1 −1 docs/mobile/api_v2/footer.md
+4 −4 docs/mobile/api_v2/form.en-US.md
+1 −1 docs/mobile/api_v2/form.md
+9 −9 docs/mobile/api_v2/grid.en-US.md
+3 −3 docs/mobile/api_v2/icon.en-US.md
+4 −5 docs/mobile/api_v2/image-viewer.en-US.md
+9 −9 docs/mobile/api_v2/image.en-US.md
+5 −5 docs/mobile/api_v2/indexes.en-US.md
+20 −19 docs/mobile/api_v2/input.en-US.md
+7 −5 docs/mobile/api_v2/link.en-US.md
+1 −1 docs/mobile/api_v2/link.md
+5 −6 docs/mobile/api_v2/list.en-US.md
+6 −6 docs/mobile/api_v2/message.en-US.md
+10 −10 docs/mobile/api_v2/navbar.en-US.md
+14 −15 docs/mobile/api_v2/notice-bar.en-US.md
+4 −4 docs/mobile/api_v2/overlay.en-US.md
+6 −6 docs/mobile/api_v2/picker.en-US.md
+6 −6 docs/mobile/api_v2/popover.en-US.md
+8 −8 docs/mobile/api_v2/popup.en-US.md
+11 −12 docs/mobile/api_v2/progress.en-US.md
+5 −5 docs/mobile/api_v2/pull-down-refresh.en-US.md
+10 −10 docs/mobile/api_v2/radio.en-US.md
+13 −13 docs/mobile/api_v2/rate.en-US.md
+5 −5 docs/mobile/api_v2/result.en-US.md
+11 −11 docs/mobile/api_v2/search.en-US.md
+8 −8 docs/mobile/api_v2/side-bar.en-US.md
+10 −10 docs/mobile/api_v2/skeleton.en-US.md
+13 −13 docs/mobile/api_v2/slider.en-US.md
+11 −11 docs/mobile/api_v2/stepper.en-US.md
+18 −18 docs/mobile/api_v2/steps.en-US.md
+7 −7 docs/mobile/api_v2/sticky.en-US.md
+11 −11 docs/mobile/api_v2/swipe-cell.en-US.md
+9 −10 docs/mobile/api_v2/swiper.en-US.md
+9 −8 docs/mobile/api_v2/switch.en-US.md
+13 −13 docs/mobile/api_v2/tab-bar.en-US.md
+8 −8 docs/mobile/api_v2/table.en-US.md
+11 −11 docs/mobile/api_v2/tabs.en-US.md
+10 −9 docs/mobile/api_v2/tag.en-US.md
+14 −14 docs/mobile/api_v2/textarea.en-US.md
+7 −7 docs/mobile/api_v2/toast.en-US.md
+7 −7 docs/mobile/api_v2/upload.en-US.md
+179 −0 docs/mobile/design/icon.md
+6 −0 docs/web/api/transfer.en-US.md
+6 −0 docs/web/api/transfer.md
+54 −0 js/slider/utils.ts
+250 −218 js/tree/tree-node-model.ts
+0 −2 js/tree/tree-node.ts
+35 −30 js/tree/tree-store.ts
+15 −1 js/upload/main.ts
+8 −1 js/upload/utils.ts
+2 −2 style/mobile/components/cell/v2/_var.less
+1 −1 style/mobile/components/collapse/_var.less
+1 −1 style/mobile/components/collapse/v2/_index.less
+1 −1 style/mobile/components/collapse/v2/_var.less
+1 −1 style/mobile/components/grid-item/v2/_index.less
+1 −1 style/mobile/components/grid-item/v2/_var.less
+1 −1 style/mobile/components/overlay/v2/_var.less
+1 −1 style/mobile/components/popover/_var.less
+2 −7 style/mobile/components/popup/v2/_index.less
+1 −1 style/mobile/components/search/v2/_index.less
+1 −1 style/mobile/components/step-item/v2/_index.less
+1 −1 style/mobile/components/step-item/v2/_var.less
+3 −3 style/mobile/components/switch/v2/_index.less
+3 −3 style/mobile/components/switch/v2/_var.less
+0 −1 style/mobile/components/tab-bar-item/v2/_var.less
+1 −1 style/mobile/components/tabs/v2/_var.less
+9 −7 style/mobile/components/toast/v2/_index.less
+2 −1 style/mobile/components/toast/v2/_var.less
+5 −0 style/web/_global.less
+1 −0 style/web/components/auto-complete/_index.less
+0 −5 style/web/components/collapse/_index.less
+5 −1 style/web/components/input-number/_index.less
+6 −6 style/web/components/menu/_index.less
+3 −1 style/web/components/tag-input/_index.less
+1 −1 style/web/components/transfer/_index.less
+21 −0 style/web/components/upload/_index.less
+6 −0 style/web/components/upload/_var.less
16 changes: 12 additions & 4 deletions src/checkbox/_example/group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
</t-space>

<!-- key 是避免重复渲染的关键;Checkbox.key is the key point of list render -->
<!-- 数据量大的情况下,不建议使用这种方式:因父组件 CheckboxGroup 选中项变化,子组件 Checkbox 一定重新渲染-->
<!-- 数据量大的情况下,不建议使用这种方式:因 Vue2 框架中,父组件 CheckboxGroup 选中项变化,子组件 Checkbox 一定全量重新渲染-->
<t-space direction="vertical">
<div>方式二:组件内置全选功能,使用插槽定义选项。选中值: {{ value2.join(', ') }}</div>
<div>
方式二:组件内置全选功能,使用插槽定义选项。⚠️注意:数据量大时,不建议使用这种方式。选中值:
{{ value2.join(', ') }}。
</div>
<t-checkbox-group v-model="value2" @change="onChange2">
<t-checkbox key="1" :checkAll="true" label="全选" />
<t-checkbox key="2" value="选项一">选项一</t-checkbox>
Expand All @@ -22,13 +25,18 @@

<!-- 数据量大的情况下,建议使用这种方式,可以避免选中项重复渲染 -->
<t-space direction="vertical">
<div>方式三:组件内置全选功能,使用 `options` 定义选项。选中值: {{ value3.join(', ') }}</div>
<div>
方式三:组件内置全选功能,使用 `options` 定义选项。数据量大时,可以避免所有元素重新渲染。选中值:
{{ value3.join(', ') }}
</div>
<t-checkbox-group v-model="value3" :options="options2" @change="onChange3" />
</t-space>

<!-- 数据量大的情况下,建议使用这种方式,可以避免选中项重复渲染 -->
<t-space direction="vertical">
<div>方式四:组件内置全选功能,`options` 定义选项列表,插槽定义选项内容</div>
<div>
方式四:组件内置全选功能,`options` 定义选项列表,插槽定义选项内容。数据量大时,可以避免所有元素重新渲染。
</div>
<t-checkbox-group :defaultValue="['选项一']" :options="options3">
<template #label="{ data: { label, value, checkAll }, index }">
<span v-if="checkAll">{{ label }}</span>
Expand Down
14 changes: 9 additions & 5 deletions src/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ import {
defineComponent, ref, toRefs, inject, watch, onBeforeUnmount,
} from 'vue';
import props from './props';
import useVModel from '../hooks/useVModel';
import { renderTNodeJSX, useFormDisabled } from '../hooks';
import { useCommonClassName, usePrefixClass } from '../hooks/useConfig';
import {
useVModel,
useElementLazyRender,
renderTNodeJSX,
useFormDisabled,
useCommonClassName,
usePrefixClass,
} from '../hooks';
import { CheckboxGroupInjectionKey } from './constants';
import { getCheckboxStore, ObserverListenerParams } from './store';
import useCheckboxLazyLoad from './hooks/useCheckboxLazyLoad';
import useKeyboardEvent from './hooks/useKeyboardEvent';

export default defineComponent({
Expand Down Expand Up @@ -173,7 +177,7 @@ export default defineComponent({
if (props.stopLabelTrigger) e.preventDefault();
};

const { showCheckbox } = useCheckboxLazyLoad(labelRef, lazyLoad);
const { showElement: showCheckbox } = useElementLazyRender(labelRef, lazyLoad);

const { onCheckboxFocus, onCheckboxBlur } = useKeyboardEvent(handleChange);

Expand Down
18 changes: 14 additions & 4 deletions src/checkbox/group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,25 @@ export default defineComponent({
{ immediate: true },
);

const addStoreKeyToCheckbox = (nodes: VNode[]) => {
for (let i = 0, len = nodes.length; i < len; i++) {
const vNode = nodes[i];
if (vNode.componentOptions && /TCheckbox/.test(vNode.tag)) {
(vNode.componentOptions.propsData as any).storeKey = storeKey;
}
if (vNode.children?.length) {
addStoreKeyToCheckbox(vNode.children);
}
}
};

return {
storeKey,
optionList,
innerValue,
COMPONENT_NAME,
getOptionListBySlots,
addStoreKeyToCheckbox,
};
},

Expand All @@ -196,10 +209,7 @@ export default defineComponent({
} else {
const nodes = this.$scopedSlots.default?.(null);
this.optionList = this.getOptionListBySlots();
nodes.forEach((vNode: VNode) => {
// eslint-disable-next-line
(vNode.componentOptions.propsData as any).storeKey = this.storeKey;
});
this.addStoreKeyToCheckbox(nodes);
children = nodes;
}
return (
Expand Down
2 changes: 1 addition & 1 deletion src/collapse/collapse-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FakeArrow from '../common-components/fake-arrow';
import { CollapseValue, TdCollapsePanelProps } from './type';
import { usePrefixClass } from '../hooks/useConfig';
import { useTNodeJSX, useContent } from '../hooks/tnode';
import useCollapseAnimation from './useCollapseAnimation';
import useCollapseAnimation from '../hooks/useCollapseAnimation';

export default defineComponent({
name: 'TCollapsePanel',
Expand Down
1 change: 1 addition & 0 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from './useCommonClassName';
export * from './useConfig';
export * from './useDefaultValue';
export * from './useDestroyOnClose';
export * from './useElementLazyRender';
export * from './useFormDisabled';
export * from './useGlobalIcon';
export * from './useLazyLoad';
Expand Down
File renamed without changes.
Loading

0 comments on commit 22e1f29

Please sign in to comment.