Skip to content

Commit

Permalink
Release version 2.61.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flsion committed Mar 22, 2024
1 parent e78b367 commit 3620def
Show file tree
Hide file tree
Showing 16 changed files with 76 additions and 10 deletions.
2 changes: 2 additions & 0 deletions components/Image/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Show and preview pictures.
|defaultVisible|Whether visible by default|boolean |`-`|-|
|escToExit|Whether to enable pressing `ESC` to close the preview.|boolean |`true`|2.24.0|
|maskClosable|Whether click mask to close|boolean |`true`|-|
|resetTranslate|Enable position correction|boolean |`true`|2.61.0|
|visible|Whether is visible|boolean |`-`|-|
|breakPoint|The width that triggers the toolbar to switch to simple mode|number |`316`|-|
|src|Image path, The default in Image is the src of Image|string **(Required)**|`-`|-|
Expand All @@ -68,6 +69,7 @@ Start from `v2.14.0`
|forceRender|Whether to render the image list for loading images in advance|boolean |`-`|2.58.0|
|infinite|Whether to loop infinitely|boolean |`-`|-|
|maskClosable|Whether click mask to close|boolean |`true`|-|
|resetTranslate|Enable position correction|boolean |`true`|2.61.0|
|visible|Whether is visible|boolean |`-`|-|
|breakPoint|The width that triggers the toolbar to switch to simple mode|number |`316`|-|
|current|The index of current image (controlled prop)|number |`-`|-|
Expand Down
2 changes: 2 additions & 0 deletions components/Image/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
|defaultVisible|默认是否可见,非受控|boolean |`-`|-|
|escToExit|`ESC` 键关闭预览|boolean |`true`|2.24.0|
|maskClosable|点击 mask 是否触发关闭|boolean |`true`|-|
|resetTranslate|开启位置修正|boolean |`true`|2.61.0|
|visible|是否可见,受控属性|boolean |`-`|-|
|breakPoint|触发 toolbar 切换为 simple 模式的宽度|number |`316`|-|
|src|图片获取地址, 在 Image 中默认是 Image 的 src|string **(必填)**|`-`|-|
Expand All @@ -68,6 +69,7 @@
|forceRender|是否渲染图片列表,用于提前加载图片|boolean |`-`|2.58.0|
|infinite|是否无限循环|boolean |`-`|-|
|maskClosable|点击 mask 是否触发关闭|boolean |`true`|-|
|resetTranslate|开启位置修正|boolean |`true`|2.61.0|
|visible|是否可见,受控属性|boolean |`-`|-|
|breakPoint|触发 toolbar 切换为 simple 模式的宽度|number |`316`|-|
|current|当前展示的图片的下标 (受控属性)|number |`-`|-|
Expand Down
10 changes: 10 additions & 0 deletions components/Input/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 2.61.1

2024-03-22

### 🐛 BugFix

