@antdv/pro-list
Version:
@antdv/pro-list
282 lines (281 loc) • 17.3 kB
TypeScript
import type { CheckCardProps } from '@antdv/pro-card';
import type { ActionType } from '@antdv/pro-table';
import type { AnyObject, VueNode } from '@antdv/pro-utils';
import type { TableColumnType, TablePaginationConfig } from 'ant-design-vue';
import type { ExpandableConfig, GetRowKey, TableRowSelection } from 'ant-design-vue/lib/table/interface';
import type { ExtractPublicPropTypes, VNode } from 'vue';
import type { GetComponentProps } from './index';
export declare function listViewProps<RecordType>(): {
readonly columns: import("@antdv/pro-utils").VueTypeValidateDef<(import("ant-design-vue").TableColumnGroupType<RecordType> | TableColumnType<RecordType>)[], import("@antdv/pro-utils").ValidatorFunction<(import("ant-design-vue").TableColumnGroupType<RecordType> | TableColumnType<RecordType>)[]>>;
readonly pagination: import("@antdv/pro-utils").VueTypeDef<false | TablePaginationConfig> & {
default: false | (() => TablePaginationConfig);
};
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<RecordType>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<RecordType>>>;
readonly rowKey: import("@antdv/pro-utils").VueTypeDef<string | GetRowKey<RecordType> | keyof RecordType>;
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 rowSelection: import("@antdv/pro-utils").VueTypeValidateDef<TableRowSelection<RecordType>, import("@antdv/pro-utils").ValidatorFunction<TableRowSelection<RecordType>>>;
readonly prefixCls: StringConstructor;
readonly dataSource: import("@antdv/pro-utils").VueTypeValidateDef<RecordType[], import("@antdv/pro-utils").ValidatorFunction<RecordType[]>> & {
required: true;
};
readonly renderItem: import("@antdv/pro-utils").VueTypeValidateDef<(opt: {
item: any;
index: number;
}) => VueNode, import("@antdv/pro-utils").ValidatorFunction<(opt: {
item: any;
index: number;
}) => VueNode>>;
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 rowClassName: import("@antdv/pro-utils").VueTypeDef<string | ((item: RecordType, index: number) => string)>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: RecordType, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: RecordType, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemCardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly action: import("@antdv/pro-utils").VueTypeValidateDef<ActionType, import("@antdv/pro-utils").ValidatorFunction<ActionType>>;
readonly extra: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly bordered: {
type: BooleanConstructor;
default: boolean;
};
readonly grid: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListGridType>;
default: import("ant-design-vue/es/list").ListGridType;
};
readonly itemLayout: import("vue").PropType<import("ant-design-vue/es/list").ListItemLayout>;
readonly loading: {
type: import("vue").PropType<boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes)>;
default: boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes);
};
readonly loadMore: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly size: import("vue").PropType<import("ant-design-vue/es/list").ListSize>;
readonly split: {
type: BooleanConstructor;
default: boolean;
};
readonly header: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly footer: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly locale: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListLocale>;
default: import("ant-design-vue/es/list").ListLocale;
};
};
export type ListViewProps<RecordType> = ExtractPublicPropTypes<ReturnType<typeof listViewProps<RecordType>>>;
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
readonly columns: import("@antdv/pro-utils").VueTypeValidateDef<(import("ant-design-vue").TableColumnGroupType<AnyObject> | TableColumnType<AnyObject>)[], import("@antdv/pro-utils").ValidatorFunction<(import("ant-design-vue").TableColumnGroupType<AnyObject> | TableColumnType<AnyObject>)[]>>;
readonly pagination: import("@antdv/pro-utils").VueTypeDef<false | TablePaginationConfig> & {
default: false | (() => TablePaginationConfig);
};
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<AnyObject>>>;
readonly rowKey: import("@antdv/pro-utils").VueTypeDef<PropertyKey | GetRowKey<AnyObject>>;
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 rowSelection: import("@antdv/pro-utils").VueTypeValidateDef<TableRowSelection<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<TableRowSelection<AnyObject>>>;
readonly prefixCls: StringConstructor;
readonly dataSource: import("@antdv/pro-utils").VueTypeValidateDef<AnyObject[], import("@antdv/pro-utils").ValidatorFunction<AnyObject[]>> & {
required: true;
};
readonly renderItem: import("@antdv/pro-utils").VueTypeValidateDef<(opt: {
item: any;
index: number;
}) => VueNode, import("@antdv/pro-utils").ValidatorFunction<(opt: {
item: any;
index: number;
}) => VueNode>>;
readonly onRow: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<AnyObject>>>;
readonly onItem: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<AnyObject>>>;
readonly rowClassName: import("@antdv/pro-utils").VueTypeDef<string | ((item: AnyObject, index: number) => string)>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: AnyObject, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: AnyObject, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemCardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly action: import("@antdv/pro-utils").VueTypeValidateDef<ActionType, import("@antdv/pro-utils").ValidatorFunction<ActionType>>;
readonly extra: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly bordered: {
type: BooleanConstructor;
default: boolean;
};
readonly grid: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListGridType>;
default: import("ant-design-vue/es/list").ListGridType;
};
readonly itemLayout: import("vue").PropType<import("ant-design-vue/es/list").ListItemLayout>;
readonly loading: {
type: import("vue").PropType<boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes)>;
default: boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes);
};
readonly loadMore: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly size: import("vue").PropType<import("ant-design-vue/es/list").ListSize>;
readonly split: {
type: BooleanConstructor;
default: boolean;
};
readonly header: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly footer: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly locale: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListLocale>;
default: import("ant-design-vue/es/list").ListLocale;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
readonly columns: import("@antdv/pro-utils").VueTypeValidateDef<(import("ant-design-vue").TableColumnGroupType<AnyObject> | TableColumnType<AnyObject>)[], import("@antdv/pro-utils").ValidatorFunction<(import("ant-design-vue").TableColumnGroupType<AnyObject> | TableColumnType<AnyObject>)[]>>;
readonly pagination: import("@antdv/pro-utils").VueTypeDef<false | TablePaginationConfig> & {
default: false | (() => TablePaginationConfig);
};
readonly expandable: import("@antdv/pro-utils").VueTypeValidateDef<ExpandableConfig<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<ExpandableConfig<AnyObject>>>;
readonly rowKey: import("@antdv/pro-utils").VueTypeDef<PropertyKey | GetRowKey<AnyObject>>;
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 rowSelection: import("@antdv/pro-utils").VueTypeValidateDef<TableRowSelection<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<TableRowSelection<AnyObject>>>;
readonly prefixCls: StringConstructor;
readonly dataSource: import("@antdv/pro-utils").VueTypeValidateDef<AnyObject[], import("@antdv/pro-utils").ValidatorFunction<AnyObject[]>> & {
required: true;
};
readonly renderItem: import("@antdv/pro-utils").VueTypeValidateDef<(opt: {
item: any;
index: number;
}) => VueNode, import("@antdv/pro-utils").ValidatorFunction<(opt: {
item: any;
index: number;
}) => VueNode>>;
readonly onRow: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<AnyObject>>>;
readonly onItem: import("@antdv/pro-utils").VueTypeValidateDef<GetComponentProps<AnyObject>, import("@antdv/pro-utils").ValidatorFunction<GetComponentProps<AnyObject>>>;
readonly rowClassName: import("@antdv/pro-utils").VueTypeDef<string | ((item: AnyObject, index: number) => string)>;
readonly itemHeaderRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: AnyObject, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemTitleRender: import("@antdv/pro-utils").VueTypeDef<false | ((item: AnyObject, index: number, defaultDom: VNode | null) => VueNode)>;
readonly itemCardProps: import("@antdv/pro-utils").VueTypeValidateDef<CheckCardProps, import("@antdv/pro-utils").ValidatorFunction<CheckCardProps>>;
readonly action: import("@antdv/pro-utils").VueTypeValidateDef<ActionType, import("@antdv/pro-utils").ValidatorFunction<ActionType>>;
readonly extra: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly bordered: {
type: BooleanConstructor;
default: boolean;
};
readonly grid: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListGridType>;
default: import("ant-design-vue/es/list").ListGridType;
};
readonly itemLayout: import("vue").PropType<import("ant-design-vue/es/list").ListItemLayout>;
readonly loading: {
type: import("vue").PropType<boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes)>;
default: boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes);
};
readonly loadMore: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly size: import("vue").PropType<import("ant-design-vue/es/list").ListSize>;
readonly split: {
type: BooleanConstructor;
default: boolean;
};
readonly header: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly footer: {
type: import("vue").PropType<import("ant-design-vue/es/_util/type").VueNode>;
};
readonly locale: {
type: import("vue").PropType<import("ant-design-vue/es/list").ListLocale>;
default: import("ant-design-vue/es/list").ListLocale;
};
}>> & Readonly<{}>, {
readonly bordered: boolean;
readonly grid: import("ant-design-vue/es/list").ListGridType;
readonly loading: boolean | (Partial<import("vue").ExtractPropTypes<{
prefixCls: StringConstructor;
spinning: {
type: BooleanConstructor;
default: any;
};
size: import("vue").PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
wrapperClassName: StringConstructor;
tip: import("vue-types").VueTypeValidableDef<any>;
delay: NumberConstructor;
indicator: import("vue-types").VueTypeValidableDef<any>;
}>> & import("vue").HTMLAttributes);
readonly pagination: false | TablePaginationConfig;
readonly split: boolean;
readonly locale: import("ant-design-vue/es/list").ListLocale;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;