This commit is contained in:
@@ -149,7 +149,12 @@ export default function ProjectDetail() {
|
||||
<View className='file-list'>
|
||||
{project.files.map((file, index) => (
|
||||
<View key={index} className='file-item' onClick={() => handleOpenFile(file)}>
|
||||
<Text className='file-name'>{file.name || '附件 ' + (index + 1)}</Text>
|
||||
<View style={{ flex: 1 }}>
|
||||
<Text className='file-name'>{file.name || '附件 ' + (index + 1)}</Text>
|
||||
{file.file_size_display && (
|
||||
<Text style={{ fontSize: '12px', color: '#999' }}>{file.file_size_display}</Text>
|
||||
)}
|
||||
</View>
|
||||
<Text className='file-action'>查看</Text>
|
||||
</View>
|
||||
))}
|
||||
|
||||
@@ -326,7 +326,12 @@ export default function ProjectEdit() {
|
||||
style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px', background: '#f8f8f8', marginBottom: '8px', borderRadius: '4px' }}
|
||||
onClick={() => handlePreviewFile(file)}
|
||||
>
|
||||
<Text className='file-name' style={{ flex: 1, fontSize: '14px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: '#333' }}>{file.name || '未知文件'}</Text>
|
||||
<View style={{ flex: 1 }}>
|
||||
<Text className='file-name' style={{ fontSize: '14px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: '#333' }}>{file.name || '未知文件'}</Text>
|
||||
{file.file_size_display && (
|
||||
<Text style={{ fontSize: '12px', color: '#999' }}>{file.file_size_display}</Text>
|
||||
)}
|
||||
</View>
|
||||
<Text className='delete' style={{ color: '#ff4d4f', marginLeft: '10px', fontSize: '14px' }} onClick={(e) => { e.stopPropagation(); handleDeleteFile(file.id) }}>删除</Text>
|
||||
</View>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user