nuxt-hs-ui 2.0.23 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@ import dayjs from "dayjs/esm/index";
|
|
|
2
2
|
export type Dayjs = dayjs.Dayjs;
|
|
3
3
|
export type QUnitType = dayjs.QUnitType;
|
|
4
4
|
export type OpUnitType = dayjs.OpUnitType;
|
|
5
|
-
export declare const DayjsInit: () => void;
|
|
5
|
+
export declare const DayjsInit: (f?: boolean) => void;
|
|
6
6
|
export declare const defaultTimezone = "Asia/Tokyo";
|
|
7
7
|
/** dayjsオブジェクト生成 */
|
|
8
8
|
export declare const Dayjs: (arg?: string | number | Dayjs | Date | null | undefined) => Dayjs;
|
|
@@ -5,8 +5,8 @@ import advancedFormat from "dayjs/esm/plugin/advancedFormat";
|
|
|
5
5
|
import ja from "dayjs/esm/locale/ja.js";
|
|
6
6
|
import en from "dayjs/esm/locale/en.js";
|
|
7
7
|
let init = false;
|
|
8
|
-
export const DayjsInit = () => {
|
|
9
|
-
if (init) return;
|
|
8
|
+
export const DayjsInit = (f = false) => {
|
|
9
|
+
if (init && !f) return;
|
|
10
10
|
init = true;
|
|
11
11
|
dayjs.extend(utc);
|
|
12
12
|
dayjs.extend(timezone);
|