Skip to content

Commit

Permalink
docs: 修复按需引入组件路径的问题 (#1522)
Browse files Browse the repository at this point in the history
`at-search-bar` 路径会被识别成 `search` 而不是 `search-bar`
  • Loading branch information
luckymore authored Aug 22, 2022
1 parent 7091b81 commit f5cb72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-ui-docs/markdown/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ npm i babel-plugin-import -D
'import',
{
libraryName: 'taro-ui',
customName: name => `taro-ui/lib/components/${name.split('-')[1]}`,
customStyleName: name => `taro-ui/dist/style/components/${name.split('-')[1]}.scss`
customName: name => `taro-ui/lib/components/${name.slice(3)}`,
customStyleName: name => `taro-ui/dist/style/components/${name.slice(3)}.scss`
},
'taro-ui'
]
Expand Down

0 comments on commit f5cb72d

Please sign in to comment.