ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
38 lines (37 loc) • 1.3 kB
TypeScript
import { VNodeTypes, PropType } from 'vue';
import { Locale } from '.';
export interface LocaleReceiverProps {
componentName?: string;
defaultLocale?: Locale | Function;
children: (locale: Locale, localeCode?: string, fullLocale?: Locale) => VNodeTypes;
}
interface LocaleInterface {
[key: string]: any;
}
export interface LocaleReceiverContext {
antLocale?: LocaleInterface;
}
declare const _default: import("vue").DefineComponent<{
componentName: import("vue-types").VueTypeValidableDef<string> & {
default: string;
};
defaultLocale: {
type: (ObjectConstructor | FunctionConstructor)[];
};
children: {
type: PropType<(locale: any, localeCode?: string, fullLocale?: object) => VNodeTypes>;
};
}, {
localeData: LocaleReceiverContext;
}, unknown, {}, {
getLocale(): any;
getLocaleCode(): any;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
componentName: string;
} & {
defaultLocale?: unknown;
children?: (locale: any, localeCode?: string, fullLocale?: object) => VNodeTypes;
}>, {
componentName: string;
}>;
export default _default;