nuxt-hs-ui 2.0.27 → 2.0.28
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
|
@@ -11,7 +11,7 @@ import dayjs from "dayjs/esm/index";
|
|
|
11
11
|
import flatpickr from "flatpickr";
|
|
12
12
|
import monthSelectPlugin from "flatpickr/dist/plugins/monthSelect";
|
|
13
13
|
import { Japanese as ja } from "flatpickr/dist/l10n/ja";
|
|
14
|
-
import { english as en } from "flatpickr/dist/l10n/default";
|
|
14
|
+
// import { english as en } from "flatpickr/dist/l10n/default";
|
|
15
15
|
// [ vueuse ]
|
|
16
16
|
import { useMounted } from "@vueuse/core";
|
|
17
17
|
// [ NUXT ]
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
onMounted,
|
|
25
25
|
nextTick,
|
|
26
26
|
onUnmounted,
|
|
27
|
+
useHead,
|
|
27
28
|
} from "#imports";
|
|
28
29
|
// [ utils ]
|
|
29
30
|
import type { ClassType } from "../../utils/class-style";
|
|
@@ -36,6 +37,14 @@ import { useHsMultiLang } from "../../composables/use-hs-multi-lang";
|
|
|
36
37
|
// [ Components ]
|
|
37
38
|
import InputFrame from "./input-frame.vue";
|
|
38
39
|
|
|
40
|
+
useHead({
|
|
41
|
+
script: [
|
|
42
|
+
//
|
|
43
|
+
{ src: `https://npmcdn.com/flatpickr/dist/l10n/ja.js` },
|
|
44
|
+
{ src: `https://npmcdn.com/flatpickr/dist/l10n/default.js` },
|
|
45
|
+
],
|
|
46
|
+
});
|
|
47
|
+
|
|
39
48
|
// ----------------------------------------------------------------------------
|
|
40
49
|
// [ nac-stroe ]
|
|
41
50
|
DayjsInit();
|
|
@@ -389,13 +398,13 @@ const generateFlatPickerOption = () => {
|
|
|
389
398
|
dayjs.locale(multiLang.state.lang);
|
|
390
399
|
switch (multiLang.state.lang) {
|
|
391
400
|
case "ja":
|
|
392
|
-
state.option.locale = ja;
|
|
401
|
+
state.option.locale = "ja";
|
|
393
402
|
break;
|
|
394
403
|
case "en":
|
|
395
|
-
state.option.locale = en;
|
|
404
|
+
state.option.locale = "en";
|
|
396
405
|
break;
|
|
397
406
|
default:
|
|
398
|
-
state.option.locale = en;
|
|
407
|
+
state.option.locale = "en";
|
|
399
408
|
break;
|
|
400
409
|
}
|
|
401
410
|
// state.option.position = 'above';
|