页头_spacex
@teamix/page-header
页头区组件
API - TODO
Props
breadcrumbMaxNode?: number;
breadcrumbDataSource?: BreadcrumbDataSourceType[];
breadcrumbVisible?: boolean;
breadcrumbProps?: BreadcrumbProps;
linkDataSource?: LinkDataSourceType[];
onBackIconClick?: () => void;
backIcon?: {
visible: boolean;
onClick: () => void;
className?: string;
};
backIconVisible?: boolean;
customIconVisible?: boolean;
onCustomIconClick?: () => void;
customIconType?: string;
title?: string;
customTitle?: string;
operationWords?: string;
link?: string;
dataOverAll?: DataOverAllType[];
tagDataSource?: TagDataSourceType[];
selectVisible?: boolean;
selectDataSource?: SelectDataSourceType[];
mainButton?: ButtonDataSourceType;
mainButtonText?: string;
secondaryButtons?: ButtonDataSourceType[];
secondaryButtonsMaxNode?: number;
secondaryButtonsMaxNodeLabel?: string;
image?: string;
style?: object;
className?: string;
onTabChange?: (key: string) => void;
tabs?: object;
Props types detail
import { MenuButtonProps } from '@alifd/next/types/menu-button';
import { ButtonProps } from '@alifd/next/types/button';
import { BreadcrumbProps } from '@alifd/next/types/breadcrumb';
BreadcrumbDataSourceType {
content: any;
link?: string;
id: string;
onClick?: () => void;
}
LinkDataSourceType {
icon?: IconDataSourceType;
content?: any;
onClick?: ()=>void;
}
DataOverAllType {
count?:number;
isUrgent?: boolean;
content?: any;
}
IconDataSourceType {
id: string;
type: string;
size?: number | 'small' | 'xxs' | 'xs' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
scriptUrl?: string;
onClick?: ()=>void;
className?: string;
}
TagDataSourceType {
id: string;
type?: 'normal' | 'primary',
color?: string;
content?: any;
tagProps?: any;
}
CommonDataSourceType {
label: string;
value: string | number;
}
SelectDataSourceType {
id: string;
label: string;
dataSource: CommonDataSourceType[];
menuButtonProps?: MenuButtonProps;
}
ButtonDataSourceType {
id: string;
content: any;
type?: 'normal' | 'primary' | 'secondary';
buttonProps?: ButtonProps;
onClick?: ()=>void;
buttonGroup?: ButtonDataSourceButtonGroupType[];
menuButtonProps?: MenuButtonProps;
}
ButtonDataSourceButtonGroupType {
content: any;
onClick?: (id:string)=>void;
id: string;
}