1 Star 0 Fork 0

水滴 / water-pro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 808 Bytes
一键复制 编辑 原始数据 按行查看 历史
星空下的巫师 提交于 2020-10-31 22:23 . fix: css error #3069
/* eslint no-console:0 */
function camelCase(name) {
return (
name.charAt(0).toUpperCase() +
name.slice(1).replace(/-(\w)/g, (m, n) => {
return n.toUpperCase();
})
);
}
// Just import style for https://github.com/ant-design/ant-design/issues/3745
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') {
// message & notification should not be capitalized
exports[match[1]] = v;
} else {
exports[camelCase(match[1])] = v;
}
}
});
module.exports = require('./components');
1
https://gitee.com/fe6/water-pro.git
git@gitee.com:fe6/water-pro.git
fe6
water-pro
water-pro
master

搜索帮助