@cainiaofe/cn-ui-m
Version:
21 lines (20 loc) • 668 B
TypeScript
/// <reference types="react" />
import type { BasicComponentProps } from "../../../types";
import { IEntryPointsData } from './entry-points-data';
export interface CnEntryPointsProps extends BasicComponentProps {
/** icon图标 */
icon: string;
/** icon图标,默认主题色 */
iconBgColor?: string;
/** 标题 */
title: string;
/** 右侧更多 */
viewMore?: {
visible?: boolean;
/** 默认更多 */
children?: React.ReactNode;
onClick?: () => void;
};
dataSource: IEntryPointsData[];
onItemClick?: (item: IEntryPointsData, event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
}