From 59264571e640cb8c8fcbed9994d73a5ce8ef90bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 9 Feb 2023 16:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=9B=E5=BE=AE=E8=96=AA=E8=B5=84=E6=A0=B8?= =?UTF-8?q?=E7=AE=97iframe=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/atdTable/components/antdTable.tsx | 7 ++++--- src/pages/atdTable/components/index.less | 8 ++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/atdTable/components/antdTable.tsx b/src/pages/atdTable/components/antdTable.tsx index 0407489..344aa1a 100644 --- a/src/pages/atdTable/components/antdTable.tsx +++ b/src/pages/atdTable/components/antdTable.tsx @@ -103,6 +103,7 @@ const AntdTable: FC = (props) => { if (item.dataIndex === "costCenter") { return { ...item, + ellipsis: true, width: 110, render: (text: string, r: any) => { const { costCenter } = r; @@ -120,7 +121,7 @@ const AntdTable: FC = (props) => { } }; } - return { ...item }; + return { ...item, ellipsis: true }; }); return tmpColumns; }; @@ -190,7 +191,7 @@ const AntdTable: FC = (props) => { }}>{!_.isEmpty(costCenter) ? costCenter.name : ""}; } return - {text} + {text} { result.lockStatus === "LOCK" ? : null } @@ -250,7 +251,7 @@ const AntdTable: FC = (props) => { child.ellipsis = true; child.render = (text: string) => { return - {text} + {text} { child.lockStatus === "LOCK" ? : null } diff --git a/src/pages/atdTable/components/index.less b/src/pages/atdTable/components/index.less index 293211c..e7487d5 100644 --- a/src/pages/atdTable/components/index.less +++ b/src/pages/atdTable/components/index.less @@ -29,6 +29,14 @@ justify-content: space-between; align-items: center; + .contentTitle { + flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + word-break: keep-all; + } + :global { span.anticon-lock { color: #5d9cec;