king
2022-09-16 41308b8a2788df7ed6225414c163f8611c7e8f69
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)