196 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			196 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { InjectionKey, SetupContext } from 'vue';
 | |
| import type { ElCollectionInjectionContext, ElCollectionItemInjectionContext } from './tokens';
 | |
| export declare const COLLECTION_ITEM_SIGN = "data-el-collection-item";
 | |
| export declare const createCollectionWithScope: (name: string) => {
 | |
|     COLLECTION_INJECTION_KEY: InjectionKey<ElCollectionInjectionContext>;
 | |
|     COLLECTION_ITEM_INJECTION_KEY: InjectionKey<ElCollectionItemInjectionContext>;
 | |
|     ElCollection: {
 | |
|         name: string;
 | |
|         setup(): void;
 | |
|         __isFragment?: never;
 | |
|         __isTeleport?: never;
 | |
|         __isSuspense?: never;
 | |
|         template?: string | object;
 | |
|         render?: Function;
 | |
|         components?: Record<string, import("vue").Component>;
 | |
|         directives?: Record<string, import("vue").Directive>;
 | |
|         inheritAttrs?: boolean;
 | |
|         emits?: (import("vue").EmitsOptions & ThisType<void>) | undefined;
 | |
|         expose?: string[];
 | |
|         serverPrefetch?(): Promise<any>;
 | |
|         compilerOptions?: import("vue").RuntimeCompilerOptions;
 | |
|         call?: (this: unknown, ...args: unknown[]) => never;
 | |
|         __defaults?: {} | undefined;
 | |
|         compatConfig?: Partial<Record<import("vue").DeprecationTypes, boolean | "suppress-warning">> & {
 | |
|             MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3);
 | |
|         };
 | |
|         data?: ((this: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
 | |
|             P: {};
 | |
|             B: {};
 | |
|             D: {};
 | |
|             C: {};
 | |
|             M: {};
 | |
|             Defaults: {};
 | |
|         }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>, vm: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
 | |
|             P: {};
 | |
|             B: {};
 | |
|             D: {};
 | |
|             C: {};
 | |
|             M: {};
 | |
|             Defaults: {};
 | |
|         }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>) => {}) | undefined;
 | |
|         computed?: {} | undefined;
 | |
|         methods?: {} | undefined;
 | |
|         watch?: {
 | |
|             [x: string]: (string | import("vue").WatchCallback<any, any> | ({
 | |
|                 handler: import("vue").WatchCallback | string;
 | |
|             } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
 | |
|                 handler: import("vue").WatchCallback | string;
 | |
|             } & import("vue").WatchOptions<boolean>))[];
 | |
|         };
 | |
|         provide?: import("vue").ComponentProvideOptions;
 | |
|         inject?: string[] | {
 | |
|             [x: string]: string | symbol | {
 | |
|                 from?: string | symbol;
 | |
|                 default?: unknown;
 | |
|             };
 | |
|             [x: symbol]: string | symbol | {
 | |
|                 from?: string | symbol;
 | |
|                 default?: unknown;
 | |
|             };
 | |
|         };
 | |
|         filters?: Record<string, Function>;
 | |
|         mixins?: import("vue").ComponentOptionsMixin[] | undefined;
 | |
|         extends?: import("vue").ComponentOptionsMixin | undefined;
 | |
|         beforeCreate?(): void;
 | |
|         created?(): void;
 | |
|         beforeMount?(): void;
 | |
|         mounted?(): void;
 | |
|         beforeUpdate?(): void;
 | |
|         updated?(): void;
 | |
|         activated?(): void;
 | |
|         deactivated?(): void;
 | |
|         beforeDestroy?(): void;
 | |
|         beforeUnmount?(): void;
 | |
|         destroyed?(): void;
 | |
|         unmounted?(): void;
 | |
|         renderTracked?: (e: import("vue").DebuggerEvent) => void;
 | |
|         renderTriggered?: (e: import("vue").DebuggerEvent) => void;
 | |
|         errorCaptured?: (err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void;
 | |
|         delimiters?: [string, string];
 | |
|         __differentiator?: undefined;
 | |
|         __isBuiltIn?: boolean;
 | |
|         __file?: string;
 | |
|         __name?: string;
 | |
|         beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined>;
 | |
|         beforeRouteUpdate?: import("vue-router").NavigationGuard;
 | |
|         beforeRouteLeave?: import("vue-router").NavigationGuard;
 | |
|         key?: string | number | symbol;
 | |
|         ref?: import("vue").VNodeRef;
 | |
|         ref_for?: boolean;
 | |
|         ref_key?: string;
 | |
|         onVnodeBeforeMount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeMounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeBeforeUpdate?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
 | |
|         onVnodeUpdated?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
 | |
|         onVnodeBeforeUnmount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeUnmounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         class?: unknown;
 | |
|         style?: unknown;
 | |
|     };
 | |
