瀏覽代碼

feat: 美化日志详情

CaIon 2 年之前
父節點
當前提交
9bcd24fc2c
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      web/src/components/LogsTable.js

+ 6 - 0
web/src/components/LogsTable.js

@@ -18,6 +18,7 @@ import {
     IconHome,
     IconMore
 } from '@douyinfe/semi-icons';
+import Paragraph from "@douyinfe/semi-ui/lib/es/typography/paragraph";
 
 const {Sider, Content, Header} = Layout;
 const {Column} = Table;
@@ -222,6 +223,11 @@ const LogsTable = () => {
         {
             title: '详情',
             dataIndex: 'content',
+            render: (text, record, index) => {
+                return <Paragraph ellipsis={{ rows: 2, showTooltip: { type: 'popover', opts: { style: { width: 240 } } } }} style={{ maxWidth: 240}}>
+                    {text}
+                </Paragraph>
+            }
         }
     ];