event-bus.js 804 B

1234567891011121314151617181920212223
  1. /**
  2. * 事件总线 定义
  3. */
  4. import EventBus from './event-bus/EventBus';
  5. /**
  6. * 定义event bus
  7. * 任意 event bus 的定义,必须添加 bus_ 前缀
  8. */
  9. export const bus_themeChange = new EventBus('theme_change');
  10. // 知识库搜索
  11. export const bus_knowledgeSearch = new EventBus('knowledge_search');
  12. // 知识库图标编辑
  13. export const bus_knowledgeIconEdit = new EventBus('knowledge_icon_edit');
  14. // 智能体搜索
  15. export const bus_intelligentSearch = new EventBus('intelligent_search');
  16. // 智能体编辑
  17. export const bus_intelligentEdit = new EventBus('intelligent_edit');
  18. // 智能体图标编辑
  19. export const bus_intelligentIconEdit = new EventBus('intelligent_icon_edit');
  20. // 智能体标签数据同步
  21. export const bus_intelligentLabelSync = new EventBus('intelligent_label_sync');