king
2023-04-27 6dd965723be9dc245105296198c25a80cfe51b54
src/menu/components/share/markcomponent/index.jsx
@@ -34,6 +34,15 @@
        editable: true,
        inputType: 'cascader',
        options: [],
        rules: [{
          validator: (rule, value, callback) => {
            if (value[1] === 'dynamic' && value[0] === value[2]) {
              callback('对比字段不可相同!')
            } else {
              callback()
            }
          }
        }],
        render: text => {
          return (
            <div>{text[0]}  VS  {text[2] ? text[2] : '静态值'}</div>