mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
update index.js
This commit is contained in:
parent
52e649a9fb
commit
1fde7de404
5
index.js
5
index.js
@ -1,6 +1,4 @@
|
|||||||
/* eslint no-console:0 */
|
/* eslint no-console:0 */
|
||||||
// this file is not used if use https://github.com/ant-design/babel-plugin-import
|
|
||||||
|
|
||||||
function camelCase(name) {
|
function camelCase(name) {
|
||||||
return name.charAt(0).toUpperCase() +
|
return name.charAt(0).toUpperCase() +
|
||||||
name.slice(1).replace(/-(\w)/g, (m, n) => {
|
name.slice(1).replace(/-(\w)/g, (m, n) => {
|
||||||
@ -8,10 +6,9 @@ function camelCase(name) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Just import style for https://github.com/ant-design/ant-design/issues/3745
|
||||||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)index\.tsx?$/);
|
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/(style\/)index\.tsx?$/);
|
||||||
|
|
||||||
console.log(req.keys());
|
|
||||||
|
|
||||||
req.keys().forEach((mod) => {
|
req.keys().forEach((mod) => {
|
||||||
let v = req(mod);
|
let v = req(mod);
|
||||||
if (v && v.default) {
|
if (v && v.default) {
|
||||||
|
Loading…
Reference in New Issue
Block a user