From ab60d53b67f802878662aaa5a5b52580cca421b8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 26 九月 2020 08:52:46 +0800 Subject: [PATCH] 2020-09-26 --- src/menu/actioncomponent/dragaction/index.jsx | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/menu/actioncomponent/dragaction/index.jsx b/src/menu/actioncomponent/dragaction/index.jsx index 3432829..8afabe7 100644 --- a/src/menu/actioncomponent/dragaction/index.jsx +++ b/src/menu/actioncomponent/dragaction/index.jsx @@ -8,7 +8,7 @@ import Card from './card' import './index.scss' -const Container = ({type, list, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => { +const Container = ({plus, list, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => { const [cards, setCards] = useState(list) const moveCard = (id, atIndex) => { const { card, index } = findCard(id) @@ -116,10 +116,6 @@ newcard.errorTime = 10 newcard.verify = null newcard.show = 'icon' - - if (type === 'chart') { - newcard.show = 'icon' - } let targetId = cards.length > 0 ? cards[cards.length - 1].uuid : 0 @@ -150,7 +146,7 @@ doubleClickCard={doubleClickBtn} /> ))} - <Icon type="plus" title="娣诲姞鎸夐挳" onClick={addaction}/> + {plus !== 'false' ? <Icon type="plus" title="娣诲姞鎸夐挳" onClick={addaction}/> : null} </div> ) } -- Gitblit v1.8.0