king
2021-10-17 35450c747d7497642119afb5db3bbbeec63c9214
src/views/menudesign/menuform/index.jsx
@@ -6,6 +6,8 @@
import options from '@/store/options.js'
import './index.scss'
const { TextArea } = Input
class CustomMenuForm extends Component {
  static propTpyes = {
    dict: PropTypes.object, // 字典项
@@ -169,6 +171,10 @@
  // 助记码
  changeEasyCode = (e) => {
    this.props.updateConfig({...this.props.config, easyCode: e.target.value})
  }
  changeRemark = (e) => {
    this.props.updateConfig({...this.props.config, Remark: e.target.value})
  }
  changeCacheDay = (val) => {
@@ -357,6 +363,19 @@
              }} />
            </Form.Item>
          </Col>
          <Col span={24}>
            <Form.Item label="备注">
              {getFieldDecorator('Remark', {
                initialValue: config.Remark || '',
                rules: [
                  {
                    max: 512,
                    message: '备注最多512个字符!'
                  }
                ]
              })(<TextArea rows={2} placeholder={''} onChange={this.changeRemark} />)}
            </Form.Item>
          </Col>
        </Row>
      </Form>
    )