/** * 将行数据中number类型数据转换为string类型函数 * * @category Utils * @param row : 传入的行数据 * @returns : 格式化之后的行数据 */ export const stringifyTableRow = (row: any) => { try { let _row: any = {}; for (let key in row) { const item = row[key]; _row[key] = typeof item === 'number' ? item.toString() : item; } return _row; } catch (e) { console.error(e); return row; } };