You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
@NamelayuiAdmin iframe版主入口
@Author贤心
@Sitehttp://www.layui.com/admin/
@LicenseLPPL
*/
layui.extend({
setter: 'config' //配置模块
,
admin: 'lib/admin' //核心模块
,
view: 'lib/view' //视图渲染模块
}).define(['setter', 'admin', 'table'], function (exports) {
var setter = layui.setter,
element = layui.element,
admin = layui.admin,
tabsPage = admin.tabsPage,
view = layui.view
//打开标签页
, APP_BODY = '#LAY_app_body', FILTER_TAB_TBAS = 'layadmin-layout-tabs', $ = layui.$, $win = $(window);
//初始
if (admin.screen() < 2) admin.sideFlexible();
//将模块根路径设置为 controller 目录
layui.config({
base: '../../res/js/'
});
//扩展 lib 目录下的其它模块
/* layui.each(setter.extend, function(index, item){
alert(item)
var mods = {};
mods[item] = '{/}' + 'lib/extend/' + item;
layui.extend(mods);
});*/
view().autoRender();
layui.table.set({ contentType: 'application/json', page: {}, loading: true })
// page: {theme: '#1E9FFF'},
//加载公共模块
// layui.use('common');
//对外输出
exports('index', {
});
});