useValueTexts.d.ts 540 B

123456789
  1. import type { ComputedRef, Ref } from 'vue';
  2. import type { GenerateConfig } from '../generate';
  3. import type { CustomFormat, Locale } from '../interface';
  4. export declare type ValueTextConfig<DateType> = {
  5. formatList: ComputedRef<(string | CustomFormat<DateType>)[]>;
  6. generateConfig: Ref<GenerateConfig<DateType>>;
  7. locale: Ref<Locale>;
  8. };
  9. export default function useValueTexts<DateType>(value: Ref<DateType | null>, { formatList, generateConfig, locale }: ValueTextConfig<DateType>): [ComputedRef<string[]>, ComputedRef<string>];