ts 类型修改

This commit is contained in:
liaoxuezhi 2019-08-25 12:58:03 +08:00 committed by catchonme
parent cb1131143e
commit bfc773bb7e

View File

@ -7,7 +7,6 @@
import React from 'react';
import cx from 'classnames';
import {mapTree} from '../utils/helper';
import {classPrefix, classnames} from '../themes/default';
import {ClassNamesFn, themeable} from '../theme';
export type LinkItem = LinkItemProps;
@ -15,10 +14,13 @@ interface LinkItemProps {
id?: number;
label: string;
hidden?: boolean;
open: boolean;
active: boolean;
open?: boolean;
active?: boolean;
className?: string;
children?: Array<LinkItem>;
path?: string;
icon?: string;
component?: React.ReactType;
}
interface Navigation {