ronds-metadata 1.1.28 → 1.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,6 +194,10 @@ var TableArray = function TableArray(props) {
|
|
194
194
|
|
195
195
|
var onTableChange = function onTableChange(values) {
|
196
196
|
form.setFieldsValue(_objectSpread({}, _defineProperty({}, "".concat(name), values)));
|
197
|
+
formContext.stream$.next({
|
198
|
+
type: 'onValuesChange',
|
199
|
+
payload: _defineProperty({}, "".concat(name), values)
|
200
|
+
});
|
197
201
|
};
|
198
202
|
|
199
203
|
var onButtonCellClick = function onButtonCellClick(record) {
|
@@ -58,6 +58,8 @@ var MetadataForm = function MetadataForm(props) {
|
|
58
58
|
onSelectChange && onSelectChange(p.payload);
|
59
59
|
} else if ((p === null || p === void 0 ? void 0 : p.type) === 'onButtonCellClick') {
|
60
60
|
onCellButtonClick && onCellButtonClick(p.payload);
|
61
|
+
} else if ((p === null || p === void 0 ? void 0 : p.type) === 'onValuesChange') {
|
62
|
+
onValuesChange && onValuesChange(p === null || p === void 0 ? void 0 : p.payload, form.getFieldsValue());
|
61
63
|
}
|
62
64
|
}, [stream$]);
|
63
65
|
var options = React.useMemo(function () {
|