customContextPad.vue 606 B

123456789101112131415161718192021222324
  1. export default class CustomContextPad {
  2. constructor(config, contextPad, create, elementFactory, injector, translate) {
  3. this.create = create;
  4. this.elementFactory = elementFactory;
  5. this.translate = translate;
  6. if (config.autoPlace !== false) {
  7. this.autoPlace = injector.get('autoPlace', false);
  8. }
  9. contextPad.registerProvider(this); // 定义这是一个contextPad
  10. }
  11. getContextPadEntries(element) {}
  12. }
  13. CustomContextPad.$inject = [
  14. 'config',
  15. 'contextPad',
  16. 'create',
  17. 'elementFactory',
  18. 'injector',
  19. 'translate'
  20. ];