build: integrate xmSelect plugin into admin static files
- Add xmSelect plugin to config-admin.js - Remove separate script tag for xmSelect in default.html - Update easy-admin.js to include xmSelect as a dependency - Modify xm-select.js to support different module systems
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
EDITOR_TYPE: "{$adminEditor|default='wangEditor'}",
|
||||
};
|
||||
</script>
|
||||
<script src="/static/plugs/xmSelect/xm-select.js" charset="utf-8"></script>
|
||||
<script src="/static/plugs/layui-v2.x/layui.js" charset="utf-8"></script>
|
||||
<script src="/static/plugs/require-2.3.6/require.js" charset="utf-8"></script>
|
||||
<script src="/static/config-admin.js?v={$version}" charset="utf-8"></script>
|
||||
|
||||
@@ -20,9 +20,10 @@ require.config({
|
||||
"tableSelect": ["plugs/lay-module/tableSelect/tableSelect"],
|
||||
"iconPickerFa": ["plugs/lay-module/iconPicker/iconPickerFa"],
|
||||
"autocomplete": ["plugs/lay-module/autocomplete/autocomplete"],
|
||||
"xmSelect": ["plugs/xmSelect/xm-select"],
|
||||
"vue": ["plugs/vue-2.6.10/vue.min"],
|
||||
"swiper": ["plugs/swiper/swiper-bundle.min"],
|
||||
"colorMode":["plugs/colorMode/colorMode"],
|
||||
"colorMode": ["plugs/colorMode/colorMode"],
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(["jquery", "tableSelect", "miniTheme"], function ($, tableSelect, miniTheme) {
|
||||
define(["jquery", "tableSelect", "miniTheme", "xmSelect"], function ($, tableSelect, miniTheme, xmSelect) {
|
||||
|
||||
//切换日夜模式
|
||||
window.onInitElemStyle = function () {
|
||||
|
||||
@@ -212,7 +212,10 @@
|
||||
var n = t.b[e];
|
||||
n && n.calcPosition && n.calcPosition()
|
||||
}))
|
||||
}))), "object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) ? e.exports = t.c : "function" == typeof define && n(221) ? define(xmSelect) : window.layui && layui.define && layui.define((function (e) {
|
||||
}))), "object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) ? e.exports = t.c : "function" == typeof define && n(221)
|
||||
? define(function () {
|
||||
return t.c
|
||||
}) : window.layui && layui.define && layui.define((function (e) {
|
||||
e("xmSelect", t.c)
|
||||
})), window.xmSelect = t.c
|
||||
}.call(this, n(215)(e))
|
||||
|
||||
Reference in New Issue
Block a user