From c76d911e81d60439e435b1a3630bc2d34cc2c212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Mon, 6 May 2019 19:26:17 +0800 Subject: [PATCH] sort package.json --- package.json | 13 +++++------ src/typings.d.ts | 59 ------------------------------------------------ 2 files changed, 6 insertions(+), 66 deletions(-) diff --git a/package.json b/package.json index 6ebb7297..3d9dbf7e 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 33d849db..1acd9d22 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; - } -} -- GitLab