pass ctx prop

This commit is contained in:
SrGooglo 2022-12-09 09:17:29 +00:00
parent 795a1e94f0
commit 7b8d284046

View File

@ -5,11 +5,11 @@ import { createIconRender } from "components/Icons"
import "./index.less"
export default (props) => {
const { items = [], cords, clickedComponent } = props
const { items = [], cords, clickedComponent, ctx } = props
const handleItemClick = async (item) => {
if (typeof item.action === "function") {
await item.action(clickedComponent)
await item.action(clickedComponent, ctx)
}
}