king
2023-05-09 7b0dbecd1d6155d26ec67be0a47a16264c738c85
src/menu/components/table/edit-table/index.jsx
@@ -141,7 +141,9 @@
      delete item.isNew
      this.setState({card: item})
      this.setState({card: null}, () => {
        this.setState({card: item})
      })
    }
  }
@@ -158,6 +160,10 @@
      card.$c_cl = true
      
      card.errors = checkComponent(card)
      if (!card.submit.sheet) {
        card.errors.push({ level: 0, detail: '提交按钮未设置!'})
      }
      if (card.errors.length === 0) {
        card.$tables = getTables(card)
@@ -273,9 +279,9 @@
  }
  getWrapForms = () => {
    const { wrap, action } = this.state.card
    const { wrap, columns } = this.state.card
    return getWrapForm(wrap, action)
    return getWrapForm(wrap, columns)
  }
  updateWrap = (res) => {
@@ -343,8 +349,11 @@
  render() {
    const { card, appType } = this.state
    if (!card) return null
    let _style = resetStyle(card.style)
    return (
      <div className="menu-editable-table-edit-box" style={_style} onClick={this.clickComponent} id={card.uuid}>
        <NormalHeader hideSearch="true" config={card} updateComponent={this.updateComponent}/>