1 | import dayjs from 'dayjs';
|
2 | import customParseFormat from 'dayjs/plugin/customParseFormat';
|
3 | import updateLocale from 'dayjs/plugin/updateLocale';
|
4 | import localeData from 'dayjs/plugin/localeData';
|
5 | import quarterOfYear from 'dayjs/plugin/quarterOfYear';
|
6 | import advancedFormat from 'dayjs/plugin/advancedFormat';
|
7 | import weekOfYear from 'dayjs/plugin/weekOfYear';
|
8 | import 'dayjs/locale/zh-cn';
|
9 |
|
10 | dayjs.extend(advancedFormat);
|
11 | dayjs.extend(quarterOfYear);
|
12 | dayjs.extend(customParseFormat);
|
13 | dayjs.extend(updateLocale);
|
14 | dayjs.extend(localeData);
|
15 | dayjs.extend(weekOfYear);
|
16 | dayjs.locale('zh-cn');
|
17 |
|
18 | var datejs = dayjs;
|
19 | datejs.isSelf = dayjs.isDayjs;
|
20 |
|
21 | dayjs.localeData();
|
22 |
|
23 | export default datejs; |
\ | No newline at end of file |