grid-extend.js 588 B

12345678910111213141516171819202122232425
  1. import Helper from './Grid/Helper'
  2. import Tree from './Grid/Tree'
  3. import Orderable from './Grid/Orderable'
  4. import AsyncTable from './Grid/AsyncTable'
  5. (function (w, $) {
  6. let Dcat = w.Dcat,
  7. h = new Helper();
  8. // 树形表格
  9. Dcat.grid.Tree = function (opts) {
  10. return new Tree(h, opts);
  11. };
  12. // 列表行可排序
  13. Dcat.grid.Orderable = function (opts) {
  14. return new Orderable(h, opts);
  15. };
  16. // 异步表格
  17. Dcat.grid.AsyncTable =function (opts) {
  18. return new AsyncTable(opts)
  19. }
  20. })(window, jQuery);