2 Star 2 Fork 1

金蝶云/table

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 716 Bytes
一键复制 编辑 原始数据 按行查看 历史
w_qh 提交于 2022-01-25 17:03 . feat: init
/* eslint no-console:0 */
function camelCase (name) {
return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, (m, n) => n.toUpperCase())
}
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/)
req.keys().forEach((mod) => {
let v = req(mod)
if (v && v.default) {
v = v.default
}
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/)
if (match && match[1]) {
if (match[1] === 'message' || match[1] === 'notification') {
// need nextUI modify
// message & notification should not be capitalized
exports[match[1]] = v
} else {
exports[camelCase(match[1])] = v
}
}
})
module.exports = require('./components')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kingdee/table.git
git@gitee.com:kingdee/table.git
kingdee
table
table
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385