sakana-element 2.1.0 → 2.1.1
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,4 +1,4 @@
|
|
|
1
|
-
import { TranslatePair } from '
|
|
1
|
+
import { TranslatePair } from '../../locale';
|
|
2
2
|
import { App, MaybeRef, Ref } from 'vue';
|
|
3
3
|
import { ConfigProviderContext } from './constants';
|
|
4
4
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, //keyof用于获取一个类型的所有键(属性名)组成的联合类型,表示泛型参数K必须是ConfigProviderContext接口中的某个属性名
|
|
@@ -16,9 +16,9 @@ export declare const PxConfigProvider: {
|
|
|
16
16
|
config: {
|
|
17
17
|
locale?: {
|
|
18
18
|
name: string;
|
|
19
|
-
el: import('
|
|
19
|
+
el: import('../../locale').TranslatePair;
|
|
20
20
|
} | undefined;
|
|
21
|
-
extendsI18nMsg?: import('
|
|
21
|
+
extendsI18nMsg?: import('../../locale').TranslatePair | undefined;
|
|
22
22
|
} | undefined;
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const installer: import('vue').Plugin;
|
|
2
2
|
export * from '../components';
|
|
3
|
-
export { type Theme, useSystemTheme, useTheme } from '
|
|
4
|
-
export * from '
|
|
3
|
+
export { type Theme, useSystemTheme, useTheme } from '../hooks';
|
|
4
|
+
export * from '../locale';
|
|
5
5
|
export default installer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Language } from '
|
|
1
|
+
import { Language } from '../locale';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { I18nInstance } from 'vue3-i18n';
|
|
4
4
|
export declare function useLocale(localeOverrides?: Ref<Language>): import('vue').ComputedRef<Pick<I18nInstance, "messages" | "t" | "setLocale" | "getLocale">>;
|