Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into feature/insekkei
Browse files Browse the repository at this point in the history
  • Loading branch information
insekkei committed Mar 29, 2024
2 parents fe7cba6 + 1c1ce39 commit b100b03
Show file tree
Hide file tree
Showing 96 changed files with 2,357 additions and 1,503 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/issue-assignees.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,3 @@ jobs:
issuesOpened: |
👋 @{{ author }},感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
# https://docs.github.com/cn/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
- uses: 94dreamer/issue-assignees@main
id: assignees
with:
project_name: ${{github.event.repository.name}}
issue_title: ${{github.event.issue.title}}

- run: echo ${{ steps.assignees.outputs.contributors }}
- name: Add assigness
if: steps.assignees.outputs.contributors != ''
uses: actions-cool/issues-helper@v3
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
assignees: ${{ steps.assignees.outputs.contributors }}

- run: |
contributors=${{ steps.assignees.outputs.contributors }}
contributorstring=${contributors//,/ @}
echo "::set-output name=string::@$contributorstring"
id: contributors
- name: 通知贡献者
if: steps.assignees.outputs.contributors != ''
uses: actions-cool/maintain-one-comment@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
♥️ 有劳 ${{ steps.contributors.outputs.string }} 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @${{ github.event.issue.user.login }} 。
<!-- AUTO_ASSIGENEES_NOTIFY_HOOK -->
number: ${{ github.event.issue.number }}
body-include: "<!-- AUTO_ASSIGENEES_NOTIFY_HOOK -->"
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"source.fixAll.eslint": "explicit"
},
"cSpell.words": ["activable", "actived", "borderless", "Cascader", "Popconfirm", "Swiper", "tdesign"]
}
}
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,49 @@ toc: false
spline: explain
---

