diff --git a/src/components/Authorized/AuthorizedRoute.d.ts b/src/components/Authorized/AuthorizedRoute.d.ts index 912b283ab81ecddb89f05d4228095c5b05a64803..fc78000440d3ca375cadee4e581f51532c8c35bb 100644 --- a/src/components/Authorized/AuthorizedRoute.d.ts +++ b/src/components/Authorized/AuthorizedRoute.d.ts @@ -10,4 +10,4 @@ export interface IAuthorizedRouteProps extends RouteProps { } export { authority }; -export class AuthorizedRoute extends React.Component {} +export default class AuthorizedRoute extends React.Component {} diff --git a/src/components/Charts/index.d.ts b/src/components/Charts/index.d.ts index 1ff27af291472f887b334b7eeed96d3914ff4362..57f1d52728739f3e94d21d8810c46ab657130222 100644 --- a/src/components/Charts/index.d.ts +++ b/src/components/Charts/index.d.ts @@ -1,17 +1,48 @@ import * as numeral from 'numeral'; -export { default as ChartCard } from './ChartCard'; -export { default as Bar } from './Bar'; -export { default as Pie } from './Pie'; -export { default as Radar } from './Radar'; -export { default as Gauge } from './Gauge'; -export { default as MiniArea } from './MiniArea'; -export { default as MiniBar } from './MiniBar'; -export { default as MiniProgress } from './MiniProgress'; -export { default as Field } from './Field'; -export { default as WaterWave } from './WaterWave'; -export { default as TagCloud } from './TagCloud'; -export { default as TimelineChart } from './TimelineChart'; +import { default as Bar } from './Bar'; +import { default as ChartCard } from './ChartCard'; +import { default as Field } from './Field'; +import { default as Gauge } from './Gauge'; +import { default as MiniArea } from './MiniArea'; +import { default as MiniBar } from './MiniBar'; +import { default as MiniProgress } from './MiniProgress'; +import { default as Pie } from './Pie'; +import { default as Radar } from './Radar'; +import { default as TagCloud } from './TagCloud'; +import { default as TimelineChart } from './TimelineChart'; +import { default as WaterWave } from './WaterWave'; 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, +}; diff --git a/src/components/HeaderDropdown/index.d.ts b/src/components/HeaderDropdown/index.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9dac7e532570e2f85a6a220d5d4ff9b97194927 --- /dev/null +++ b/src/components/HeaderDropdown/index.d.ts @@ -0,0 +1,2 @@ +import * as React from 'react'; +export default class HeaderDropdown extends React.Component {} diff --git a/src/components/Login/LoginItem.d.ts b/src/components/Login/LoginItem.d.ts index 30a7a2d6a483e2a8224fd315498f35ce72958f63..bcfb73b86b75ee39f3f7b609e426ea4f1f6f2ce1 100644 --- a/src/components/Login/LoginItem.d.ts +++ b/src/components/Login/LoginItem.d.ts @@ -8,4 +8,4 @@ export interface ILoginItemProps { buttonText?: React.ReactNode; } -export class LoginItem extends React.Component {} +export default class LoginItem extends React.Component {}