structure.js 426 B

12345678910111213141516171819202122
  1. /**
  2. * @fileOverview
  3. *
  4. * 组织结构图模板
  5. *
  6. * @author: techird
  7. * @copyright: Baidu FEX, 2014
  8. */
  9. define(function(require, exports, module) {
  10. var template = require('../core/template');
  11. template.register('structure', {
  12. getLayout: function(node) {
  13. return node.getData('layout') || 'bottom';
  14. },
  15. getConnect: function(node) {
  16. return 'poly';
  17. }
  18. });
  19. });