From bcbfca9614f10860e37d0c47de966cb89cea8942 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Fri, 23 Jul 2021 23:23:25 +0800 Subject: [PATCH] docs(menu): api table (#613) --- src/menu/demos/enUS/index.demo-entry.md | 4 ++-- src/menu/demos/zhCN/index.demo-entry.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/demos/enUS/index.demo-entry.md b/src/menu/demos/enUS/index.demo-entry.md index 926506aab..7f7ec79ef 100644 --- a/src/menu/demos/enUS/index.demo-entry.md +++ b/src/menu/demos/enUS/index.demo-entry.md @@ -26,9 +26,9 @@ long-label | collapsed-icon-size | `number` | `24` | The icon size when menu is collapsed. If not set, menu will use `icon-size` in place of it. | | collapsed-width | `number` | `48` | The menu width after collapsed. | | collapsed | `boolean` | `false` | The collapsed status of menu, only works when menu is vertical. | -| default-expand-all | `boolean` | `false` | | +| default-expand-all | `boolean` | `false` | Whether to expand all menus. | | default-expanded-keys | `Array` | `[]` | The default expanded submenu keys of menu in uncontrolled manner. | -| default-value | `string \| null` | `null` | | +| default-value | `string \| null` | `null` | Whether selected by default in uncontrolled mode. | | dropdown-placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| ` | `'top'` | Only effective in horizontal mode. | | expanded-keys | `Array` | `undefined` | The expanded submenu keys. If set, menu will work in controlled manner and `default-expanded-names` won't work. | | icon-size | `number` | `20` | The icon size when menu is not collapsed. | diff --git a/src/menu/demos/zhCN/index.demo-entry.md b/src/menu/demos/zhCN/index.demo-entry.md index 1f5de9933..1d9296f50 100644 --- a/src/menu/demos/zhCN/index.demo-entry.md +++ b/src/menu/demos/zhCN/index.demo-entry.md @@ -26,9 +26,9 @@ long-label | collapsed-icon-size | `number` | `24` | 菜单折叠时图标的大小,如果为设定则使用 `icon-size` 代替 | | collapsed-width | `number` | `48` | 折叠后菜单的宽度 | | collapsed | `boolean` | `false` | 菜单是否折叠,值在菜单为垂直时有用 | -| default-expand-all | `boolean` | `false` | | +| default-expand-all | `boolean` | `false` | 是否展开全部菜单 | | default-expanded-keys | `Array` | `[]` | 在非受控状态下默认展开的子菜单标识符数组 | -| default-value | `string \| null` | `null` | | +| default-value | `string \| null` | `null` | 非受控模式下的默认值 | | dropdown-placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| ` | `'top'` | 仅在 `mode='horizontal'` 模式下生效 | | expanded-keys | `Array` | `undefined` | 展开的子菜单标识符数组,如果设定了,菜单的展开将会进入受控状态,`default-expanded-keys` 不会生效 | | icon-size | `number` | `20` | 菜单未折叠时图标的大小 |