diff --git a/packages/devui-vue/docs/en-US/components/menu/index.md b/packages/devui-vue/docs/en-US/components/menu/index.md index 6eeca666db..a7c5547142 100644 --- a/packages/devui-vue/docs/en-US/components/menu/index.md +++ b/packages/devui-vue/docs/en-US/components/menu/index.md @@ -34,9 +34,17 @@ If the screen size is too small, an ellipsis appears. - ``` @@ -133,43 +141,53 @@ You can modify the expanded submenu items by setting 'open keys' :::demo ```vue - - Collapsed - - ``` @@ -340,15 +358,37 @@ eg. `width`, `open-keys`, `default-select-keys` - ``` @@ -358,10 +398,10 @@ const changeDisabled = () => { | Attribute | Type | Default Value | Description | Demo | | ------------------- | --------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | -| width | String | '' | Used to control menu width | [Reactivity-Attribute](#Reactivity-Attribute) | -| collapsed | Boolean | false | Used to decide whether to collapse the menu | [Collapsed](#Collapsed) | -| collapsed-indent | Number | 24 | The distance between the starting icon and the left and right borders | [Collapsed](#Collapsed) | -| multiple | Boolean | false | Can I select more than one | [Deselect](#Deselect) | +| width | String | '' | Used to control menu width | [Reactivity-Attribute](#reactivity-attribute) | +| collapsed | Boolean | false | Used to decide whether to collapse the menu | [Collapsed](#collapsed) | +| collapsed-indent | Number | 24 | The distance between the starting icon and the left and right borders | [Collapsed](#collapsed) | +| multiple | Boolean | false | Can I select more than one | [Deselect](#deselect) | | mode | [menuMode](#menumode) | 'vertical' | menu type | [Basic-Use](#Basic-Use) | | open-keys | Array | [] | default open key of menu item | [默认展开](#默认展开) | | default-select-keys | Array | [] | default select key of menu item item | [Basic-Use](#Basic-Use) | @@ -371,9 +411,9 @@ const changeDisabled = () => { | Event | Type | Description | Demo | | -------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | --------------------- | -| select | `(e: {type: 'select', key: string, el: HTMLElement, e: PointerEvent})=>void` | if select will trigger this event. if is disabled will not trigger | [Deselect](#Deselect) | -| deselect | `(e: {type: 'deselect', key: string, el: HTMLElement, e: PointerEvent})=>void` | This event will be triggered when deselecting. If the menu is not multi select, it will not be triggered | [Deselect](#Deselect) | -| submenu-change | `(e: {type: 'submenu-change', state: boolean, key: string, el: HTMLElement})=>void` | Triggered when the submenu state is changed | [Deselect](#Deselect) | +| select | `(e: {type: 'select', key: string, el: HTMLElement, e: PointerEvent})=>void` | if select will trigger this event. if is disabled will not trigger | [Deselect](#deselect) | +| deselect | `(e: {type: 'deselect', key: string, el: HTMLElement, e: PointerEvent})=>void` | This event will be triggered when deselecting. If the menu is not multi select, it will not be triggered | [Deselect](#deselect) | +| submenu-change | `(e: {type: 'submenu-change', state: boolean, key: string, el: HTMLElement})=>void` | Triggered when the submenu state is changed | [Deselect](#deselect) | ### d-menu-item