king
2021-04-14 30b6c01972cc74152b733a94edcc0c2a614a2268
src/pc/menushell/index.jsx
@@ -19,6 +19,10 @@
    handleList({...menu, components: _cards})
    setCards(_cards)
  }
  if (menu.components.length > cards.length) {
    setCards(menu.components)
  }
  
  const findCard = id => {
    const card = cards.filter(c => `${c.uuid}` === id)[0]
@@ -49,7 +53,7 @@
    let uuids = MenuUtils.getDelButtonIds(card)
    confirm({
      title: `确定删除《${card.name}》吗?`,
      title: `确定删除${card.name ? `《${card.name}》` : '组件'}吗?`,
      content: hasComponent ? '当前组件中含有子组件!' : '',
      onOk() {
        MKEmitter.emit('delButtons', uuids)
@@ -102,7 +106,9 @@
        code: '自定义',
        navbar: '导航栏',
        carousel: '轮播',
        card: '卡片'
        dashboard: '仪表盘',
        card: '卡片',
        login: '登录'
      }
      let i = 1