初始化

This commit is contained in:
2026-03-09 17:35:53 +08:00
commit 74f322b7c2
577 changed files with 57404 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { buildSuffixSvgUrl } from '/@/api/common'
/**
* 表格和表单中文件预览图的生成
*/
export const previewRenderFormatter = (row: TableRow, column: TableColumn, cellValue: string) => {
const imgSuffix = ['gif', 'jpg', 'jpeg', 'bmp', 'png', 'webp']
if (imgSuffix.includes(cellValue)) {
return row.full_url
}
return buildSuffixSvgUrl(cellValue)
}