From 3620def675069eb078820b3b7727d480bbf0b404 Mon Sep 17 00:00:00 2001 From: wangchen Date: Fri, 22 Mar 2024 17:12:04 +0800 Subject: [PATCH] Release version 2.61.1 --- components/Image/README.en-US.md | 2 ++ components/Image/README.zh-CN.md | 2 ++ components/Input/__changelog__/index.en-US.md | 10 ++++++++++ components/Input/__changelog__/index.zh-CN.md | 10 ++++++++++ components/InputNumber/README.en-US.md | 4 ++-- components/InputNumber/README.zh-CN.md | 4 ++-- components/Slider/README.en-US.md | 2 +- components/Slider/README.zh-CN.md | 2 +- components/Table/__changelog__/index.en-US.md | 9 +++++++++ components/Table/__changelog__/index.zh-CN.md | 9 +++++++++ components/Typography/README.en-US.md | 2 +- components/Typography/README.zh-CN.md | 2 +- components/index.tsx | 2 +- package.json | 2 +- site/docs/version_v2.en-US.md | 12 ++++++++++++ site/docs/version_v2.zh-CN.md | 12 ++++++++++++ 16 files changed, 76 insertions(+), 10 deletions(-) diff --git a/components/Image/README.en-US.md b/components/Image/README.en-US.md index d8d979c752..154347cd51 100644 --- a/components/Image/README.en-US.md +++ b/components/Image/README.en-US.md @@ -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)**|`-`|-| @@ -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 |`-`|-| diff --git a/components/Image/README.zh-CN.md b/components/Image/README.zh-CN.md index 216079e77d..543b139196 100644 --- a/components/Image/README.zh-CN.md +++ b/components/Image/README.zh-CN.md @@ -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 **(必填)**|`-`|-| @@ -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 |`-`|-| diff --git a/components/Input/__changelog__/index.en-US.md b/components/Input/__changelog__/index.en-US.md index ad17904c7d..ca87f53bb0 100644 --- a/components/Input/__changelog__/index.en-US.md +++ b/components/Input/__changelog__/index.en-US.md @@ -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 diff --git a/components/Input/__changelog__/index.zh-CN.md b/components/Input/__changelog__/index.zh-CN.md index 156fd2da8f..82c805f01d 100644 --- a/components/Input/__changelog__/index.zh-CN.md +++ b/components/Input/__changelog__/index.zh-CN.md @@ -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 diff --git a/components/InputNumber/README.en-US.md b/components/InputNumber/README.en-US.md index 67d687a117..ea6295f7c6 100644 --- a/components/InputNumber/README.en-US.md +++ b/components/InputNumber/README.en-US.md @@ -35,7 +35,7 @@ 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, '')`|-| @@ -43,7 +43,7 @@ An input box which only allows to enter number. ### InputNumberValueChangeReason ```js -// 造成输入框值改变的原因:用户输入、选中选项、选项下拉框收起、触发自动分词 +// 造成输入框值改变的原因:用户输入、增加、减少、超出范围值修正 export type InputNumberValueChangeReason = | "manual" | "increase" diff --git a/components/InputNumber/README.zh-CN.md b/components/InputNumber/README.zh-CN.md index 30c9de3671..9db99e945a 100644 --- a/components/InputNumber/README.zh-CN.md +++ b/components/InputNumber/README.zh-CN.md @@ -35,7 +35,7 @@ |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, '')`|-| @@ -43,7 +43,7 @@ ### InputNumberValueChangeReason ```js -// 造成输入框值改变的原因:用户输入、选中选项、选项下拉框收起、触发自动分词 +// 造成输入框值改变的原因:用户输入、增加、减少、超出范围值修正 export type InputNumberValueChangeReason = | "manual" | "increase" diff --git a/components/Slider/README.en-US.md b/components/Slider/README.en-US.md index 2d0f6bbe1d..a2fe02c806 100644 --- a/components/Slider/README.en-US.md +++ b/components/Slider/README.en-US.md @@ -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| diff --git a/components/Slider/README.zh-CN.md b/components/Slider/README.zh-CN.md index 042b88f3d8..54a9f91cae 100644 --- a/components/Slider/README.zh-CN.md +++ b/components/Slider/README.zh-CN.md @@ -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| diff --git a/components/Table/__changelog__/index.en-US.md b/components/Table/__changelog__/index.en-US.md index 34902c81a9..d97f8519ce 100644 --- a/components/Table/__changelog__/index.en-US.md +++ b/components/Table/__changelog__/index.en-US.md @@ -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 diff --git a/components/Table/__changelog__/index.zh-CN.md b/components/Table/__changelog__/index.zh-CN.md index e3fc2d41cd..e4e2fe83b3 100644 --- a/components/Table/__changelog__/index.zh-CN.md +++ b/components/Table/__changelog__/index.zh-CN.md @@ -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 diff --git a/components/Typography/README.en-US.md b/components/Typography/README.en-US.md index 7df86aaf06..93e454d946 100644 --- a/components/Typography/README.en-US.md +++ b/components/Typography/README.en-US.md @@ -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 |`-`| diff --git a/components/Typography/README.zh-CN.md b/components/Typography/README.zh-CN.md index 36ea3fe12e..b10c0780ca 100644 --- a/components/Typography/README.zh-CN.md +++ b/components/Typography/README.zh-CN.md @@ -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 |`-`| diff --git a/components/index.tsx b/components/index.tsx index 138202b972..a3997e3078 100644 --- a/components/index.tsx +++ b/components/index.tsx @@ -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'; diff --git a/package.json b/package.json index 1dd51239a7..dde6c8b2c9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/site/docs/version_v2.en-US.md b/site/docs/version_v2.en-US.md index d6eb4d2487..4f186f1eb8 100644 --- a/site/docs/version_v2.en-US.md +++ b/site/docs/version_v2.en-US.md @@ -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 diff --git a/site/docs/version_v2.zh-CN.md b/site/docs/version_v2.zh-CN.md index 46b20eaec6..d966b5ed65 100644 --- a/site/docs/version_v2.zh-CN.md +++ b/site/docs/version_v2.zh-CN.md @@ -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