From 7449eee8fa9f8a251e9c4e9162030f1e004bae0f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 十月 2020 09:17:04 +0800 Subject: [PATCH] 2020-10-15 --- src/menu/components/card/cardcellcomponent/dragaction/index.jsx | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/dragaction/index.jsx b/src/menu/components/card/cardcellcomponent/dragaction/index.jsx index 88955b9..0c879f2 100644 --- a/src/menu/components/card/cardcellcomponent/dragaction/index.jsx +++ b/src/menu/components/card/cardcellcomponent/dragaction/index.jsx @@ -7,7 +7,7 @@ import Action from './action' import './index.scss' -const Container = ({list, handleList, handleMenu, deleteMenu, profileAction, handleStyle }) => { +const Container = ({list, handleList, handleMenu, deleteMenu, profileAction, handleStyle, handleSubConfig }) => { const [cards, setCards] = useState(list) const moveCard = (id, atIndex) => { const { card, index } = findCard(id) @@ -42,6 +42,14 @@ profileAction(card) } + const doubleClickCard = id => { + const { card } = findCard(id) + console.log(card) + if (card.OpenType === 'pop') { + handleSubConfig(card) + } + } + const delCard = id => { const { card } = findCard(id) deleteMenu(card) @@ -68,6 +76,7 @@ editCard={editCard} changeStyle={changeStyle} profileCard={profileCard} + doubleClickCard={doubleClickCard} delCard={delCard} findCard={findCard} /> -- Gitblit v1.8.0