king
2020-06-12 89e7167a83e0d8409ca87698e4c08651a37cc26e
src/templates/sharecomponent/cardcomponent/carddetailform/index.jsx
@@ -127,7 +127,7 @@
    this.state.formlist.forEach((item, index) => {
      if (item.hidden || item.forbid) return
      if (item.type === 'text') { // 文本搜索
      if (item.type === 'text') {
        fields.push(
          <Col span={12} key={index}>
            <Form.Item label={item.tooltip ?
@@ -270,9 +270,13 @@
              values.content = columns.filter(col => col.value === values.field)[0].text
            }
          }
          if (['bottom', 'header'].includes(values.elemType) && values.actions) {
          if (values.elemType === 'bottom' && values.actions) {
            values.actions = values.actions.map(item => actions.filter(action => action.value === item)[0])
          }
          if (values.elemType === 'header' && values.actions) {
            values.actions = actions.filter(action => action.value === values.actions)
          }
          if (['avatar'].includes(values.elemType)) {
            if (values.type === 'icon') {
              let column = columns.filter(col => col.value === values.field)[0]