This is an automated email from the ASF dual-hosted git repository.
fengzhenbing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 48c9929 fix#2278 , A new pull request,please check it,thanks! (#151)
48c9929 is described below
commit 48c99295c5fb098249b47c0c879b237353bcb08c
Author: ShawnSiao <[email protected]>
AuthorDate: Thu Nov 18 09:28:22 2021 +0800
fix#2278 , A new pull request,please check it,thanks! (#151)
* fix#2278
* Update Selector.js
---
src/routes/Plugin/Common/Selector.js | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
diff --git a/src/routes/Plugin/Common/Selector.js
b/src/routes/Plugin/Common/Selector.js
index 54f9b7c..6da5071 100644
--- a/src/routes/Plugin/Common/Selector.js
+++ b/src/routes/Plugin/Common/Selector.js
@@ -656,7 +656,7 @@ class AddModal extends Component {
} else {
return (
<li key={fieldName}>
- <Tooltip title={placeholder}>
+ <Tooltip title={item.value}>
<FormItem>
{getFieldDecorator(fieldName, {
rules,
@@ -670,6 +670,12 @@ class AddModal extends Component {
}
placeholder={placeholder}
key={fieldName}
+ onChange={e=> {
+ this.onDealChange(
+ e.target.value,
+ item
+ );
+ }}
/>
)}
</FormItem>
@@ -757,6 +763,10 @@ class AddModal extends Component {
this.setState({ visible: false, selectValue: type.toString() });
};
+ onDealChange = (value,item) => {
+ item.value = value;
+ }
+
render() {
let {
onCancel,
@@ -973,17 +983,19 @@ class AddModal extends Component {
</li>
<li>
- <Input
- onChange={e => {
- this.conditionChange(
- index,
- "paramValue",
- e.target.value
- );
- }}
- value={item.paramValue}
- style={{ width: 300 }}
- />
+ <Tooltip title={item.paramValue}>
+ <Input
+ onChange={e => {
+ this.conditionChange(
+ index,
+ "paramValue",
+ e.target.value
+ );
+ }}
+ value={item.paramValue}
+ style={{ width: 300 }}
+ />
+ </Tooltip>
</li>
<li>
<Button