@varlet/ui 1.24.9 → 1.24.10
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/es/locale/index.js
CHANGED
|
@@ -2,7 +2,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import { ref } from 'vue';
|
|
4
4
|
import zhCN from './zh-CN';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
function useLocale() {
|
|
6
7
|
var packs = {};
|
|
7
8
|
var pack = ref({});
|
|
8
9
|
|
|
@@ -38,6 +39,7 @@ export function useLocale() {
|
|
|
38
39
|
merge
|
|
39
40
|
};
|
|
40
41
|
}
|
|
42
|
+
|
|
41
43
|
var {
|
|
42
44
|
packs,
|
|
43
45
|
pack,
|
|
@@ -47,7 +49,7 @@ var {
|
|
|
47
49
|
} = useLocale();
|
|
48
50
|
add('zh-CN', zhCN);
|
|
49
51
|
use('zh-CN');
|
|
50
|
-
export { packs, pack, add, use, merge };
|
|
52
|
+
export { packs, pack, add, use, merge, useLocale };
|
|
51
53
|
export var _LocaleComponent = {
|
|
52
54
|
packs,
|
|
53
55
|
pack,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.less'
|
|
2
|
-
import '../SnackbarSfc.less'
|
|
3
2
|
import '../../styles/elevation.less'
|
|
4
3
|
import '../../loading/loading.less'
|
|
5
4
|
import '../../button/button.less'
|
|
6
5
|
import '../../icon/icon.less'
|
|
7
6
|
import '../snackbar.less'
|
|
8
7
|
import '../coreSfc.less'
|
|
8
|
+
import '../SnackbarSfc.less'
|
package/highlight/web-types.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.10",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@varlet/icons": "1.24.
|
|
42
|
+
"@varlet/icons": "1.24.10",
|
|
43
43
|
"dayjs": "^1.10.4",
|
|
44
44
|
"decimal.js": "^10.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@varlet/cli": "1.24.
|
|
48
|
-
"@varlet/touch-emulator": "1.24.
|
|
47
|
+
"@varlet/cli": "1.24.10",
|
|
48
|
+
"@varlet/touch-emulator": "1.24.10",
|
|
49
49
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
50
50
|
"typescript": "^4.4.4",
|
|
51
51
|
"lodash-es": "^4.17.21",
|
package/types/locale.d.ts
CHANGED
|
@@ -35,6 +35,13 @@ interface Locale {
|
|
|
35
35
|
add(lang: string, pack: Partial<Pack>): void
|
|
36
36
|
use(lang: string): void
|
|
37
37
|
merge(lang: string, pack: Partial<Pack>): void
|
|
38
|
+
useLocale<T = Pack>(): {
|
|
39
|
+
packs: Record<string, Partial<T>>
|
|
40
|
+
pack: Ref<Partial<T>>
|
|
41
|
+
add(lang: string, pack: Partial<T> & { lang?: string }): void
|
|
42
|
+
use(lang: string): void
|
|
43
|
+
merge(lang: string, pack: Partial<T>): void
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
export const Locale: Locale
|