Pear-Admin-Layui/component/pear/pear.js

43 lines
1.5 KiB
JavaScript
Raw Normal View History

2020-07-17 00:29:38 +00:00
window.rootPath = (function(src) {
src = document.scripts[document.scripts.length - 1].src;
return src.substring(0, src.lastIndexOf("/") + 1);
2020-07-15 21:22:46 +00:00
})();
layui.config({
2021-03-31 12:30:41 +00:00
base: rootPath + "module/",
2021-07-06 15:37:17 +00:00
version: "3.8.7"
2020-07-15 21:22:46 +00:00
}).extend({
2020-10-29 06:45:24 +00:00
admin: "admin", // 框架布局组件
menu: "menu", // 数据菜单组件
frame: "frame", // 内容页面组件
tab: "tab", // 多选项卡组件
echarts: "echarts", // 数据图表组件
echartsTheme: "echartsTheme", // 数据图表主题
hash: "hash", // 数据加密组件
select: "select", // 下拉多选组件
drawer: "drawer", // 抽屉弹层组件
notice: "notice", // 消息提示组件
step:"step", // 分布表单组件
2020-12-01 04:47:25 +00:00
tag:"tag", // 多标签页组件
popup:"popup", // 弹层封装
iconPicker:"iconPicker", // 图表选择
treetable:"treetable", // 树状表格
dtree:"dtree", // 树结构
tinymce:"tinymce/tinymce", // 编辑器
area:"area", // 省市级联
count:"count", // 数字滚动组件
topBar: "topBar", // 置顶组件
button: "button", // 加载按钮
design: "design", // 表单设计
card: "card", // 数据卡片组件
loading: "loading", // 加载组件
cropper:"cropper", // 裁剪组件
convert:"convert", // 数据转换
2020-12-06 05:27:27 +00:00
yaml:"yaml", // yaml 解析组件
2020-12-06 04:55:08 +00:00
context: "context", // 上下文组件
2021-01-16 14:48:49 +00:00
http: "http", // ajax请求组件
2021-03-10 18:04:53 +00:00
theme: "theme", // 主题转换
2021-04-13 07:42:51 +00:00
message: "message", // 通知组件
2021-01-16 14:48:49 +00:00
}).use(['layer', 'theme'], function () {
2021-01-17 13:43:58 +00:00
layui.theme.changeTheme(window, false);
2021-01-01 13:37:15 +00:00
});