From b5ccbd4aebc3fc927ecf5ef37ac084e578647285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=E5=B0=8F=E5=88=98?= <1016817543@qq.com> Date: Mon, 5 Apr 2021 14:16:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20table=20column=20group=20support=20fixe?= =?UTF-8?q?d=EF=BC=88#3882=EF=BC=89=20(#3884)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/table/ColumnGroup.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/table/ColumnGroup.tsx b/components/table/ColumnGroup.tsx index 6d606fdf54..484d86aea5 100644 --- a/components/table/ColumnGroup.tsx +++ b/components/table/ColumnGroup.tsx @@ -1,9 +1,13 @@ import { defineComponent } from 'vue'; -import PropTypes from '../_util/vue-types'; +import PropTypes, { withUndefined } from '../_util/vue-types'; +import { tuple } from '../_util/type'; export default defineComponent({ name: 'ATableColumnGroup', props: { + fixed: withUndefined( + PropTypes.oneOfType([PropTypes.looseBool, PropTypes.oneOf(tuple('left', 'right'))]), + ), title: PropTypes.any, }, __ANT_TABLE_COLUMN_GROUP: true,