15 Star 107 Fork 24

SimbaJS / love-u.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 892 Bytes
一键复制 编辑 原始数据 按行查看 历史
SimbaJS 提交于 2022-01-12 17:08 . 分离uniapp相关,单独开个库
//需要配合babel才能这么写
// let components = require.context('./components', true, /\.js$/)
// let cowb = {}
// components.keys().forEach((fileName) => {
// Object.values(components(fileName).default).forEach(r => Object.assign(cowb, r))
// })
import * as array from './modules/array'
import * as util from './modules/util'
import * as bom from './modules/bom'
import * as antdv from './modules/antdv'
import * as cache from './modules/cache'
import * as string from './modules/string'
import * as mock from './modules/mock'
import * as object from './modules/object'
import * as time from './modules/time'
import * as functions from './modules/function'
import * as math from './modules/math'
let _ = {
...math,
...array,
...time,
...util,
...object,
...bom,
...antdv,
...cache,
...string,
...mock,
...functions
}
export default _
JavaScript
1
https://gitee.com/shendusimba/love-u.git
git@gitee.com:shendusimba/love-u.git
shendusimba
love-u
love-u.js
master

搜索帮助