docs: [menu] fix descriptions for deprecated attributes (#17752)

Fix descriptions for deprecated attributes for Menu component

'--bg-color', '--text-color' and '--active-color' do nothing during styling, because the corrent name is '--el-menu-bg-color' and etc.

Description is corrected and expanded.
This commit is contained in:
Dan Sotnik 2024-08-02 10:04:12 -04:00 committed by GitHub
parent 333e1f9c42
commit 9a6c8021bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,9 +72,9 @@ menu/popper-offset
| ellipsis | whether the menu is ellipsis (available only in horizontal mode) | ^[boolean] | true |
| ellipsis-icon ^(2.4.4) | custom ellipsis icon (available only in horizontal mode and ellipsis is true) | ^[string] / ^[Component] | — |
| popper-offset ^(2.4.4) | offset of the popper (effective for all submenus) | ^[number] | 6 |
| background-color ^(deprecated) | background color of Menu (hex format) (deprecated, use `--bg-color` instead) | ^[string] | #ffffff |
| text-color ^(deprecated) | text color of Menu (hex format) (deprecated, use `--text-color` instead) | ^[string] | #303133 |
| active-text-color ^(deprecated) | text color of currently active menu item (hex format) (deprecated, use `--active-color` instead) | ^[string] | #409eff |
| background-color ^(deprecated) | background color of Menu (hex format) (deprecated, use `--el-menu-bg-color` in a style class instead) | ^[string] | #ffffff |
| text-color ^(deprecated) | text color of Menu (hex format) (deprecated, use `--el-menu-text-color` in a style class instead) | ^[string] | #303133 |
| active-text-color ^(deprecated) | text color of currently active menu item (hex format) (deprecated, use `--el-menu-active-color` in a style class instead) | ^[string] | #409eff |
| default-active | index of active menu on page load | ^[string] | '' |
| default-openeds | array that contains indexes of currently active sub-menus | ^[object]`string[]` | [] |
| unique-opened | whether only one sub-menu can be active | ^[boolean] | false |