Skip to content

Commit 8879ae8

Browse files
committed
fix(page-wrapper): fix class not working
1 parent f2b8bb4 commit 8879ae8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.zh_CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- **ApiTreeSelect** 修复未能正确监听`params`变化的问题
99
- **ImgRotateDragVerify** 修复组件`resume`方法无法调用的问题
1010
- **TableAction** 修复 stopButtonPropagation 属性某些情况下不起作用的问题
11+
- **PageWrapper** 修复`class`属性无效的问题
1112
- **BasicTable**
1213
- 修复可编辑单元格不支持`ellipsis`配置的问题
1314
- 修复全屏模式下看不到子组件弹出层(popconfirm 以及 select、treeSelect 等编辑组件)的问题

src/components/Page/src/PageWrapper.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PageHeader
44
:ghost="ghost"
55
:title="title"
6-
v-bind="$attrs"
6+
v-bind="omit($attrs, 'class')"
77
ref="headerRef"
88
v-if="content || $slots.headerContent || title || getHeaderSlots.length"
99
>
@@ -61,7 +61,7 @@
6161
contentClass: propTypes.string,
6262
fixedHeight: propTypes.bool,
6363
},
64-
setup(props, { slots }) {
64+
setup(props, { slots, attrs }) {
6565
const wrapperRef = ref(null);
6666
const headerRef = ref(null);
6767
const contentRef = ref(null);
@@ -86,6 +86,7 @@
8686
{
8787
[`${prefixCls}--dense`]: props.dense,
8888
},
89+
attrs.class ?? {},
8990
];
9091
});
9192

0 commit comments

Comments
 (0)