We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7bbe7d commit 3f64c66Copy full SHA for 3f64c66
src/components/Layout/EditorDetailPanel/DetailForm.js
@@ -83,7 +83,7 @@ class DetailForm extends React.Component {
83
84
renderEdgeDetail = () => {
85
const { form } = this.props;
86
- const { label = "", shape = "flow-smooth" } = this.item.getModel();
+ const { label = "", shape = "flow-smooth", strength = 1 } = this.item.getModel();
87
88
return (
89
<>
@@ -97,6 +97,11 @@ class DetailForm extends React.Component {
97
initialValue: shape
98
})(this.renderEdgeShapeSelect())}
99
</Item>
100
+ <Item label="Strength" {...inlineFormItemLayout}>
101
+ {form.getFieldDecorator("strength", {
102
+ initialValue: strength
103
+ })(<Input type="number" onBlur={this.handleSubmit} />)}
104
+ </Item>
105
</>
106
);
107
};
0 commit comments