Browse Source

sort package.json

陈帅 6 years ago
parent
commit
c76d911e81
2 changed files with 6 additions and 66 deletions
  1. 6 7
      package.json
  2. 0 59
      src/typings.d.ts

+ 6 - 7
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"

+ 0 - 59
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<T extends NoticeIconData = NoticeIconData> {
-    className?: string;
-    count?: number;
-    emptyText?: React.ReactNode;
-    emptyImage?: string;
-    list?: T[];
-    showClear?: boolean;
-    showViewMore?: boolean;
-    style?: React.CSSProperties;
-    title?: string;
-  }
-
-  export type NoticeIconTabComponent<T extends NoticeIconData = NoticeIconData> = React.FC<
-    NoticeIconTabProps<T>
-  >;
-
-  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<T extends NoticeIconData = NoticeIconData> {
-    count?: number;
-    bell?: React.ReactNode;
-    className?: string;
-    loading?: boolean;
-    onClear?: (tabTitle?: string) => void;
-    onItemClick?: (item: T, tabProps: NoticeIconProps<T>) => void;
-    onViewMore?: (tabProps: NoticeIconProps<T>, 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<T extends NoticeIconData = NoticeIconData> extends Component<
-    NoticeIconProps<T>
-  > {
-    static Tab: NoticeIconTabComponent;
-  }
-}