diff --git a/package.json b/package.json index 6ebb7297a643d68c3593fa55b619c676b624232f..3d9dbf7e37aa3f5f714fc7b83fcd9e9a5c753564 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "dependencies": { "@ant-design/pro-layout": "^4.1.0", "@antv/data-set": "^0.10.1", - "ant-design-pro": "^2.1.1", "antd": "^3.16.1", "bizcharts": "3.5.2-beta.1", "bizcharts-plugin-slider": "^2.1.1-beta.1", @@ -79,11 +78,7 @@ "react-dom": "^16.7.0", "react-fittext": "^1.0.0", "react-media": "^1.9.2", - "react-media-hook2": "^1.0.2", - "umi": "^2.6.17", - "umi-plugin-pro-block": "^1.3.0", - "umi-plugin-react": "^1.7.2", - "umi-request": "^1.0.5" + "react-media-hook2": "^1.0.2" }, "devDependencies": { "@types/classnames": "^2.2.7", @@ -132,7 +127,11 @@ "tslint-config-prettier": "^1.17.0", "tslint-eslint-rules": "^5.4.0", "tslint-react": "^3.6.0", - "umi-plugin-ga": "^1.1.3" + "umi": "^2.6.17", + "umi-plugin-ga": "^1.1.3", + "umi-plugin-pro-block": "^1.3.0", + "umi-plugin-react": "^1.7.2", + "umi-request": "^1.0.5" }, "optionalDependencies": { "puppeteer": "^1.12.1" diff --git a/src/typings.d.ts b/src/typings.d.ts index 33d849db4ed846c0f92c37ea23263b8e7eedee7a..1acd9d228feb3c9df7b436f2b37220305590ece0 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -23,62 +23,3 @@ declare module 'memoize-one' { ): T; export default memoizeOne; } - -declare module 'ant-design-pro' { - import { Component } from 'react'; - export interface NoticeIconTabProps { - className?: string; - count?: number; - emptyText?: React.ReactNode; - emptyImage?: string; - list?: T[]; - showClear?: boolean; - showViewMore?: boolean; - style?: React.CSSProperties; - title?: string; - } - - export type NoticeIconTabComponent = React.FC< - NoticeIconTabProps - >; - - export interface NoticeIconData { - avatar?: string | React.ReactNode; - clickClose?: boolean; - description?: React.ReactNode; - datetime?: React.ReactNode; - extra?: React.ReactNode; - key?: string | number; - read?: boolean; - style?: React.CSSProperties; - title?: React.ReactNode; - [key: string]: any; - } - - export interface NoticeIconProps { - count?: number; - bell?: React.ReactNode; - className?: string; - loading?: boolean; - onClear?: (tabTitle?: string) => void; - onItemClick?: (item: T, tabProps: NoticeIconProps) => void; - onViewMore?: (tabProps: NoticeIconProps, e: React.MouseEvent) => void; - onTabChange?: (tabTile?: string) => void; - style?: React.CSSProperties; - onPopupVisibleChange?: (visible: boolean) => void; - popupVisible?: boolean; - locale?: { - emptyText: string; - clear: string; - viewMore: string; - [key: string]: string; - }; - clearClose?: boolean; - } - - export default class NoticeIcon extends Component< - NoticeIconProps - > { - static Tab: NoticeIconTabComponent; - } -}