Commit 7703b26d authored by vellengs's avatar vellengs Committed by 陈帅

Fix missing export default (#3525)

* fix types missing export default

* Update package.json

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
parent 41a475df
...@@ -10,4 +10,4 @@ export interface IAuthorizedRouteProps extends RouteProps { ...@@ -10,4 +10,4 @@ export interface IAuthorizedRouteProps extends RouteProps {
} }
export { authority }; export { authority };
export class AuthorizedRoute extends React.Component<IAuthorizedRouteProps, any> {} export default class AuthorizedRoute extends React.Component<IAuthorizedRouteProps, any> {}
import * as numeral from 'numeral'; import * as numeral from 'numeral';
export { default as ChartCard } from './ChartCard'; import { default as Bar } from './Bar';
export { default as Bar } from './Bar'; import { default as ChartCard } from './ChartCard';
export { default as Pie } from './Pie'; import { default as Field } from './Field';
export { default as Radar } from './Radar'; import { default as Gauge } from './Gauge';
export { default as Gauge } from './Gauge'; import { default as MiniArea } from './MiniArea';
export { default as MiniArea } from './MiniArea'; import { default as MiniBar } from './MiniBar';
export { default as MiniBar } from './MiniBar'; import { default as MiniProgress } from './MiniProgress';
export { default as MiniProgress } from './MiniProgress'; import { default as Pie } from './Pie';
export { default as Field } from './Field'; import { default as Radar } from './Radar';
export { default as WaterWave } from './WaterWave'; import { default as TagCloud } from './TagCloud';
export { default as TagCloud } from './TagCloud'; import { default as TimelineChart } from './TimelineChart';
export { default as TimelineChart } from './TimelineChart'; import { default as WaterWave } from './WaterWave';
declare const yuan: (value: number | string) => string; declare const yuan: (value: number | string) => string;
export { yuan }; declare const Charts: {
yuan: (value: number | string) => string;
Bar: Bar;
Pie: Pie;
Gauge: Gauge;
Radar: Radar;
MiniBar: MiniBar;
MiniArea: MiniArea;
MiniProgress: MiniProgress;
ChartCard: ChartCard;
Field: Field;
WaterWave: WaterWave;
TagCloud: TagCloud;
TimelineChart: TimelineChart;
};
export {
Charts as default,
yuan,
Bar,
Pie,
Gauge,
Radar,
MiniBar,
MiniArea,
MiniProgress,
ChartCard,
Field,
WaterWave,
TagCloud,
TimelineChart,
};
import * as React from 'react';
export default class HeaderDropdown extends React.Component<any, any> {}
...@@ -8,4 +8,4 @@ export interface ILoginItemProps { ...@@ -8,4 +8,4 @@ export interface ILoginItemProps {
buttonText?: React.ReactNode; buttonText?: React.ReactNode;
} }
export class LoginItem extends React.Component<ILoginItemProps, any> {} export default class LoginItem extends React.Component<ILoginItemProps, any> {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment