easybill-ui 1.2.5 → 1.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easybill-ui",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "A component library for easybill",
5
5
  "author": "tuchongyang <779311998@qq.com>",
6
6
  "private": false,
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "1d9fed3c96bb38e9f3358ac3fa0ad4f606cdb84f"
17
+ "gitHead": "31f1b1b4217af4f83bf6b4aea72596395b4ec9b5"
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import { computed, isRef, ref, unref, type ComputedRef } from "vue"
2
- import zhCn from "../../locale/lang/zh-cn"
2
+ import en from "../../locale/lang/en"
3
3
 
4
4
  import type { MaybeRef } from "@vueuse/core"
5
5
  import { useGlobalConfig } from "easybill-ui"
@@ -40,7 +40,7 @@ export const buildLocaleContext = (locale: ComputedRef<Language>): LocaleContext
40
40
  export const useLocale = (localeOverrides?: Language | undefined) => {
41
41
  const globalConfig = useGlobalConfig()
42
42
  const locale = localeOverrides || globalConfig.value.locale!
43
- return buildLocaleContext(computed(() => locale || zhCn))
43
+ return buildLocaleContext(computed(() => locale || en))
44
44
  }
45
45
  function get(object: Record<string, unknown>, path: string, defaultValue: unknown) {
46
46
  // 将路径转换为数组形式
@@ -1,5 +1,5 @@
1
+ import { type GlobalConfig, provideGlobalConfig } from "easybill-ui"
1
2
  import type { App, Plugin } from "vue"
2
- import { type GlobalConfig, provideGlobalConfig } from "../hooks/useGlobalConfig"
3
3
  const INSTALLED_KEY = Symbol("INSTALLED_KEY")
4
4
 
5
5
  export const makeInstaller = (components: Plugin[] = []) => {