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

feat(1.5.0): weekly sync update to naruto #2626

Merged
merged 62 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
fe1a9c9
Release/1.4.0 (#2481)
xiaosansiji Jun 6, 2023
70c4ca1
fix: 1.4.0 changelog render error (#2482)
xiaosansiji Jun 6, 2023
7cdde4e
fix(input-number): do not set value if value is undefined/null (#2483)
chaishi Jun 7, 2023
f2b2863
docs: update documentation for vue2.7 support (#2491)
uyarn Jun 8, 2023
033d77c
feat: move popup align style to less from inline style (#2496)
xiaosansiji Jun 9, 2023
8b960c0
chore: add 2.7 infra (#2497)
uyarn Jun 9, 2023
e19b84b
chore(deps-dev): bump workbox-precaching from 6.6.1 to 7.0.0 (#2467)
dependabot[bot] Jun 12, 2023
58c168e
fix(timeline): async timeline render (#2501)
uyarn Jun 12, 2023
e28b2fa
Feat/submenu popup props (#2504)
xiaosansiji Jun 13, 2023
3bced74
fix(table): 通过current修改分页,序列号没有变化问题修复 (#2506)
LoopZhou Jun 13, 2023
08c094b
fix(colorpicker): support empty initial value for graident color (#2511)
uyarn Jun 13, 2023
d0bdbe1
feat: release 1.4.1 (#2512)
xiaosansiji Jun 13, 2023
6f4e831
feat: release 1.4.2 (#2515)
xiaosansiji Jun 13, 2023
dc556a2
fix(Drawer): 修复destroyOnClose不符合预期问题 (#2517)
liect Jun 16, 2023
93ab803
docs: provide en-version docs (#2520)
uyarn Jun 16, 2023
04cffc1
feat(dropdown): 新增带图标的下拉菜单示例 (#2523)
aomnisz Jun 19, 2023
aea51ed
fix: textarea auto height (#2527)
xiaosansiji Jun 20, 2023
09f6b4f
fix(swiper): navigation slot (#2514)
uyarn Jun 20, 2023
2b667de
Release/1.4.3 (#2528)
xiaosansiji Jun 20, 2023
24db8d9
feat: release 1.4.4 (#2532)
xiaosansiji Jun 20, 2023
6d795f4
feat: dialog support full-screen mode (#2529)
Ghostdar Jun 23, 2023
6de693f
[Table] 修复列配置和列宽调整场景,列数量由多变少时未能更新宽度;新增事件 onColumnResizeChange (#2535)
chaishi Jun 25, 2023
39740e2
chore: setup with pnpm (#2536)
uyarn Jun 26, 2023
f007839
docs: add EN version site (#2521)
uyarn Jun 27, 2023
b4f43a6
feat: release 1.4.5 (#2539)
xiaosansiji Jun 27, 2023
be8c70c
chore: complete en docs (#2541)
uyarn Jun 27, 2023
e243010
feat(DatePicker): 新增 onConfirm事件 (#2545)
liweijie0812 Jun 30, 2023
f76c9f4
fix(input-number): calibration invalid for value=0 (#2546)
imp2002 Jun 30, 2023
7fb99bf
chore: fix test script (#2553)
uyarn Jul 3, 2023
f04ddf2
feat(table): add new class name t-table-tr--level-${level} to table r…
chaishi Jul 3, 2023
781b27a
fix(input): fix limit disabled bg color (#2557)
uyarn Jul 3, 2023
16b7049
chore: update helper tips (#2544)
liweijie0812 Jul 4, 2023
0980ca9
feat: release 1.4.6 (#2560)
xiaosansiji Jul 4, 2023
4fe2003
chore(deps-dev): bump @commitlint/cli from 17.4.4 to 17.6.6 (#2552)
dependabot[bot] Jul 9, 2023
d9ef04e
chore(deps-dev): bump @babel/core from 7.16.12 to 7.22.5 (#2551)
dependabot[bot] Jul 9, 2023
91a7c42
fix: alert opacity style when closed (#2571)
xiaosansiji Jul 10, 2023
5db901a
[Upload] `theme=image` fileListDisplay support, click fileName to op…
chaishi Jul 11, 2023
777218b
fix(popup): fix comparison of initial state (#2573)
ikeq Jul 11, 2023
91d7af5
feat: release 1.4.7 (#2574)
xiaosansiji Jul 11, 2023
2db8b38
docs(Input): value type remove Number (#2582)
liweijie0812 Jul 14, 2023
f0fed23
feat(datepicker): 优化关闭浮层后重置默认选中区域 (#2585)
honkinglin Jul 17, 2023
b3432fe
fix: action ci script security (#2588)
xiaosansiji Jul 17, 2023
6dde627
[Checkbox] Performance Optimization (#2583)
chaishi Jul 17, 2023
91325ea
docs(Grid): row Props.gutterTS类型补充lg,xl,xxl (#2584)
liweijie0812 Jul 18, 2023
4eaa1f3
[+] 销毁前需要移除dialog创建的DOM (#2581)
loganylwu Jul 18, 2023
1e4c297
feat: release 1.4.8 (#2590)
xiaosansiji Jul 18, 2023
f516ae8
fix(tabs): change tab navs dom to method render (#2595)
uyarn Jul 19, 2023
9c9a804
fix(transfer): fix disabled value removed from target (#2599)
uyarn Jul 21, 2023
a733d9e
[Table] editable table support setting colKey to be like a.b.c; suppo…
chaishi Jul 23, 2023
55eb29a
refactor: tree 组件改进列表渲染逻辑 (#2586)
TabSpace Jul 23, 2023
63c4b1e
fix(table): column resizable for affixed header table (#2606)
chaishi Jul 24, 2023
5b418a9
fix(checkbox): support custom node in checkbox group (#2604)
chaishi Jul 24, 2023
0a34a41
feat(transfer): support draggable on target list (#2612)
uyarn Jul 24, 2023
b3367ac
feat(slider): label support % format (#2613)
uyarn Jul 25, 2023
e9c6136
feat(menu-item): 新增API: routerLink,可指定菜单项渲染为Router控制跳转的a标签 (#2603)
boogie-ben Jul 25, 2023
95bb374
fix(input-number): tValue (#2617)
chaishi Jul 25, 2023
410a766
feat: use common collapse animation (#2561)
xiaosansiji Jul 25, 2023
3277486
feat(time-picker): disableTime callback add ms params (#2618)
uyarn Jul 25, 2023
b664684
Release/1.5.0 (#2620)
xiaosansiji Jul 25, 2023
7da9217
chore: add naruto auto publish workflow (#2624)
uyarn Jul 26, 2023
dbcd0d7
Revert "chore: add naruto auto publish workflow (#2624)" (#2625)
uyarn Jul 26, 2023
a39343b
chore: sync 1.5.0 update to naruto
uyarn Jul 26, 2023
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
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
Loading