Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 18, 2024
2 parents 9884568 + 153f774 commit ba7eb0c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ toc: false
spline: explain
---

## 🌈 1.7.2 `2024-05-17`
## 🌈 1.7.3 `2024-05-18`
### 🐞 Bug Fixes
- `Menu`: 修复二级及以下 `SubMenu`没有处理classname的缺陷 @uyarn ([#2911](https://github.com/Tencent/tdesign-react/pull/2911))
- `Upload`: 修复手动上传的bug @HaixingOoO ([#2912](https://github.com/Tencent/tdesign-react/pull/2912))
- `Avatar`: 修复配合Popup使用浮层不展示的异常 @uyarn

## 🌈 1.7.1 `2024-05-16`
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-react",
"purename": "tdesign",
"version": "1.7.2",
"version": "1.7.3",
"description": "TDesign Component for React",
"title": "tdesign-react",
"main": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/menu/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export interface SubMenuWithCustomizeProps extends SubMenuProps {

const SubAccordion: FC<SubMenuWithCustomizeProps> = (props) => {
const { content, children = content, disabled, icon, title, value, className, style, level = 1, popupProps } = props;

const { overlayClassName, overlayInnerClassName, ...restPopupProps } = popupProps || {};

const { classPrefix } = useConfig();
Expand Down Expand Up @@ -57,6 +56,7 @@ const SubAccordion: FC<SubMenuWithCustomizeProps> = (props) => {
`${classPrefix}-menu__item--plain`,
`${classPrefix}-submenu__item`,
`${classPrefix}-submenu__item--icon`,
(child as ReactElement).props?.className,
),
}),
);
Expand Down
13 changes: 7 additions & 6 deletions src/upload/hooks/useUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,13 @@ export default function useUpload(props: TdUploadProps) {
setUploading(false);
if (status === 'success') {
// 全部上传成功后,一次性添加(非自动上传已在上一步添加)
if (props.autoUpload) {
setUploadValue([...data.files], {
trigger: 'add',
file: data.files[0],
});
}
/**
* 手动上传或自动上传都应触发setUploadValue
*/
setUploadValue([...data.files], {
trigger: 'add',
file: data.files[0],
});
props.onSuccess?.({
fileList: data.files,
currentFiles: files,
Expand Down

0 comments on commit ba7eb0c

Please sign in to comment.