Browse Source

docs: Update Demo icon (#22100)

pull/22104/head
二货机器人 5 years ago
committed by GitHub
parent
commit
698d358af9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      components/menu/__tests__/__snapshots__/demo.test.js.snap
  2. 4
      components/menu/demo/inline-collapsed.md

10
components/menu/__tests__/__snapshots__/demo.test.js.snap

@ -503,22 +503,22 @@ exports[`renders ./components/menu/demo/inline-collapsed.md correctly 1`] = `
style="padding-left:24px"
>
<span
aria-label="inbox"
class="anticon anticon-inbox"
aria-label="container"
class="anticon anticon-container"
role="img"
>
<svg
aria-hidden="true"
class=""
data-icon="inbox"
data-icon="container"
fill="currentColor"
focusable="false"
height="1em"
viewBox="0 0 1024 1024"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"
d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"
/>
</svg>
</span>

4
components/menu/demo/inline-collapsed.md

@ -25,7 +25,7 @@ import {
MenuFoldOutlined,
PieChartOutlined,
DesktopOutlined,
InboxOutlined,
ContainerOutlined,
MailOutlined,
} from '@ant-design/icons';
@ -64,7 +64,7 @@ class App extends React.Component {
<span>Option 2</span>
</Menu.Item>
<Menu.Item key="3">
<InboxOutlined />
<ContainerOutlined />
<span>Option 3</span>
</Menu.Item>
<SubMenu

Loading…
Cancel
Save