127 Star 700 Fork 0

GVPant-design-vue / ant-design-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 806 Bytes
一键复制 编辑 原始数据 按行查看 历史
zeka 提交于 2019-01-12 11:33 . style: lint add semi and prettier
/* 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\.js?$/);
req.keys().forEach(mod => {
let v = req(mod);
if (v && v.default) {
v = v.default;
}
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
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');
JavaScript
1
https://gitee.com/ant-design-vue/ant-design-vue.git
git@gitee.com:ant-design-vue/ant-design-vue.git
ant-design-vue
ant-design-vue
ant-design-vue
master

搜索帮助