This commit is contained in:
maplemei
2019-04-30 11:07:58 +08:00
parent 5dd011eaec
commit f27ae9ba9f
25 changed files with 1786 additions and 78 deletions

26
src/index.js Normal file
View File

@@ -0,0 +1,26 @@
import { name, version } from '../package.json'
import Core from '@/components/core'
import '@/style/index.less'
import '@/style/iconfont.less'
const xmSelect = {
name,
version,
render(options) {
return new Core(options);
}
}
if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') {
module.exports = xmSelect;
} else if (typeof define === 'function' && define.amd) {
define(xmSelect);
} else if (window.layui && layui.define) {
layui.define(function(exports) {
exports('xmSelect', xmSelect);
});
} else {
window.xmSelect = xmSelect;
}