refactor(material-center): 优化上传组件样式和功能

- 调整了 `ant-table` 和 `ant-input` 的样式
- 优化了文件名截取长度和上传状态显示
- 移除了未使用的图标导入
- 更新了删除图标为 `icon-delete` 组件
- 修正了提示信息的样式和内容
- 重构了 `add-raw-material-drawer` 的样式和布局
This commit is contained in:
rd
2025-09-22 11:23:35 +08:00
parent 03a71e24cd
commit d4f82dbc3e
9 changed files with 188 additions and 118 deletions

View File

@ -120,7 +120,7 @@ export function formatFileSize(bytes: number): string {
if (bytes === 0) return '0 Bytes';
const k = 1024;
const sizes = ['Bytes', 'kb', 'mb', 'gb', 'tb'];
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
const i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];