## 🌈 1.5.5 `2024-03-28`
### 🐞 Bug Fixes
- `ImageViewer`: 修复 `imageReferrerpolicy` 没有对顶部缩略图生效的问题 @uyarn ([#2815](https://github.com/Tencent/tdesign-react/pull/2815))

## 🌈 1.5.4 `2024-03-28`
### 🚀 Features
- `ImageViewer`: 新增`imageReferrerpolicy` API,支持配合 Image 组件的需要配置 Referrerpolicy 的场景 @uyarn ([#2813](https://github.com/Tencent/tdesign-react/pull/2813))
### 🐞 Bug Fixes
- `Select`: 修复 `onRemove` 事件没有正常触发的问题 @Ali-ovo ([#2802](https://github.com/Tencent/tdesign-react/pull/2802))
- `Skeleton`: 修复`children`为必须的类型问题 @uyarn ([#2805](https://github.com/Tencent/tdesign-react/pull/2805))
- `Tabs`: 提供 `action` 区域默认样式 @HaixingOoO ([#2808](https://github.com/Tencent/tdesign-react/pull/2808))
- `Locale`: 修复`image``imageViewer` 英语语言包异常的问题 @uyarn @HaixingOoO ([#2808](https://github.com/Tencent/tdesign-react/pull/2808))
- `Image`: `referrerpolicy` 参数被错误传递到外层 `div` 上,实际传递目标为原生 `image` 标签 @NWYLZW ([#2811](https://github.com/Tencent/tdesign-react/pull/2811))

## 🌈 1.5.3 `2024-03-14`
### 🚀 Features
- `Breadcrumb`: `BreadcrumbItem` 支持 `onClick` 事件 @HaixingOoO ([#2795](https://github.com/Tencent/tdesign-react/pull/2795))
- `tag`: `Tag`组件新增`color`API,支持自定义颜色 @maoyiluo @uyarn ([#2799](https://github.com/Tencent/tdesign-react/pull/2799))
### 🐞 Bug Fixes
- `FormList`: 修复多个`FormList` 卡死的问题 @HaixingOoO ([#2788](https://github.com/Tencent/tdesign-react/pull/2788))
- `DatePicker`: 修复 `format``valueType` 不一致的场景下计算错误的问题 @uyarn ([#2798](https://github.com/Tencent/tdesign-react/pull/2798))
### 🚧 Others
- `Portal`: 添加Portal测试用例 @HaixingOoO ([#2791](https://github.com/Tencent/tdesign-react/pull/2791))
- `List`: 完善 List 测试用例 @HaixingOoO ([#2792](https://github.com/Tencent/tdesign-react/pull/2792))
- `Alert`: 完善 Alert 测试,优化代码 @HaixingOoO ([#2793](https://github.com/Tencent/tdesign-react/pull/2793))

## 🌈 1.5.2 `2024-02-29`
### 🚀 Features
- `Cascader`: 新增`valueDisplay``label` API的支持 @HaixingOoO ([#2736](https://github.com/Tencent/tdesign-react/pull/2736))
- `Descriptions`: `Descriptions` 组件支持嵌套 @HaixingOoO ([#2777](https://github.com/Tencent/tdesign-react/pull/2777))
- `Tabs`: 调整激活 `Tab`下划线与 `TabHeader`边框的层级关系 @uyarn ([#2780](https://github.com/Tencent/tdesign-react/pull/2780))
### 🐞 Bug Fixes
- `Grid`: 尺寸计算错误,宽度兼容异常 @NWYLZW ([#2738](https://github.com/Tencent/tdesign-react/pull/2738))
- `Cascader`: 修复`clearable`点击清除按钮触发三次`onChange`的问题 @HaixingOoO ([#2736](https://github.com/Tencent/tdesign-react/pull/2736))
- `Dialog`: 修复`useDialogPosition`渲染多次绑定事件 @HaixingOoO ([#2749](https://github.com/Tencent/tdesign-react/pull/2749))
- `Guide`: 修复`Guide`自定义内容功能失效 @zhangpaopao0609 ([#2752](https://github.com/Tencent/tdesign-react/pull/2752))
- `Tree`: 修复设置 `keys.children` 后展开图标没有正常变化的问题 @uyarn ([#2746](https://github.com/Tencent/tdesign-react/pull/2746))
- `Tree`: 修复`Tree` 自定义label `setData` 没有渲染的问题 @HaixingOoO ([#2776](https://github.com/Tencent/tdesign-react/pull/2776))
- `Tree`: 修复设置 `Tree` 宽度,`TreeItem``checkbox` 会被压缩,`label` 省略号失效的问题 @HaixingOoO @uyarn ([#2780](https://github.com/Tencent/tdesign-react/pull/2780))
- `Select`: @uyarn
- 修复通过滚动加载选项选中后滚动行为异常的问题 ([#2779](https://github.com/Tencent/tdesign-react/pull/2779))
- 修复使用`size` API时,虚拟滚动的功能异常问题 ([#2756](https://github.com/Tencent/tdesign-react/pull/2756))

## 🌈 1.5.1 `2024-01-25`
### 🚀 Features
- `Popup`: 支持`Plugin`方式使用。 @HaixingOoO ([#2717](https://github.com/Tencent/tdesign-react/pull/2717))
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ TDesign 欢迎任何愿意参与贡献的参与者。如果需要本地运行代

有任何问题,建议通过 [Github issues](https://github.com/Tencent/tdesign-react/issues) 反馈或扫码加入用户微信群。

<img src="https://oteam-tdesign-1258344706.cos.ap-guangzhou.myqcloud.com/site/doc/React-IM.png" width="200" />
<img src="https://raw.githubusercontent.com/Tencent/tdesign/main/packages/components/src/images/groups/react-group.png" width="200" />

# 开源协议

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Contributing is welcome. Read [guidelines for contributing](https://github.com/T

Create your [Github issues](https://github.com/Tencent/tdesign-react/issues) or scan the QR code below to join our user groups

<img src="https://oteam-tdesign-1258344706.cos.ap-guangzhou.myqcloud.com/site/doc/React-IM.png" width="200" />
<img src="https://raw.githubusercontent.com/Tencent/tdesign/main/packages/components/src/images/groups/react-group.png" width="200" />

# License

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-react",
"purename": "tdesign",
"version": "1.5.1",
"version": "1.5.5",
"description": "TDesign Component for React",
"title": "tdesign-react",
"main": "lib/index.js",
Expand Down Expand Up @@ -184,7 +184,7 @@
"start-server-and-test": "^1.14.0",
"tdesign-icons-view": "^0.2.0",
"tdesign-publish-cli": "^0.0.10",
"tdesign-site-components": "^0.13.1",
"tdesign-site-components": "^0.14.6",
"tdesign-theme-generator": "^1.0.0",
"ts-morph": "^13.0.02",
"ts-node": "^10.4.0",
Expand All @@ -194,7 +194,7 @@
"vite-plugin-pwa": "^0.12.8",
"vite-plugin-tdoc": "^2.0.1",
"vitest": "^0.24.1",
"workbox-precaching": "^6.3.0"
"workbox-precaching": "^7.0.0"
},
"dependencies": {
"@babel/runtime": "~7.17.2",
Expand Down
8 changes: 0 additions & 8 deletions script/init-component/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ function getToBeCreatedFiles(component, pascalCaseName) {
file: `${pascalCaseName}.tsx`,
template: 'component.tsx.tpl',
},
{
file: `api.md`,
template: 'api.md.tpl',
},
{
file: `README.md`,
template: 'readme.md.tpl',
},
],
},
[`src/${component}/_example`]: {
Expand Down
3 changes: 0 additions & 3 deletions script/init-component/tpl/api.md.tpl

This file was deleted.

2 changes: 1 addition & 1 deletion script/init-component/tpl/component.tsx.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Td<%= PascalCaseComponent %>Props } from '../_type/components/<%= component %>';
import type { Td<%= PascalCaseComponent %>Props } from './type';

export type <%= PascalCaseComponent %>Props = Td<%= PascalCaseComponent %>Props;

Expand Down
3 changes: 0 additions & 3 deletions script/init-component/tpl/readme.md.tpl

This file was deleted.

106 changes: 53 additions & 53 deletions site/test-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = {
"lines": "85.93%"
},
"alert": {
"statements": "96.96%",
"branches": "72.72%",
"statements": "100%",
"branches": "100%",
"functions": "100%",
"lines": "100%"
},
Expand Down Expand Up @@ -48,10 +48,10 @@ module.exports = {
"lines": "100%"
},
"breadcrumb": {
"statements": "85.1%",
"branches": "54.83%",
"functions": "83.33%",
"lines": "88.88%"
"statements": "84.31%",
"branches": "53.12%",
"functions": "85.71%",
"lines": "89.58%"
},
"button": {
"statements": "100%",
Expand All @@ -72,10 +72,10 @@ module.exports = {
"lines": "100%"
},
"cascader": {
"statements": "92.66%",
"branches": "71.42%",
"functions": "92.3%",
"lines": "94.11%"
"statements": "93.12%",
"branches": "75.8%",
"functions": "90.62%",
"lines": "94.21%"
},
"checkbox": {
"statements": "90.27%",
Expand Down Expand Up @@ -114,10 +114,10 @@ module.exports = {
"lines": "68.75%"
},
"datePicker": {
"statements": "62.38%",
"branches": "42.79%",
"statements": "62.47%",
"branches": "43.3%",
"functions": "60%",
"lines": "66.07%"
"lines": "66.16%"
},
"descriptions": {
"statements": "98.82%",
Expand Down Expand Up @@ -150,10 +150,10 @@ module.exports = {
"lines": "92.4%"
},
"form": {
"statements": "83.54%",
"statements": "83.5%",
"branches": "70.73%",
"functions": "81.51%",
"lines": "87.2%"
"lines": "87.17%"
},
"grid": {
"statements": "84.21%",
Expand Down Expand Up @@ -216,10 +216,10 @@ module.exports = {
"lines": "100%"
},
"list": {
"statements": "78.78%",
"branches": "53.84%",
"functions": "66.66%",
"lines": "78.78%"
"statements": "100%",
"branches": "100%",
"functions": "100%",
"lines": "100%"
},
"loading": {
"statements": "86.07%",
Expand Down Expand Up @@ -264,10 +264,10 @@ module.exports = {
"lines": "76.92%"
},
"popup": {
"statements": "95.45%",
"branches": "92.85%",
"functions": "86.36%",
"lines": "94.82%"
"statements": "47.01%",
"branches": "41.26%",
"functions": "45.23%",
"lines": "45%"
},
"progress": {
"statements": "89.23%",
Expand Down Expand Up @@ -318,10 +318,10 @@ module.exports = {
"lines": "90.47%"
},
"space": {
"statements": "87.5%",
"statements": "87.75%",
"branches": "84.37%",
"functions": "100%",
"lines": "86.95%"
"lines": "87.75%"
},
"statistic": {
"statements": "84.44%",
Expand All @@ -330,40 +330,40 @@ module.exports = {
"lines": "85.71%"
},
"steps": {
"statements": "87.65%",
"branches": "66.66%",
"statements": "87.8%",
"branches": "66.07%",
"functions": "100%",
"lines": "100%"
"lines": "87.8%"
},
"swiper": {
"statements": "72.13%",
"branches": "42.6%",
"statements": "71.93%",
"branches": "43.28%",
"functions": "85.71%",
"lines": "71.5%"
"lines": "71.35%"
},
"switch": {
"statements": "96.29%",
"statements": "96.55%",
"branches": "92%",
"functions": "100%",
"lines": "100%"
"lines": "96.55%"
},
"table": {
"statements": "48.13%",
"statements": "48.36%",
"branches": "33.74%",
"functions": "45.91%",
"lines": "49.31%"
"lines": "49.56%"
},
"tabs": {
"statements": "91.11%",
"statements": "90.96%",
"branches": "78.64%",
"functions": "86.36%",
"lines": "91.32%"
"lines": "91.17%"
},
"tag": {
"statements": "65%",
"branches": "59.09%",
"functions": "46.66%",
"lines": "64.86%"
"statements": "56.25%",
"branches": "48.21%",
"functions": "47.05%",
"lines": "55.55%"
},
"tagInput": {
"statements": "85.11%",
Expand Down Expand Up @@ -396,22 +396,22 @@ module.exports = {
"lines": "90.56%"
},
"transfer": {
"statements": "86.06%",
"branches": "66.66%",
"statements": "86.27%",
"branches": "67.61%",
"functions": "84.28%",
"lines": "87.77%"
"lines": "87.97%"
},
"tree": {
"statements": "85.94%",
"branches": "70.09%",
"functions": "84.61%",
"lines": "88.08%"
"statements": "86.22%",
"branches": "70.64%",
"functions": "84.9%",
"lines": "88.33%"
},
"treeSelect": {
"statements": "95.45%",
"statements": "95.48%",
"branches": "86.17%",
"functions": "97.61%",
"lines": "97.2%"
"lines": "97.22%"
},
"upload": {
"statements": "96.66%",
Expand All @@ -420,10 +420,10 @@ module.exports = {
"lines": "100%"
},
"watermark": {
"statements": "95.65%",
"branches": "82.92%",
"statements": "95.77%",
"branches": "79.41%",
"functions": "100%",
"lines": "98.46%"
"lines": "98.5%"
},
"utils": {
"statements": "75.43%",
Expand Down
Loading

0 comments on commit b100b03

Please sign in to comment.