From b3209030b07c4144d510d85e4d83dfd0c25907e5 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Mon, 9 Jun 2025 19:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(LogsTable):=20remove=20pre?= =?UTF-8?q?fix=20icons=20from=20tags=20for=20cleaner=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/table/LogsTable.js | 35 +++++++++++---------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/web/src/components/table/LogsTable.js b/web/src/components/table/LogsTable.js index 2ebd5edb..c41f19bf 100644 --- a/web/src/components/table/LogsTable.js +++ b/web/src/components/table/LogsTable.js @@ -89,37 +89,37 @@ const LogsTable = () => { switch (type) { case 1: return ( - }> + {t('充值')} ); case 2: return ( - }> + {t('消费')} ); case 3: return ( - }> + {t('管理')} ); case 4: return ( - }> + {t('系统')} ); case 5: return ( - }> + {t('错误')} ); default: return ( - }> + {t('未知')} ); @@ -129,13 +129,13 @@ const LogsTable = () => { function renderIsStream(bool) { if (bool) { return ( - }> + {t('流')} ); } else { return ( - }> + {t('非流')} ); @@ -146,21 +146,21 @@ const LogsTable = () => { const time = parseInt(type); if (time < 101) { return ( - }> + {' '} {time} s{' '} ); } else if (time < 300) { return ( - }> + {' '} {time} s{' '} ); } else { return ( - }> + {' '} {time} s{' '} @@ -173,21 +173,21 @@ const LogsTable = () => { time = time.toFixed(1); if (time < 3) { return ( - }> + {' '} {time} s{' '} ); } else if (time < 10) { return ( - }> + {' '} {time} s{' '} ); } else { return ( - }> + {' '} {time} s{' '} @@ -245,11 +245,6 @@ const LogsTable = () => { onClick: (event) => { copyText(event, record.model_name).then((r) => { }); }, - suffixIcon: ( - - ), })} @@ -374,7 +369,6 @@ const LogsTable = () => { color={colors[parseInt(text) % colors.length]} size='large' shape='circle' - prefixIcon={} > {' '} {text}{' '} @@ -427,7 +421,6 @@ const LogsTable = () => { color='grey' size='large' shape='circle' - prefixIcon={} onClick={(event) => { //cancel the row click event copyText(event, text);