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

Commitdafdd3a

Browse files
author
FalkWolsky
committed
Fixing - adding all DayJS plugins by Default
1 parent28112a1 commitdafdd3a

File tree

1 file changed

+32
-36
lines changed

1 file changed

+32
-36
lines changed

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

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
import{time}from"console";
22
importdayjsfrom"dayjs";
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');
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+
importbigIntSupportfrom"dayjs/plugin/bigIntSupport";
29+
importobjectSupportfrom"dayjs/plugin/objectSupport";
30+
importpluralGetSetfrom'dayjs/plugin/pluralGetSet';
31+
importpreParsePostFormatfrom'dayjs/plugin/preParsePostFormat';
32+
importtoObjectfrom'dayjs/plugin/toObject';
33+
importtoArrayfrom'dayjs/plugin/toArray';
3734

3835
dayjs.extend(relativeTime);
3936
dayjs.extend(timezone);
@@ -60,14 +57,13 @@ dayjs.extend(isMoment);
6057
dayjs.extend(calendar);
6158
dayjs.extend(buddhistEra);
6259
dayjs.extend(minmax);
63-
dayjs.extend(relativetime);
60+
dayjs.extend(relativeTime);
6461
dayjs.extend(bigIntSupport);
6562
dayjs.extend(localizedFormat);
6663
dayjs.extend(objectSupport);
6764
dayjs.extend(pluralGetSet);
6865
dayjs.extend(preParsePostFormat);
6966
dayjs.extend(toObject);
70-
dayjs.extend(toUnix);
7167
dayjs.extend(toArray);
7268

7369
exportconstTIME_FORMAT="HH:mm:ss";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp