king
2025-04-21 f3d4db769ba9b51b799d981511a710fd443d0e08
src/menu/components/carousel/data-card/index.jsx
@@ -115,6 +115,10 @@
      card.$tables = getTables(card)
    }
    delete card.$c_ds
    delete card.$c_ac
    delete card.$c_sc
    this.setState({
      card: card
    })
@@ -141,14 +145,14 @@
   */
  deleteCard = (cell) => {
    let card = fromJS(this.state.card).toJS()
    let _this = this
    let that = this
    confirm({
      content: '确定删除卡片吗?',
      onOk() {
        card.subcards = card.subcards.filter(item => item.uuid !== cell.uuid)
        _this.updateComponent(card)
        that.updateComponent(card)
      },
      onCancel() {}
    })
@@ -207,7 +211,7 @@
            <NormalForm title="轮播-动态数据" width={800} update={this.updateWrap} getForms={this.getWrapForms}>
              <EditOutlined style={{color: '#1890ff'}} title="编辑"/>
            </NormalForm>
            <CopyComponent type="datacard" card={card}/>
            <CopyComponent type="cardatacard" card={card}/>
            <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle}/>
            <ClockComponent config={card} updateConfig={this.updateComponent}/>
            <DeleteOutlined className="close" title="删除组件" onClick={() => this.props.deletecomponent(card.uuid)}/>