This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
CMenu: Prefer emitting events over props as functions #146
Labels
type: contributions welcome 💚
Contributions are welcome!
type: feature or enhancement ⚡️
New feature or request
Is your feature request related to a problem? Please describe.
The CMenu component currently accepts the
onOpen
andonClose
function props.However this goes against Vue's natural intuition and canbe better handled by emitting the
@close
and@open
events to the parent context.Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
onClose
prop to$emit('close')
onOpen
prop to$emit('open')
MenuGroup
items.MenuList
items with onlyMenuItems
childrento it's rendering performance have to be made in the
CPopover
componentThe text was updated successfully, but these errors were encountered: