king
2022-09-15 20fda7434c88eae3237399a008f6ae0db50d0eab
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)