feat: unify detail side sheets
This commit is contained in:
@@ -12,6 +12,14 @@ const shanghaiDateTimeFormatter = new Intl.DateTimeFormat('sv-SE', {
|
||||
|
||||
export type DateTimeSourceZone = 'preserve' | 'utc';
|
||||
|
||||
export const vehicleOperationStatusLabels = {
|
||||
unknown: '待维护',
|
||||
active: '运营中',
|
||||
inactive: '停运',
|
||||
maintenance: '维保中',
|
||||
retired: '已退役'
|
||||
} as const;
|
||||
|
||||
export function formatZhNumber(value: number, maximumFractionDigits = 0) {
|
||||
let formatter = zhNumberFormatters.get(maximumFractionDigits);
|
||||
if (!formatter) {
|
||||
|
||||
Reference in New Issue
Block a user