Skip to content

Commit a93f870

Browse files
aojunhao123zombieJ
andauthored
chore: migrate to @rc-component namespace and update dependencies (#377)
* chore: migrate to @rc-component namespace and update dependencies * chore: fix deps * chore: fix deps * test: update snapshot --------- Co-authored-by: 二货机器人 <smith3816@gmail.com>
1 parent 20afe8d commit a93f870

31 files changed

+139
-115
lines changed

.dumirc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import path from 'path';
33

44
export default defineConfig({
55
alias: {
6-
'rc-image$': path.resolve('src'),
7-
'rc-image/es': path.resolve('src'),
6+
'@rc-component/image$': path.resolve('src'),
7+
'@rc-component/image/es': path.resolve('src'),
88
},
99
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
1010
themeConfig: {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ npm start
5555
```
5656

5757
```js
58-
import Image from 'rc-image';
58+
import Image from '@rc-component/image';
5959

6060
export default () => (
6161
<Image src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" />
@@ -96,7 +96,7 @@ export default () => (
9696
preview the merged src
9797

9898
```js
99-
import Image from 'rc-image';
99+
import Image from '@rc-component/image';
100100

101101
export default () => (
102102
<Image.PreviewGroup>

docs/examples/album.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import * as React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/controlled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import * as React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/controlledWithGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable global-require */
2-
import Image from 'rc-image';
2+
import Image from '@rc-component/image';
33
import * as React from 'react';
44
import '../../assets/index.less';
55
import { defaultIcons } from './common';

docs/examples/fallback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import * as React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/imageRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/placeholder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import * as React from 'react';
33
import '../../assets/index.less';
44
import { defaultIcons } from './common';

docs/examples/previewgroup-items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'rc-image';
1+
import Image from '@rc-component/image';
22
import * as React from 'react';
33
import '../../assets/index.less';
44

0 commit comments

Comments
 (0)