mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [menu] add missing popper-style prop to sub-menu (#22890)
This commit is contained in:
@@ -122,19 +122,20 @@ menu/popper-offset
|
||||
|
||||
### SubMenu Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | --------- |
|
||||
| index ^(required) | unique identification | ^[string] | — |
|
||||
| popper-class | custom class name for the popup menu | ^[string] | — |
|
||||
| show-timeout | timeout before showing a sub-menu(inherit `show-timeout` of the menu by default.) | ^[number] | — |
|
||||
| hide-timeout | timeout before hiding a sub-menu(inherit `hide-timeout` of the menu by default.) | ^[number] | — |
|
||||
| disabled | whether the sub-menu is disabled | ^[boolean] | false |
|
||||
| teleported | whether popup menu is teleported to the body, the default is true for the level one SubMenu, false for other SubMenus | ^[boolean] | undefined |
|
||||
| popper-offset | offset of the popper (overrides the `popper` of menu) | ^[number] | — |
|
||||
| expand-close-icon | Icon when menu are expanded and submenu are closed, `expand-close-icon` and `expand-open-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| expand-open-icon | Icon when menu are expanded and submenu are opened, `expand-open-icon` and `expand-close-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| collapse-close-icon | Icon when menu are collapsed and submenu are closed, `collapse-close-icon` and `collapse-open-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| collapse-open-icon | Icon when menu are collapsed and submenu are opened, `collapse-open-icon` and `collapse-close-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| Name | Description | Type | Default |
|
||||
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | --------- |
|
||||
| index ^(required) | unique identification | ^[string] | — |
|
||||
| popper-class | custom class name for the popup menu | ^[string] | — |
|
||||
| popper-style ^(2.11.5) | custom style for the popup menu | ^[string] / ^[object] | — |
|
||||
| show-timeout | timeout before showing a sub-menu(inherit `show-timeout` of the menu by default.) | ^[number] | — |
|
||||
| hide-timeout | timeout before hiding a sub-menu(inherit `hide-timeout` of the menu by default.) | ^[number] | — |
|
||||
| disabled | whether the sub-menu is disabled | ^[boolean] | false |
|
||||
| teleported | whether popup menu is teleported to the body, the default is true for the level one SubMenu, false for other SubMenus | ^[boolean] | undefined |
|
||||
| popper-offset | offset of the popper (overrides the `popper` of menu) | ^[number] | — |
|
||||
| expand-close-icon | Icon when menu are expanded and submenu are closed, `expand-close-icon` and `expand-open-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| expand-open-icon | Icon when menu are expanded and submenu are opened, `expand-open-icon` and `expand-close-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| collapse-close-icon | Icon when menu are collapsed and submenu are closed, `collapse-close-icon` and `collapse-open-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
| collapse-open-icon | Icon when menu are collapsed and submenu are opened, `collapse-open-icon` and `collapse-close-icon` need to be passed together to take effect | ^[string] / ^[Component] | — |
|
||||
|
||||
### SubMenu Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user