Skip to content

v1.4.3 - 2024/10/10

  • [Change] Change the augmentation module (Thanks @linspw #103)
  • [Fix] Add ComputedRef definitions for checked and hidden attributes, prevent error prompts when using Computed.

v1.4.2 - 2024/07/31

  • [Added] Added ContextMenuInstance.getMenuRef used to get the root submenu instance in function mode.
  • [Added] Exposed ContextSubMenuInstance several methods of ContextSubMenu, to achieve more complex control over menu items, including getting menu items, getting height, position, scrolling, setting scroll values, position, and more, see ContextSubMenuInstance
  • [Added] Add param MenuItemContext of function mode event onSubMenuOpen,onSubMenuClose.
  • [Fix] Expose the height and width of the ContextMenu and the Ref object (Thanks @ZhiZunJava #97)
  • [Fix] Fixed an issue where component positions were abnormal when zoom was set for the body (Thanks @lizhen789 #94)

v1.4.1 - 2024/04/22

  • [Fix] Fix the issue of setting show=false in component mode to close the menu and then open it twice (#88)
  • [Added] Added MenuOptions.onClickOnOutside used to when set clickCloseOnOutside = false can handle user click on other place event (#87)

v1.4.0 - 2024/04/10

  • [Fix] Value options.theme in component mode can update dynamically. (#82)

v1.3.9 - 2024/03/16

  • [Fix] Change padding-right to padding-inline-end for better support RTL mode. (Thanks @hooray, #83)

v1.3.8 - 2024/02/04

  • [Added] Add MenuBarOptions.barPopDirection attribute to control the pop-up direction of the first level submenu in the menu bar.
  • [Fix] Remove VNodeRender prop type check warning.

v1.3.7 - 2024/01/23

  • [Added] Add MenuOptions.menuTransitionProps attribute used set transition effects when menu display/hiding. (#80)

v1.3.6 - 2024/01/17

  • [Added] Add isClosed instance function to check if the menu is currently closed. (#77)
  • [Added] Add clickCloseOnOutside allow do not close menu when the user click on other places (#76)
  • [Fix] VNodeRenderer prop type check warning.
  • [Docs] add --mx-menu-open-hover-background and --mx-menu-open-hover-text (Thanks @croatialu)
  • [Docs] Fix typo (Thanks @cheqianxiao)

v1.3.4 - 2023/12/13

  • [Added] Added MenuOptions.mouseScroll to define whether long menus can be scrolled with a scroll wheel.
  • [Added] Allow the use of a scroll wheel on the up and down buttons to scroll through long menus. Thanks @jonathanzuniga (#56).
  • [Fix] Fix the issue of incomplete display of long menu items.
  • [Fix] Fixed the issue of adding zIndex to custom mount containers.
  • [Fix] Fixed the issue that menu overflow the container .

v1.3.1 - 2023/07/23

  • [Added] Add last click item in onClose callback (#55).
  • [Fix] Fix menu bar pop position padding incorrect (#54).

v1.3.1 - 2023/07/12

  • [Added] MenuItem.divider Added option 'up'|'down'|'self' for control separator direction.

v1.3.0 - 2023/06/20

  • [Added] Add MenuOptions.direction and MenuItem.direction that allow controll menu pop direction.
  • [Added] Add clickCloseClassName and clickCloseClassName for ignore clicking of some element. (#48)
  • [Added] Add close callback in render solt param for close hole menu.
  • [Change] MenuOptions.adjustPadding now default value is { x:0, y: 10 }.
  • [Change] The menu overflow adjustment has been changed, and the menu will not overflow the screen now.
  • [Fix] Fixed text overflow display issue after limiting the maximum width of the menu.
  • [Fix] Fix menu adjust position not right (#49)
  • [Fix] Fix closeWhenScroll not working on mobile devices (#47)
  • [Fix] Fix problem that minWidth and maxWidth with number type not effect (#46)

v1.2.10 - 2023/05/27

  • [Fix] Fix this not right in onClick callback
  • [Fix] Fix win10 theme missing

v1.2.7 - 2023/05/27

  • [Added] Added the MenuBar component.
  • [Fix] Use the Teleport rendering menu to fix abnormal slot related data issues (#45)

v1.2.6 - 2023/4/29

  • [Added] Added onClose (menu close), onSubMenuOpen (submenu open), and onSubMenuClose (submenu close) event callbacks for function mode. (#41)
  • [Added] Added two CSS variables: --mx-menu-open-hover-backgroud (The background color when the menu item is open and the mouse hovers), --mx-menu-open-hover-text (Text color when menu item is open and mouse hovers).
  • [Changed] Modified the display effects of mac and win10.light themes.

v1.2.5 - 2023/4/9

  • [Fix] Fixed 1.2.4 missing .d.ts files (#38)

v1.2.4 - 2023/4/8

  • [Fix] Added the MenuOptions.adjustPosition attribute to allow control over whether the toplevel menu automatically adjusts its position when overflowing the container (#34)
  • [Fix] Fixed incorrect menu positioning in scrollable long pages (Thasks @jamespltan pull #35) (#34)
  • [Fix] Add Function as valid prop type to label and icon (Thasks @kjellmf pull #36)

v1.2.3 - 2023/2/15

  • [Fix] Fix the inconsistency between menu component export and definition (1.2.0-1.2.2) (#30)

v1.2.2 - 2023/1/29

  • [Fix] Fix the problem that the menu incorrectly intercepts all keyboard events (#27)

v1.2.0 - 2023/1/28

  • [Added] Added MenuItem.shortcut to display the shortcut key badge of the current menu item.
  • [Added] Added MenuItem.preserveIconWidth to set whether a fixed-width icon area should be reserved for menu items without icons.
  • [Added] Added MenuItem.checked to specify whether the current menu item is checked.
  • [Added] Added three new theme extracted CSS and provided some CSS variables, allowing you to modify the color conveniently. Custom themes are supported.
  • [Fix] Fix the problem that global function return instance call closeMenu cant close the menu (#26).
  • [Changed] ⚠ The right arrow of the menu now uses a SVG image (before is base64 data embedded in css). If you use the .mx-right-arrow style to customize the right arrow image, you need to do special processing to hide the SVG.

v1.1.9 - 2023/1/6

  • Fix global slot missing problem (#25)

v1.1.8 - 2023/1/5

  • Fix The Separator is not hidden when hidden is true. (#24)
  • Fixed duplicate creation of default containers. (#24)

v1.1.7 - 2022/12/20

  • [Added] Added the MenuOptions.getContainer that you can mount menu to custom containers. (#17, #19)
  • [Added] Added the MenuOptions.adjustPadding to set padding for submenu position adjust.
  • [Added] A document site has been added to make reading clearer.
  • Fixed the problem that adjust menu height incorrect.

v1.1.6 - 2022/12/20

  • [Added] Added the MenuItem.hidden property to dynamically control the display and hide of menu item in fuction mode. (#20)
  • [Added] Added the ContextMenu.transformMenuPosition function to solve the problem that the menu position is incorrect when the body is zoomed. (#17, #19)

v1.1.5 - 2022/12/8

  • Fixed the problem that get window height is incorrect, which causes the adjust menu height incorrect.

v1.1.4 - 2022/11/29

  • Fixed #16.

v1.1.3 - 2022/11/28

  • [Added] Added the submenu open state.
    • Added the css .mx-context-menu-item.open indicates that the submenu of the current menu is open. (#15)
    • Added the property isOpen in render slot data (MenuItemRenderData) indicates that the submenu of the current menu is open.
    • Added the property hasChildren in render slot data (MenuItemRenderData) indicates whether the current menu has submenus.
  • [Added] Added the svg icon support. (svgIcon and svgProps property).
  • [Change] The parent menu will now remain highlighted when the submenu open.

v1.1.2 - 2022/11/06

  • Fix the problem that the binding event was not removed correctly. (#14 Thanks @liumingye)

v1.1.1 - 2022/09/05

  • [Added] Added the closeWhenScoll attribute, which is used to control whether to close the menu when scrolling the mouse.
  • [Added] Added the closeMenu instance function to close menu.
  • [Added] Added the closeContextMenu global function, which can be used to close the currently open menu.
  • Fixed the problem that the open menu would not disappear in the case of nested containers.

v1.1.0 - 2022/08/27

  • [Added] Support component mode.
  • [Added] Support dark theme.
  • [Added] Support custom slot to customize menu.

v1.0.9 - 2022/01/14

  • Add a global function for Composition API.
  • Fixed #2 that Click the blank position to close the menu.
  • Fixed the issue (#3) that click the disabled item and still trigger the click event.

2021/07/25

Official release.

Released under the MIT License.