From 566632efa3620fdafe8758db52b4998bb9f85ea7 Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 20 Apr 2022 19:03:39 +0800 Subject: [PATCH] docs: Update Menu demo sample --- components/menu/demo/submenu-theme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/menu/demo/submenu-theme.md b/components/menu/demo/submenu-theme.md index abffac8f7f..5a3623b337 100755 --- a/components/menu/demo/submenu-theme.md +++ b/components/menu/demo/submenu-theme.md @@ -7,11 +7,11 @@ title: ## zh-CN -内建了两套主题 `light` 和 `dark`,默认 `light`。 +你可以通过 `theme` 属性来设置 SubMenu 的主题从而达到不同目录树下不同主题色的效果。该例子默认为根目录深色,子目录浅色效果。 ## en-US -The Sub-menu will inherit the theme of `Menu`, but you can override this at the `SubMenu` level via the `theme` prop. +You can config SubMenu theme with `theme` prop to enable different theme color effect. This sample is dark for root and light for SubMenu. ```tsx import { Menu, Switch, MenuProps } from 'antd';