king
2022-01-21 46f79b491173d284a4900d19e7aecf7509481438
src/templates/formtabconfig/dragelement/index.jsx
@@ -8,7 +8,7 @@
import ItemTypes from './itemtypes'
import './index.scss'
const Container = ({list, type, groupId, setting, placeholder, handleList, handleMenu, deleteMenu, profileMenu }) => {
const Container = ({list, type, groupId, setting, handleList, handleMenu, deleteMenu, profileMenu }) => {
  const [cards, setCards] = useState(list)
  const moveCard = (id, atIndex) => {
    const { card, index } = findCard(id)
@@ -115,7 +115,6 @@
        newcard.type = item.subType
        newcard.resourceType = '0'
        newcard.options = []
        newcard.setAll = 'false'
        newcard.orderType = 'asc'
        newcard.match = _match
      } else if (item.type === 'action') {
@@ -184,7 +183,7 @@
      ))}
      {cards.length === 0 &&
        <div className="common-drawarea-placeholder">
          {placeholder}
          {type === 'action' ? '请添加按钮' : '请添加表单'}
        </div>
      }
    </div>