king
2022-10-18 e5605fc3af350edf6c61d9ec956cfe72dce22af7
src/templates/zshare/modalform/index.jsx
@@ -141,6 +141,9 @@
      }
      if (this.record.regular !== '') {
        shows.push('regularText')
        if (this.record.regular !== 'phone' && this.record.regular !== 'email') {
          shows.push('regularExtra')
        }
      }
    } else if (type === 'number') {
      reTypes.initval = 'number'
@@ -593,6 +596,11 @@
            max: formRule.field.max,
            message: formRule.field.maxMessage
          })
        } else if (item.key === 'regularExtra') {
          rules.push({
            pattern: /^[~!@#$%^&*()_+:;{}<>,.-]*$/,
            message: '扩展符包括~!@#$%^&*()_+:;{}<>,.-'
          })
        } else if (item.max) {
          rules.push({
            max: item.max,
@@ -875,6 +883,10 @@
            values.initval = ''
          } else if (values.type === 'split') {
            values.span = 24
          } else if (values.type === 'text') {
            if (values.regularExtra) {
              values.regularExtra = Array.from(new Set(values.regularExtra.split(''))).join('')
            }
          }
          ['linkField', 'valueField', 'valueText', 'orderBy'].forEach(item => {