Skip to content

Commit 80e2d86

Browse files
authored
feat(arco): add new component support and fix skeleton problem (#407)
1 parent c94e8af commit 80e2d86

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/core/resolvers/arco.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ const matchComponents = [
2626
pattern: /^CarouselItem$/,
2727
componentDir: 'carousel',
2828
},
29+
{
30+
pattern: /^CascaderPanel$/,
31+
componentDir: 'cascader',
32+
},
2933
{
3034
pattern: /^CheckboxGroup$/,
3135
componentDir: 'checkbox',
@@ -38,6 +42,10 @@ const matchComponents = [
3842
pattern: /^(WeekPicker|MonthPicker|YearPicker|QuarterPicker|RangePicker)$/,
3943
componentDir: 'date-picker',
4044
},
45+
{
46+
pattern: /^DescriptionsItem$/,
47+
componentDir: 'descriptions',
48+
},
4149
{
4250
pattern: /^(Doption|Dgroup|Dsubmenu|DropdownButton)$/,
4351
componentDir: 'dropdown',
@@ -50,7 +58,6 @@ const matchComponents = [
5058
pattern: /^(Col|Row|GridItem)$/,
5159
componentDir: 'grid',
5260
},
53-
5461
{
5562
pattern: /^(ImagePreview|ImagePreviewGroup)$/,
5663
componentDir: 'image',
@@ -83,23 +90,24 @@ const matchComponents = [
8390

8491
{
8592
pattern: /^(SkeletonLine|SkeletonShape)$/,
86-
componentDir: 'table',
93+
componentDir: 'skeleton',
8794
},
8895
{
8996
pattern: /^Countdown$/,
9097
componentDir: 'statistic',
9198
},
92-
9399
{
94100
pattern: /^Step$/,
95101
componentDir: 'steps',
96102
},
97-
98103
{
99104
pattern: /^(Thead|Td|Th|Tr|Tbody|TableColumn)$/,
100105
componentDir: 'table',
101106
},
102-
107+
{
108+
pattern: /^TagGroup$/,
109+
componentDir: 'tag',
110+
},
103111
{
104112
pattern: /^TabPane$/,
105113
componentDir: 'tabs',
@@ -108,16 +116,10 @@ const matchComponents = [
108116
pattern: /^TimelineItem$/,
109117
componentDir: 'timeline',
110118
},
111-
112119
{
113120
pattern: /^(TypographyParagraph|TypographyTitle|TypographyText)$/,
114121
componentDir: 'typography',
115122
},
116-
117-
{
118-
pattern: /^DescriptionsItem$/,
119-
componentDir: 'descriptions',
120-
},
121123
]
122124

123125
function getComponentStyleDir(importName: string, importStyle: boolean | 'css' | 'less') {

0 commit comments

Comments
 (0)