src/templates/modalconfig/dragelement/index.jsx
@@ -114,7 +114,13 @@ targetId = cards[cards.length - 1].uuid } const { index: overIndex } = findCard(`${targetId}`) // cards为空时 overIndex 为 -1 const { index: overIndex, card } = findCard(`${targetId}`) // cards为空时 overIndex 为 -1 if (card) { newcard.span = card.span || 12 newcard.labelwidth = card.labelwidth || 33.3 } const _cards = update(cards, { $splice: [[overIndex + 1, 0, newcard]] }) setCards(_cards)