| | |
| | | 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) |
| | |
| | | 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 |
| | | |
| | |
| | | doubleClickCard={doubleClickBtn} |
| | | /> |
| | | ))} |
| | | <Icon type="plus" title="添加按钮" onClick={addaction}/> |
| | | {plus !== 'false' ? <Icon type="plus" title="添加按钮" onClick={addaction}/> : null} |
| | | </div> |
| | | ) |
| | | } |