mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
1 line
137 KiB
JavaScript
1 line
137 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["4fbdfc68"],{"4fbdfc68":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),s=n("f19d2b93"),i=r._(n("b622e337")),a=r._(n("67074e5d")),c=r._(n("3098b24f")),o=r._(n("84b131b4")),l=r._(n("97c488ea")),d=r._(n("c96b0d01")),p=n("5b220c3d"),u=n("9c86e52a"),m=n("8da9a8fb"),h=function(){return(0,s.jsx)(u.DumiPage,{children:(0,s.jsx)(p.Suspense,{fallback:(0,s.jsx)(d.default,{}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"markdown",children:[(0,s.jsxs)("h2",{id:"when-to-use",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#when-to-use",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u4F55\u65F6\u4F7F\u7528"]}),(0,s.jsx)("p",{children:m.texts[0].value}),(0,s.jsxs)("p",{children:[m.texts[1].value,(0,s.jsx)(l.default,{to:"/components/layout-cn",sourceType:"Link",children:m.texts[2].value}),m.texts[3].value]}),(0,s.jsxs)("h2",{id:"\u5F00\u53D1\u8005\u6CE8\u610F\u4E8B\u9879",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u5F00\u53D1\u8005\u6CE8\u610F\u4E8B\u9879",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u5F00\u53D1\u8005\u6CE8\u610F\u4E8B\u9879"]}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[m.texts[4].value,(0,s.jsx)("code",{children:m.texts[5].value}),m.texts[6].value,(0,s.jsxs)(l.default,{href:"https://html.spec.whatwg.org/multipage/grouping-content.html#the-ul-element",sourceType:"a",children:[(0,s.jsx)("code",{children:m.texts[7].value}),m.texts[8].value,(0,s.jsx)("code",{children:m.texts[9].value}),m.texts[10].value]}),m.texts[11].value,(0,s.jsx)("code",{children:m.texts[12].value}),m.texts[13].value]}),(0,s.jsxs)("li",{children:[m.texts[14].value,(0,s.jsx)("code",{children:m.texts[15].value}),m.texts[16].value]})]}),(0,s.jsxs)("h2",{id:"\u4EE3\u7801\u6F14\u793A",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u4EE3\u7801\u6F14\u793A",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u4EE3\u7801\u6F14\u793A"]})]}),(0,s.jsx)(o.default,{items:[{demo:{id:"menu-demo-horizontal"},previewerProps:{title:"\u9876\u90E8\u5BFC\u822A",filename:"components/menu/demo/horizontal.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu } from 'antd';\nconst items = [\n {\n label: 'Navigation One',\n key: 'mail',\n icon: <MailOutlined />,\n },\n {\n label: 'Navigation Two',\n key: 'app',\n icon: <AppstoreOutlined />,\n disabled: true,\n },\n {\n label: 'Navigation Three - Submenu',\n key: 'SubMenu',\n icon: <SettingOutlined />,\n children: [\n {\n type: 'group',\n label: 'Item 1',\n children: [\n { label: 'Option 1', key: 'setting:1' },\n { label: 'Option 2', key: 'setting:2' },\n ],\n },\n {\n type: 'group',\n label: 'Item 2',\n children: [\n { label: 'Option 3', key: 'setting:3' },\n { label: 'Option 4', key: 'setting:4' },\n ],\n },\n ],\n },\n {\n key: 'alipay',\n label: (\n <a href=\"https://ant.design\" target=\"_blank\" rel=\"noopener noreferrer\">\n Navigation Four - Link\n </a>\n ),\n },\n];\nconst App = () => {\n const [current, setCurrent] = useState('mail');\n const onClick = e => {\n console.log('click ', e);\n setCurrent(e.key);\n };\n return <Menu onClick={onClick} selectedKeys={[current]} mode=\"horizontal\" items={items} />;\n};\nexport default App;\n",description:"<p>\u6C34\u5E73\u7684\u9876\u90E8\u5BFC\u822A\u83DC\u5355\u3002</p>"}},{demo:{id:"menu-demo-horizontal-dark"},previewerProps:{debug:!0,title:"\u9876\u90E8\u5BFC\u822A\uFF08dark\uFF09",filename:"components/menu/demo/horizontal-dark.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu } from 'antd';\nconst items = [\n {\n label: 'Navigation One',\n key: 'mail',\n icon: <MailOutlined />,\n },\n {\n label: 'Navigation Two',\n key: 'app',\n icon: <AppstoreOutlined />,\n disabled: true,\n },\n {\n label: 'Navigation Three - Submenu',\n key: 'SubMenu',\n icon: <SettingOutlined />,\n children: [\n {\n type: 'group',\n label: 'Item 1',\n children: [\n { label: 'Option 1', key: 'setting:1' },\n { label: 'Option 2', key: 'setting:2' },\n ],\n },\n {\n type: 'group',\n label: 'Item 2',\n children: [\n { label: 'Option 3', key: 'setting:3' },\n { label: 'Option 4', key: 'setting:4' },\n ],\n },\n ],\n },\n {\n key: 'alipay',\n label: (\n <a href=\"https://ant.design\" target=\"_blank\" rel=\"noopener noreferrer\">\n Navigation Four - Link\n </a>\n ),\n },\n];\nconst App = () => {\n const [current, setCurrent] = useState('mail');\n const onClick = e => {\n console.log('click ', e);\n setCurrent(e.key);\n };\n return (\n <Menu onClick={onClick} selectedKeys={[current]} mode=\"horizontal\" items={items} theme=\"dark\" />\n );\n};\nexport default App;\n",description:"<p>\u6C34\u5E73\u7684\u9876\u90E8\u5BFC\u822A\u83DC\u5355\u3002</p>"}},{demo:{id:"menu-demo-inline"},previewerProps:{title:"\u5185\u5D4C\u83DC\u5355",filename:"components/menu/demo/inline.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu } from 'antd';\nconst items = [\n {\n key: 'sub1',\n label: 'Navigation One',\n icon: <MailOutlined />,\n children: [\n {\n key: 'g1',\n label: 'Item 1',\n type: 'group',\n children: [\n { key: '1', label: 'Option 1' },\n { key: '2', label: 'Option 2' },\n ],\n },\n {\n key: 'g2',\n label: 'Item 2',\n type: 'group',\n children: [\n { key: '3', label: 'Option 3' },\n { key: '4', label: 'Option 4' },\n ],\n },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n ],\n },\n {\n type: 'divider',\n },\n {\n key: 'sub4',\n label: 'Navigation Three',\n icon: <SettingOutlined />,\n children: [\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n ],\n },\n {\n key: 'grp',\n label: 'Group',\n type: 'group',\n children: [\n { key: '13', label: 'Option 13' },\n { key: '14', label: 'Option 14' },\n ],\n },\n];\nconst App = () => {\n const onClick = e => {\n console.log('click ', e);\n };\n return (\n <Menu\n onClick={onClick}\n style={{ width: 256 }}\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode=\"inline\"\n items={items}\n />\n );\n};\nexport default App;\n",description:"<p>\u5782\u76F4\u83DC\u5355\uFF0C\u5B50\u83DC\u5355\u5185\u5D4C\u5728\u83DC\u5355\u533A\u57DF\u3002</p>"}},{demo:{id:"menu-demo-inline-collapsed"},previewerProps:{title:"\u7F29\u8D77\u5185\u5D4C\u83DC\u5355",filename:"components/menu/demo/inline-collapsed.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport {\n AppstoreOutlined,\n ContainerOutlined,\n DesktopOutlined,\n MailOutlined,\n MenuFoldOutlined,\n MenuUnfoldOutlined,\n PieChartOutlined,\n} from '@ant-design/icons';\nimport { Button, Menu } from 'antd';\nconst items = [\n { key: '1', icon: <PieChartOutlined />, label: 'Option 1' },\n { key: '2', icon: <DesktopOutlined />, label: 'Option 2' },\n { key: '3', icon: <ContainerOutlined />, label: 'Option 3' },\n {\n key: 'sub1',\n label: 'Navigation One',\n icon: <MailOutlined />,\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n ],\n },\n ],\n },\n];\nconst App = () => {\n const [collapsed, setCollapsed] = useState(false);\n const toggleCollapsed = () => {\n setCollapsed(!collapsed);\n };\n return (\n <div style={{ width: 256 }}>\n <Button type=\"primary\" onClick={toggleCollapsed} style={{ marginBottom: 16 }}>\n {collapsed ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />}\n </Button>\n <Menu\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode=\"inline\"\n theme=\"dark\"\n inlineCollapsed={collapsed}\n items={items}\n />\n </div>\n );\n};\nexport default App;\n",description:'<p>\u5185\u5D4C\u83DC\u5355\u53EF\u4EE5\u88AB\u7F29\u8D77/\u5C55\u5F00\u3002</p>\n<p>\u4F60\u53EF\u4EE5\u5728 <a href="/components/layout-cn/#layout-demo-side">Layout</a> \u91CC\u67E5\u770B\u4FA7\u8FB9\u5E03\u5C40\u7ED3\u5408\u7684\u5B8C\u6574\u793A\u4F8B\u3002</p>'}},{demo:{id:"menu-demo-sider-current"},previewerProps:{title:"\u53EA\u5C55\u5F00\u5F53\u524D\u7236\u7EA7\u83DC\u5355",filename:"components/menu/demo/sider-current.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu } from 'antd';\nconst items = [\n {\n key: '1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n children: [\n { key: '11', label: 'Option 1' },\n { key: '12', label: 'Option 2' },\n { key: '13', label: 'Option 3' },\n { key: '14', label: 'Option 4' },\n ],\n },\n {\n key: '2',\n icon: <AppstoreOutlined />,\n label: 'Navigation Two',\n children: [\n { key: '21', label: 'Option 1' },\n { key: '22', label: 'Option 2' },\n {\n key: '23',\n label: 'Submenu',\n children: [\n { key: '231', label: 'Option 1' },\n { key: '232', label: 'Option 2' },\n { key: '233', label: 'Option 3' },\n ],\n },\n {\n key: '24',\n label: 'Submenu 2',\n children: [\n { key: '241', label: 'Option 1' },\n { key: '242', label: 'Option 2' },\n { key: '243', label: 'Option 3' },\n ],\n },\n ],\n },\n {\n key: '3',\n icon: <SettingOutlined />,\n label: 'Navigation Three',\n children: [\n { key: '31', label: 'Option 1' },\n { key: '32', label: 'Option 2' },\n { key: '33', label: 'Option 3' },\n { key: '34', label: 'Option 4' },\n ],\n },\n];\nconst getLevelKeys = items1 => {\n const key = {};\n const func = (items2, level = 1) => {\n items2.forEach(item => {\n if (item.key) {\n key[item.key] = level;\n }\n if (item.children) {\n func(item.children, level + 1);\n }\n });\n };\n func(items1);\n return key;\n};\nconst levelKeys = getLevelKeys(items);\nconst App = () => {\n const [stateOpenKeys, setStateOpenKeys] = useState(['2', '23']);\n const onOpenChange = openKeys => {\n const currentOpenKey = openKeys.find(key => stateOpenKeys.indexOf(key) === -1);\n // open\n if (currentOpenKey !== undefined) {\n const repeatIndex = openKeys\n .filter(key => key !== currentOpenKey)\n .findIndex(key => levelKeys[key] === levelKeys[currentOpenKey]);\n setStateOpenKeys(\n openKeys\n // remove repeat key\n .filter((_, index) => index !== repeatIndex)\n // remove current level all child\n .filter(key => levelKeys[key] <= levelKeys[currentOpenKey]),\n );\n } else {\n // close\n setStateOpenKeys(openKeys);\n }\n };\n return (\n <Menu\n mode=\"inline\"\n defaultSelectedKeys={['231']}\n openKeys={stateOpenKeys}\n onOpenChange={onOpenChange}\n style={{ width: 256 }}\n items={items}\n />\n );\n};\nexport default App;\n",description:"<p>\u70B9\u51FB\u83DC\u5355\uFF0C\u6536\u8D77\u5176\u4ED6\u5C55\u5F00\u7684\u6240\u6709\u83DC\u5355\uFF0C\u4FDD\u6301\u83DC\u5355\u805A\u7126\u7B80\u6D01\u3002</p>"}},{demo:{id:"menu-demo-vertical"},previewerProps:{title:"\u5782\u76F4\u83DC\u5355",filename:"components/menu/demo/vertical.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu } from 'antd';\nconst items = [\n {\n key: 'sub1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n children: [\n {\n key: '1-1',\n label: 'Item 1',\n type: 'group',\n children: [\n { key: '1', label: 'Option 1' },\n { key: '2', label: 'Option 2' },\n ],\n },\n {\n key: '1-2',\n label: 'Item 2',\n type: 'group',\n children: [\n { key: '3', label: 'Option 3' },\n { key: '4', label: 'Option 4' },\n ],\n },\n ],\n },\n {\n key: 'sub2',\n icon: <AppstoreOutlined />,\n label: 'Navigation Two',\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n ],\n },\n {\n key: 'sub4',\n label: 'Navigation Three',\n icon: <SettingOutlined />,\n children: [\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n ],\n },\n];\nconst onClick = e => {\n console.log('click', e);\n};\nconst App = () => <Menu onClick={onClick} style={{ width: 256 }} mode=\"vertical\" items={items} />;\nexport default App;\n",description:"<p>\u5B50\u83DC\u5355\u662F\u5F39\u51FA\u7684\u5F62\u5F0F\u3002</p>"}},{demo:{id:"menu-demo-theme"},previewerProps:{title:"\u4E3B\u9898",filename:"components/menu/demo/theme.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';\nimport { Menu, Switch } from 'antd';\nconst items = [\n {\n key: 'sub1',\n label: 'Navigation One',\n icon: <MailOutlined />,\n children: [\n { key: '1', label: 'Option 1' },\n { key: '2', label: 'Option 2' },\n { key: '3', label: 'Option 3' },\n { key: '4', label: 'Option 4' },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n ],\n },\n {\n key: 'sub4',\n label: 'Navigation Three',\n icon: <SettingOutlined />,\n children: [\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n ],\n },\n];\nconst App = () => {\n const [theme, setTheme] = useState('dark');\n const [current, setCurrent] = useState('1');\n const changeTheme = value => {\n setTheme(value ? 'dark' : 'light');\n };\n const onClick = e => {\n console.log('click ', e);\n setCurrent(e.key);\n };\n return (\n <>\n <Switch\n checked={theme === 'dark'}\n onChange={changeTheme}\n checkedChildren=\"Dark\"\n unCheckedChildren=\"Light\"\n />\n <br />\n <br />\n <Menu\n theme={theme}\n onClick={onClick}\n style={{ width: 256 }}\n defaultOpenKeys={['sub1']}\n selectedKeys={[current]}\n mode=\"inline\"\n items={items}\n />\n </>\n );\n};\nexport default App;\n",description:"<p>\u5185\u5EFA\u4E86\u4E24\u5957\u4E3B\u9898 <code>light</code> \u548C <code>dark</code>\uFF0C\u9ED8\u8BA4 <code>light</code>\u3002</p>"}},{demo:{id:"menu-demo-submenu-theme"},previewerProps:{title:"\u5B50\u83DC\u5355\u4E3B\u9898",filename:"components/menu/demo/submenu-theme.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { MailOutlined } from '@ant-design/icons';\nimport { Menu, Switch } from 'antd';\nconst App = () => {\n const [menuTheme, setMenuTheme] = useState('light');\n const [current, setCurrent] = useState('1');\n const changeTheme = value => {\n setMenuTheme(value ? 'dark' : 'light');\n };\n const onClick = e => {\n setCurrent(e.key);\n };\n const items = [\n {\n key: 'sub1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n theme: menuTheme,\n children: [\n { key: '1', label: 'Option 1' },\n { key: '2', label: 'Option 2' },\n { key: '3', label: 'Option 3' },\n ],\n },\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n ];\n return (\n <>\n <Switch\n checked={menuTheme === 'dark'}\n onChange={changeTheme}\n checkedChildren=\"Dark\"\n unCheckedChildren=\"Light\"\n />\n <br />\n <br />\n <Menu\n onClick={onClick}\n style={{ width: 256 }}\n openKeys={['sub1']}\n selectedKeys={[current]}\n mode=\"vertical\"\n theme=\"dark\"\n items={items}\n getPopupContainer={node => node.parentNode}\n />\n </>\n );\n};\nexport default App;\n",description:"<p>\u4F60\u53EF\u4EE5\u901A\u8FC7 <code>theme</code> \u5C5E\u6027\u6765\u8BBE\u7F6E SubMenu \u7684\u4E3B\u9898\u4ECE\u800C\u8FBE\u5230\u4E0D\u540C\u76EE\u5F55\u6811\u4E0B\u4E0D\u540C\u4E3B\u9898\u8272\u7684\u6548\u679C\u3002\u8BE5\u4F8B\u5B50\u9ED8\u8BA4\u4E3A\u6839\u76EE\u5F55\u6DF1\u8272\uFF0C\u5B50\u76EE\u5F55\u6D45\u8272\u6548\u679C\u3002</p>"}},{demo:{id:"menu-demo-switch-mode"},previewerProps:{title:"\u5207\u6362\u83DC\u5355\u7C7B\u578B",filename:"components/menu/demo/switch-mode.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport {\n AppstoreOutlined,\n CalendarOutlined,\n LinkOutlined,\n MailOutlined,\n SettingOutlined,\n} from '@ant-design/icons';\nimport { Divider, Menu, Switch } from 'antd';\nconst items = [\n {\n key: '1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n },\n {\n key: '2',\n icon: <CalendarOutlined />,\n label: 'Navigation Two',\n },\n {\n key: 'sub1',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '3', label: 'Option 3' },\n { key: '4', label: 'Option 4' },\n {\n key: 'sub1-2',\n label: 'Submenu',\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n ],\n },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Three',\n icon: <SettingOutlined />,\n children: [\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n ],\n },\n {\n key: 'link',\n icon: <LinkOutlined />,\n label: (\n <a href=\"https://ant.design\" target=\"_blank\" rel=\"noopener noreferrer\">\n Ant Design\n </a>\n ),\n },\n];\nconst App = () => {\n const [mode, setMode] = useState('inline');\n const [theme, setTheme] = useState('light');\n const changeMode = value => {\n setMode(value ? 'vertical' : 'inline');\n };\n const changeTheme = value => {\n setTheme(value ? 'dark' : 'light');\n };\n return (\n <>\n <Switch onChange={changeMode} /> Change Mode\n <Divider type=\"vertical\" />\n <Switch onChange={changeTheme} /> Change Style\n <br />\n <br />\n <Menu\n style={{ width: 256 }}\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode={mode}\n theme={theme}\n items={items}\n />\n </>\n );\n};\nexport default App;\n",description:"<p>\u5C55\u793A\u52A8\u6001\u5207\u6362\u6A21\u5F0F\u3002</p>"}},{demo:{id:"menu-demo-style-debug"},previewerProps:{debug:!0,title:"Style debug",filename:"components/menu/demo/style-debug.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport { AppstoreOutlined, MailOutlined } from '@ant-design/icons';\nimport { Menu, Switch } from 'antd';\nconst items = [\n {\n key: 'sub1',\n label: 'Navigation One Long Long Long Long',\n icon: <MailOutlined />,\n children: [\n { key: '1', label: 'Option 1' },\n { key: '2', label: 'Option 2' },\n { key: '3', label: 'Option 3' },\n { key: '4', label: 'Option 4' },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n ],\n },\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n];\nconst App = () => {\n const [menuTheme, setMenuTheme] = useState('dark');\n const [current, setCurrent] = useState('1');\n const changeTheme = value => {\n setMenuTheme(value ? 'dark' : 'light');\n };\n const onClick = e => {\n console.log('click ', e);\n setCurrent(e.key);\n };\n return (\n <>\n <Switch\n checked={menuTheme === 'dark'}\n onChange={changeTheme}\n checkedChildren=\"Dark\"\n unCheckedChildren=\"Light\"\n />\n <br />\n <br />\n <Menu\n theme={menuTheme}\n onClick={onClick}\n selectedKeys={[current]}\n mode=\"inline\"\n items={items}\n inlineCollapsed\n // Test only. Remove in future.\n _internalRenderMenuItem={node =>\n React.cloneElement(node, {\n style: Object.assign(Object.assign({}, node.props.style), {\n textDecoration: 'underline',\n }),\n })\n }\n // Test only. Remove in future.\n _internalRenderSubMenuItem={node =>\n React.cloneElement(node, {\n style: Object.assign(Object.assign({}, node.props.style), {\n background: 'rgba(255, 255, 255, 0.3)',\n }),\n })\n }\n // Test only. Remove in future.\n _internalDisableMenuItemTitleTooltip\n />\n </>\n );\n};\nexport default App;\n",description:"<p>buggy!</p>"}},{demo:{id:"menu-demo-menu-v4"},previewerProps:{debug:!0,title:"v4 \u7248\u672C Menu",filename:"components/menu/demo/menu-v4.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport {\n AppstoreOutlined,\n CalendarOutlined,\n LinkOutlined,\n MailOutlined,\n SettingOutlined,\n} from '@ant-design/icons';\nimport { ConfigProvider, Menu, Switch, Typography } from 'antd';\nconst items = [\n {\n key: '1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n },\n {\n key: '2',\n icon: <CalendarOutlined />,\n label: 'Navigation Two',\n },\n {\n key: 'sub1',\n icon: <AppstoreOutlined />,\n label: 'Navigation Two',\n children: [\n {\n key: '3',\n label: (\n <Typography.Text ellipsis>\n Ant Design, a design language for background applications, is refined by Ant UED Team\n </Typography.Text>\n ),\n },\n {\n key: '4',\n label: 'Option 4',\n },\n {\n key: 'sub1-2',\n label: 'Submenu',\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n ],\n },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Three',\n icon: <SettingOutlined />,\n children: [\n { label: 'Option 7', key: '7' },\n { label: 'Option 8', key: '8' },\n { label: 'Option 9', key: '9' },\n { label: 'Option 10', key: '10' },\n ],\n },\n {\n key: 'link',\n icon: <LinkOutlined />,\n label: (\n <a href=\"https://ant.design\" target=\"_blank\" rel=\"noopener noreferrer\">\n Ant Design\n </a>\n ),\n },\n];\nconst App = () => {\n const [mode, setMode] = useState('inline');\n const changeMode = value => {\n setMode(value ? 'vertical' : 'inline');\n };\n return (\n <>\n <Switch onChange={changeMode} /> Change Mode\n <br />\n <br />\n <ConfigProvider\n theme={{\n components: {\n Menu: {\n itemBorderRadius: 0,\n subMenuItemBorderRadius: 0,\n itemHoverColor: '#1890ff',\n itemSelectedColor: '#1890ff',\n itemSelectedBg: '#e6f7ff',\n activeBarWidth: 3,\n itemMarginInline: 0,\n itemHoverBg: 'transparent',\n },\n },\n }}\n >\n <Menu\n style={{ width: 256 }}\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode={mode}\n items={items}\n />\n </ConfigProvider>\n </>\n );\n};\nexport default App;\n",description:"<p>V4 \u6837\u5F0F\u7684 Menu \u7EC4\u4EF6\u3002</p>"}},{demo:{id:"menu-demo-component-token"},previewerProps:{debug:!0,title:"\u7EC4\u4EF6 Token",filename:"components/menu/demo/component-token.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React, { useState } from 'react';\nimport {\n AppstoreOutlined,\n ContainerOutlined,\n DesktopOutlined,\n MailOutlined,\n PieChartOutlined,\n SettingOutlined,\n} from '@ant-design/icons';\nimport { ConfigProvider, Menu, Space, theme } from 'antd';\nconst items = [\n {\n label: 'Navigation One',\n key: 'mail',\n icon: <MailOutlined />,\n },\n {\n label: 'Navigation Two',\n key: 'app',\n icon: <AppstoreOutlined />,\n disabled: true,\n },\n {\n label: 'Navigation Three - Submenu',\n key: 'SubMenu',\n icon: <SettingOutlined />,\n children: [\n {\n type: 'group',\n label: 'Item 1',\n children: [\n { label: 'Option 1', key: 'setting:1' },\n { label: 'Option 2', key: 'setting:2' },\n ],\n },\n {\n type: 'group',\n label: 'Item 2',\n children: [\n { label: 'Option 3', key: 'setting:3' },\n { label: 'Option 4', key: 'setting:4' },\n ],\n },\n ],\n },\n {\n key: 'alipay',\n label: (\n <a href=\"https://ant.design\" target=\"_blank\" rel=\"noopener noreferrer\">\n Navigation Four - Link\n </a>\n ),\n },\n];\nconst items2 = [\n {\n key: '1',\n icon: <PieChartOutlined />,\n label: 'Option 1',\n },\n {\n key: '2',\n icon: <DesktopOutlined />,\n label: 'Option 2',\n },\n {\n key: '3',\n icon: <ContainerOutlined />,\n label: 'Option 3',\n },\n {\n key: 'sub1',\n label: 'Navigation One',\n icon: <MailOutlined />,\n children: [\n { key: '5', label: 'Option 5' },\n { key: '6', label: 'Option 6' },\n { key: '7', label: 'Option 7' },\n { key: '8', label: 'Option 8' },\n ],\n },\n {\n key: 'sub2',\n label: 'Navigation Two',\n icon: <AppstoreOutlined />,\n children: [\n { key: '9', label: 'Option 9' },\n { key: '10', label: 'Option 10' },\n {\n key: 'sub3',\n label: 'Submenu',\n children: [\n { key: '11', label: 'Option 11' },\n { key: '12', label: 'Option 12' },\n ],\n },\n ],\n },\n];\nconst App = () => {\n const [current, setCurrent] = useState('mail');\n const onClick = e => {\n console.log('click ', e);\n setCurrent(e.key);\n };\n return (\n <Space direction=\"vertical\">\n <ConfigProvider\n theme={{\n algorithm: [theme.darkAlgorithm],\n components: {\n Menu: {\n popupBg: 'yellow',\n darkPopupBg: 'red',\n },\n },\n }}\n >\n <Menu onClick={onClick} selectedKeys={[current]} mode=\"horizontal\" items={items} />\n <Menu\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode=\"inline\"\n theme=\"dark\"\n inlineCollapsed\n items={items2}\n style={{\n width: 56,\n }}\n />\n </ConfigProvider>\n <ConfigProvider\n theme={{\n components: {\n Menu: {\n horizontalItemBorderRadius: 6,\n popupBg: 'red',\n horizontalItemHoverBg: '#f5f5f5',\n },\n },\n }}\n >\n <Menu onClick={onClick} selectedKeys={[current]} mode=\"horizontal\" items={items} />\n </ConfigProvider>\n <ConfigProvider\n theme={{\n components: {\n Menu: {\n darkItemColor: '#91daff',\n darkItemBg: '#d48806',\n darkSubMenuItemBg: '#faad14',\n darkItemSelectedColor: '#ffccc7',\n darkItemSelectedBg: '#52c41a',\n },\n },\n }}\n >\n <Menu\n defaultSelectedKeys={['1']}\n defaultOpenKeys={['sub1']}\n mode=\"inline\"\n theme=\"dark\"\n items={items2}\n style={{\n width: 256,\n }}\n />\n </ConfigProvider>\n </Space>\n );\n};\nexport default App;\n",description:"<p>\u7EC4\u4EF6 Token debug\u3002</p>"}},{demo:{id:"menu-demo-extra-style"},previewerProps:{debug:!0,title:"Extra Style debug",filename:"components/menu/demo/extra-style.tsx",pkgDependencyList:{"@ant-design/compatible":"^5.1.3","@ant-design/happy-work-theme":"^1.0.0","@ant-design/tools":"^18.0.3","@ant-design/v5-patch-for-react-19":"^1.0.2","@antfu/eslint-config":"^4.0.0","@antv/g6":"^4.8.24","@biomejs/biome":"^1.9.4","@codecov/webpack-plugin":"^1.4.0","@codesandbox/sandpack-react":"^2.19.10","@dnd-kit/core":"^6.2.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emotion/css":"^11.13.5","@emotion/react":"^11.13.5","@emotion/server":"^11.11.0","@eslint-react/eslint-plugin":"^1.17.1","@ianvs/prettier-plugin-sort-imports":"^4.4.0","@inquirer/prompts":"^7.1.0","@madccc/duplicate-package-checker-webpack-plugin":"^1.0.0","@microflash/rehype-figure":"^2.1.1","@npmcli/run-script":"^9.0.1","@octokit/rest":"^22.0.0","@prettier/sync":"^0.5.4","@qixian.cs/github-contributors-list":"^2.0.2","@size-limit/file":"^11.1.6","@stackblitz/sdk":"^1.11.0","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@types/adm-zip":"^0.5.6","@types/ali-oss":"^6.16.11","@types/cli-progress":"^3.11.6","@types/css-tree":"^2.3.10","@types/fs-extra":"^11.0.4","@types/gtag.js":"^0.0.20","@types/http-server":"^0.12.4","@types/isomorphic-fetch":"^0.0.39","@types/jest":"^29.5.13","@types/jest-axe":"^3.5.9","@types/jest-environment-puppeteer":"^5.0.6","@types/jest-image-snapshot":"^6.4.0","@types/jquery":"^3.5.31","@types/jsdom":"^21.1.7","@types/lodash":"^4.17.12","@types/minimist":"^1.2.5","@types/node":"^22.10.1","@types/nprogress":"^0.2.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/prismjs":"^1.26.4","@types/progress":"^2.0.7","@types/react":"^19.0.1","@types/react-copy-to-clipboard":"^5.0.7","@types/react-dom":"^19.0.2","@types/react-highlight-words":"^0.20.0","@types/react-resizable":"^3.0.8","@types/semver":"^7.5.8","@types/spinnies":"^0.5.3","@types/tar":"^6.1.13","@types/throttle-debounce":"^5.0.2","@types/warning":"^3.0.3","adm-zip":"^0.5.16","ali-oss":"^6.21.0","antd-img-crop":"^4.23.0","antd-style":"^3.7.1","antd-token-previewer":"^2.0.8",axios:"^1.7.7",chalk:"^5.0.0",cheerio:"^1.0.0","circular-dependency-plugin":"^5.2.2","cli-progress":"^3.12.0","cross-env":"^7.0.3","cross-fetch":"^4.0.0","css-tree":"^3.1.0","csstree-validator":"^4.0.1","cypress-image-diff-html-report":"2.2.0",dekko:"^0.2.1",dotenv:"^16.4.5",dumi:"~2.4.20","dumi-plugin-color-chunk":"^2.1.0","env-paths":"^3.0.0",eslint:"^9.23.0","eslint-plugin-compat":"^6.0.1","eslint-plugin-jest":"^28.9.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.14","fast-glob":"^3.3.2","fs-extra":"^11.2.0","gh-pages":"^6.2.0","github-slugger":"^2.0.0",glob:"^11.0.0","hast-util-to-string":"^3.0.1",html2sketch:"^1.0.2","http-server":"^14.1.1",husky:"^9.1.6","identity-obj-proxy":"^3.0.0",immer:"^10.1.1","is-ci":"^4.0.0","isomorphic-fetch":"^3.0.0",jest:"^29.7.0","jest-axe":"^10.0.0","jest-canvas-mock":"^2.5.2","jest-environment-jsdom":"^29.7.0","jest-environment-node":"^29.7.0","jest-image-snapshot":"^6.4.0","jest-puppeteer":"^11.0.0",jquery:"^3.7.1",jsdom:"^26.0.0","jsonml-to-react-element":"^1.1.11","jsonml.js":"^0.1.0","lint-staged":"^16.0.0",lodash:"^4.17.21","lunar-typescript":"^1.7.5","lz-string":"^1.5.0",minimist:"^1.2.8",mockdate:"^3.0.5","node-fetch":"^3.3.2","node-notifier":"^10.0.1",open:"^10.1.0",ora:"^8.1.0","p-all":"^5.0.0","package-manager-detector":"^1.0.0",pixelmatch:"^7.1.0",pngjs:"^7.0.0",prettier:"^3.4.1","pretty-format":"^29.7.0",prismjs:"^1.29.0",puppeteer:"^24.7.1","rc-footer":"^0.6.8","rc-tween-one":"^3.0.6","rc-virtual-list":"^3.17.0",react:"^19.1.0","react-copy-to-clipboard":"^5.1.0","react-countup":"^6.5.3","react-dom":"^19.1.0","react-draggable":"^4.4.6","react-fast-marquee":"^1.6.5","react-highlight-words":"^0.21.0","react-icons":"^5.4.0","react-infinite-scroll-component":"^6.1.0","react-intersection-observer":"^9.13.1","react-resizable":"^3.0.5","react-router-dom":"^7.0.1","react-scan":"^0.3.0","react-sticky-box":"^2.0.5","regenerator-runtime":"^0.14.1","rehype-stringify":"^10.0.1",remark:"^15.0.1","remark-cli":"^12.0.1","remark-gfm":"^4.0.0","remark-lint":"^10.0.0","remark-lint-no-undefined-references":"^5.0.0","remark-preset-lint-recommended":"^7.0.0","remark-rehype":"^11.1.1",rimraf:"^6.0.1",runes2:"^1.1.4",semver:"^7.6.3",sharp:"^0.34.0","simple-git":"^3.27.0","size-limit":"^11.1.6",spinnies:"^0.5.1",tar:"^7.4.3","tar-fs":"^3.0.6",terser:"^5.36.0",tsx:"^4.19.2",typedoc:"^0.28.0",typescript:"~5.8.2","vanilla-jsoneditor":"^3.0.0","vanilla-tilt":"^1.8.1",webpack:"^5.97.1","webpack-bundle-analyzer":"^4.10.2","xhr-mock":"^2.5.1","@ant-design/colors":"^7.2.1","@ant-design/cssinjs":"^1.23.0","@ant-design/cssinjs-utils":"^1.1.3","@ant-design/fast-color":"^2.0.6","@ant-design/icons":"^5.6.1","@ant-design/react-slick":"~1.1.2","@babel/runtime":"^7.26.0","@rc-component/color-picker":"~2.0.1","@rc-component/mutate-observer":"^1.1.0","@rc-component/qrcode":"~1.0.0","@rc-component/tour":"~1.15.1","@rc-component/trigger":"^2.2.6",classnames:"^2.5.1","copy-to-clipboard":"^3.3.3",dayjs:"^1.11.11","rc-cascader":"~3.34.0","rc-checkbox":"~3.5.0","rc-collapse":"~3.9.0","rc-dialog":"~9.6.0","rc-drawer":"~7.3.0","rc-dropdown":"~4.2.1","rc-field-form":"~2.7.0","rc-image":"~7.12.0","rc-input":"~1.8.0","rc-input-number":"~9.5.0","rc-mentions":"~2.20.0","rc-menu":"~9.16.1","rc-motion":"^2.9.5","rc-notification":"~5.6.4","rc-pagination":"~5.1.0","rc-picker":"~4.11.3","rc-progress":"~4.0.0","rc-rate":"~2.13.1","rc-resize-observer":"^1.4.3","rc-segmented":"~2.7.0","rc-select":"~14.16.8","rc-slider":"~11.1.8","rc-steps":"~6.0.1","rc-switch":"~4.1.0","rc-table":"~7.50.5","rc-tabs":"~15.6.1","rc-textarea":"~1.10.0","rc-tooltip":"~6.4.0","rc-tree":"~5.13.1","rc-tree-select":"~5.27.0","rc-upload":"~4.9.2","rc-util":"^5.44.4","scroll-into-view-if-needed":"^3.1.0","throttle-debounce":"^5.0.2"},jsx:"import React from 'react';\nimport { DownOutlined, MailOutlined } from '@ant-design/icons';\nimport { Flex, Menu, Space } from 'antd';\nconst items1 = [\n {\n key: 'sub1',\n icon: <MailOutlined />,\n label: 'Navigation One',\n children: [\n {\n key: '1',\n label: (\n <Flex justify=\"space-between\">\n <span>Option 1</span>\n <DownOutlined />\n </Flex>\n ),\n },\n {\n key: '2',\n label: 'Option 2',\n extra: '\u2318P',\n },\n {\n key: '3',\n label: <a href=\"https://www.baidu.com\">Link Option</a>,\n disabled: true,\n },\n ],\n },\n];\nconst items2 = [\n { key: '1', label: 'Users', extra: '\u2318U' },\n { key: '2', label: 'Profile', extra: '\u2318P' },\n];\nconst App = () => (\n <Space direction=\"vertical\">\n <Menu\n mode=\"inline\"\n defaultOpenKeys={['sub1']}\n defaultSelectedKeys={['1']}\n style={{ width: 256 }}\n items={items1}\n />\n <Menu theme=\"dark\" style={{ width: 256 }} items={items2} />\n </Space>\n);\nexport default App;\n",description:"<p>\u8C03\u8BD5\u4F7F\u7528</p>"}}]}),(0,s.jsxs)("div",{className:"markdown",children:[(0,s.jsxs)("h2",{id:"api",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#api",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"API"]}),(0,s.jsxs)("p",{children:[m.texts[17].value,(0,s.jsx)(l.default,{to:"/docs/react/common-props",sourceType:"Link",children:m.texts[18].value})]}),(0,s.jsxs)("h3",{id:"menu",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#menu",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"Menu"]}),(0,s.jsxs)(a.default,{className:"component-api-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:m.texts[19].value}),(0,s.jsx)("th",{children:m.texts[20].value}),(0,s.jsx)("th",{children:m.texts[21].value}),(0,s.jsx)("th",{children:m.texts[22].value}),(0,s.jsx)("th",{children:m.texts[23].value})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[24].value}),(0,s.jsx)("td",{children:m.texts[25].value}),(0,s.jsx)("td",{children:m.texts[26].value}),(0,s.jsx)("td",{children:m.texts[27].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[28].value}),(0,s.jsx)("td",{children:m.texts[29].value}),(0,s.jsx)("td",{children:m.texts[30].value}),(0,s.jsx)("td",{children:m.texts[31].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[32].value}),(0,s.jsx)("td",{children:m.texts[33].value}),(0,s.jsxs)("td",{children:[m.texts[34].value,(0,s.jsx)("code",{children:m.texts[35].value})]}),(0,s.jsx)("td",{children:m.texts[36].value}),(0,s.jsx)("td",{children:m.texts[37].value})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[38].value}),(0,s.jsx)("td",{children:m.texts[39].value}),(0,s.jsx)("td",{children:m.texts[40].value}),(0,s.jsx)("td",{children:m.texts[41].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[42].value}),(0,s.jsx)("td",{children:m.texts[43].value}),(0,s.jsx)("td",{children:m.texts[44].value}),(0,s.jsx)("td",{children:m.texts[45].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[46].value}),(0,s.jsx)("td",{children:m.texts[47].value}),(0,s.jsx)("td",{children:m.texts[48].value}),(0,s.jsx)("td",{children:m.texts[49].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[50].value}),(0,s.jsx)("td",{children:m.texts[51].value}),(0,s.jsx)("td",{children:(0,s.jsx)(l.default,{to:"#itemtype",sourceType:"Link",children:m.texts[52].value})}),(0,s.jsx)("td",{children:m.texts[53].value}),(0,s.jsx)("td",{children:m.texts[54].value})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[55].value}),(0,s.jsx)("td",{children:m.texts[56].value}),(0,s.jsxs)("td",{children:[(0,s.jsx)("code",{children:m.texts[57].value}),m.texts[58].value,(0,s.jsx)("code",{children:m.texts[59].value}),m.texts[60].value,(0,s.jsx)("code",{children:m.texts[61].value})]}),(0,s.jsx)("td",{children:(0,s.jsx)("code",{children:m.texts[62].value})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[63].value}),(0,s.jsx)("td",{children:m.texts[64].value}),(0,s.jsx)("td",{children:m.texts[65].value}),(0,s.jsx)("td",{children:m.texts[66].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[67].value}),(0,s.jsx)("td",{children:m.texts[68].value}),(0,s.jsx)("td",{children:m.texts[69].value}),(0,s.jsx)("td",{children:m.texts[70].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[71].value}),(0,s.jsx)("td",{children:m.texts[72].value}),(0,s.jsx)("td",{children:m.texts[73].value}),(0,s.jsx)("td",{children:(0,s.jsx)("code",{children:m.texts[74].value})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[75].value}),(0,s.jsx)("td",{children:m.texts[76].value}),(0,s.jsx)("td",{children:m.texts[77].value}),(0,s.jsx)("td",{children:m.texts[78].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[79].value}),(0,s.jsx)("td",{children:m.texts[80].value}),(0,s.jsx)("td",{children:m.texts[81].value}),(0,s.jsx)("td",{children:m.texts[82].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[83].value}),(0,s.jsx)("td",{children:m.texts[84].value}),(0,s.jsx)("td",{children:m.texts[85].value}),(0,s.jsx)("td",{children:m.texts[86].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[87].value}),(0,s.jsx)("td",{children:m.texts[88].value}),(0,s.jsx)("td",{children:m.texts[89].value}),(0,s.jsx)("td",{children:m.texts[90].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[91].value}),(0,s.jsx)("td",{children:m.texts[92].value}),(0,s.jsx)("td",{children:m.texts[93].value}),(0,s.jsx)("td",{children:m.texts[94].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[95].value}),(0,s.jsx)("td",{children:m.texts[96].value}),(0,s.jsxs)("td",{children:[(0,s.jsx)("code",{children:m.texts[97].value}),m.texts[98].value,(0,s.jsx)("code",{children:m.texts[99].value})]}),(0,s.jsx)("td",{children:(0,s.jsx)("code",{children:m.texts[100].value})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[101].value}),(0,s.jsx)("td",{children:m.texts[102].value}),(0,s.jsxs)("td",{children:[(0,s.jsx)("code",{children:m.texts[103].value}),m.texts[104].value,(0,s.jsx)("code",{children:m.texts[105].value})]}),(0,s.jsx)("td",{children:(0,s.jsx)("code",{children:m.texts[106].value})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[107].value}),(0,s.jsx)("td",{children:m.texts[108].value}),(0,s.jsx)("td",{children:m.texts[109].value}),(0,s.jsx)("td",{children:m.texts[110].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[111].value}),(0,s.jsx)("td",{children:m.texts[112].value}),(0,s.jsx)("td",{children:m.texts[113].value}),(0,s.jsx)("td",{children:m.texts[114].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[115].value}),(0,s.jsx)("td",{children:m.texts[116].value}),(0,s.jsx)("td",{children:m.texts[117].value}),(0,s.jsx)("td",{children:m.texts[118].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[119].value}),(0,s.jsx)("td",{children:m.texts[120].value}),(0,s.jsx)("td",{children:m.texts[121].value}),(0,s.jsx)("td",{children:m.texts[122].value}),(0,s.jsx)("td",{})]})]})]}),(0,s.jsx)("blockquote",{children:(0,s.jsxs)("p",{children:[m.texts[123].value,(0,s.jsx)(l.default,{href:"https://github.com/react-component/menu#api",sourceType:"a",children:m.texts[124].value})]})}),(0,s.jsxs)("h3",{id:"itemtype",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#itemtype",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"ItemType"]}),(0,s.jsx)("blockquote",{children:(0,s.jsxs)("p",{children:[m.texts[125].value,(0,s.jsx)(l.default,{to:"#menuitemtype",sourceType:"Link",children:m.texts[126].value}),m.texts[127].value,(0,s.jsx)(l.default,{to:"#submenutype",sourceType:"Link",children:m.texts[128].value}),m.texts[129].value,(0,s.jsx)(l.default,{to:"#menuitemgrouptype",sourceType:"Link",children:m.texts[130].value}),m.texts[131].value,(0,s.jsx)(l.default,{to:"#menudividertype",sourceType:"Link",children:m.texts[132].value}),m.texts[133].value]})}),(0,s.jsxs)("h4",{id:"menuitemtype",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#menuitemtype",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"MenuItemType"]}),(0,s.jsxs)(a.default,{className:"component-api-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:m.texts[134].value}),(0,s.jsx)("th",{children:m.texts[135].value}),(0,s.jsx)("th",{children:m.texts[136].value}),(0,s.jsx)("th",{children:m.texts[137].value}),(0,s.jsx)("th",{children:m.texts[138].value})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[139].value}),(0,s.jsx)("td",{children:m.texts[140].value}),(0,s.jsx)("td",{children:m.texts[141].value}),(0,s.jsx)("td",{children:m.texts[142].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[143].value}),(0,s.jsx)("td",{children:m.texts[144].value}),(0,s.jsx)("td",{children:m.texts[145].value}),(0,s.jsx)("td",{children:m.texts[146].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[147].value}),(0,s.jsx)("td",{children:m.texts[148].value}),(0,s.jsx)("td",{children:m.texts[149].value}),(0,s.jsx)("td",{children:m.texts[150].value}),(0,s.jsx)("td",{children:m.texts[151].value})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[152].value}),(0,s.jsx)("td",{children:m.texts[153].value}),(0,s.jsx)("td",{children:m.texts[154].value}),(0,s.jsx)("td",{children:m.texts[155].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[156].value}),(0,s.jsx)("td",{children:m.texts[157].value}),(0,s.jsx)("td",{children:m.texts[158].value}),(0,s.jsx)("td",{children:m.texts[159].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[160].value}),(0,s.jsx)("td",{children:m.texts[161].value}),(0,s.jsx)("td",{children:m.texts[162].value}),(0,s.jsx)("td",{children:m.texts[163].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[164].value}),(0,s.jsx)("td",{children:m.texts[165].value}),(0,s.jsx)("td",{children:m.texts[166].value}),(0,s.jsx)("td",{children:m.texts[167].value}),(0,s.jsx)("td",{})]})]})]}),(0,s.jsxs)("h4",{id:"submenutype",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#submenutype",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"SubMenuType"]}),(0,s.jsxs)(a.default,{className:"component-api-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:m.texts[168].value}),(0,s.jsx)("th",{children:m.texts[169].value}),(0,s.jsx)("th",{children:m.texts[170].value}),(0,s.jsx)("th",{children:m.texts[171].value}),(0,s.jsx)("th",{children:m.texts[172].value})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[173].value}),(0,s.jsx)("td",{children:m.texts[174].value}),(0,s.jsx)("td",{children:(0,s.jsx)(l.default,{to:"#itemtype",sourceType:"Link",children:m.texts[175].value})}),(0,s.jsx)("td",{children:m.texts[176].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[177].value}),(0,s.jsx)("td",{children:m.texts[178].value}),(0,s.jsx)("td",{children:m.texts[179].value}),(0,s.jsx)("td",{children:m.texts[180].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[181].value}),(0,s.jsx)("td",{children:m.texts[182].value}),(0,s.jsx)("td",{children:m.texts[183].value}),(0,s.jsx)("td",{children:m.texts[184].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[185].value}),(0,s.jsx)("td",{children:m.texts[186].value}),(0,s.jsx)("td",{children:m.texts[187].value}),(0,s.jsx)("td",{children:m.texts[188].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[189].value}),(0,s.jsx)("td",{children:m.texts[190].value}),(0,s.jsx)("td",{children:m.texts[191].value}),(0,s.jsx)("td",{children:m.texts[192].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[193].value}),(0,s.jsxs)("td",{children:[m.texts[194].value,(0,s.jsx)("code",{children:m.texts[195].value}),m.texts[196].value]}),(0,s.jsx)("td",{children:m.texts[197].value}),(0,s.jsx)("td",{children:m.texts[198].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[199].value}),(0,s.jsxs)("td",{children:[m.texts[200].value,(0,s.jsx)("code",{children:m.texts[201].value}),m.texts[202].value]}),(0,s.jsx)("td",{children:m.texts[203].value}),(0,s.jsx)("td",{children:m.texts[204].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[205].value}),(0,s.jsx)("td",{children:m.texts[206].value}),(0,s.jsx)("td",{children:m.texts[207].value}),(0,s.jsx)("td",{children:m.texts[208].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[209].value}),(0,s.jsx)("td",{children:m.texts[210].value}),(0,s.jsxs)("td",{children:[(0,s.jsx)("code",{children:m.texts[211].value}),m.texts[212].value,(0,s.jsx)("code",{children:m.texts[213].value})]}),(0,s.jsx)("td",{children:m.texts[214].value}),(0,s.jsx)("td",{})]})]})]}),(0,s.jsxs)("h4",{id:"menuitemgrouptype",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#menuitemgrouptype",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"MenuItemGroupType"]}),(0,s.jsxs)("p",{children:[m.texts[215].value,(0,s.jsx)("code",{children:m.texts[216].value}),m.texts[217].value]}),(0,s.jsx)(i.default,{lang:"ts",children:m.texts[218].value}),(0,s.jsxs)(a.default,{className:"component-api-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:m.texts[219].value}),(0,s.jsx)("th",{children:m.texts[220].value}),(0,s.jsx)("th",{children:m.texts[221].value}),(0,s.jsx)("th",{children:m.texts[222].value}),(0,s.jsx)("th",{children:m.texts[223].value})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[224].value}),(0,s.jsx)("td",{children:m.texts[225].value}),(0,s.jsx)("td",{children:(0,s.jsx)(l.default,{to:"#menuitemtype",sourceType:"Link",children:m.texts[226].value})}),(0,s.jsx)("td",{children:m.texts[227].value}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[228].value}),(0,s.jsx)("td",{children:m.texts[229].value}),(0,s.jsx)("td",{children:m.texts[230].value}),(0,s.jsx)("td",{children:m.texts[231].value}),(0,s.jsx)("td",{})]})]})]}),(0,s.jsxs)("h4",{id:"menudividertype",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#menudividertype",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"MenuDividerType"]}),(0,s.jsxs)("p",{children:[m.texts[232].value,(0,s.jsx)("code",{children:m.texts[233].value}),m.texts[234].value]}),(0,s.jsx)(i.default,{lang:"ts",children:m.texts[235].value}),(0,s.jsxs)(a.default,{className:"component-api-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:m.texts[236].value}),(0,s.jsx)("th",{children:m.texts[237].value}),(0,s.jsx)("th",{children:m.texts[238].value}),(0,s.jsx)("th",{children:m.texts[239].value}),(0,s.jsx)("th",{children:m.texts[240].value})]})}),(0,s.jsx)("tbody",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:m.texts[241].value}),(0,s.jsx)("td",{children:m.texts[242].value}),(0,s.jsx)("td",{children:m.texts[243].value}),(0,s.jsx)("td",{children:m.texts[244].value}),(0,s.jsx)("td",{})]})})]}),(0,s.jsxs)("h2",{id:"faq",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#faq",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"FAQ"]}),(0,s.jsxs)("h3",{id:"\u4E3A\u4F55-menu-\u7684\u5B50\u5143\u7D20\u4F1A\u6E32\u67D3\u4E24\u6B21",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u4E3A\u4F55-menu-\u7684\u5B50\u5143\u7D20\u4F1A\u6E32\u67D3\u4E24\u6B21",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u4E3A\u4F55 Menu \u7684\u5B50\u5143\u7D20\u4F1A\u6E32\u67D3\u4E24\u6B21\uFF1F"]}),(0,s.jsxs)("p",{children:[m.texts[245].value,(0,s.jsx)(l.default,{href:"https://github.com/react-component/menu/blob/f4684514096d6b7123339cbe72e7b0f68db0bce2/src/Menu.tsx#L543",sourceType:"a",children:m.texts[246].value}),m.texts[247].value]}),(0,s.jsxs)("h3",{id:"\u5728-flex-\u5E03\u5C40\u4E2Dmenu-\u6CA1\u6709\u6309\u7167\u9884\u671F\u54CD\u5E94\u5F0F\u7701\u7565\u83DC\u5355",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u5728-flex-\u5E03\u5C40\u4E2Dmenu-\u6CA1\u6709\u6309\u7167\u9884\u671F\u54CD\u5E94\u5F0F\u7701\u7565\u83DC\u5355",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u5728 Flex \u5E03\u5C40\u4E2D\uFF0CMenu \u6CA1\u6709\u6309\u7167\u9884\u671F\u54CD\u5E94\u5F0F\u7701\u7565\u83DC\u5355\uFF1F"]}),(0,s.jsxs)("p",{children:[m.texts[248].value,(0,s.jsx)(l.default,{href:"https://codesandbox.io/s/ding-bu-dao-hang-antd-4-21-7-forked-5e3imy?file=/demo.js",sourceType:"a",children:m.texts[249].value}),m.texts[250].value]}),(0,s.jsx)(i.default,{lang:"jsx",children:m.texts[251].value}),(0,s.jsxs)("h2",{id:"\u4E3B\u9898\u53D8\u91CFdesign-token",children:[(0,s.jsx)(l.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u4E3B\u9898\u53D8\u91CFdesign-token",sourceType:"a",children:(0,s.jsx)("span",{className:"icon icon-link"})}),"\u4E3B\u9898\u53D8\u91CF\uFF08Design Token\uFF09"]})]}),(0,s.jsx)(c.default,{component:"Menu"})]})})});};},"8da9a8fb":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"texts",{enumerable:!0,get:function(){return r;}}),n("ac9e524f");let r=[{value:"\u5BFC\u822A\u83DC\u5355\u662F\u4E00\u4E2A\u7F51\u7AD9\u7684\u7075\u9B42\uFF0C\u7528\u6237\u4F9D\u8D56\u5BFC\u822A\u5728\u5404\u4E2A\u9875\u9762\u4E2D\u8FDB\u884C\u8DF3\u8F6C\u3002\u4E00\u822C\u5206\u4E3A\u9876\u90E8\u5BFC\u822A\u548C\u4FA7\u8FB9\u5BFC\u822A\uFF0C\u9876\u90E8\u5BFC\u822A\u63D0\u4F9B\u5168\u5C40\u6027\u7684\u7C7B\u76EE\u548C\u529F\u80FD\uFF0C\u4FA7\u8FB9\u5BFC\u822A\u63D0\u4F9B\u591A\u7EA7\u7ED3\u6784\u6765\u6536\u7EB3\u548C\u6392\u5217\u7F51\u7AD9\u67B6\u6784\u3002",paraId:0,tocIndex:0},{value:"\u66F4\u591A\u5E03\u5C40\u548C\u5BFC\u822A\u7684\u4F7F\u7528\u53EF\u4EE5\u53C2\u8003\uFF1A",paraId:1,tocIndex:0},{value:"\u901A\u7528\u5E03\u5C40",paraId:2,tocIndex:0},{value:"\u3002",paraId:1,tocIndex:0},{value:"Menu \u5143\u7D20\u4E3A ",paraId:3,tocIndex:1},{value:"ul",paraId:3,tocIndex:1},{value:"\uFF0C\u56E0\u800C\u4EC5\u652F\u6301 ",paraId:3,tocIndex:1},{value:"li",paraId:3,tocIndex:1},{value:" \u4EE5\u53CA ",paraId:3,tocIndex:1},{value:"script-supporting",paraId:3,tocIndex:1},{value:" \u5B50\u5143\u7D20",paraId:3,tocIndex:1},{value:"\u3002\u56E0\u800C\u4F60\u7684\u5B50\u8282\u70B9\u5143\u7D20\u5E94\u8BE5\u90FD\u5728 ",paraId:3,tocIndex:1},{value:"Menu.Item",paraId:3,tocIndex:1},{value:" \u5185\u4F7F\u7528\u3002",paraId:3,tocIndex:1},{value:"Menu \u9700\u8981\u8BA1\u7B97\u8282\u70B9\u7ED3\u6784\uFF0C\u56E0\u800C\u5176\u5B50\u5143\u7D20\u4EC5\u652F\u6301 ",paraId:3,tocIndex:1},{value:"Menu.*",paraId:3,tocIndex:1},{value:" \u4EE5\u53CA\u5BF9\u6B64\u8FDB\u884C\u5C01\u88C5\u7684 HOC \u7EC4\u4EF6\u3002",paraId:3,tocIndex:1},{value:"\u901A\u7528\u5C5E\u6027\u53C2\u8003\uFF1A",paraId:4,tocIndex:16},{value:"\u901A\u7528\u5C5E\u6027",paraId:5,tocIndex:16},{value:"\u53C2\u6570",paraId:6,tocIndex:17},{value:"\u8BF4\u660E",paraId:6,tocIndex:17},{value:"\u7C7B\u578B",paraId:6,tocIndex:17},{value:"\u9ED8\u8BA4\u503C",paraId:6,tocIndex:17},{value:"\u7248\u672C",paraId:6,tocIndex:17},{value:"defaultOpenKeys",paraId:6,tocIndex:17},{value:"\u521D\u59CB\u5C55\u5F00\u7684 SubMenu \u83DC\u5355\u9879 key \u6570\u7EC4",paraId:6,tocIndex:17},{value:"string[]",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"defaultSelectedKeys",paraId:6,tocIndex:17},{value:"\u521D\u59CB\u9009\u4E2D\u7684\u83DC\u5355\u9879 key \u6570\u7EC4",paraId:6,tocIndex:17},{value:"string[]",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"expandIcon",paraId:6,tocIndex:17},{value:"\u81EA\u5B9A\u4E49\u5C55\u5F00\u56FE\u6807",paraId:6,tocIndex:17},{value:"ReactNode | ",paraId:6,tocIndex:17},{value:"(props: SubMenuProps & { isSubMenu: boolean }) => ReactNode",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"4.9.0",paraId:6,tocIndex:17},{value:"forceSubMenuRender",paraId:6,tocIndex:17},{value:"\u5728\u5B50\u83DC\u5355\u5C55\u793A\u4E4B\u524D\u5C31\u6E32\u67D3\u8FDB DOM",paraId:6,tocIndex:17},{value:"boolean",paraId:6,tocIndex:17},{value:"false",paraId:6,tocIndex:17},{value:"inlineCollapsed",paraId:6,tocIndex:17},{value:"inline \u65F6\u83DC\u5355\u662F\u5426\u6536\u8D77\u72B6\u6001",paraId:6,tocIndex:17},{value:"boolean",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"inlineIndent",paraId:6,tocIndex:17},{value:"inline \u6A21\u5F0F\u7684\u83DC\u5355\u7F29\u8FDB\u5BBD\u5EA6",paraId:6,tocIndex:17},{value:"number",paraId:6,tocIndex:17},{value:"24",paraId:6,tocIndex:17},{value:"items",paraId:6,tocIndex:17},{value:"\u83DC\u5355\u5185\u5BB9",paraId:6,tocIndex:17},{value:"ItemType[]",paraId:7,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"4.20.0",paraId:6,tocIndex:17},{value:"mode",paraId:6,tocIndex:17},{value:"\u83DC\u5355\u7C7B\u578B\uFF0C\u73B0\u5728\u652F\u6301\u5782\u76F4\u3001\u6C34\u5E73\u3001\u548C\u5185\u5D4C\u6A21\u5F0F\u4E09\u79CD",paraId:6,tocIndex:17},{value:"vertical",paraId:6,tocIndex:17},{value:" | ",paraId:6,tocIndex:17},{value:"horizontal",paraId:6,tocIndex:17},{value:" | ",paraId:6,tocIndex:17},{value:"inline",paraId:6,tocIndex:17},{value:"vertical",paraId:6,tocIndex:17},{value:"multiple",paraId:6,tocIndex:17},{value:"\u662F\u5426\u5141\u8BB8\u591A\u9009",paraId:6,tocIndex:17},{value:"boolean",paraId:6,tocIndex:17},{value:"false",paraId:6,tocIndex:17},{value:"openKeys",paraId:6,tocIndex:17},{value:"\u5F53\u524D\u5C55\u5F00\u7684 SubMenu \u83DC\u5355\u9879 key \u6570\u7EC4",paraId:6,tocIndex:17},{value:"string[]",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"overflowedIndicator",paraId:6,tocIndex:17},{value:"\u7528\u4E8E\u81EA\u5B9A\u4E49 Menu \u6C34\u5E73\u7A7A\u95F4\u4E0D\u8DB3\u65F6\u7684\u7701\u7565\u6536\u7F29\u7684\u56FE\u6807",paraId:6,tocIndex:17},{value:"ReactNode",paraId:6,tocIndex:17},{value:"<EllipsisOutlined />",paraId:6,tocIndex:17},{value:"selectable",paraId:6,tocIndex:17},{value:"\u662F\u5426\u5141\u8BB8\u9009\u4E2D",paraId:6,tocIndex:17},{value:"boolean",paraId:6,tocIndex:17},{value:"true",paraId:6,tocIndex:17},{value:"selectedKeys",paraId:6,tocIndex:17},{value:"\u5F53\u524D\u9009\u4E2D\u7684\u83DC\u5355\u9879 key \u6570\u7EC4",paraId:6,tocIndex:17},{value:"string[]",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"style",paraId:6,tocIndex:17},{value:"\u6839\u8282\u70B9\u6837\u5F0F",paraId:6,tocIndex:17},{value:"CSSProperties",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"subMenuCloseDelay",paraId:6,tocIndex:17},{value:"\u7528\u6237\u9F20\u6807\u79BB\u5F00\u5B50\u83DC\u5355\u540E\u5173\u95ED\u5EF6\u65F6\uFF0C\u5355\u4F4D\uFF1A\u79D2",paraId:6,tocIndex:17},{value:"number",paraId:6,tocIndex:17},{value:"0.1",paraId:6,tocIndex:17},{value:"subMenuOpenDelay",paraId:6,tocIndex:17},{value:"\u7528\u6237\u9F20\u6807\u8FDB\u5165\u5B50\u83DC\u5355\u540E\u5F00\u542F\u5EF6\u65F6\uFF0C\u5355\u4F4D\uFF1A\u79D2",paraId:6,tocIndex:17},{value:"number",paraId:6,tocIndex:17},{value:"0",paraId:6,tocIndex:17},{value:"theme",paraId:6,tocIndex:17},{value:"\u4E3B\u9898\u989C\u8272",paraId:6,tocIndex:17},{value:"light",paraId:6,tocIndex:17},{value:" | ",paraId:6,tocIndex:17},{value:"dark",paraId:6,tocIndex:17},{value:"light",paraId:6,tocIndex:17},{value:"triggerSubMenuAction",paraId:6,tocIndex:17},{value:"SubMenu \u5C55\u5F00/\u5173\u95ED\u7684\u89E6\u53D1\u884C\u4E3A",paraId:6,tocIndex:17},{value:"hover",paraId:6,tocIndex:17},{value:" | ",paraId:6,tocIndex:17},{value:"click",paraId:6,tocIndex:17},{value:"hover",paraId:6,tocIndex:17},{value:"onClick",paraId:6,tocIndex:17},{value:"\u70B9\u51FB MenuItem \u8C03\u7528\u6B64\u51FD\u6570",paraId:6,tocIndex:17},{value:"function({ item, key, keyPath, domEvent })",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"onDeselect",paraId:6,tocIndex:17},{value:"\u53D6\u6D88\u9009\u4E2D\u65F6\u8C03\u7528\uFF0C\u4EC5\u5728 multiple \u751F\u6548",paraId:6,tocIndex:17},{value:"function({ item, key, keyPath, selectedKeys, domEvent })",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"onOpenChange",paraId:6,tocIndex:17},{value:"SubMenu \u5C55\u5F00/\u5173\u95ED\u7684\u56DE\u8C03",paraId:6,tocIndex:17},{value:"function(openKeys: string[])",paraId:6,tocIndex:17},{value:"-",paraId:6,tocIndex:17},{value:"onSelect",paraId:6,tocIndex:17},{value:"\u88AB\u9009\u4E2D\u65F6\u8C03\u7528",paraId:6,tocIndex:17},{value:"function({ item, key, keyPath, selectedKeys, domEvent })",paraId:6,tocIndex:17},{value:"- \xa0",paraId:6,tocIndex:17},{value:"\u66F4\u591A\u5C5E\u6027\u67E5\u770B ",paraId:8,tocIndex:17},{value:"rc-menu",paraId:8,tocIndex:17},{value:"type ItemType = ",paraId:9,tocIndex:18},{value:"MenuItemType",paraId:10,tocIndex:18},{value:" | ",paraId:9,tocIndex:18},{value:"SubMenuType",paraId:11,tocIndex:18},{value:" | ",paraId:9,tocIndex:18},{value:"MenuItemGroupType",paraId:12,tocIndex:18},{value:" | ",paraId:9,tocIndex:18},{value:"MenuDividerType",paraId:13,tocIndex:18},{value:";",paraId:9,tocIndex:18},{value:"\u53C2\u6570",paraId:14,tocIndex:19},{value:"\u8BF4\u660E",paraId:14,tocIndex:19},{value:"\u7C7B\u578B",paraId:14,tocIndex:19},{value:"\u9ED8\u8BA4\u503C",paraId:14,tocIndex:19},{value:"\u7248\u672C",paraId:14,tocIndex:19},{value:"danger",paraId:14,tocIndex:19},{value:"\u5C55\u793A\u9519\u8BEF\u72B6\u6001\u6837\u5F0F",paraId:14,tocIndex:19},{value:"boolean",paraId:14,tocIndex:19},{value:"false",paraId:14,tocIndex:19},{value:"disabled",paraId:14,tocIndex:19},{value:"\u662F\u5426\u7981\u7528",paraId:14,tocIndex:19},{value:"boolean",paraId:14,tocIndex:19},{value:"false",paraId:14,tocIndex:19},{value:"extra",paraId:14,tocIndex:19},{value:"\u989D\u5916\u8282\u70B9",paraId:14,tocIndex:19},{value:"ReactNode",paraId:14,tocIndex:19},{value:"-",paraId:14,tocIndex:19},{value:"5.21.0",paraId:14,tocIndex:19},{value:"icon",paraId:14,tocIndex:19},{value:"\u83DC\u5355\u56FE\u6807",paraId:14,tocIndex:19},{value:"ReactNode",paraId:14,tocIndex:19},{value:"-",paraId:14,tocIndex:19},{value:"key",paraId:14,tocIndex:19},{value:"item \u7684\u552F\u4E00\u6807\u5FD7",paraId:14,tocIndex:19},{value:"string",paraId:14,tocIndex:19},{value:"-",paraId:14,tocIndex:19},{value:"label",paraId:14,tocIndex:19},{value:"\u83DC\u5355\u9879\u6807\u9898",paraId:14,tocIndex:19},{value:"ReactNode",paraId:14,tocIndex:19},{value:"-",paraId:14,tocIndex:19},{value:"title",paraId:14,tocIndex:19},{value:"\u8BBE\u7F6E\u6536\u7F29\u65F6\u5C55\u793A\u7684\u60AC\u6D6E\u6807\u9898",paraId:14,tocIndex:19},{value:"string",paraId:14,tocIndex:19},{value:"-",paraId:14,tocIndex:19},{value:"\u53C2\u6570",paraId:15,tocIndex:20},{value:"\u8BF4\u660E",paraId:15,tocIndex:20},{value:"\u7C7B\u578B",paraId:15,tocIndex:20},{value:"\u9ED8\u8BA4\u503C",paraId:15,tocIndex:20},{value:"\u7248\u672C",paraId:15,tocIndex:20},{value:"children",paraId:15,tocIndex:20},{value:"\u5B50\u83DC\u5355\u7684\u83DC\u5355\u9879",paraId:15,tocIndex:20},{value:"ItemType[]",paraId:16,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"disabled",paraId:15,tocIndex:20},{value:"\u662F\u5426\u7981\u7528",paraId:15,tocIndex:20},{value:"boolean",paraId:15,tocIndex:20},{value:"false",paraId:15,tocIndex:20},{value:"icon",paraId:15,tocIndex:20},{value:"\u83DC\u5355\u56FE\u6807",paraId:15,tocIndex:20},{value:"ReactNode",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"key",paraId:15,tocIndex:20},{value:"\u552F\u4E00\u6807\u5FD7",paraId:15,tocIndex:20},{value:"string",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"label",paraId:15,tocIndex:20},{value:"\u83DC\u5355\u9879\u6807\u9898",paraId:15,tocIndex:20},{value:"ReactNode",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"popupClassName",paraId:15,tocIndex:20},{value:"\u5B50\u83DC\u5355\u6837\u5F0F\uFF0C",paraId:15,tocIndex:20},{value:'mode="inline"',paraId:15,tocIndex:20},{value:" \u65F6\u65E0\u6548",paraId:15,tocIndex:20},{value:"string",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"popupOffset",paraId:15,tocIndex:20},{value:"\u5B50\u83DC\u5355\u504F\u79FB\u91CF\uFF0C",paraId:15,tocIndex:20},{value:'mode="inline"',paraId:15,tocIndex:20},{value:" \u65F6\u65E0\u6548",paraId:15,tocIndex:20},{value:"[number, number]",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"onTitleClick",paraId:15,tocIndex:20},{value:"\u70B9\u51FB\u5B50\u83DC\u5355\u6807\u9898",paraId:15,tocIndex:20},{value:"function({ key, domEvent })",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"theme",paraId:15,tocIndex:20},{value:"\u8BBE\u7F6E\u5B50\u83DC\u5355\u7684\u4E3B\u9898\uFF0C\u9ED8\u8BA4\u4ECE Menu \u4E0A\u7EE7\u627F",paraId:15,tocIndex:20},{value:"light",paraId:15,tocIndex:20},{value:" | ",paraId:15,tocIndex:20},{value:"dark",paraId:15,tocIndex:20},{value:"-",paraId:15,tocIndex:20},{value:"\u5B9A\u4E49\u7C7B\u578B\u4E3A ",paraId:17,tocIndex:21},{value:"group",paraId:17,tocIndex:21},{value:" \u65F6\uFF0C\u4F1A\u4F5C\u4E3A\u5206\u7EC4\u5904\u7406:",paraId:17,tocIndex:21},{value:"const groupItem = {\n type: 'group', // Must have\n label: 'My Group',\n children: [],\n};\n",paraId:18,tocIndex:21},{value:"\u53C2\u6570",paraId:19,tocIndex:21},{value:"\u8BF4\u660E",paraId:19,tocIndex:21},{value:"\u7C7B\u578B",paraId:19,tocIndex:21},{value:"\u9ED8\u8BA4\u503C",paraId:19,tocIndex:21},{value:"\u7248\u672C",paraId:19,tocIndex:21},{value:"children",paraId:19,tocIndex:21},{value:"\u5206\u7EC4\u7684\u83DC\u5355\u9879",paraId:19,tocIndex:21},{value:"MenuItemType[]",paraId:20,tocIndex:21},{value:"-",paraId:19,tocIndex:21},{value:"label",paraId:19,tocIndex:21},{value:"\u5206\u7EC4\u6807\u9898",paraId:19,tocIndex:21},{value:"ReactNode",paraId:19,tocIndex:21},{value:"-",paraId:19,tocIndex:21},{value:"\u83DC\u5355\u9879\u5206\u5272\u7EBF\uFF0C\u53EA\u7528\u5728\u5F39\u51FA\u83DC\u5355\u5185\uFF0C\u9700\u8981\u5B9A\u4E49\u7C7B\u578B\u4E3A ",paraId:21,tocIndex:22},{value:"divider",paraId:21,tocIndex:22},{value:"\uFF1A",paraId:21,tocIndex:22},{value:"const dividerItem = {\n type: 'divider', // Must have\n};\n",paraId:22,tocIndex:22},{value:"\u53C2\u6570",paraId:23,tocIndex:22},{value:"\u8BF4\u660E",paraId:23,tocIndex:22},{value:"\u7C7B\u578B",paraId:23,tocIndex:22},{value:"\u9ED8\u8BA4\u503C",paraId:23,tocIndex:22},{value:"\u7248\u672C",paraId:23,tocIndex:22},{value:"dashed",paraId:23,tocIndex:22},{value:"\u662F\u5426\u865A\u7EBF",paraId:23,tocIndex:22},{value:"boolean",paraId:23,tocIndex:22},{value:"false",paraId:23,tocIndex:22},{value:"Menu \u901A\u8FC7",paraId:24,tocIndex:24},{value:"\u4E8C\u6B21\u6E32\u67D3",paraId:24,tocIndex:24},{value:"\u6536\u96C6\u5D4C\u5957\u7ED3\u6784\u4FE1\u606F\u4EE5\u652F\u6301 HOC \u7684\u7ED3\u6784\u3002\u5408\u5E76\u6210\u4E00\u4E2A\u63A8\u5BFC\u7ED3\u6784\u4F1A\u4F7F\u5F97\u903B\u8F91\u53D8\u5F97\u5341\u5206\u590D\u6742\uFF0C\u6B22\u8FCE PR \u4EE5\u534F\u52A9\u6539\u8FDB\u8BE5\u8BBE\u8BA1\u3002",paraId:24,tocIndex:24},{value:"Menu \u521D\u59CB\u5316\u65F6\u4F1A\u5148\u5168\u90E8\u6E32\u67D3\uFF0C\u7136\u540E\u6839\u636E\u5BBD\u5EA6\u88C1\u526A\u5185\u5BB9\u3002\u5F53\u5904\u4E8E Flex \u5E03\u5C40\u4E2D\uFF0C\u4F60\u9700\u8981\u544A\u77E5\u5176\u9884\u671F\u5BBD\u5EA6\u4E3A\u54CD\u5E94\u5F0F\u5BBD\u5EA6\uFF08",paraId:25,tocIndex:25},{value:"\u5728\u7EBF Demo",paraId:25,tocIndex:25},{value:"\uFF09\uFF1A",paraId:25,tocIndex:25},{value:'<div style={{ flex }}>\n <div style={{ ... }}>Some Content</div>\n <Menu style={{ minWidth: 0, flex: "auto" }} />\n</div>\n',paraId:26,tocIndex:25}];}}]); |