Browse Source

文件名限制

dev
wenlele 2 years ago
parent
commit
069cef4ff8
  1. 36
      web/client/src/sections/means/containers/projectMeans.jsx

36
web/client/src/sections/means/containers/projectMeans.jsx

@ -165,7 +165,7 @@ const Rest = (props) => {
title: '文件名',
dataIndex: 'name',
key: 'name',
render: (text) => <a>{text}</a>,
render: (text) => text?.length > 30 ? <div title={text}>{text.slice(0,30)}...</div> : 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))
// },
// }}
/>
</SimpleBar>

Loading…
Cancel
Save