Overflow.d.ts 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import type { ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
  2. import type { MouseEventHandler } from '../_util/EventInterface';
  3. import type { Key, VueNode } from '../_util/type';
  4. import RawItem from './RawItem';
  5. declare const RESPONSIVE: "responsive";
  6. declare const INVALIDATE: "invalidate";
  7. declare const overflowProps: () => {
  8. id: StringConstructor;
  9. prefixCls: StringConstructor;
  10. data: ArrayConstructor;
  11. itemKey: PropType<Key | ((item: any) => Key)>;
  12. /** Used for `responsive`. It will limit render node to avoid perf issue */
  13. itemWidth: {
  14. type: NumberConstructor;
  15. default: number;
  16. };
  17. renderItem: PropType<(item: any) => VueNode>;
  18. /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  19. renderRawItem: PropType<(item: any, index: number) => VueNode>;
  20. maxCount: PropType<number | "responsive" | "invalidate">;
  21. renderRest: PropType<(items: any[]) => VueNode>;
  22. /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
  23. renderRawRest: PropType<(items: any[]) => VueNode>;
  24. suffix: import("vue-types").VueTypeValidableDef<any>;
  25. component: StringConstructor;
  26. itemComponent: import("vue-types").VueTypeValidableDef<any>;
  27. /** @private This API may be refactor since not well design */
  28. onVisibleChange: PropType<(visibleCount: number) => void>;
  29. /** When set to `full`, ssr will render full items by default and remove at client side */
  30. ssr: PropType<"full">;
  31. onMousedown: PropType<MouseEventHandler>;
  32. };
  33. declare type InterOverflowProps = Partial<ExtractPropTypes<ReturnType<typeof overflowProps>>>;
  34. export declare type OverflowProps = HTMLAttributes & InterOverflowProps;
  35. declare const _default: {
  36. new (...args: any[]): {
  37. $: import("vue").ComponentInternalInstance;
  38. $data: {};
  39. $props: Partial<{
  40. class?: any;
  41. suffix?: any;
  42. itemComponent?: any;
  43. inlist?: any;
  44. }> & Omit<Readonly<OverflowProps> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "class" | "suffix" | "itemComponent" | "inlist">;
  45. $attrs: {
  46. [x: string]: unknown;
  47. };
  48. $refs: {
  49. [x: string]: unknown;
  50. };
  51. $slots: Readonly<{
  52. [name: string]: import("vue").Slot;
  53. }>;
  54. $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  55. $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  56. $emit: (event: string, ...args: any[]) => void;
  57. $el: any;
  58. $options: import("vue").ComponentOptionsBase<Readonly<OverflowProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  59. class?: any;
  60. suffix?: any;
  61. itemComponent?: any;
  62. inlist?: any;
  63. }, {}, string> & {
  64. beforeCreate?: (() => void) | (() => void)[];
  65. created?: (() => void) | (() => void)[];
  66. beforeMount?: (() => void) | (() => void)[];
  67. mounted?: (() => void) | (() => void)[];
  68. beforeUpdate?: (() => void) | (() => void)[];
  69. updated?: (() => void) | (() => void)[];
  70. activated?: (() => void) | (() => void)[];
  71. deactivated?: (() => void) | (() => void)[];
  72. beforeDestroy?: (() => void) | (() => void)[];
  73. beforeUnmount?: (() => void) | (() => void)[];
  74. destroyed?: (() => void) | (() => void)[];
  75. unmounted?: (() => void) | (() => void)[];
  76. renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  77. renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  78. errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
  79. };
  80. $forceUpdate: () => void;
  81. $nextTick: typeof import("vue").nextTick;
  82. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
  83. } & Readonly<OverflowProps> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
  84. __isFragment?: never;
  85. __isTeleport?: never;
  86. __isSuspense?: never;
  87. } & import("vue").ComponentOptionsBase<Readonly<OverflowProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  88. class?: any;
  89. suffix?: any;
  90. itemComponent?: any;
  91. inlist?: any;
  92. }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
  93. readonly Item: typeof RawItem;
  94. readonly RESPONSIVE: typeof RESPONSIVE;
  95. readonly INVALIDATE: typeof INVALIDATE;
  96. };
  97. export default _default;