File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,16 @@ export const groupFields = [
152152] ;
153153
154154export const fileFields = [
155- createTextField ( 'objectName' ) ,
155+ createTextField ( 'objectName' , {
156+ list : {
157+ width : 320 ,
158+ } ,
159+ } ) ,
156160 createImageUrlField ( 'url' , {
157161 preRenderTransform : parseUrlStr ,
162+ list : {
163+ width : 140 ,
164+ } ,
158165 } ) ,
159166 createFileSizeField ( 'size' , {
160167 list : {
Original file line number Diff line number Diff line change 1+ .arco-table-th {
2+ white-space : nowrap;
3+ }
4+ .arco-table-td {
5+ /* white-space: nowrap; */
6+ overflow : hidden;
7+ }
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
33import App from './App' ;
4+ import './global.css' ;
45
56ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) . render (
67 < App />
Original file line number Diff line number Diff line change @@ -42,12 +42,18 @@ export const FileList: React.FC = React.memo(() => {
4242 { t ( 'custom.file.fileTotalSize' ) } : { filesize ( totalSize ) }
4343 </ Typography . Paragraph >
4444 </ Row >
45+
4546 < ListTable
4647 filter = { [
4748 createTextField ( 'q' , {
4849 label : 'Search' ,
4950 } ) ,
5051 ] }
52+ tableProps = { {
53+ scroll : {
54+ x : 1200 ,
55+ } ,
56+ } }
5157 fields = { fileFields }
5258 action = { { detail : true , delete : true } }
5359 batchAction = { { delete : true } }
You can’t perform that action at this time.
0 commit comments