From ed70b28ab7657b7690422dda65750128b811d4d7 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 20 Sep 2023 22:37:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/757=E3=80=91JPopup=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E7=9A=84=E9=80=89=E6=8B=A9=E5=88=97=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/useCustomSelection.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/hooks/useCustomSelection.tsx b/src/components/Table/src/hooks/useCustomSelection.tsx index 28656bd..70186d6 100644 --- a/src/components/Table/src/hooks/useCustomSelection.tsx +++ b/src/components/Table/src/hooks/useCustomSelection.tsx @@ -368,11 +368,13 @@ export function useCustomSelection( // 创建选择列 function handleCustomSelectColumn(columns: BasicColumn[]) { - if (!propsRef.value.rowSelection) { + // update-begin--author:liaozhiyang---date:20230919---for:【issues/757】JPopup表格的选择列固定配置不生效 + const rowSelection = propsRef.value.rowSelection; + if (!rowSelection) { return; } - const isFixedLeft = columns.some((item) => item.fixed === 'left'); - + const isFixedLeft = rowSelection.fixed || columns.some((item) => item.fixed === 'left'); + // update-begin--author:liaozhiyang---date:20230919---for:【issues/757】JPopup表格的选择列固定配置不生效 columns.unshift({ title: '选择列', flag: 'CHECKBOX',