From 104394c74098e6b7bd77e7dff0e09195c184a7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20Quang=20Kh=C3=A1nh?= <53509652+Jiyur@users.noreply.github.com> Date: Sun, 24 Aug 2025 10:15:25 +0700 Subject: [PATCH 01/12] fix(locale): add missing vietnamese translation for color picker, text and qrcode (#54748) Co-authored-by: Khanh Tran --- components/locale/vi_VN.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/locale/vi_VN.ts b/components/locale/vi_VN.ts index d5a8a450a6..853b98c9a0 100644 --- a/components/locale/vi_VN.ts +++ b/components/locale/vi_VN.ts @@ -81,6 +81,7 @@ const localeValues: Locale = { copy: 'Sao chép', copied: 'Đã sao chép', expand: 'Mở rộng', + collapse: 'Thu gọn', }, Form: { optional: '(Tùy chọn)', @@ -138,6 +139,13 @@ const localeValues: Locale = { QRCode: { expired: 'Mã QR hết hạn', refresh: 'Làm mới', + scanned: 'Đã quét', + }, + ColorPicker: { + presetEmpty: 'Trống', + transparent: 'Trong suốt', + singleColor: 'Màu đơn', + gradientColor: 'Màu chuyển sắc', }, }; From 2b7a87b14e35600c09779080342df2a4ee9552b6 Mon Sep 17 00:00:00 2001 From: Alexis Hope Date: Tue, 26 Aug 2025 00:39:33 +1000 Subject: [PATCH 02/12] docs(slider): improve en minor gramma (#54209) * docs: en slider review * docs(slider): en accessibility * Update components/slider/index.en-US.md Signed-off-by: thinkasany <480968828@qq.com> --------- Signed-off-by: thinkasany <480968828@qq.com> Co-authored-by: afc163 Co-authored-by: thinkasany <480968828@qq.com> --- components/slider/index.en-US.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/components/slider/index.en-US.md b/components/slider/index.en-US.md index 911eadf515..3b10cc063d 100644 --- a/components/slider/index.en-US.md +++ b/components/slider/index.en-US.md @@ -11,7 +11,7 @@ demo: ## When To Use -To input a value in a range. +Used to input a value within a specified range. ## Examples @@ -23,7 +23,7 @@ To input a value in a range. Event Graduated slider Vertical -Control visible of ToolTip +Control visibility of Tooltip Reverse Draggable track Multiple handles @@ -36,21 +36,21 @@ Common props ref:[Common props](/docs/react/common-props) | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| autoFocus | Whether get focus when component mounted | boolean | false | | +| autoFocus | Whether to get focus when component is mounted | boolean | false | | | classNames | Semantic structure className | [Record](#semantic-dom) | - | 5.10.0 | -| defaultValue | The default value of slider. When `range` is false, use number, otherwise, use \[number, number] | number \| \[number, number] | 0 \| \[0, 0] | | -| disabled | If true, the slider will not be intractable | boolean | false | | +| defaultValue | The default value of the slider. When `range` is false, use number, otherwise, use \[number, number] | number \| \[number, number] | 0 \| \[0, 0] | | +| disabled | If true, the slider will not be interactive | boolean | false | | | keyboard | Support using keyboard to move handlers | boolean | true | 5.2.0+ | -| dots | Whether the thumb can drag over tick only | boolean | false | | -| included | Make effect when `marks` not null, true means containment and false means coordinative | boolean | true | | -| marks | Tick mark of Slider, type of key must be `number`, and must in closed interval \[min, max], each mark can declare its own style | object | { number: ReactNode } \| { number: { style: CSSProperties, label: ReactNode } } | | +| dots | Whether the thumb can only be dragged to tick marks | boolean | false | | +| included | Takes effect when `marks` is not null. True means containment and false means coordinative | boolean | true | | +| marks | Tick marks of Slider. The type of key must be `number`, and must be in closed interval \[min, max]. Each mark can declare its own style | object | { number: ReactNode } \| { number: { style: CSSProperties, label: ReactNode } } | | | max | The maximum value the slider can slide to | number | 100 | | | min | The minimum value the slider can slide to | number | 0 | | -| range | Dual thumb mode | boolean | false | | +| range | Enable dual thumb mode for range selection | boolean | false | | | reverse | Reverse the component | boolean | false | | -| step | The granularity the slider can step through values. Must greater than 0, and be divided by (max - min) . When `step` is `null` but exist `marks`, the valid point will only be the `mark`, `min` and `max` | number \| null | 1 | | +| step | The granularity the slider can step through values. Must be greater than 0, and be divisible by (max - min). When `step` is `null` and `marks` exist, valid points will only be marks, `min` and `max` | number \| null | 1 | | | styles | Semantic structure style | [Record](#semantic-dom) | - | 5.10.0 | -| tooltip | The tooltip relate props | [tooltip](#tooltip) | - | 4.23.0 | +| tooltip | The tooltip related props | [tooltip](#tooltip) | - | 4.23.0 | | value | The value of slider. When `range` is false, use number, otherwise, use \[number, number] | number \| \[number, number] | - | | | vertical | If true, the slider will be vertical | boolean | false | | | onChangeComplete | Fire when `mouseup` or `keyup` is fired | (value) => void | - | | @@ -60,8 +60,8 @@ Common props ref:[Common props](/docs/react/common-props) | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| draggableTrack | Whether range track can be drag | boolean | false | - | -| editable | Dynamic edit nodes, can't be used with `draggableTrack` | boolean | false | 5.20.0 | +| draggableTrack | Whether range track can be dragged | boolean | false | - | +| editable | Dynamic edit nodes. Cannot be used with `draggableTrack` | boolean | false | 5.20.0 | | minCount | The minimum count of nodes | number | 0 | 5.20.0 | | maxCount | The maximum count of nodes | number | - | 5.20.0 | @@ -70,10 +70,10 @@ Common props ref:[Common props](/docs/react/common-props) | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | autoAdjustOverflow | Whether to automatically adjust the popup position | boolean | true | 5.8.0 | -| open | If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering | boolean | - | 4.23.0 | +| open | If true, Tooltip will always be visible; if false, it will never be visible, even when dragging or hovering | boolean | - | 4.23.0 | | placement | Set Tooltip display position. Ref [Tooltip](/components/tooltip/) | string | - | 4.23.0 | -| getPopupContainer | The DOM container of the Tooltip, the default behavior is to create a div element in body | (triggerNode) => HTMLElement | () => document.body | 4.23.0 | -| formatter | Slider will pass its value to `formatter`, and display its value in Tooltip, and hide Tooltip when return value is null | value => ReactNode \| null | IDENTITY | 4.23.0 | +| getPopupContainer | The DOM container of the Tooltip. The default behavior is to create a div element in the body | (triggerNode) => HTMLElement | () => document.body | 4.23.0 | +| formatter | Slider will pass its value to `formatter`, display its value in Tooltip, and hide the Tooltip when the returned value is null | value => ReactNode \| null | IDENTITY | 4.23.0 | ## Methods From 2a66972cf9a6393bf248e67ab23babb9646bdaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=81=87=E8=A7=81=E5=90=8C=E5=AD=A6?= <1875694521@qq.com> Date: Tue, 26 Aug 2025 10:52:10 +0800 Subject: [PATCH 03/12] fix: revert copybtn getPopupContainer (#54752) --- components/typography/Base/CopyBtn.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/typography/Base/CopyBtn.tsx b/components/typography/Base/CopyBtn.tsx index 611168b26c..20fafbbd93 100644 --- a/components/typography/Base/CopyBtn.tsx +++ b/components/typography/Base/CopyBtn.tsx @@ -37,7 +37,7 @@ const CopyBtn: React.FC = ({ const ariaLabel = typeof copyTitle === 'string' ? copyTitle : systemStr; return ( - node.parentNode as HTMLElement}> +