@matechat/core
Version:
前端智能化场景解决方案UI库,轻松构建你的AI应用。
14 lines (13 loc) • 537 B
TypeScript
import type { ListProps, ListItemData } from './list-types';
export declare function useList(props: ListProps, emits: (event: 'select' | 'loadMore', ...args: any[]) => void): {
preSelectIndex: import("vue").Ref<number, number>;
onItemClick: (item: ListItemData) => void;
onListScroll: (e: Event) => void;
};
export declare function useListRender(props: ListProps): {
listClasses: import("vue").ComputedRef<{
'mc-list': boolean;
'mc-list-horizontal': boolean;
'mc-list-nowrap': boolean;
}>;
};