king
2023-10-26 742f7d11557526038d332e60a8c8ca18177bc4e4
src/templates/zshare/modalform/index.jsx
@@ -745,7 +745,6 @@
          { required: item.required, message: '请输入' + item.label + '!' }
        ]
        span = 24
        className = 'text-area'
        if (this.record.type === 'select' || this.record.type === 'link') {
          extra = <span className="add-resource-empty" onClick={this.handleEmpty}>空</span>
@@ -757,7 +756,6 @@
        content = <CodeMirror />
      } else if (item.type === 'textarea') {
        span = 24
        className = 'text-msg'
        rules = [
          { required: item.required, message: '请输入' + item.label + '!' }
        ]
@@ -765,7 +763,6 @@
        content = <TextArea rows={item.rows || 4}/>
      } else if (item.type === 'options') {
        span = 24
        className = 'text-area'
        let type = this.record.type
        let linkSubFields = this.record.linkSubField || []
@@ -818,6 +815,7 @@
            columns.push({ title: 'url', key: '$url', type: 'file' })
          } else if (this.record.display === 'color') {
            columns.push({ title: 'Color', key: '$color' })
            extra = <span>使用十六进制色彩代码(HEX)时,请在色值前添加 #</span>
          }
          fields.forEach(item => {
@@ -835,7 +833,6 @@
        }
      } else if (item.type === 'fields') {
        span = 24
        className = 'text-area'
        rules = [
          { required: item.required, message: '请添加' + item.label + '!' }
        ]