import { CSSProperties, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue'; import { GridType, GridItem } from './types'; export interface HGridProps { /** 预设网格类型 */ type?: GridType; /** 网格数据 */ data?: GridItem[]; /** 是否加载中 */ loading?: boolean; /** 列数 */ columns?: number; /** 网格项高度 */ itemHeight?: string; /** 纵向间距 */ verticalGap?: string; /** 横向间距 */ horizontalGap?: string; /** 空状态描述 */ emptyText?: string; /** 是否显示hover状态 */ hoverShow?: boolean; /** hover颜色 */ hoverColor?: string; /** 容器类名 */ containerClass?: string; /** 容器样式 */ containerStyle?: CSSProperties; /** 网格项类名 */ itemClass?: string; /** 网格项样式 */ itemStyle?: CSSProperties; /** item 排列方式: 纵向vertical 横向horizontal */ itemDirection?: 'vertical' | 'horizontal'; /** 显示描述 */ showDesc?: boolean; /** 图标大小 */ iconSize?: string; /** 作为文件名处理 */ fileName?: boolean; /** 是否空状态, 为 undefined 时根据 data 和 loading 判断 */ isEmpty?: boolean; } export interface HGridEmits { /** 点击网格项 */ 'item-click': [item: GridItem, index: number]; } declare const _default: __VLS_WithTemplateSlots< DefineComponent, { hoverShow: undefined; showDesc: undefined; fileName: undefined; isEmpty: undefined; }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "item-click": (item: GridItem, index: number) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { hoverShow: undefined; showDesc: undefined; fileName: undefined; isEmpty: undefined; }>>> & Readonly<{ "onItem-click"?: ((item: GridItem, index: number) => any) | undefined; }>, { isEmpty: boolean; fileName: boolean; hoverShow: boolean; showDesc: boolean; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { item?(_: { item: GridItem; index: number; }): any; icon?(_: { item: GridItem; index: number; }): any; empty?(_: {}): any; }>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };