浏览代码

fix: pagination popoverZIndex don't take effect on sizeChanger (#1896)

pointhalo 1 年之前
父节点
当前提交
b8ddda290e
共有 3 个文件被更改,包括 8 次插入1 次删除
  1. 3 0
      content/start/changelog/index-en-US.md
  2. 3 0
      content/start/changelog/index.md
  3. 2 1
      packages/semi-ui/pagination/index.tsx

+ 3 - 0
content/start/changelog/index-en-US.md

@@ -16,6 +16,9 @@ Version:Major.Minor.Patch (follow the **Semver** specification)
 
 ---
 
+#### 🎉 2.46.1 (2023-11-07)
+- 【Fix】
+    - Fixed the problem that Pagination popoverZIndex does not take effect on SizeChanger
 
 #### 🎉 2.46.0 (2023-11-03)
 - 【Fix】

+ 3 - 0
content/start/changelog/index.md

@@ -14,6 +14,9 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
 -   不同版本间的详细关系,可查阅 [FAQ](/zh-CN/start/faq)
 
 
+#### 🎉 2.46.1 (2023-11-07)
+- 【Fix】
+    - 修复 Pagination popoverZIndex 在 SizeChanger 上不生效的问题
 
 #### 🎉 2.46.0 (2023-11-03)
 - 【Fix】

+ 2 - 1
packages/semi-ui/pagination/index.tsx

@@ -275,7 +275,7 @@ export default class Pagination extends BaseComponent<PaginationProps, Paginatio
         // rtl modify the default position
         const { direction } = this.context;
         const defaultPopoverPosition = direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
-        const { showSizeChanger, popoverPosition = defaultPopoverPosition, disabled } = this.props;
+        const { showSizeChanger, popoverPosition = defaultPopoverPosition, disabled, popoverZIndex } = this.props;
         const { pageSize } = this.state;
         const switchCls = classNames(`${prefixCls}-switch`);
         if (!showSizeChanger) {
@@ -303,6 +303,7 @@ export default class Pagination extends BaseComponent<PaginationProps, Paginatio
                     key={pageSize}
                     position={popoverPosition || 'bottomRight'}
                     clickToHide
+                    zIndex={popoverZIndex}
                     dropdownClassName={`${prefixCls}-select-dropdown`}
                 >
                     {options}