mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support calendar display type (Gregorian and Buddhist)
This commit is contained in:
@@ -2,8 +2,7 @@ import type { TypeAndName } from '@/core/base.ts';
|
||||
|
||||
export enum CalendarType {
|
||||
Gregorian = 0,
|
||||
Buddhist = 1,
|
||||
Chinese = 2
|
||||
Buddhist = 1
|
||||
}
|
||||
|
||||
export class CalendarDisplayType implements TypeAndName {
|
||||
@@ -13,6 +12,7 @@ export class CalendarDisplayType implements TypeAndName {
|
||||
|
||||
public static readonly LanguageDefaultType: number = 0;
|
||||
public static readonly Gregorian = new CalendarDisplayType(1, 'Gregorian', 'Gregorian', CalendarType.Gregorian);
|
||||
public static readonly Buddhist = new CalendarDisplayType(2, 'Buddhist', 'Buddhist', CalendarType.Buddhist);
|
||||
|
||||
public static readonly Default = CalendarDisplayType.Gregorian;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user