king
2024-02-03 06a670976e2145a10ea05207041d3cf3164cd380
src/menu/components/card/double-data-card/index.jsx
@@ -331,8 +331,30 @@
  getWrapForms = () => {
    const { card } = this.state
    let buttons = []
    card.action && card.action.forEach(n => {
      buttons.push({
        value: n.uuid,
        label: n.label
      })
    })
    card.subcards.forEach(m => {
      if (m.$cardType !== 'extendCard') return
      m.elements.forEach(n => {
        if (n.eleType === 'button') {
          buttons.push({
            value: n.uuid,
            label: n.label
          })
        }
      })
    })
    
    return getWrapForm(card.wrap, card.columns, card.setting)
    return getWrapForm(card.wrap, card.columns, card.setting, buttons)
  }
  updateWrap = (res) => {
@@ -501,7 +523,7 @@
            <NormalForm title="双重数据卡设置" width={800} update={this.updateWrap} getForms={this.getWrapForms}>
              <EditOutlined style={{color: '#1890ff'}} title="编辑"/>
            </NormalForm>
            <CopyComponent type="datacard" card={card}/>
            <CopyComponent type="doublecard" card={card}/>
            <PasteComponent options={['action', 'search', 'form', 'cardcell']} updateConfig={this.pasteComponent} />
            <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle}/>
            <ClockComponent config={card} updateConfig={this.updateComponent}/>