sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
30 lines (29 loc) • 942 B
TypeScript
import { InjectionKey, type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
import { type WaterfallItemInfo } from '../waterfall-item/common';
export interface WaterfallProps {
rootStyle?: StyleValue;
rootClass?: string;
columns?: number;
columnGap?: number;
rowGap?: number;
}
export declare const defaultWaterfallProps: () => DefaultProps<WaterfallProps>;
export interface WaterfallSlots {
default?(props: Record<string, never>): any;
}
export interface WaterfallEmits {
(e: 'load'): void;
(e: 'loadstart'): void;
}
export interface WaterfallExpose {
reflow: () => void;
onLoad: (handler: () => void) => void;
}
export interface WaterfallContext {
columnWidth: number;
addItem: (item: WaterfallItemInfo) => void;
removeItem: (item: WaterfallItemInfo) => void;
onItemLoad: () => void;
}
export declare const waterfallContextKey: InjectionKey<WaterfallContext>;