- Fixed the bug of icon misalignment when the `Input` component is set to `allowClear` and the width is adaptive.([#2606](https://github.com/arco-design/arco-design/pull/2606))
- The autowidth `Input` component does not show the omitted state when the text is hovered.([#2606](https://github.com/arco-design/arco-design/pull/2606))
- Fix the problem that `Input.Search` cannot transparently transmit `suffix` and `addAfter`([#2591](https://github.com/arco-design/arco-design/pull/2591))

## 2.61.0

2024-03-15
Expand Down
10 changes: 10 additions & 0 deletions components/Input/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 2.61.1

2024-03-22

### 🐛 问题修复

- 修复 `Input` 组件设置 `allowClear`且自适应宽度时,清除图标错位的 bug。([#2606](https://github.com/arco-design/arco-design/pull/2606))
- 自适应宽度的 `Input` 组件在文本被 Hover 时不显示省略状态。([#2606](https://github.com/arco-design/arco-design/pull/2606))
- 修复 `Input.Search` 无法透传 `suffix``addAfter` 的问题([#2591](https://github.com/arco-design/arco-design/pull/2591))

## 2.61.0

2024-03-15
Expand Down
4 changes: 2 additions & 2 deletions components/InputNumber/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ An input box which only allows to enter number.
|value|To set value|undefined \| number \| string |`-`|-|
|formatter|Specifies the format of the value presented|(value: number \| string, info: { userTyping: boolean; input: string }) => string |`-`|Param `info` in `2.41.0`|
|onBlur|Callback when the input is blurred|(e) => void |`-`|-|
|onChange|Callback when the value changes|(value: number, reason: [InputNumberValueChangeReason](#inputnumbervaluechangereason)) => void |`-`|`reason` in 2.61.0|
|onChange|Callback when the value changes|(value: number, reason?: [InputNumberValueChangeReason](#inputnumbervaluechangereason)) => void |`-`|`reason` in 2.61.0|
|onFocus|Callback when the input is focused|(e) => void |`-`|-|
|onKeyDown|Callback when the keyboard is pressed|(e: Event) => void |`-`|-|
|parser|Specifies the value extracted from formatter|(value: string) => number \| string |`(input) => input.replace(/[^\w\.-]+/g, '')`|-|

### InputNumberValueChangeReason

```js
// 造成输入框值改变的原因:用户输入、选中选项、选项下拉框收起、触发自动分词
// 造成输入框值改变的原因:用户输入、增加、减少、超出范围值修正
export type InputNumberValueChangeReason =
| "manual"
| "increase"
Expand Down
4 changes: 2 additions & 2 deletions components/InputNumber/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
|value|当前值|undefined \| number \| string |`-`|-|
|formatter|定义输入框展示值|(value: number \| string, info: { userTyping: boolean; input: string }) => string |`-`|Param `info` in `2.41.0`|
|onBlur|输入框失去聚焦事件的回调|(e) => void |`-`|-|
|onChange|变化回调|(value: number, reason: [InputNumberValueChangeReason](#inputnumbervaluechangereason)) => void |`-`|`reason` in 2.61.0|
|onChange|变化回调|(value: number, reason?: [InputNumberValueChangeReason](#inputnumbervaluechangereason)) => void |`-`|`reason` in 2.61.0|
|onFocus|输入框聚焦事件的回调|(e) => void |`-`|-|
|onKeyDown|键盘事件回调|(e: Event) => void |`-`|-|
|parser|从 formatter 转换为数字,和 formatter 搭配使用。|(value: string) => number \| string |`(input) => input.replace(/[^\w\.-]+/g, '')`|-|

### InputNumberValueChangeReason

```js
// 造成输入框值改变的原因:用户输入、选中选项、选项下拉框收起、触发自动分词
// 造成输入框值改变的原因:用户输入、增加、减少、超出范围值修正
export type InputNumberValueChangeReason =
| "manual"
| "increase"
Expand Down
2 changes: 1 addition & 1 deletion components/Slider/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A Slider component for displaying current value and intervals in range.
|defaultValue|To set default value|number \| number[] |`-`|-|
|marks|The labels on the render ruler. `marks` is an Object, it's `key` is an integer within [min, max].|Record<number, ReactNode> |`-`|-|
|range|Whether to allow range selection|boolean \| { draggableBar: boolean } |`-`|2.14.0|
|showInput|Whether to display the input box. If `onlyMarkValue` is `true`, the input box will always be hidden. Accepts `props` for `InputNumber`.|boolean \| [InputNumberProps](input-number#inputnumber) \| [InputNumberProps](input-number#inputnumber)[] |`-`|`InputNumberProps` in `2.32.0`|
|showInput|Whether to display the input box. When setting `onlyMarkValue` to `true` or selecting multiple points within the range, the input box will never be displayed. Accepts `props` for `InputNumber`.|boolean \| [InputNumberProps](input-number#inputnumber) \| [InputNumberProps](input-number#inputnumber)[] |`-`|`InputNumberProps` in `2.32.0`|
|style|Additional style|CSSProperties |`-`|-|
|value|To set value|number \| number[] |`-`|-|
|getIntervalConfig|For interval configuration, returns the interval step size and the ratio of the width relative to the entire sliding axis (e.g. 0.5 or "50%"). **Only valid in `marks` scene**|(range: number[],index: number) => { step?: number; width?: number \| string } |`-`|2.30.0|
Expand Down
2 changes: 1 addition & 1 deletion components/Slider/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
|defaultValue|默认值|number \| number[] |`-`|-|
|marks|标签。是一个对象。key 为在[min, max]内的整数。|Record<number, ReactNode> |`-`|-|
|range|是否是范围选择|boolean \| { draggableBar: boolean } |`-`|2.14.0|
|showInput|是否展示输入框,`onlyMarkValue``true` 时输入框始终隐藏。可接受 `InputNumber``props`|boolean \| [InputNumberProps](input-number#inputnumber) \| [InputNumberProps](input-number#inputnumber)[] |`-`|`InputNumberProps` in `2.32.0`|
|showInput|是否展示输入框,`onlyMarkValue``true` 或范围内多点选择时输入框始终隐藏。可接受 `InputNumber``props`|boolean \| [InputNumberProps](input-number#inputnumber) \| [InputNumberProps](input-number#inputnumber)[] |`-`|`InputNumberProps` in `2.32.0`|
|style|节点样式|CSSProperties |`-`|-|
|value||number \| number[] |`-`|-|
|getIntervalConfig|针对区间配置,返回区间步长和相对于整个滑动轴的宽度比例(如 0.5 或 "50%")。**只在`marks`场景下生效**|(range: number[],index: number) => { step?: number; width?: number \| string } |`-`|2.30.0|
Expand Down
9 changes: 9 additions & 0 deletions components/Table/__changelog__/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 2.61.1

2024-03-22

### 🐛 BugFix

- ([#2602](https://github.com/arco-design/arco-design/pull/2602))
- Fix the problem that the `Table` component may report an error when dynamically changing scrollY([#2599](https://github.com/arco-design/arco-design/pull/2599))

## 2.61.0

2024-03-15
Expand Down
9 changes: 9 additions & 0 deletions components/Table/__changelog__/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 2.61.1

2024-03-22

### 🐛 问题修复

- 修复rtl切换时fixedClassName错误的问题([#2602](https://github.com/arco-design/arco-design/pull/2602))
- 修复 `Table` 组件动态变化 scrollY 可能报错的问题([#2599](https://github.com/arco-design/arco-design/pull/2599))

## 2.61.0

2024-03-15
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ Used to display titles, paragraphs, and text content.
|---|---|---|---|
|defaultExpanded|Expand by default|boolean |`-`|
|disabled|Whether to disable the text ellipsis|boolean |`-`|
|expandable|Whether to show control button|boolean |`true`|
|expanded|Whether to expand|boolean |`-`|
|rows|The number of omitted rows|number |`1`|
|className|Additional css class|string \| string[] |`-`|
|expandable|Whether to show control button. `2.61.0` version supports `single` attribute|boolean \| { single?: boolean } |`true`|
|showTooltip|Whether to display pop-up prompts|boolean \| [TooltipProps](tooltip#tooltip) |`-`|
|style|Additional style|CSSProperties |`-`|
|expandRender|Custom rendering control buttons|(expanded: boolean) => ReactNode |`-`|
Expand Down
2 changes: 1 addition & 1 deletion components/Typography/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
|---|---|---|---|
|defaultExpanded|默认展开|boolean |`-`|
|disabled|是否禁用省略功能|boolean |`-`|
|expandable|是否显示操控按钮|boolean |`true`|
|expanded|是否展开|boolean |`-`|
|rows|显示省略的行数|number |`1`|
|className|节点类名|string \| string[] |`-`|
|expandable|是否显示操控按钮。`2.61.0` 版本支持 `single` 属性|boolean \| { single?: boolean } |`true`|
|showTooltip|是否显示弹出提示|boolean \| [TooltipProps](tooltip#tooltip) |`-`|
|style|节点样式|CSSProperties |`-`|
|expandRender|自定义渲染操控按钮|(expanded: boolean) => ReactNode |`-`|
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.61.0';
export const version = '2.61.1';

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.61.0",
"version": "2.61.1",
"description": "Arco Design React UI Library.",
"module": "./es/index.js",
"main": "./lib/index.js",
Expand Down
12 changes: 12 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,18 @@
changelog: true
---

## 2.61.1

2024-03-22

### 🐛 BugFix

- Fixed the bug of icon misalignment when the `Input` component is set to `allowClear` and the width is adaptive.([#2606](https://github.com/arco-design/arco-design/pull/2606))
- The autowidth `Input` component does not show the omitted state when the text is hovered.([#2606](https://github.com/arco-design/arco-design/pull/2606))
- ([#2602](https://github.com/arco-design/arco-design/pull/2602))
- Fix the problem that the `Table` component may report an error when dynamically changing scrollY([#2599](https://github.com/arco-design/arco-design/pull/2599))
- Fix the problem that `Input.Search` cannot transparently transmit `suffix` and `addAfter`([#2591](https://github.com/arco-design/arco-design/pull/2591))

## 2.61.0

2024-03-15
Expand Down
12 changes: 12 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,18 @@
changelog: true
---

## 2.61.1

2024-03-22

### 🐛 问题修复

- 修复 `Input` 组件设置 `allowClear`且自适应宽度时,清除图标错位的 bug。([#2606](https://github.com/arco-design/arco-design/pull/2606))
- 自适应宽度的 `Input` 组件在文本被 Hover 时不显示省略状态。([#2606](https://github.com/arco-design/arco-design/pull/2606))
- 修复rtl切换时fixedClassName错误的问题([#2602](https://github.com/arco-design/arco-design/pull/2602))
- 修复 `Table` 组件动态变化 scrollY 可能报错的问题([#2599](https://github.com/arco-design/arco-design/pull/2599))
- 修复 `Input.Search` 无法透传 `suffix``addAfter` 的问题([#2591](https://github.com/arco-design/arco-design/pull/2591))

## 2.61.0

2024-03-15
Expand Down

0 comments on commit 3620def

Please sign in to comment.