typings.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-11-19 16:31:19
  4. * @LastEditTime: 2022-06-07 09:40:42
  5. * @LastEditors: code4eat awesomedema@gmail.com
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /KC-MiddlePlatform/src/typings.d.ts
  8. */
  9. type SystemListItem = {
  10. //平台列表项
  11. icon?: string;
  12. id: string;
  13. name: string;
  14. url?: string;
  15. path: string;
  16. };
  17. export type TableRequestParamsType = {
  18. //KCtable组件request params
  19. pageSize?: number | undefined;
  20. current?: number | undefined;
  21. keyword?: string | undefined;
  22. [key: string]: any;
  23. };
  24. export type SpacicalPageParamsType = {
  25. //特殊页面参数项集合,用于有数
  26. contentType: number; //内容类型,0:一般,1.报告,2.大屏,2.填报
  27. path: string;
  28. reportId: number;
  29. url: string;
  30. };
  31. export type TableResponseDataType = {
  32. //KCtable组件response data
  33. totalCount?: number | undefined;
  34. pageSize?: number | undefined;
  35. totalPage?: string | undefined;
  36. current?: string | undefined;
  37. [key: string]: any;
  38. };
  39. declare interface PostMessageData {
  40. type: 'LOGOUT' | 'REFRESH' | 'DATA' | 'LOGIN';
  41. data?: any;
  42. }
  43. declare interface Window {
  44. stateFromTop: any;
  45. postMessageToChild: (data: PostMessageData) => Promise<any>;
  46. removeListenner: (name: string) => Promise<any>;
  47. }
  48. declare interface Iframe {
  49. contentWindow: any;
  50. }