@gct-paas/core-mobile 0.1.4-dev.10 → 0.1.4-dev.12

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.
@@ -1,32 +1,31 @@
1
- import { computed } from 'vue';
2
- import vantLocaleCn from 'vant/es/locale/lang/zh-CN';
3
- import vantLocaleUs from 'vant/es/locale/lang/en-US';
4
- import vantLocalePt from 'vant/es/locale/lang/pt-BR';
5
- import vantLocaleTr from 'vant/es/locale/lang/tr-TR';
6
- import vantLocaleTw from 'vant/es/locale/lang/zh-TW';
7
- import vantLocaleJp from 'vant/es/locale/lang/ja-JP';
8
- import vantLocaleVn from 'vant/es/locale/lang/vi-VN';
9
- import vantLocaleDe from 'vant/es/locale/lang/de-DE';
10
- import vantLocaleFr from 'vant/es/locale/lang/fr-FR';
11
- import vantLocaleEs from 'vant/es/locale/lang/es-ES';
12
- import vantLocaleRu from 'vant/es/locale/lang/ru-RU';
13
-
14
- const vantMap = {
15
- "zh-CN": vantLocaleCn,
16
- "en-US": vantLocaleUs,
17
- "pt-BR": vantLocalePt,
18
- "tr-TR": vantLocaleTr,
19
- "zh-TW": vantLocaleTw,
20
- "ja-JP": vantLocaleJp,
21
- "vi-VN": vantLocaleVn,
22
- "de-GE": vantLocaleDe,
23
- "fr-FR": vantLocaleFr,
24
- "es-ES": vantLocaleEs,
25
- "ru-RU": vantLocaleRu
1
+ import { computed } from "vue";
2
+ import vantLocaleCn from "vant/es/locale/lang/zh-CN";
3
+ import vantLocaleUs from "vant/es/locale/lang/en-US";
4
+ import vantLocalePt from "vant/es/locale/lang/pt-BR";
5
+ import vantLocaleTr from "vant/es/locale/lang/tr-TR";
6
+ import vantLocaleTw from "vant/es/locale/lang/zh-TW";
7
+ import vantLocaleJp from "vant/es/locale/lang/ja-JP";
8
+ import vantLocaleVn from "vant/es/locale/lang/vi-VN";
9
+ import vantLocaleDe from "vant/es/locale/lang/de-DE";
10
+ import vantLocaleFr from "vant/es/locale/lang/fr-FR";
11
+ import vantLocaleEs from "vant/es/locale/lang/es-ES";
12
+ import vantLocaleRu from "vant/es/locale/lang/ru-RU";
13
+ //#region src/hooks/useLocale.ts
14
+ var vantMap = {
15
+ "zh-CN": vantLocaleCn,
16
+ "en-US": vantLocaleUs,
17
+ "pt-BR": vantLocalePt,
18
+ "tr-TR": vantLocaleTr,
19
+ "zh-TW": vantLocaleTw,
20
+ "ja-JP": vantLocaleJp,
21
+ "vi-VN": vantLocaleVn,
22
+ "de-GE": vantLocaleDe,
23
+ "fr-FR": vantLocaleFr,
24
+ "es-ES": vantLocaleEs,
25
+ "ru-RU": vantLocaleRu
26
26
  };
27
27
  function useLocale() {
28
- const getVantLocale = computed(() => vantMap[_gct.store.getLang]);
29
- return { getVantLocale };
28
+ return { getVantLocale: computed(() => vantMap[_gct.store.getLang]) };
30
29
  }
31
-
30
+ //#endregion
32
31
  export { useLocale };
package/es/index.mjs CHANGED
@@ -1,8 +1,6 @@
1
- export { useLocale } from './hooks/useLocale.mjs';
2
-
3
- const index = {
4
- install(_app) {
5
- }
6
- };
7
-
8
- export { index as default };
1
+ import { useLocale } from "./hooks/useLocale.mjs";
2
+ import "./hooks/index.mjs";
3
+ //#region src/index.ts
4
+ var src_default = { install(_app) {} };
5
+ //#endregion
6
+ export { src_default as default, useLocale };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-mobile",
3
- "version": "0.1.4-dev.10",
3
+ "version": "0.1.4-dev.12",
4
4
  "type": "module",
5
5
  "description": "paas 平台移动端核心包",
6
6
  "main": "dist/index.min.cjs",
@@ -45,17 +45,17 @@
45
45
  "gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
46
46
  },
47
47
  "dependencies": {
48
- "@gct-paas/core": "0.1.4-dev.10",
49
- "@gct-paas/scss": "0.1.4-dev.10",
48
+ "@gct-paas/core": "0.1.4-dev.12",
49
+ "@gct-paas/scss": "0.1.4-dev.12",
50
50
  "vant": "^4.9.22",
51
51
  "vue": "^3.5.29"
52
52
  },
53
53
  "devDependencies": {
54
- "@gct-paas/build": "^0.1.5-dev.8",
54
+ "@gct-paas/build": "^0.1.6-dev.1",
55
55
  "sass": "^1.97.3"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "vue": "^3.x"
59
59
  },
60
- "gitHead": "e707c6d6332e7e83a3d5df97b37f619065d8ea39"
60
+ "gitHead": "0a7f1a0388cb21eb1c3a4868b14d664a5a3152ed"
61
61
  }