| | |
| | | } trigger="hover"> |
| | | <ToolOutlined /> |
| | | </Popover> |
| | | <MenuComponent menus={card.menus} columns={card.columns} updateConfig={(menus) => this.updateComponent({...card, menus: menus})}/> |
| | | <MenuComponent menus={card.menus} datatype={card.wrap.datatype} columns={card.columns} updateConfig={(menus) => this.updateComponent({...card, menus: menus})}/> |
| | | </div> |
| | | ) |
| | | } |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { columns } = this.props |
| | | const { columns, datatype } = this.props |
| | | const { menus, visible, editMenu } = this.state |
| | | |
| | | return ( |
| | |
| | | <ElementForm |
| | | menu={editMenu} |
| | | cols={columns} |
| | | datatype={datatype} |
| | | inputSubmit={this.handleSubmit} |
| | | wrappedComponentRef={(inst) => this.menuFormRef = inst} |
| | | /> |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { menu, cols } = this.props |
| | | const { menu, cols, datatype } = this.props |
| | | const { getFieldDecorator } = this.props.form |
| | | const { property, appMenus, copyMenu } = this.state |
| | | |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | {datatype === 'dynamic' ? <Col span={12}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="绑定提示字段后,会在菜单右上角显示提示信息。注:在添加图标时有效。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | |
| | | </Select> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | </Col> : null} |
| | | <Col span={12}> |
| | | <Form.Item label="隐藏"> |
| | | {getFieldDecorator('hidden', { |