pointhalo 1 год назад
Родитель
Сommit
ecfe88f0f2

+ 1 - 1
content/show/popover/index-en-US.md

@@ -549,7 +549,7 @@ Please refer to [Use with Tooltip/Popconfirm](/en-US/show/tooltip#%E6%90%AD%E9%8
 | returnFocusOnClose | After pressing the Esc key, whether the focus returns to the trigger, it only takes effect when the trigger is set to hover, focus, click, etc                                                                                                | boolean | true | **2.8.0** |
 | visible | Display popup or not                                                                                                                                                                                                                          | boolean |  |
 | position | Directions, optional values: `top`, `topLeft`, `topRight`, `left`, `leftTop`, `leftBottom`, `right`, `rightTop`, `rightBottom`, `bottom`, `bottomLeft`, `bottomRight`                                                                         | string | "bottom" |
-| spacing | The distance between the out layer and the children element, in px                                                                                                                                                                            | number| <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>  | 4(while showArrow=false) 10(while showArrow=true) |  |
+| spacing | The distance between the out layer and the children element, in px. object type props supported after v2.45                                                                                                                                                                            | number| <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>  | 4(while showArrow=false) 10(while showArrow=true) |  |
 | showArrow | Display little arrow or not                                                                                                                                                                                                                   | boolean |  |
 | trigger | Trigger mode, optional value: `hover`, `focus`, `click`, `custom`                                                                                                                                                                             | string | 'hover' |
 | stopPropagation | Whether to prevent click events on the bomb layer from bubbling                                                                                                                                                                               | boolean | false | **0.34.0** |

+ 1 - 1
content/show/popover/index.md

@@ -539,7 +539,7 @@ import { Button, Input, Popover, Space } from '@douyinfe/semi-ui';
 | rePosKey           | 可以更新该项值手动触发弹出层的重新定位                                                                                                         | string\|number             |            |             |
 | returnFocusOnClose | 按下 Esc 键后,焦点是否回到 trigger 上,设置 trigger 为 hover, focus, click 时生效 | boolean | true  | **2.8.0**  |
 | position           | 方向,可选值:`top`,`topLeft`,`topRight`,`left`,`leftTop`,`leftBottom`,`right`,`rightTop`,`rightBottom`,`bottom`,`bottomLeft`,`bottomRight` | string                     | "bottom"                                    |            |
-| spacing            | 弹出层与 children 元素的距离,单位 px                                                                                                       | number| <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>                       | 4(showArrow=false 时) 10(showArrow=true 时) |            |
+| spacing            | 弹出层与 children 元素的距离,单位 px(object类型自 v2.45后支持)                                                                                                       | number| <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>                       | 4(showArrow=false 时) 10(showArrow=true 时) |            |
 | showArrow          | 是否显示“小三角”                                                                                                                            | boolean                    |                                             |            |
 | stopPropagation    | 是否阻止弹出层上的点击事件冒泡                                                                                                              | boolean                    | false                                       | **0.34.0** |
 | trigger            | 触发方式,可选值:`hover`, `focus`, `click`, `custom`, `contextMenu`(v2.42支持)                                                          | string                     | 'hover'                                     |            |

+ 1 - 1
content/show/tooltip/index-en-US.md

@@ -349,7 +349,7 @@ import { Popconfirm, Tooltip, Button } from '@douyinfe/semi-ui';
 | preventScroll | Indicates whether the browser should scroll the document to display the newly focused element, acting on the focus method inside the component, excluding the component passed in by the user                               | boolean |  |  |
 | rePosKey | This value can be updated to manually trigger the repositioning of the pop-up layer.                                                                                                                                        | string | number |  |
 | style | Pop-up layer inline style                                                                                                                                                                                                   | object |  |  |
-| spacing | The distance between the pop-up layer and the `children` element                                                                                                                                                            | number | <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>|  |  |
+| spacing | The distance between the pop-up layer and the `children`. object type props supported after v2.45 element                                                                                                                                                            | number | <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>|  |  |
 | showArrow | Does it show an arrow triangle?                                                                                                                                                                                             | boolean | true |  |
 | stopPropagation | Whether to prevent click events on the bomb layer from bubbling                                                                                                                                                             | boolean | false | **0.34.0** |
 | transformFromCenter | Whether to transform from the horizontal or vertical center of the element of the package, this parameter affects only the `tansform-origin 'of the dynamic effect transformation and generally does not need to be changed | boolean | true |

+ 1 - 1
content/show/tooltip/index.md

@@ -385,7 +385,7 @@ function Demo() {
 | preventScroll | 指示浏览器是否应滚动文档以显示新聚焦的元素,作用于组件内的 focus 方法                                                                                                               | boolean |  |  |
 | rePosKey | 可以更新该项值手动触发弹出层的重新定位                                                                                                                                  | string\|number |  |  |
 | style    | 弹出层的内联样式                                                                                                                                             | object |  |  |
-| spacing | 弹出层与 `children` 元素的距离,单位 px                                                                                                                          | number | <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>  | 8 |  |
+| spacing | 弹出层与 `children` 元素的距离,单位 px(object类型自 v2.45后支持)                                                                                                                     | number | <ApiType detail='{ x: number; y: number }'>SpacingObject</ApiType>  | 8 |  |
 | showArrow | 是否显示箭头三角形                                                                                                                                            | boolean | true |  |
 | stopPropagation | 是否阻止弹层上的点击事件冒泡                                                                                                                                       | boolean | false | **0.34.0** |
 | transformFromCenter | 是否从包裹的元素水平或垂直中心处变换,该参数仅影响动效变换的 `transform-origin`,一般无需改动                                                                                             | boolean | true |  |

+ 7 - 7
content/start/changelog/index.md

@@ -22,12 +22,12 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 
 #### 🎉 2.50.0 (2024-01-02)
 - 【Fix】
-  - ImagePreview 中打开预览,切换预览图片时,zoom 改变不需要通过 onZoomIn/onZoomOut 回调透出  [#2000 ](https://github.com/DouyinFE/semi-design/issues/2000)
+  - ImagePreview 中打开预览,切换预览图片时,zoom 改变不需要通过 onZoomIn/onZoomOut 回调透出  [#2000](https://github.com/DouyinFE/semi-design/issues/2000)
   - 修复在图片预览时切换图片触发意外的 onRotateLeft 回调
 
 #### 🎉 2.50.0-beta.0 (2023-12-26)
 - 【Feat】
-    - Tree, TreeSelect 新增 showLine api  [#1801 ](https://github.com/DouyinFE/semi-design/issues/1801) [@Yan-XiaoMing](https://github.com/Yan-XiaoMing)
+    - Tree, TreeSelect 新增 showLine api  [#1801](https://github.com/DouyinFE/semi-design/issues/1801) [@Yan-XiaoMing](https://github.com/Yan-XiaoMing)
     - Table 列支持自定义排序 icon
 - 【Style】
     - 修改 Tree/TreeSelect 的选项每行缩进的 CSS 实现,对于缩进层级大于 20层的,不再有限制。 [@Yan-XiaoMing](https://github.com/Yan-XiaoMing)
@@ -47,7 +47,7 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 - 【Fix】
     - Image 支持在预览页面的任何位置通过面板和鼠标滚动进行缩放 [#1890](https://github.com/DouyinFE/semi-design/pull/1890)
     - Image 预览的初始尺寸做了调整。调整前,预览初始尺寸为适应页面的宽高;调整后,如果图片宽高小于适应页面的宽高,则预览初始宽高和图片宽高相同,否则以适应页面宽高进行缩放 [#1890](https://github.com/DouyinFE/semi-design/pull/1890)
-    - 修复 select 单选选择选项后,点击外部不触发 onblur 事件问题 [#1977](https://github.com/DouyinFE/semi-design/pull/1977)
+    - 修复 Select 单选选择选项后,点击外部不触发 onblur 事件问题 [#1977](https://github.com/DouyinFE/semi-design/pull/1977)
 
 #### 🎉 2.49.0-beta.0 (2023-12-11)
 - 【Feat】
@@ -65,7 +65,7 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 
 #### 🎉 2.48.0 (2023-12-01)
 - 【Fix】
-    - 修复 TimePicker format 为 HH 时,defaultValue 设置不正确问题。(注意:若原先 default 或 value 传入的值类型不合法,例如数字格式的时间戳以字符串形式传入,将不再尝试进行类型转换)
+    - **修复 TimePicker format 为 HH 时,defaultValue 设置不正确问题。(注意:若原先 default 或 value 传入的值类型不合法,例如数字格式的时间戳以字符串形式传入,将不再尝试进行类型转换)**
 - 【Docs】
     - 增加 @douyinfe/semi-icons-lab 的使用说明
 
@@ -606,10 +606,10 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 
 #### 🎉 2.27.1 (2023-01-12)
 - 【Fix】
-    - 修复Form Field 级别校验,使用 props.rules 时存在竞态异步,后执行的校验会被前执行的校验覆盖的问题,  [#1375](https://github.com/DouyinFE/semi-design/issues/1375) [@SyMind](https://github.com/SyMind)
-    - 修复Form Field 级别校验,使用 props.validate 时存在竞态异步,后执行的校验会被前执行的校验覆盖的问题,  [#1375 ](https://github.com/DouyinFE/semi-design/issues/1375)
+    - **修复Form Field 级别校验,使用 props.rules 时存在竞态异步,后执行的校验会被前执行的校验覆盖的问题  [#1375](https://github.com/DouyinFE/semi-design/issues/1375) [@SyMind](https://github.com/SyMind) (注意:如果原先存在对单次值修改,触发多次重复校验逻辑。例如本身props.trigger 已配置为change,又在onChange回调中手动调用 formApi.validate 对其进行了校验等,前面执行的校验将会被丢弃,即 promise pending,不再 resolve或 reject)**
+    - 修复Form Field 级别校验,使用 props.validate 时存在竞态异步,后执行的校验会被前执行的校验覆盖的问题  [#1375 ](https://github.com/DouyinFE/semi-design/issues/1375)
 - 【Docs】
-    - 修改 Cascader / TreeSelect / Tree 文档中 treeData API 类型名, 使其和代码一致
+    - 修改 Cascader / TreeSelect / Tree 文档中 treeData API 类型名, 使其和 Ts 代码 interface 一致
 
 #### 🎉 2.27.0 (2023-01-06)
 - 【Fix】