@gct-paas/core-mobile 0.1.4-dev.11 → 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.
- package/dist/index.esm.min.js +716 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useLocale.mjs +27 -28
- package/es/index.mjs +6 -8
- package/package.json +5 -5
- package/dist/index.esm.min.mjs +0 -705
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
package/es/hooks/useLocale.mjs
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { computed } from
|
|
2
|
-
import vantLocaleCn from
|
|
3
|
-
import vantLocaleUs from
|
|
4
|
-
import vantLocalePt from
|
|
5
|
-
import vantLocaleTr from
|
|
6
|
-
import vantLocaleTw from
|
|
7
|
-
import vantLocaleJp from
|
|
8
|
-
import vantLocaleVn from
|
|
9
|
-
import vantLocaleDe from
|
|
10
|
-
import vantLocaleFr from
|
|
11
|
-
import vantLocaleEs from
|
|
12
|
-
import vantLocaleRu from
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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.
|
|
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.
|
|
49
|
-
"@gct-paas/scss": "0.1.4-dev.
|
|
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.
|
|
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": "
|
|
60
|
+
"gitHead": "0a7f1a0388cb21eb1c3a4868b14d664a5a3152ed"
|
|
61
61
|
}
|