Skip to content

Commit

Permalink
docs(react-ui): 修正 locale 导入路径
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Feb 19, 2024
1 parent 9902309 commit 270c775
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export default defineConfig({
__dirname,
'packages/react-ui/dist/styles',
),
'@tool-pack/react-ui/dist/local': Path.resolve(
__dirname,
'packages/react-ui/src/local',
),
...getAlias(),
},
});
2 changes: 1 addition & 1 deletion docs/guide/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nav:

```jsx | pure
import { ConfigProvider } from '@tool-pack/react-ui';
import zhCN from '@tool-pack/react-ui/locale/zh-CN';
import zhCN from '@tool-pack/react-ui/dist/locale/zh-CN';

function Demo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/config-provider/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ group:

```jsx | pure
import { ConfigProvider } from '@tool-pack/react-ui';
import zhCN from '@tool-pack/react-ui/locale/zh-CN';
import zhCN from '@tool-pack/react-ui/dist/locale/zh-CN';

function Demo() {
return (
Expand Down

0 comments on commit 270c775

Please sign in to comment.