From 069cef4ff80330c4c43e39b918d9d2ca6f44a424 Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 18 May 2023 09:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../means/containers/projectMeans.jsx | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/web/client/src/sections/means/containers/projectMeans.jsx b/web/client/src/sections/means/containers/projectMeans.jsx index 66da006..56e8c78 100644 --- a/web/client/src/sections/means/containers/projectMeans.jsx +++ b/web/client/src/sections/means/containers/projectMeans.jsx @@ -165,7 +165,7 @@ const Rest = (props) => { title: '文件名', dataIndex: 'name', key: 'name', - render: (text) => {text}, + render: (text) => text?.length > 30 ?
{text.slice(0,30)}...
: text }, { title: '文件大小', @@ -377,23 +377,23 @@ const Rest = (props) => { return { style: { background: '#FAFCFF' } } } }} - // rowSelection={{ - // // selectedRowKeys: selected || [], - // getCheckboxProps: record => ({ - // // disabled: record.confirmTime ? true : false, - // // name: record.name, - // }), - // onSelect: (record, selected) => { - // // console.log(`select row: ${selected}`, record); - // }, - // // onSelectAll: (selected, selectedRows) => { - // // console.log(`select all rows: ${selected}`, selectedRows); - // // }, - // onChange: (selectedRowKeys, selectedRows) => { - // // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); - // // setSelected(selectedRows?.map(v => v.id)) - // }, - // }} + // rowSelection={{ + // // selectedRowKeys: selected || [], + // getCheckboxProps: record => ({ + // // disabled: record.confirmTime ? true : false, + // // name: record.name, + // }), + // onSelect: (record, selected) => { + // // console.log(`select row: ${selected}`, record); + // }, + // // onSelectAll: (selected, selectedRows) => { + // // console.log(`select all rows: ${selected}`, selectedRows); + // // }, + // onChange: (selectedRowKeys, selectedRows) => { + // // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); + // // setSelected(selectedRows?.map(v => v.id)) + // }, + // }} />