|     ElCollectionItem: {
 | |
|         name: string;
 | |
|         setup(_: unknown, { attrs }: SetupContext): void;
 | |
|         __isFragment?: never;
 | |
|         __isTeleport?: never;
 | |
|         __isSuspense?: never;
 | |
|         template?: string | object;
 | |
|         render?: Function;
 | |
|         components?: Record<string, import("vue").Component>;
 | |
|         directives?: Record<string, import("vue").Directive>;
 | |
|         inheritAttrs?: boolean;
 | |
|         emits?: (import("vue").EmitsOptions & ThisType<void>) | undefined;
 | |
|         expose?: string[];
 | |
|         serverPrefetch?(): Promise<any>;
 | |
|         compilerOptions?: import("vue").RuntimeCompilerOptions;
 | |
|         call?: (this: unknown, ...args: unknown[]) => never;
 | |
|         __defaults?: {} | undefined;
 | |
|         compatConfig?: Partial<Record<import("vue").DeprecationTypes, boolean | "suppress-warning">> & {
 | |
|             MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3);
 | |
|         };
 | |
|         data?: ((this: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
 | |
|             P: {};
 | |
|             B: {};
 | |
|             D: {};
 | |
|             C: {};
 | |
|             M: {};
 | |
|             Defaults: {};
 | |
|         }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>, vm: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
 | |
|             P: {};
 | |
|             B: {};
 | |
|             D: {};
 | |
|             C: {};
 | |
|             M: {};
 | |
|             Defaults: {};
 | |
|         }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>) => {}) | undefined;
 | |
|         computed?: {} | undefined;
 | |
|         methods?: {} | undefined;
 | |
|         watch?: {
 | |
|             [x: string]: (string | import("vue").WatchCallback<any, any> | ({
 | |
|                 handler: import("vue").WatchCallback | string;
 | |
|             } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
 | |
|                 handler: import("vue").WatchCallback | string;
 | |
|             } & import("vue").WatchOptions<boolean>))[];
 | |
|         };
 | |
|         provide?: import("vue").ComponentProvideOptions;
 | |
|         inject?: string[] | {
 | |
|             [x: string]: string | symbol | {
 | |
|                 from?: string | symbol;
 | |
|                 default?: unknown;
 | |
|             };
 | |
|             [x: symbol]: string | symbol | {
 | |
|                 from?: string | symbol;
 | |
|                 default?: unknown;
 | |
|             };
 | |
|         };
 | |
|         filters?: Record<string, Function>;
 | |
|         mixins?: import("vue").ComponentOptionsMixin[] | undefined;
 | |
|         extends?: import("vue").ComponentOptionsMixin | undefined;
 | |
|         beforeCreate?(): void;
 | |
|         created?(): void;
 | |
|         beforeMount?(): void;
 | |
|         mounted?(): void;
 | |
|         beforeUpdate?(): void;
 | |
|         updated?(): void;
 | |
|         activated?(): void;
 | |
|         deactivated?(): void;
 | |
|         beforeDestroy?(): void;
 | |
|         beforeUnmount?(): void;
 | |
|         destroyed?(): void;
 | |
|         unmounted?(): void;
 | |
|         renderTracked?: (e: import("vue").DebuggerEvent) => void;
 | |
|         renderTriggered?: (e: import("vue").DebuggerEvent) => void;
 | |
|         errorCaptured?: (err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void;
 | |
|         delimiters?: [string, string];
 | |
|         __differentiator?: undefined;
 | |
|         __isBuiltIn?: boolean;
 | |
|         __file?: string;
 | |
|         __name?: string;
 | |
|         beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined>;
 | |
|         beforeRouteUpdate?: import("vue-router").NavigationGuard;
 | |
|         beforeRouteLeave?: import("vue-router").NavigationGuard;
 | |
|         key?: string | number | symbol;
 | |
|         ref?: import("vue").VNodeRef;
 | |
|         ref_for?: boolean;
 | |
|         ref_key?: string;
 | |
|         onVnodeBeforeMount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeMounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeBeforeUpdate?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
 | |
|         onVnodeUpdated?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
 | |
|         onVnodeBeforeUnmount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         onVnodeUnmounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
 | |
|         class?: unknown;
 | |
|         style?: unknown;
 | |
|     };
 | |
| };
 |