| | |
| | | |
| | | const Container = ({list, setting, gridBtn, type, placeholder, handleList, handleMenu, deleteMenu, copyElement, profileMenu, handleGridBtn, showfield, doubleClickCard }) => { |
| | | let target = null |
| | | |
| | | |
| | | const [cards, setCards] = useState(list) |
| | | const moveCard = (id, atIndex) => { |
| | | const { card, index } = findCard(id) |
| | |
| | | let _hideCol = [] |
| | | cards.forEach(col => { |
| | | if (col.type === 'colspan' && col.sublist) { |
| | | _hideCol = _hideCol.concat(col.sublist) |
| | | _hideCol.push(...col.sublist) |
| | | } |
| | | }) |
| | | cards.forEach(col => { |
| | | if (!_hideCol.includes(col.uuid)) { |
| | | _colCards.push(col) |
| | | } |
| | | if (_hideCol.includes(col.uuid)) return |
| | | |
| | | _colCards.push(col) |
| | | }) |
| | | } |
| | | |
| | |
| | | </div> |
| | | )) |
| | | } |
| | | {cards.length === 0 && |
| | | {cards.length === 0 ? |
| | | <div className="common-drawarea-placeholder"> |
| | | {placeholder} |
| | | </div> |
| | | </div> : null |
| | | } |
| | | </div> |
| | | ) |