ronds-metadata 1.3.79 → 1.3.80
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ var BusinessForm = function BusinessForm(props) {
|
|
18
18
|
if (value) {
|
19
19
|
formRef.current.setFieldsValue(_objectSpread({}, value));
|
20
20
|
}
|
21
|
-
}, [
|
21
|
+
}, []);
|
22
22
|
var triggerChange = function triggerChange(changedValue) {
|
23
23
|
valueRef.current = _objectSpread(_objectSpread({}, valueRef.current), changedValue);
|
24
24
|
onChange && onChange(valueRef.current);
|
@@ -96,11 +96,18 @@ var DataSource = function DataSource(props) {
|
|
96
96
|
};
|
97
97
|
React.useEffect(function () {
|
98
98
|
if (value) {
|
99
|
+
debugger;
|
99
100
|
if (value.dsType) {
|
100
101
|
setDsType(value.dsType);
|
102
|
+
triggerChange({
|
103
|
+
dsType: value.dsType
|
104
|
+
});
|
101
105
|
}
|
102
106
|
if (value.datasource) {
|
103
107
|
setDatasource(value.datasource);
|
108
|
+
triggerChange({
|
109
|
+
datasource: value.datasource
|
110
|
+
});
|
104
111
|
}
|
105
112
|
switch (value === null || value === void 0 ? void 0 : value.dsType) {
|
106
113
|
case 'Kafka':
|
@@ -117,7 +124,7 @@ var DataSource = function DataSource(props) {
|
|
117
124
|
break;
|
118
125
|
}
|
119
126
|
}
|
120
|
-
}, [
|
127
|
+
}, []);
|
121
128
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
122
129
|
style: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) ? {
|
123
130
|
padding: '10px 10px 10px 10px',
|
@@ -90,21 +90,38 @@ var MapTable = function MapTable(props) {
|
|
90
90
|
if (value) {
|
91
91
|
if (value.mapping) {
|
92
92
|
setMapping(value.mapping);
|
93
|
+
triggerChange({
|
94
|
+
mapping: value.mapping
|
95
|
+
});
|
93
96
|
}
|
94
97
|
if (value.output) {
|
95
98
|
setOutput(value.output);
|
99
|
+
triggerChange({
|
100
|
+
output: value.output
|
101
|
+
});
|
96
102
|
}
|
97
103
|
if (value.options) {
|
98
104
|
setOptions(value.options);
|
105
|
+
triggerChange({
|
106
|
+
options: value.options
|
107
|
+
});
|
99
108
|
}
|
100
109
|
if (value.dataSource) {
|
101
110
|
setTableDataSource(value.dataSource);
|
111
|
+
tableDataSourceRef.current = value.dataSource;
|
112
|
+
triggerChange({
|
113
|
+
dataSource: value.dataSource
|
114
|
+
});
|
102
115
|
}
|
103
116
|
if (value.dataTarget) {
|
104
117
|
setTableDataTarget(value.dataTarget);
|
118
|
+
tableDataTargetRef.current = value.dataTarget;
|
119
|
+
triggerChange({
|
120
|
+
dataTarget: value.dataTarget
|
121
|
+
});
|
105
122
|
}
|
106
123
|
}
|
107
|
-
}, [
|
124
|
+
}, []);
|
108
125
|
React.useEffect(function () {
|
109
126
|
if (disableArray) {
|
110
127
|
var _mapping = [];
|
@@ -92,15 +92,25 @@ var SparkSqlTable = function SparkSqlTable(props) {
|
|
92
92
|
if (value) {
|
93
93
|
if (value.view) {
|
94
94
|
setView(value.view);
|
95
|
+
triggerChange({
|
96
|
+
view: value.view
|
97
|
+
});
|
95
98
|
}
|
96
99
|
if (value.selected) {
|
97
100
|
setSelected(value.selected);
|
101
|
+
triggerChange({
|
102
|
+
selected: value.selected
|
103
|
+
});
|
98
104
|
}
|
99
105
|
if (value.list) {
|
100
106
|
setList(value.list);
|
107
|
+
listRef.current = value.list;
|
108
|
+
triggerChange({
|
109
|
+
list: value.list
|
110
|
+
});
|
101
111
|
}
|
102
112
|
}
|
103
|
-
}, [
|
113
|
+
}, []);
|
104
114
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Row, {
|
105
115
|
className: !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.borderHidden) && 'ant-form-item',
|
106
116
|
style: {
|