4 |
--------------------------------------------------------------------------------
/docs/demo/debug.md:
--------------------------------------------------------------------------------
1 | ## debug
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/items.md:
--------------------------------------------------------------------------------
1 | ## items
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/keyPath.md:
--------------------------------------------------------------------------------
1 | ## keyPath
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/single.md:
--------------------------------------------------------------------------------
1 | ## single
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/fragment.md:
--------------------------------------------------------------------------------
1 | ## fragment
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/multiple.md:
--------------------------------------------------------------------------------
1 | ## multiple
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/openKeys.md:
--------------------------------------------------------------------------------
1 | ## openKeys
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/rtl-antd.md:
--------------------------------------------------------------------------------
1 | ## rtl-antd
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: rc-menu
3 | ---
4 |
5 |
6 |
--------------------------------------------------------------------------------
/docs/demo/items-ref.md:
--------------------------------------------------------------------------------
1 | ## items-ref
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/scrollable.md:
--------------------------------------------------------------------------------
1 | ## scrollable
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/antd-switch.md:
--------------------------------------------------------------------------------
1 | ## antd-switch
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/custom-icon.md:
--------------------------------------------------------------------------------
1 | ## custom-icon
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/selectedKeys.md:
--------------------------------------------------------------------------------
1 | ## selectedKeys
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/menuItemGroup.md:
--------------------------------------------------------------------------------
1 | ## menuItemGroup
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/inlineCollapsed.md:
--------------------------------------------------------------------------------
1 | ## inlineCollapsed
2 |
3 |
4 |
--------------------------------------------------------------------------------
/docs/demo/customPopupRender.md:
--------------------------------------------------------------------------------
1 | ## customPopupRender
2 |
3 |
4 |
--------------------------------------------------------------------------------
/tests/__mocks__/@rc-component/trigger.js:
--------------------------------------------------------------------------------
1 | import Trigger from '@rc-component/trigger/lib/mock';
2 |
3 | export default Trigger;
4 |
--------------------------------------------------------------------------------
/.fatherrc.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'father';
2 |
3 | export default defineConfig({
4 | plugins: ['@rc-component/father-plugin'],
5 | });
--------------------------------------------------------------------------------
/src/utils/timeUtil.ts:
--------------------------------------------------------------------------------
1 | export function nextSlice(callback: () => void) {
2 | /* istanbul ignore next */
3 | Promise.resolve().then(callback);
4 | }
5 |
--------------------------------------------------------------------------------
/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | setupFiles: ['61 | 69 |
70 | {!destroy &&123 | selectedKeys: 124 | {allSelectedKeys.map(k => ( 125 | 135 | ))} 136 |
137 | 138 |139 | openKeys: 140 | {allOpenKeys.map(k => ( 141 | 150 | ))} 151 |
152 | 153 |Quick start guide and learn the basics.
22 | 23 | ), 24 | }, 25 | { 26 | key: 'components', 27 | label: ( 28 | 29 |Explore our component library.
31 | 32 | ), 33 | }, 34 | { 35 | key: 'templates', 36 | label: ( 37 | 38 |Ready-to-use template designs.
40 | 41 | ), 42 | }, 43 | ], 44 | }, 45 | { 46 | key: 'resources', 47 | label: 'Resources', 48 | children: [ 49 | { 50 | key: 'blog', 51 | label: ( 52 | 53 |Latest updates and articles.
55 | 56 | ), 57 | }, 58 | { 59 | key: 'community', 60 | label: ( 61 | 62 |Join our developer community.
64 | 65 | ), 66 | }, 67 | ], 68 | }, 69 | ]; 70 | const popupRender = (node: ReactElement) => ( 71 |