chore(utils): add extends for dayjs (#6630)

This commit is contained in:
Junyi 2025-04-07 22:01:24 +08:00 committed by GitHub
parent d5f99d97df
commit 3c5ff51472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,7 @@
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import advancedFormat from 'dayjs/plugin/advancedFormat'; import advancedFormat from 'dayjs/plugin/advancedFormat';
import customParseFormat from 'dayjs/plugin/customParseFormat'; import customParseFormat from 'dayjs/plugin/customParseFormat';
import duration from 'dayjs/plugin/duration';
import IsBetween from 'dayjs/plugin/isBetween'; import IsBetween from 'dayjs/plugin/isBetween';
import IsSameOrAfter from 'dayjs/plugin/isSameOrAfter'; import IsSameOrAfter from 'dayjs/plugin/isSameOrAfter';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
@ -35,5 +36,6 @@ dayjs.extend(weekOfYear);
dayjs.extend(weekYear); dayjs.extend(weekYear);
dayjs.extend(customParseFormat); dayjs.extend(customParseFormat);
dayjs.extend(advancedFormat); dayjs.extend(advancedFormat);
dayjs.extend(duration);
export { dayjs }; export { dayjs };