diff --git a/.prettierrc b/.prettierrc
index 73e9b594..c28db5cd 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -3,6 +3,8 @@
"semi": true,
"singleQuote": true,
"tabWidth": 2,
+ "printWidth": 100,
+ "proseWrap": "never",
"trailingComma": "all",
"arrowParens": "avoid"
}
diff --git a/README.md b/README.md
index e2f81ccf..1f21241e 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,7 @@
React Menu Component. port from https://github.com/kissyteam/menu
-[![NPM version][npm-image]][npm-url]
-[![npm download][download-image]][download-url]
-[![build status][github-actions-image]][github-actions-url]
-[![Codecov][codecov-image]][codecov-url]
-[![bundle size][bundlephobia-image]][bundlephobia-url]
-[![dumi][dumi-image]][dumi-url]
+[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]
[npm-image]: http://img.shields.io/npm/v/rc-menu.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-menu
@@ -172,7 +167,7 @@ ReactDOM.render(
openAnimation |
{enter:function,leave:function}|String |
|
- animate when sub menu open or close. see rc-motion for object type. |
+ animate when sub menu open or close. see @rc-component/motion for object type. |
openTransition |
diff --git a/docs/examples/antd.tsx b/docs/examples/antd.tsx
index f5bd0bba..7dac7ffd 100644
--- a/docs/examples/antd.tsx
+++ b/docs/examples/antd.tsx
@@ -1,7 +1,7 @@
/* eslint-disable no-console, react/require-default-props, no-param-reassign */
import React from 'react';
-import type { CSSMotionProps } from 'rc-motion';
+import type { CSSMotionProps } from '@rc-component/motion';
import Menu, { SubMenu, Item as MenuItem, Divider, MenuProps } from '../../src';
import '../../assets/index.less';
diff --git a/docs/examples/debug.tsx b/docs/examples/debug.tsx
index a9db1e87..0fca53ab 100644
--- a/docs/examples/debug.tsx
+++ b/docs/examples/debug.tsx
@@ -1,7 +1,7 @@
/* eslint no-console:0 */
import React, { useRef } from 'react';
-import type { CSSMotionProps } from 'rc-motion';
+import type { CSSMotionProps } from '@rc-component/motion';
import Menu, { ItemGroup as MenuItemGroup, MenuItem } from '../../src';
import type { MenuProps } from '../../src';
import '../../assets/index.less';
diff --git a/docs/examples/fragment.tsx b/docs/examples/fragment.tsx
index 8dc52457..825272dc 100644
--- a/docs/examples/fragment.tsx
+++ b/docs/examples/fragment.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import Menu, { SubMenu, Item as MenuItem, Divider } from 'rc-menu';
+import Menu, { SubMenu, Item as MenuItem, Divider } from '@rc-component/menu';
import '../../assets/index.less';
export default () => (
diff --git a/docs/examples/inlineCollapsed.tsx b/docs/examples/inlineCollapsed.tsx
index bc6cbef5..691f8f03 100644
--- a/docs/examples/inlineCollapsed.tsx
+++ b/docs/examples/inlineCollapsed.tsx
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
-import Menu from 'rc-menu';
+import Menu from '@rc-component/menu';
import './inlineCollapsed.less';
const App = () => {
@@ -7,7 +7,11 @@ const App = () => {
return (
<>