Skip to content

Commit

Permalink
fix(tdesign): add resolver color-picker (#491)
Browse files Browse the repository at this point in the history
Co-authored-by: 谭海祥-01381421 <haixiang.tan@sfmail.sf-express.com>
  • Loading branch information
thx125 and 谭海祥-01381421 authored Aug 12, 2022
1 parent 86d3495 commit 96a4de6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/resolvers/tdesign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ function getSideEffects(importName: string, options: TDesignResolverOptions): Si
if (['date-range-picker', 'date-range-picker-panel'].includes(fileName))
fileName = 'date-picker'

if (['color-picker', 'color-picker-panel'].includes(fileName))
fileName = 'color-picker'

if (importStyle === 'less')
return `tdesign-${library}/esm/${fileName}/style`

Expand Down

0 comments on commit 96a4de6

Please sign in to comment.