king
2020-02-21 063b983daaf51a7f1e8677bde1e9c0e618866c91
src/templates/ushare/modalform/index.jsx
@@ -57,8 +57,10 @@
      _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin']
    } else if (type === 'fileupload') {
      _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength']
    } else if (type === 'text' || type === 'textarea') {
    } else if (type === 'textarea') {
      _options = [..._options, 'fieldlength']
    } else if (type === 'text') {
      _options = [..._options, 'fieldlength', 'regular']
    }
    if (type === 'select') {
@@ -117,8 +119,10 @@
        _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin']
      } else if (value === 'fileupload') {
        _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength']
      } else if (value === 'text' || value === 'textarea') {
      } else if (value === 'textarea') {
        _options = [..._options, 'fieldlength']
      } else if (value === 'text') {
        _options = [..._options, 'fieldlength', 'regular']
      }
      if (value === 'select') {
@@ -257,7 +261,12 @@
        }
        fields.push(
          <Col span={12} key={index}>
            <Form.Item label={item.label}>
            <Form.Item label={item.tooltip ?
              <Tooltip placement="topLeft" title={item.tooltip}>
                <Icon type="question-circle" />
                {item.label}
              </Tooltip> : item.label
            }>
              {getFieldDecorator(item.key, {
                initialValue: item.initVal || '',
                rules: [