| | |
| | | selectval = card.emptyText || '空' |
| | | } |
| | | } |
| | | // let labelCol = 'ant-col-sm-8' |
| | | // let wrapCol = 'ant-col-sm-16' |
| | | // let isEntireLine = false |
| | | |
| | | // if (card.entireLine === 'true' || ['textarea', 'hint', 'checkcard', 'brafteditor'].includes(card.type)) { |
| | | // isEntireLine = true |
| | | // } |
| | | |
| | | // if (isEntireLine) { |
| | | // if (cols === '2') { |
| | | // labelCol = 'ant-col-sm-4' |
| | | // wrapCol = 'ant-col-sm-20' |
| | | // } else if (cols === '3') { |
| | | // labelCol = 'ant-col-cuslabel' |
| | | // wrapCol = 'ant-col-cuswrap' |
| | | // } else if (cols === '4') { |
| | | // labelCol = 'ant-col-sm-2' |
| | | // wrapCol = 'ant-col-sm-22' |
| | | // } |
| | | // if (card.hidelabel === 'true') { |
| | | // wrapCol = 'ant-col-sm-24' |
| | | // } |
| | | // } |
| | | |
| | | let formItem = null |
| | | if (card.type === 'text') { |
| | |
| | | required={card.required === 'true'} |
| | | extra={card.extra || null} |
| | | labelCol={card.labelwidth ? {style: {width: card.labelwidth + '%'}} : null} |
| | | wrapperCol={card.labelwidth ? {style: {width: (100 - card.labelwidth) + '%'}} : null} |
| | | > |
| | | {formItem} |
| | | {showField ? <div className="field-name">{card.field}</div> : ''} |
| | | </Form.Item>} |
| | | {/* <div className="ant-row ant-form-item"> |
| | | {card.hidelabel !== 'true' ? <div className={'ant-col ant-form-item-label ant-col-xs-24 ' + labelCol}> |
| | | {card.label ? <label className={card.required === 'true' ? 'required' : ''}>{card.tooltip ? |
| | | <Icon type="question-circle" /> : null} |
| | | {card.label}</label> : null} |
| | | </div> : null} |
| | | <div className={'ant-col ant-form-item-control-wrapper ant-col-xs-24 ' + wrapCol}> |
| | | {formItem} |
| | | {showField ? card.field : ''} |
| | | </div> |
| | | </div> */} |
| | | </div> |
| | | </div> |
| | | </Popover> |