@antdv/pro-list
Version:
@antdv/pro-list
162 lines (161 loc) • 15.3 kB
TypeScript
import type { CheckCardProps } from '@antdv/pro-card';
import type { VueNode } from '@antdv/pro-utils';
import type { ListGridType } from 'ant-design-vue/es/list';
import type { ExpandableConfig } from 'ant-design-vue/lib/table/interface';
import type { CSSProperties, ExtractPublicPropTypes, SlotsType, VNode } from 'vue';
import type { GetComponentProps } from './index';
export interface RenderExpandIconProps {
prefixCls: string;
expanded: boolean;
expandIcon: VueNode | VNode | ((props: {
onExpand: (expanded: boolean) => void;
expanded: boolean;
record: Record<string, any>;
}) => VueNode);
onExpand: (expanded: boolean) => void;
record: Record<string, any>;
hashId: string;
}
export declare function renderExpandIcon({ prefixCls, expandIcon, onExpand, expanded, record, hashId, }: RenderExpandIconProps): import("vue/jsx-runtime").JSX.Element;
export declare function itemProps<RecordType>(): {
readonly title: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly checkbox: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly className: StringConstructor;
readonly prefixCls: StringConstructor;
readonly item: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly subheaderTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subheaderActions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly index: import("@antdv/pro-utils").VueTypeValidateDef<number, import("@antdv/pro-utils").ValidatorFunction<number>> & {
required: true;
};
readonly selected: BooleanConstructor;
readonly avatar: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly content: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly actions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly extra: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly description: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly loading: BooleanConstructor;
readonly style: import("@antdv/pro-utils").VueTypeValidateDef<CSSProperties, import("@antdv/pro-utils").ValidatorFunction<CSSProperties>>;
readonly grid: import("@antdv/pro-utils").VueTypeValidateDef<ListGridType, import("@antdv/pro-utils").ValidatorFunction<ListGridType>>;
readonly expand: BooleanConstructor;
readonly rowSupportExpand: BooleanConstructor;
readonly cardActionProps: import("@antdv/pro-utils").VueTypeValidateDef<"extra" | "actions", import("@antdv/pro-utils").ValidatorFunction<"extra" | "actions">>;
readonly onExpand: import("@antdv/pro-utils").VueTypeValidateDef<(expand: boolean) => void, import("@antdv/pro-utils").ValidatorFunction<(expand: boolean) => void>>;
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<Record<string, any>>>>;
readonly showActions: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly showExtra: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly type: import("@antdv/pro-utils").VueTypeValidateDef<"top" | "inline" | "new" | "subheader", import("@antdv/pro-utils").ValidatorFunction<"top" | "inline" | "new" | "subheader">>;
readonly isEditable: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>> & {
required: true;
};
readonly recordKey: import("@antdv/pro-utils").VueTypeDef<string | number>;
readonly cardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly record: import("@antdv/pro-utils").VueTypeValidateDef<Record<string, any>, import("@antdv/pro-utils").ValidatorFunction<Record<string, any>>> & {
required: true;
};
readonly onRow: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<RecordType>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<RecordType>>>;
readonly onItem: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<RecordType>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<RecordType>>>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
};
export type ProListItemProps<RecordType> = ExtractPublicPropTypes<ReturnType<typeof itemProps<RecordType>>>;
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
readonly title: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly checkbox: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly className: StringConstructor;
readonly prefixCls: StringConstructor;
readonly item: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly subheaderTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subheaderActions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly index: import("@antdv/pro-utils").VueTypeValidateDef<number, import("@antdv/pro-utils").ValidatorFunction<number>> & {
required: true;
};
readonly selected: BooleanConstructor;
readonly avatar: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly content: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly actions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly extra: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly description: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly loading: BooleanConstructor;
readonly style: import("@antdv/pro-utils").VueTypeValidateDef<CSSProperties, import("@antdv/pro-utils").ValidatorFunction<CSSProperties>>;
readonly grid: import("@antdv/pro-utils").VueTypeValidateDef<ListGridType, import("@antdv/pro-utils").ValidatorFunction<ListGridType>>;
readonly expand: BooleanConstructor;
readonly rowSupportExpand: BooleanConstructor;
readonly cardActionProps: import("@antdv/pro-utils").VueTypeValidateDef<"extra" | "actions", import("@antdv/pro-utils").ValidatorFunction<"extra" | "actions">>;
readonly onExpand: import("@antdv/pro-utils").VueTypeValidateDef<(expand: boolean) => void, import("@antdv/pro-utils").ValidatorFunction<(expand: boolean) => void>>;
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<Record<string, any>>>>;
readonly showActions: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly showExtra: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly type: import("@antdv/pro-utils").VueTypeValidateDef<"top" | "inline" | "new" | "subheader", import("@antdv/pro-utils").ValidatorFunction<"top" | "inline" | "new" | "subheader">>;
readonly isEditable: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>> & {
required: true;
};
readonly recordKey: import("@antdv/pro-utils").VueTypeDef<string | number>;
readonly cardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly record: import("@antdv/pro-utils").VueTypeValidateDef<Record<string, any>, import("@antdv/pro-utils").ValidatorFunction<Record<string, any>>> & {
required: true;
};
readonly onRow: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<Record<string, any>>>>;
readonly onItem: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<Record<string, any>>>>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
readonly title: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly checkbox: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly className: StringConstructor;
readonly prefixCls: StringConstructor;
readonly item: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly subheaderTitle: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly subheaderActions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly index: import("@antdv/pro-utils").VueTypeValidateDef<number, import("@antdv/pro-utils").ValidatorFunction<number>> & {
required: true;
};
readonly selected: BooleanConstructor;
readonly avatar: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly content: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly actions: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly extra: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly description: import("@antdv/pro-utils").VueTypeValidateDef<VueNode, import("@antdv/pro-utils").ValidatorFunction<VueNode>>;
readonly loading: BooleanConstructor;
readonly style: import("@antdv/pro-utils").VueTypeValidateDef<CSSProperties, import("@antdv/pro-utils").ValidatorFunction<CSSProperties>>;
readonly grid: import("@antdv/pro-utils").VueTypeValidateDef<ListGridType, import("@antdv/pro-utils").ValidatorFunction<ListGridType>>;
readonly expand: BooleanConstructor;
readonly rowSupportExpand: BooleanConstructor;
readonly cardActionProps: import("@antdv/pro-utils").VueTypeValidateDef<"extra" | "actions", import("@antdv/pro-utils").ValidatorFunction<"extra" | "actions">>;
readonly onExpand: import("@antdv/pro-utils").VueTypeValidateDef<(expand: boolean) => void, import("@antdv/pro-utils").ValidatorFunction<(expand: boolean) => void>>;
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<Record<string, any>>>>;
readonly showActions: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly showExtra: import("@antdv/pro-utils").VueTypeValidateDef<"hover" | "always", import("@antdv/pro-utils").ValidatorFunction<"hover" | "always">>;
readonly type: import("@antdv/pro-utils").VueTypeValidateDef<"top" | "inline" | "new" | "subheader", import("@antdv/pro-utils").ValidatorFunction<"top" | "inline" | "new" | "subheader">>;
readonly isEditable: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>> & {
required: true;
};
readonly recordKey: import("@antdv/pro-utils").VueTypeDef<string | number>;
readonly cardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly record: import("@antdv/pro-utils").VueTypeValidateDef<Record<string, any>, import("@antdv/pro-utils").ValidatorFunction<Record<string, any>>> & {
required: true;
};
readonly onRow: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<Record<string, any>>>>;
readonly onItem: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<Record<string, any>>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<Record<string, any>>>>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: Record<string, any>, index: number, defaultDom: VNode | null) => VueNode)>;
}>> & Readonly<{}>, {
readonly loading: boolean;
readonly selected: boolean;
readonly expand: boolean;
readonly rowSupportExpand: boolean;
}, SlotsType<{
default: any;
title: any;
subTitle: any;
subheaderTitle: any;
avatar: any;
content: any;
actions: any;
extra: any;
description: any;
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;