mitt.d.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /**
  2. * mitt 事件类型定义
  3. *
  4. * @method openSetingsDrawer 打开布局设置弹窗
  5. * @method restoreDefault 分栏布局,鼠标移入、移出数据显示
  6. * @method setSendColumnsChildren 分栏布局,鼠标移入、移出菜单数据传入到 navMenu 下的菜单中
  7. * @method setSendClassicChildren 经典布局,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
  8. * @method getBreadcrumbIndexSetFilterRoutes 布局设置弹窗,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
  9. * @method layoutMobileResize 浏览器窗口改变时,用于适配移动端界面显示
  10. * @method openOrCloseSortable 布局设置弹窗,开启 TagsView 拖拽
  11. * @method openShareTagsView 布局设置弹窗,开启 TagsView 共用
  12. * @method onTagsViewRefreshRouterView tagsview 刷新界面
  13. * @method onCurrentContextmenuClick tagsview 右键菜单每项点击时
  14. * @method refreshDictType 刷新字典类型
  15. * @method refreshDict 刷新字典
  16. * @method refreshOrg 刷新部门
  17. * @method refreshApi 刷新接口
  18. * @method refreshPermission 刷新权限
  19. * @method refreshRole 刷新角色
  20. * @method refreshTenant 刷新租户
  21. * @method refreshUser 刷新用户
  22. * @method refreshView 刷新视图
  23. * @method refreshProject 刷新項目
  24. * @method refreshNotice 刷新公告
  25. * @method refreshProjectLink 刷新推广码
  26. * @method refreshProjectPrice 刷新项目价格
  27. * @method refreshTenantProjectPrice 刷新平台项目价格
  28. * @method refreshCompanyDraw 刷新公司抽成
  29. * @method refreshProjectStat 刷新项目统计
  30. * @method refreshBanner 刷新轮播图
  31. * @method refreshKuaKeInfo 刷新夸克提交申请列表
  32. */
  33. declare type MittType<T = any> = {
  34. openSetingsDrawer?: string
  35. restoreDefault?: string
  36. setSendColumnsChildren: T
  37. setSendClassicChildren: T
  38. getBreadcrumbIndexSetFilterRoutes?: string
  39. layoutMobileResize: T
  40. openOrCloseSortable?: string
  41. openShareTagsView?: string
  42. onTagsViewRefreshRouterView?: T
  43. onCurrentContextmenuClick?: T
  44. refreshDictType?: T
  45. refreshDict?: T
  46. refreshOrg?: T
  47. refreshApi?: T
  48. refreshPermission?: T
  49. refreshRole?: T
  50. refreshTenant?: T
  51. refreshPkg?: T
  52. refreshUser?: T
  53. refreshView?: T
  54. refreshFile?: T
  55. refreshProject?: T
  56. refreshNotice?: T
  57. refreshProjectLink?: T
  58. refreshProjectPrice?: T
  59. refreshCompanyDraw?: T
  60. refreshProjectStat?: T
  61. refreshBanner?: T
  62. refreshKuaKeInfo?: T
  63. refreshTenantProjectPrice?:T
  64. }
  65. // mitt 参数类型定义
  66. declare type LayoutMobileResize = {
  67. layout: string
  68. clientWidth: number
  69. }
  70. // mitt 参数菜单类型
  71. declare type MittMenu = {
  72. children: RouteRecordRaw[]
  73. item?: RouteItem
  74. }