Skip to content

[pull] main from arco-design:main #64

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

Merged
merged 5 commits into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions components/Carousel/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Revise the definition of `CarouselProps.indicatorPosition`([#2944](https://github.com/arco-design/arco-design/pull/2944))

## 2.61.2

2024-03-29
Expand Down
8 changes: 8 additions & 0 deletions components/Carousel/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修正 `Carousel` 组件 `CarouselProps. indicatorPosition` 定义([#2944](https://github.com/arco-design/arco-design/pull/2944))

## 2.61.2

2024-03-29
Expand Down
8 changes: 8 additions & 0 deletions components/Cascader/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed a bug where the `Cascader` component was not echoing option tags correctly when setting values ​​lazily while being controlled.([#2961](https://github.com/arco-design/arco-design/pull/2961))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/Cascader/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Cascader` 组件受控时延迟设置值时未正确回显选项标签的 bug 。([#2961](https://github.com/arco-design/arco-design/pull/2961))

## 2.65.0

2024-11-29
Expand Down
5 changes: 4 additions & 1 deletion components/Cascader/cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ function Cascader<T extends OptionProps>(baseProps: CascaderProps<T>, ref) {
// don't to use formatValue(x, y, store)
// we just need to get the value in a valid format, and update it to store nodes
const newValue = formatValue(props.value, isMultiple);

store.setNodeCheckedByValue(newValue);
setValue(newValue);
}
Expand Down Expand Up @@ -242,7 +243,9 @@ function Cascader<T extends OptionProps>(baseProps: CascaderProps<T>, ref) {
disabled: options[options.length - 1]?.disabled,
};
},
[store, renderFormat]
[store, stateValue, renderFormat]
// 这里把 stateValue 放到依赖里面,是因为当受控时props.value改变或非受控时内部stateValue改变,都会需要出发节点选中状态的更新
// 此时需要重新渲染已选中值的展示
);

const handleChange = (newValue: string[][], trigger?: 'panel') => {
Expand Down
8 changes: 8 additions & 0 deletions components/Collapse/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fix `Collapse` error in react 19([#2948](https://github.com/arco-design/arco-design/pull/2948))

## 2.51.0

2023-07-28
Expand Down
8 changes: 8 additions & 0 deletions components/Collapse/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Collapse` 在 react 19 下报错问题([#2948](https://github.com/arco-design/arco-design/pull/2948))

## 2.51.0

2023-07-28
Expand Down
8 changes: 8 additions & 0 deletions components/ColorPicker/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 Feature

- `ColorPicker` supports `mode` to select a single color or gradient colors.([#2906](https://github.com/arco-design/arco-design/pull/2906))

## 2.64.1

2024-10-28
Expand Down
8 changes: 8 additions & 0 deletions components/ColorPicker/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 功能升级

- `ColorPicker` 支持 `mode` 来选择单个颜色或渐变色。([#2906](https://github.com/arco-design/arco-design/pull/2906))

## 2.64.1

2024-10-28
Expand Down
8 changes: 8 additions & 0 deletions components/DatePicker/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the issue that after the `DatePicker` component sets the timezone, if there is PST and PDT, there will be one hour more or less at the boundary point.([#2938](https://github.com/arco-design/arco-design/pull/2938))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/DatePicker/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `DatePicker` 组件设置时区后,如果有冬令时和夏令时,在边界点会存在多一个小时或者少一个小时的情况。([#2938](https://github.com/arco-design/arco-design/pull/2938))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/Descriptions/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 Feature

- `Descriptions` supports reading `size` property configuration from the global context([#2947](https://github.com/arco-design/arco-design/pull/2947))

## 2.50.0

2023-06-30
Expand Down
8 changes: 8 additions & 0 deletions components/Descriptions/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 功能升级

- `Descriptions`支持从全局上下文读取 `size` 属性配置([#2947](https://github.com/arco-design/arco-design/pull/2947))

## 2.50.0

2023-06-30
Expand Down
8 changes: 8 additions & 0 deletions components/Form/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the "Form" component dependcies execution timing bug. (Only when the value of the field specified by dependencies changes, the validation of Form.Item itself is triggered)([#2869](https://github.com/arco-design/arco-design/pull/2869))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/Form/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Form` 组件 dependcies 执行时机 bug。(仅在 dependencies 指定的字段的值发生改变时,才触发自身 Form.Item 的校验)([#2869](https://github.com/arco-design/arco-design/pull/2869))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/Mentions/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the issue of setting multiple characters for custom trigger characters in `Mentions` component([#2855](https://github.com/arco-design/arco-design/pull/2855))

## 2.38.0

2022-07-29
Expand Down
8 changes: 8 additions & 0 deletions components/Mentions/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Mentions` 组件自定义触发字符设置多个字符的问题([#2855](https://github.com/arco-design/arco-design/pull/2855))

## 2.38.0

2022-07-29
Expand Down
8 changes: 8 additions & 0 deletions components/Message/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the bug that `Message.useMessage` reports an error in asynchronous execution scenarios.([#2951](https://github.com/arco-design/arco-design/pull/2951))

## 2.62.0

2024-04-26
Expand Down
8 changes: 8 additions & 0 deletions components/Message/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Message.useMessage` 在异步执行场景报错的 bug。([#2951](https://github.com/arco-design/arco-design/pull/2951))

## 2.62.0

2024-04-26
Expand Down
13 changes: 13 additions & 0 deletions components/Select/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 2.66.0

2025-04-03

### 🆕 Feature

- ([#2904](https://github.com/arco-design/arco-design/pull/2904))

### 🐛 BugFix

- Fixed a bug that caused duplicate tag rendering when `maxTagCount` changed dynamically.([#2923](https://github.com/arco-design/arco-design/pull/2923))
- Fixed the bug that when `renderTag` and `maxTag.showPopover` are used at the same time, the tag removal in the popup layer does not take effect([#2923](https://github.com/arco-design/arco-design/pull/2923))

## 2.65.0

2024-11-29
Expand Down
13 changes: 13 additions & 0 deletions components/Select/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 2.66.0

2025-04-03

### 🆕 功能升级

- `Select/Cascader/TreeSelect` 组件 `maxTagCount.showPopover` 支持传入 `popoverProps`([#2904](https://github.com/arco-design/arco-design/pull/2904))

### 🐛 问题修复

- 修复 `maxTagCount` 动态改变时,出现重复 Tag 渲染的 bug。([#2923](https://github.com/arco-design/arco-design/pull/2923))
- 修复 `renderTag` 和 `maxTag.showPopover` 同时使用时,弹出层内的 Tag 移除不生效的 bug 。([#2923](https://github.com/arco-design/arco-design/pull/2923))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions components/Table/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the bug of repeated rendering of expanded row content in Table component([#2959](https://github.com/arco-design/arco-design/pull/2959))

## 2.64.1

2024-10-28
Expand Down
8 changes: 8 additions & 0 deletions components/Table/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Table` 组件展开行内容重复渲染的 bug([#2959](https://github.com/arco-design/arco-design/pull/2959))

## 2.64.1

2024-10-28
Expand Down
2 changes: 1 addition & 1 deletion components/Table/tbody/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function TBody<T>(props: TbodyProps<T>) {

const renderDataRecord = (record: TBodyDataRecord, index: number) => (
<DataRecordRenderer
key={index}
key={getRowKey(record) ?? index}
record={record}
index={index}
virtualized={virtualized}
Expand Down
8 changes: 8 additions & 0 deletions components/Trigger/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 BugFix

- Fixed the issue that clickOutsideToClose capture event was not destroyed and reported an error([#2882](https://github.com/arco-design/arco-design/pull/2882))

## 2.61.2

2024-03-29
Expand Down
8 changes: 8 additions & 0 deletions components/Trigger/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🐛 问题修复

- 修复 `Trigger` 组件 `clickOutsideToClose` capture event 未销毁报错问题([#2882](https://github.com/arco-design/arco-design/pull/2882))

## 2.61.2

2024-03-29
Expand Down
2 changes: 1 addition & 1 deletion components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,5 @@ export { default as Watermark } from './Watermark';
export type { ImageProps, ImagePreviewProps, ImagePreviewActionProps, ImagePreviewGroupProps } from './Image/interface';
export { default as Image } from './Image';

export const version = '2.66.0-beta.2';
export const version = '2.66.0';

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arco-design/web-react",
"version": "2.66.0-beta.2",
"version": "2.66.0",
"description": "Arco Design React UI Library.",
"module": "./es/index.js",
"main": "./lib/index.js",
Expand Down
8 changes: 8 additions & 0 deletions site/docs/changelog.common.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 Feature

- Compatible with React 19. Please refer to the documentation for usage.([#2954](https://github.com/arco-design/arco-design/pull/2954))

## 2.65.0

2024-11-29
Expand Down
8 changes: 8 additions & 0 deletions site/docs/changelog.common.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.0

2025-04-03

### 🆕 功能升级

- 兼容 React 19 使用,使用方式可参考快速上手文档。([#2954](https://github.com/arco-design/arco-design/pull/2954))

## 2.65.0

2024-11-29
Expand Down
25 changes: 25 additions & 0 deletions site/docs/version_v2.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@
changelog: true
---

## 2.66.0

2025-04-03

### 🆕 Feature

- Compatible with React 19. Please refer to the documentation for usage.([#2954](https://github.com/arco-design/arco-design/pull/2954))
- `Descriptions` supports reading `size` property configuration from the global context([#2947](https://github.com/arco-design/arco-design/pull/2947))
- `ColorPicker` supports `mode` to select a single color or gradient colors.([#2906](https://github.com/arco-design/arco-design/pull/2906))
- ([#2904](https://github.com/arco-design/arco-design/pull/2904))

### 🐛 BugFix

- Fixed a bug where the `Cascader` component was not echoing option tags correctly when setting values ​​lazily while being controlled.([#2961](https://github.com/arco-design/arco-design/pull/2961))
- Fixed the bug of repeated rendering of expanded row content in Table component([#2959](https://github.com/arco-design/arco-design/pull/2959))
- Fixed the bug that `Message.useMessage` reports an error in asynchronous execution scenarios.([#2951](https://github.com/arco-design/arco-design/pull/2951))
- Fix `Collapse` error in react 19([#2948](https://github.com/arco-design/arco-design/pull/2948))
- Revise the definition of `CarouselProps.indicatorPosition`([#2944](https://github.com/arco-design/arco-design/pull/2944))
- Fixed the issue that after the `DatePicker` component sets the timezone, if there is PST and PDT, there will be one hour more or less at the boundary point.([#2938](https://github.com/arco-design/arco-design/pull/2938))
- Fixed a bug that caused duplicate tag rendering when `maxTagCount` changed dynamically.([#2923](https://github.com/arco-design/arco-design/pull/2923))
- Fixed the bug that when `renderTag` and `maxTag.showPopover` are used at the same time, the tag removal in the popup layer does not take effect([#2923](https://github.com/arco-design/arco-design/pull/2923))
- Fixed the issue that clickOutsideToClose capture event was not destroyed and reported an error([#2882](https://github.com/arco-design/arco-design/pull/2882))
- Fixed the "Form" component dependcies execution timing bug. (Only when the value of the field specified by dependencies changes, the validation of Form.Item itself is triggered)([#2869](https://github.com/arco-design/arco-design/pull/2869))
- Fixed the issue of setting multiple characters for custom trigger characters in `Mentions` component([#2855](https://github.com/arco-design/arco-design/pull/2855))

## 2.65.0

2024-11-29
Expand Down
Loading
Loading