UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

35 lines (34 loc) 1.18 kB
import React, { Component, CSSProperties, ReactNode } from 'react'; import PropTypes from 'prop-types'; import { ConfigContextValue } from '../config-provider/ConfigContext'; export interface Route { path: string; breadcrumbName: string; } export interface BreadcrumbProps { prefixCls?: string; routes?: Route[]; params?: any; separator?: ReactNode; itemRender?: (route: any, params: any, routes: Array<any>, paths: Array<string>) => ReactNode; style?: CSSProperties; className?: string; } export default class Breadcrumb extends Component<BreadcrumbProps, any> { static displayName: string; static get contextType(): React.Context<ConfigContextValue>; static Item: any; static defaultProps: { separator: string; }; static propTypes: { prefixCls: PropTypes.Requireable<string>; separator: PropTypes.Requireable<PropTypes.ReactNodeLike>; routes: PropTypes.Requireable<any[]>; params: PropTypes.Requireable<object>; itemRender: PropTypes.Requireable<(...args: any[]) => any>; }; context: ConfigContextValue; componentDidMount(): void; render(): JSX.Element; }