UNPKG

@vue-cmd/core

Version:

Vue3命令式组件核心库 - 简化弹窗、对话框等组件的调用方式,告别繁琐的状态管理

8 lines (7 loc) 552 B
import { ComponentInternalInstance, InjectionKey, VNode } from 'vue'; import { IConsumer, ICoreConfig } from './type'; export declare const CommandComponentConsumerInjectKey: InjectionKey<IConsumer>; export declare const CommandComponentStackInjectKey: InjectionKey<IConsumer[]>; export declare const activeConsumers: Set<IConsumer>; export declare function commandProviderWithRender(parentInstance: ComponentInternalInstance | null, uiComponent: VNode, config: ICoreConfig): IConsumer; export declare const useConsumer: (warn?: boolean) => IConsumer;