Skip to content

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

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 4 commits into from
Jul 15, 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/ColorPicker/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.2

2025-07-15

### 🐛 BugFix

- Fixed the issue that RGB value cannot be input when cleared([#3017](https://github.com/arco-design/arco-design/pull/3017))

## 2.66.1

2025-04-09
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.2

2025-07-15

### 🐛 问题修复

- 修复 RGB 值在清空时导致不可输入的问题([#3017](https://github.com/arco-design/arco-design/pull/3017))

## 2.66.1

2025-04-09
Expand Down
8 changes: 8 additions & 0 deletions components/InputTag/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.66.2

2025-07-15

### 🐛 BugFix

- Fixed the issue where maxTagCount="responsive" does not take effect when the `InputTag` component imports styles on demand([#2992](https://github.com/arco-design/arco-design/pull/2992))

## 2.65.0

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

2025-07-15

### 🐛 问题修复

- 修复 `InputTag` 组件按需引入样式时 maxTagCount="responsive" 不生效的问题([#2992](https://github.com/arco-design/arco-design/pull/2992))

## 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.2

2025-07-15

### 🐛 BugFix

- Fixed the issue that `size=mini` configured by `ConfigProvider` does not work for `Table` component([#2981](https://github.com/arco-design/arco-design/pull/2981))

## 2.66.0

2025-04-03
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.2

2025-07-15

### 🐛 问题修复

- 修复`ConfigProvider` 配置的 `size=mini` 对 `Table` 组件不生效的问题([#2981](https://github.com/arco-design/arco-design/pull/2981))

## 2.66.0

2025-04-03
Expand Down
3 changes: 2 additions & 1 deletion components/Table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ function Table<T extends unknown>(baseProps: TableProps<T>, ref: React.Ref<Table

// configProvider 提供的size可能和table size 不匹配,此时默认 'default'
const size =
props.size || (['default', 'middle', 'small', 'mini'].indexOf(ctxSize) > -1 ? ctxSize : 'default');
props.size ||
(['default', 'middle', 'small', 'mini'].indexOf(ctxSize) > -1 ? ctxSize : 'default');
const refTableHead = useRef<HTMLElement | null>(null);
const refTableBody = useRef<HTMLElement | null>(null);
const refTBody = useRef<HTMLElement | null>(null);
Expand Down
5 changes: 4 additions & 1 deletion components/_class/select-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ const CoreSelectView = React.forwardRef(
value: needShowInput && typeof _inputValue !== 'object' ? _inputValue : '',
// Allow placeholder to display the selected value first when searching
placeholder:
canFocusInput && renderedValue && typeof renderedValue !== 'object'
canFocusInput &&
// 0 can also be used as a placeholder, because when options is number[], the selected value may be 0
(!!renderedValue || renderedValue === 0) &&
typeof renderedValue !== 'object'
? renderedValue
: placeholder,
};
Expand Down
2 changes: 1 addition & 1 deletion components/_util/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const hsvToRgb = (h: number, s: number, v: number) => {
};
};

export const rgbToHsv = (r: number, g: number, b: number) => {
export const rgbToHsv = (r: number = 0, g: number = 0, b: number = 0) => {
r /= 255;
g /= 255;
b /= 255;
Expand Down
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.1",
"version": "2.66.2",
"description": "Arco Design React UI Library.",
"module": "./es/index.js",
"main": "./lib/index.js",
Expand Down
10 changes: 10 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,16 @@
changelog: true
---

## 2.66.2

2025-07-15

### 🐛 BugFix

- Fixed the issue that RGB value cannot be input when cleared([#3017](https://github.com/arco-design/arco-design/pull/3017))
- Fixed the issue where maxTagCount="responsive" does not take effect when the `InputTag` component imports styles on demand([#2992](https://github.com/arco-design/arco-design/pull/2992))
- Fixed the issue that `size=mini` configured by `ConfigProvider` does not work for `Table` component([#2981](https://github.com/arco-design/arco-design/pull/2981))

## 2.66.1

2025-04-09
Expand Down
10 changes: 10 additions & 0 deletions site/docs/version_v2.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
changelog: true
---

## 2.66.2

2025-07-15

### 🐛 问题修复

- 修复 RGB 值在清空时导致不可输入的问题([#3017](https://github.com/arco-design/arco-design/pull/3017))
- 修复 `InputTag` 组件按需引入样式时 maxTagCount="responsive" 不生效的问题([#2992](https://github.com/arco-design/arco-design/pull/2992))
- 修复`ConfigProvider` 配置的 `size=mini` 对 `Table` 组件不生效的问题([#2981](https://github.com/arco-design/arco-design/pull/2981))

## 2.66.1

2025-04-09
Expand Down
Loading