Skip to content

Commit 0a8dc2c

Browse files
authored
feat(arco): add new component support (#284)
1 parent a6f61eb commit 0a8dc2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/resolvers/arco.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const matchComponents = [
4848
componentDir: 'form',
4949
},
5050
{
51-
pattern: /^(Col|Row)$/,
51+
pattern: /^(Col|Row|GridItem)$/,
5252
componentDir: 'grid',
5353
},
5454

@@ -117,6 +117,8 @@ const matchComponents = [
117117
]
118118

119119
function getComponentStyleDir(importName: string, importStyle: boolean | 'css' | 'less') {
120+
if (['ConfigProvider', 'Icon'].includes(importName)) return undefined
121+
120122
let componentDir = kebabCase(importName)
121123
for (const item of matchComponents) {
122124
if (item.pattern.test(importName)) {

0 commit comments

Comments
 (0)