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;