You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

196 lines
10 KiB

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