Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28112a1

Browse files
author
FalkWolsky
committed
Adding all DayJS plugins by Default
1 parente72a6c9 commit28112a1

File tree

1 file changed

+42
-26
lines changed

1 file changed

+42
-26
lines changed

‎client/packages/lowcoder/src/util/dateTimeUtils.ts‎

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
import{time}from"console";
22
importdayjsfrom"dayjs";
3-
importrelativeTimefrom"dayjs/plugin/relativeTime";
4-
importtimezonefrom"dayjs/plugin/timezone";
5-
importdurationfrom"dayjs/plugin/duration";
6-
importutcfrom"dayjs/plugin/utc";
7-
importquarterOfYearfrom"dayjs/plugin/quarterOfYear";
8-
importweekOfYearfrom"dayjs/plugin/weekOfYear";
9-
importisBetweenfrom"dayjs/plugin/isBetween";
10-
importisTodayfrom"dayjs/plugin/isToday";
11-
importisTomorrowfrom"dayjs/plugin/isTomorrow";
12-
importisYesterdayfrom"dayjs/plugin/isYesterday";
13-
importcustomParseFormatfrom"dayjs/plugin/customParseFormat";
14-
importadvancedFormatfrom"dayjs/plugin/advancedFormat";
15-
importupdateLocalefrom"dayjs/plugin/updateLocale";
16-
importlocaleDatafrom"dayjs/plugin/localeData";
17-
importlocalizedFormatfrom"dayjs/plugin/localizedFormat";
18-
importisLeapYearfrom"dayjs/plugin/isLeapYear";
19-
importisSameOrAfterfrom"dayjs/plugin/isSameOrAfter";
20-
importisSameOrBeforefrom"dayjs/plugin/isSameOrBefore";
21-
importisoWeekfrom"dayjs/plugin/isoWeek";
22-
importisoWeeksInYearfrom"dayjs/plugin/isoWeeksInYear";
23-
importweekYearfrom"dayjs/plugin/weekYear";
24-
importisMomentfrom"dayjs/plugin/isMoment";
25-
importcalendarfrom"dayjs/plugin/calendar";
26-
importbuddhistErafrom"dayjs/plugin/buddhistEra";
27-
importminmaxfrom"dayjs/plugin/minMax";
28-
importrelativetimefrom"dayjs/plugin/relativeTime";
3+
varrelativeTime=require("dayjs/plugin/relativeTime");
4+
vartimezone=require("dayjs/plugin/timezone");
5+
varduration=require("dayjs/plugin/duration");
6+
varutc=require("dayjs/plugin/utc");
7+
varquarterOfYear=require("dayjs/plugin/quarterOfYear");
8+
varweekOfYear=require("dayjs/plugin/weekOfYear");
9+
varisBetween=require("dayjs/plugin/isBetween");
10+
varisToday=require("dayjs/plugin/isToday");
11+
varisTomorrow=require("dayjs/plugin/isTomorrow");
12+
varisYesterday=require("dayjs/plugin/isYesterday");
13+
varcustomParseFormat=require("dayjs/plugin/customParseFormat");
14+
varadvancedFormat=require("dayjs/plugin/advancedFormat");
15+
varupdateLocale=require("dayjs/plugin/updateLocale");
16+
varlocaleData=require("dayjs/plugin/localeData");
17+
varlocalizedFormat=require("dayjs/plugin/localizedFormat");
18+
varisLeapYear=require("dayjs/plugin/isLeapYear");
19+
varisSameOrAfter=require("dayjs/plugin/isSameOrAfter");
20+
varisSameOrBefore=require("dayjs/plugin/isSameOrBefore");
21+
varisoWeek=require("dayjs/plugin/isoWeek");
22+
varisoWeeksInYear=require("dayjs/plugin/isoWeeksInYear");
23+
varweekYear=require("dayjs/plugin/weekYear");
24+
varisMoment=require("dayjs/plugin/isMoment");
25+
varcalendar=require("dayjs/plugin/calendar");
26+
varbuddhistEra=require("dayjs/plugin/buddhistEra");
27+
varminmax=require("dayjs/plugin/minMax");
28+
varrelativetime=require("dayjs/plugin/relativeTime");
29+
varbigIntSupport=require("dayjs/plugin/bigIntSupport");
30+
varlocalizedFormat=require('dayjs/plugin/localizedFormat');
31+
varobjectSupport=require("dayjs/plugin/objectSupport");
32+
varpluralGetSet=require('dayjs/plugin/pluralGetSet');
33+
varpreParsePostFormat=require('dayjs/plugin/preParsePostFormat');
34+
vartoObject=require('dayjs/plugin/toObject');
35+
vartoUnix=require('dayjs/plugin/toUnix');
36+
vartoArray=require('dayjs/plugin/toArray');
2937

3038
dayjs.extend(relativeTime);
3139
dayjs.extend(timezone);
@@ -53,6 +61,14 @@ dayjs.extend(calendar);
5361
dayjs.extend(buddhistEra);
5462
dayjs.extend(minmax);
5563
dayjs.extend(relativetime);
64+
dayjs.extend(bigIntSupport);
65+
dayjs.extend(localizedFormat);
66+
dayjs.extend(objectSupport);
67+
dayjs.extend(pluralGetSet);
68+
dayjs.extend(preParsePostFormat);
69+
dayjs.extend(toObject);
70+
dayjs.extend(toUnix);
71+
dayjs.extend(toArray);
5672

5773
exportconstTIME_FORMAT="HH:mm:ss";
5874
exportconstTIME_12_FORMAT="HH:mm:ss:a";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp