c2ac2e5ccfe5954da5cd80ec5922fbb41f800386717f30121517d3aea86681baffb77bcfe565845d5c36fa64e98cb04da6ceda0f9580c7926a4619e8901bc9 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. import type { InjectionKey, SetupContext } from 'vue';
  2. import type { ElCollectionInjectionContext, ElCollectionItemInjectionContext } from './tokens';
  3. export declare const COLLECTION_ITEM_SIGN = "data-el-collection-item";
  4. export declare const createCollectionWithScope: (name: string) => {
  5. COLLECTION_INJECTION_KEY: InjectionKey<ElCollectionInjectionContext>;
  6. COLLECTION_ITEM_INJECTION_KEY: InjectionKey<ElCollectionItemInjectionContext>;
  7. ElCollection: {
  8. name: string;
  9. setup(): void;
  10. __isFragment?: never;
  11. __isTeleport?: never;
  12. __isSuspense?: never;
  13. template?: string | object;
  14. render?: Function;
  15. components?: Record<string, import("vue").Component>;
  16. directives?: Record<string, import("vue").Directive>;
  17. inheritAttrs?: boolean;
  18. emits?: (import("vue").EmitsOptions & ThisType<void>) | undefined;
  19. expose?: string[];
  20. serverPrefetch?(): Promise<any>;
  21. compilerOptions?: import("vue").RuntimeCompilerOptions;
  22. call?: (this: unknown, ...args: unknown[]) => never;
  23. __defaults?: {} | undefined;
  24. compatConfig?: Partial<Record<import("vue").DeprecationTypes, boolean | "suppress-warning">> & {
  25. MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3);
  26. };
  27. data?: ((this: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
  28. P: {};
  29. B: {};
  30. D: {};
  31. C: {};
  32. M: {};
  33. Defaults: {};
  34. }, 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, {
  35. P: {};
  36. B: {};
  37. D: {};
  38. C: {};
  39. M: {};
  40. Defaults: {};
  41. }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>) => {}) | undefined;
  42. computed?: {} | undefined;
  43. methods?: {} | undefined;
  44. watch?: {
  45. [x: string]: (string | import("vue").WatchCallback<any, any> | ({
  46. handler: import("vue").WatchCallback | string;
  47. } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
  48. handler: import("vue").WatchCallback | string;
  49. } & import("vue").WatchOptions<boolean>))[];
  50. };
  51. provide?: import("vue").ComponentProvideOptions;
  52. inject?: string[] | {
  53. [x: string]: string | symbol | {
  54. from?: string | symbol;
  55. default?: unknown;
  56. };
  57. [x: symbol]: string | symbol | {
  58. from?: string | symbol;
  59. default?: unknown;
  60. };
  61. };
  62. filters?: Record<string, Function>;
  63. mixins?: import("vue").ComponentOptionsMixin[] | undefined;
  64. extends?: import("vue").ComponentOptionsMixin | undefined;
  65. beforeCreate?(): void;
  66. created?(): void;
  67. beforeMount?(): void;
  68. mounted?(): void;
  69. beforeUpdate?(): void;
  70. updated?(): void;
  71. activated?(): void;
  72. deactivated?(): void;
  73. beforeDestroy?(): void;
  74. beforeUnmount?(): void;
  75. destroyed?(): void;
  76. unmounted?(): void;
  77. renderTracked?: (e: import("vue").DebuggerEvent) => void;
  78. renderTriggered?: (e: import("vue").DebuggerEvent) => void;
  79. errorCaptured?: (err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void;
  80. delimiters?: [string, string];
  81. __differentiator?: undefined;
  82. __isBuiltIn?: boolean;
  83. __file?: string;
  84. __name?: string;
  85. beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined>;
  86. beforeRouteUpdate?: import("vue-router").NavigationGuard;
  87. beforeRouteLeave?: import("vue-router").NavigationGuard;
  88. key?: string | number | symbol;
  89. ref?: import("vue").VNodeRef;
  90. ref_for?: boolean;
  91. ref_key?: string;
  92. onVnodeBeforeMount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  93. onVnodeMounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  94. onVnodeBeforeUpdate?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
  95. onVnodeUpdated?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
  96. onVnodeBeforeUnmount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  97. onVnodeUnmounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  98. class?: unknown;
  99. style?: unknown;
  100. };
  101. ElCollectionItem: {
  102. name: string;
  103. setup(_: unknown, { attrs }: SetupContext): void;
  104. __isFragment?: never;
  105. __isTeleport?: never;
  106. __isSuspense?: never;
  107. template?: string | object;
  108. render?: Function;
  109. components?: Record<string, import("vue").Component>;
  110. directives?: Record<string, import("vue").Directive>;
  111. inheritAttrs?: boolean;
  112. emits?: (import("vue").EmitsOptions & ThisType<void>) | undefined;
  113. expose?: string[];
  114. serverPrefetch?(): Promise<any>;
  115. compilerOptions?: import("vue").RuntimeCompilerOptions;
  116. call?: (this: unknown, ...args: unknown[]) => never;
  117. __defaults?: {} | undefined;
  118. compatConfig?: Partial<Record<import("vue").DeprecationTypes, boolean | "suppress-warning">> & {
  119. MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3);
  120. };
  121. data?: ((this: import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, false, {
  122. P: {};
  123. B: {};
  124. D: {};
  125. C: {};
  126. M: {};
  127. Defaults: {};
  128. }, 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, {
  129. P: {};
  130. B: {};
  131. D: {};
  132. C: {};
  133. M: {};
  134. Defaults: {};
  135. }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, import("vue").MethodOptions, {}>) => {}) | undefined;
  136. computed?: {} | undefined;
  137. methods?: {} | undefined;
  138. watch?: {
  139. [x: string]: (string | import("vue").WatchCallback<any, any> | ({
  140. handler: import("vue").WatchCallback | string;
  141. } & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
  142. handler: import("vue").WatchCallback | string;
  143. } & import("vue").WatchOptions<boolean>))[];
  144. };
  145. provide?: import("vue").ComponentProvideOptions;
  146. inject?: string[] | {
  147. [x: string]: string | symbol | {
  148. from?: string | symbol;
  149. default?: unknown;
  150. };
  151. [x: symbol]: string | symbol | {
  152. from?: string | symbol;
  153. default?: unknown;
  154. };
  155. };
  156. filters?: Record<string, Function>;
  157. mixins?: import("vue").ComponentOptionsMixin[] | undefined;
  158. extends?: import("vue").ComponentOptionsMixin | undefined;
  159. beforeCreate?(): void;
  160. created?(): void;
  161. beforeMount?(): void;
  162. mounted?(): void;
  163. beforeUpdate?(): void;
  164. updated?(): void;
  165. activated?(): void;
  166. deactivated?(): void;
  167. beforeDestroy?(): void;
  168. beforeUnmount?(): void;
  169. destroyed?(): void;
  170. unmounted?(): void;
  171. renderTracked?: (e: import("vue").DebuggerEvent) => void;
  172. renderTriggered?: (e: import("vue").DebuggerEvent) => void;
  173. errorCaptured?: (err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void;
  174. delimiters?: [string, string];
  175. __differentiator?: undefined;
  176. __isBuiltIn?: boolean;
  177. __file?: string;
  178. __name?: string;
  179. beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined>;
  180. beforeRouteUpdate?: import("vue-router").NavigationGuard;
  181. beforeRouteLeave?: import("vue-router").NavigationGuard;
  182. key?: string | number | symbol;
  183. ref?: import("vue").VNodeRef;
  184. ref_for?: boolean;
  185. ref_key?: string;
  186. onVnodeBeforeMount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  187. onVnodeMounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  188. onVnodeBeforeUpdate?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
  189. onVnodeUpdated?: ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[];
  190. onVnodeBeforeUnmount?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  191. onVnodeUnmounted?: ((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[];
  192. class?: unknown;
  193. style?: unknown;
  194. };
  195. };