UNPKG

@extclp/vexip-ui

Version:

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

16 lines (15 loc) 594 B
import { App, MaybeRef } from 'vue'; export declare const PROVIDED_ID_CONTER = "__vxp-provided-id-counter"; export interface IDCounter { getNext: () => number | string; } /** * Provide a id counter config for under components. * * You only should use this method when initialize application. * * @param sourceCounter id counter config * @param app the app of Vue, will use app.provide if specify */ export declare function configIdCounter(sourceCounter?: IDCounter, app?: App): void; export declare function useId(customId?: MaybeRef<string>): Readonly<import('vue').Ref<any, any>>;