lay-config.js 863 B

123456789101112131415161718192021222324
  1. /**
  2. * date:2019/08/16
  3. * author:Mr.Chung
  4. * description:此处放layui自定义扩展
  5. */
  6. window.rootPath = (function (src) {
  7. src = document.scripts[document.scripts.length - 1].src;
  8. return src.substring(0, src.lastIndexOf("/") + 1);
  9. })();
  10. layui.config({
  11. base: rootPath + "lay-module/",
  12. version: true
  13. }).extend({
  14. layuimini: "layuimini/layuimini", // layuimini扩展
  15. step: 'step-lay/step', // 分步表单扩展
  16. treetable: 'treetable-lay/treetable', //table树形扩展
  17. tableSelect: 'tableSelect/tableSelect', // table选择扩展
  18. iconPickerFa: 'iconPicker/iconPickerFa', // fa图标选择扩展
  19. echarts: 'echarts/echarts', // echarts图表扩展
  20. echartsTheme: 'echarts/echartsTheme', // echarts图表主题扩展
  21. wangEditor: 'wangEditor/wangEditor', // wangEditor富文本扩展
  22. sku: 'sku/sku', // 规格
  23. });