| | |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | import './index.scss' |
| | | |
| | | const { TextArea } = Input |
| | | const ColorSketch = asyncComponent(() => import('@/mob/colorsketch')) |
| | | const SourceComponent = asyncComponent(() => import('@/menu/components/share/sourcecomponent')) |
| | | |
| | |
| | | }> |
| | | {getFieldDecorator('app_name', { |
| | | initialValue: card ? card.app_name || selectApp.remark || '' : selectApp.remark || '', |
| | | rules: [ |
| | | { |
| | | pattern: /^[^']+$/, |
| | | message: '不可使用英文单引号' |
| | | } |
| | | ] |
| | | })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)} |
| | | </Form.Item> |
| | | </Col> |
| | |
| | | rules: exts.includes('share') ? [{ |
| | | required: true, |
| | | message: '请填写标题!' |
| | | }] : [] |
| | | }, { |
| | | pattern: /^[^']+$/, |
| | | message: '不可使用英文单引号' |
| | | }] : [{ |
| | | pattern: /^[^']+$/, |
| | | message: '不可使用英文单引号' |
| | | }] |
| | | })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)} |
| | | </Form.Item> |
| | | </Col> |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | <Col span={24}> |
| | | <Form.Item label="备注"> |
| | | {getFieldDecorator('link_remark', { |
| | | initialValue: card ? card.link_remark || '' : '', |
| | | rules: [ |
| | | { |
| | | pattern: /^[^']+$/, |
| | | message: '不可使用英文单引号' |
| | | } |
| | | ] |
| | | })( |
| | | <TextArea placeholder="" rows={2}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | </Row> |
| | | </Form> |
| | | ) |