Skip to content

Commit 4a05528

Browse files
committed
feat(表格): 分组表头支持固定(vueComponent#3882
1 parent db2e359 commit 4a05528

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/table/ColumnGroup.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { defineComponent } from 'vue';
2-
import PropTypes from '../_util/vue-types';
2+
import PropTypes, { withUndefined } from '../_util/vue-types';
3+
import { tuple } from '../_util/type';
34

45
export default defineComponent({
56
name: 'ATableColumnGroup',
67
props: {
8+
fixed: withUndefined(
9+
PropTypes.oneOfType([PropTypes.looseBool, PropTypes.oneOf(tuple('left', 'right'))]),
10+
),
711
title: PropTypes.any,
812
},
913
__ANT_TABLE_COLUMN_GROUP: true,

0 commit comments

Comments
 (0)