1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import { PopupProps } from '../overlay';
|
5 |
|
6 | export interface ItemProps extends React.HTMLAttributes<HTMLElement> {
|
7 | |
8 |
|
9 |
|
10 | link?: string;
|
11 | }
|
12 |
|
13 | export class Item extends React.Component<ItemProps, any> {}
|
14 | export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
|
15 | |
16 |
|
17 |
|
18 | prefix?: string;
|
19 |
|
20 | |
21 |
|
22 |
|
23 | children?: any;
|
24 |
|
25 | |
26 |
|
27 |
|
28 | maxNode?: number | 'auto';
|
29 |
|
30 | |
31 |
|
32 |
|
33 | separator?: string | React.ReactNode;
|
34 |
|
35 | |
36 |
|
37 |
|
38 | component?: string | (() => void);
|
39 | /**
|
40 | * 当超过的项被隐藏时,是否可通过点击省略号展示菜单(包含被隐藏的项)
|
41 | */
|
42 | showHiddenItems?: boolean;
|
43 | /**
|
44 | * 弹层挂载的容器节点(在showHiddenItems为true时才有意义)
|
45 | */
|
46 | popupContainer?: any;
|
47 | /**
|
48 | * 是否跟随trigger滚动(在showHiddenItems为true时才有意义)
|
49 | */
|
50 | followTrigger?: boolean;
|
51 | /**
|
52 | * 添加到弹层上的属性(在showHiddenItems为true时才有意义)
|
53 | */
|
54 | popupProps?: PopupProps;
|
55 | }
|
56 |
|
57 | export default class Breadcrumb extends React.Component<BreadcrumbProps, any> {
|
58 | static Item: typeof Item;
|
59 | }
|
60 |
|
\ | No newline at end of file |