king
2022-08-02 8d66ff34fae5b048a6b7923cc75d34f13a08be9d
src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx
@@ -21,7 +21,7 @@
        required: true
      },
      {
        type: 'select',
        type: 'radio',
        key: 'Align',
        label: this.props.dict['model.form.align'],
        initVal: this.props.card.Align,
@@ -45,34 +45,20 @@
        initVal: this.props.card.Width,
        required: true
      },
      // {
      //   type: 'select',
      //   key: 'style',
      //   label: this.props.dict['model.form.style'],
      //   initVal: this.props.card.style,
      //   required: true,
      //   options: [{
      //     MenuID: 'button',
      //     text: this.props.dict['header.form.button']
      //   }, {
      //     MenuID: 'text',
      //     text: this.props.dict['model.form.href']
      //   }]
      // },
      // {
      //   type: 'select',
      //   key: 'show',
      //   label: this.props.dict['header.form.order'],
      //   initVal: this.props.card.show,
      //   required: true,
      //   options: [{
      //     MenuID: 'horizontal',
      //     text: this.props.dict['header.form.horizontal']
      //   }, {
      //     MenuID: 'vertical',
      //     text: this.props.dict['header.form.vertical']
      //   }]
      // }
      {
        type: 'radio',
        key: 'position',
        label: '显示位置',
        initVal: this.props.card.position || 'right',
        required: true,
        options: [{
          MenuID: 'left',
          text: '左侧'
        }, {
          MenuID: 'right',
          text: '右侧'
        }]
      }
    ]
  }
@@ -88,7 +74,7 @@
    const { getFieldDecorator } = this.props.form
    const fields = []
    this.state.formlist.forEach((item, index) => {
      if (item.type === 'text') { // 文本搜索
      if (item.type === 'text') {
        fields.push(
          <Col span={12} key={index}>
            <Form.Item label={item.label}>
@@ -108,7 +94,7 @@
            </Form.Item>
          </Col>
        )
      } else if (item.type === 'number') { // 文本搜索
      } else if (item.type === 'number') {
        fields.push(
          <Col span={12} key={index}>
            <Form.Item label={item.label}>