12345678910111213141516171819202122232425 |
- import Helper from './Grid/Helper'
- import Tree from './Grid/Tree'
- import Orderable from './Grid/Orderable'
- import AsyncTable from './Grid/AsyncTable'
- (function (w, $) {
- let Dcat = w.Dcat,
- h = new Helper();
- // 树形表格
- Dcat.grid.Tree = function (opts) {
- return new Tree(h, opts);
- };
- // 列表行可排序
- Dcat.grid.Orderable = function (opts) {
- return new Orderable(h, opts);
- };
- // 异步表格
- Dcat.grid.AsyncTable =function (opts) {
- return new AsyncTable(opts)
- }
- })(window, jQuery);
|