king
2023-08-27 da64ab0923bf8817fc8599a6e37b953ce38f64c8
src/menu/components/table/base-table/index.jsx
@@ -247,6 +247,8 @@
    res.drawerPlacement = card.wrap.drawerPlacement || 'right'
    res.searchRatio = card.wrap.searchRatio || 6
    res.searchLwidth = card.wrap.searchLwidth !== undefined ? card.wrap.searchLwidth : 33.3
    res.borderRadius = card.wrap.borderRadius || 0
    res.resetContrl = card.wrap.resetContrl || 'init'
    this.updateComponent({...card, wrap: res})
  }
@@ -306,6 +308,14 @@
      config.absFields = null
    }
    if (!config.setting.primaryKey && config.columns.length > 0) {
      config.columns.forEach(col => {
        if (col.field.toLowerCase() === 'id') {
          config.setting.primaryKey = col.field
        }
      })
    }
    this.updateComponent(config)
  }