UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

32 lines (31 loc) 1.6 kB
import { App, ComputedRef, MaybeRef } from 'vue'; import { LocaleConfig, LocaleNames, LocaleOptions } from './helper'; export * from './helper'; export * from './ar-EG'; export * from './de-DE'; export * from './en-US'; export * from './fa-IR'; export * from './fr-FR'; export * from './ta-IN'; export * from './zh-CN'; export * from './zh-HK'; export * from './zh-TW'; export declare const PROVIDED_LOCALE = "__vxp-provided-locale"; export declare const globalLocal: ComputedRef<LocaleConfig>; export declare function getDefaultLocaleConfig(locale?: string): LocaleConfig; export declare function registerLocale(locale: LocaleConfig): void; /** * Provide a locale config for under components. * * @param sourceLocale locale config * @param app the app of Vue, will use app.provide if specify */ export declare function configLocale(sourceLocale: MaybeRef<LocaleOptions>, app?: App): void; export declare function useLocale(): ComputedRef<LocaleConfig>; export declare function useLocale<T extends LocaleNames>(name: T): ComputedRef<LocaleConfig[T]>; export declare function useLocale<T extends LocaleNames>(name: T, customLocale: MaybeRef<Partial<LocaleConfig[T]>>): ComputedRef<LocaleConfig[T]>; export declare function useWordSpace(): ComputedRef<boolean>; export declare function getCountWord(wordTemplate: string, count: number): string; export declare function getCountWordOnly(wordTemplate: string, count: number): string; export declare function makeSentence(words: string, wordSpace?: boolean): string; export declare function getStepByWord(wordTemplate: string, step: number): string;