ronds-metadata 1.1.30 → 1.1.33
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.
@@ -126,7 +126,7 @@ var SqlEdit = function SqlEdit(props) {
|
|
126
126
|
React.useEffect(function () {
|
127
127
|
if (!editorRef.current) return;
|
128
128
|
|
129
|
-
if (value) {
|
129
|
+
if (value || value === '') {
|
130
130
|
editorRef.current.setValue(value);
|
131
131
|
editorRef.current.focus();
|
132
132
|
editorRef.current.setCursor(editorRef.current.lineCount(), 0);
|
@@ -14,7 +14,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
14
14
|
/*
|
15
15
|
* @Author:wangxian
|
16
16
|
* @Date: 2021-09-18 14:15:04
|
17
|
-
* @LastEditTime: 2022-
|
17
|
+
* @LastEditTime: 2022-08-08 14:51:55
|
18
18
|
*/
|
19
19
|
import React from 'react';
|
20
20
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -223,7 +223,9 @@ function Index(props) {
|
|
223
223
|
options: httpOptions && httpOptions.length > 0 ? httpOptions : options,
|
224
224
|
showSearch: true,
|
225
225
|
filterOption: function filterOption(input, option) {
|
226
|
-
|
226
|
+
var _option$label;
|
227
|
+
|
228
|
+
return (option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString().indexOf(input)) >= 0;
|
227
229
|
},
|
228
230
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
229
231
|
return triggerNode.parentNode;
|
@@ -211,6 +211,10 @@ var TableArray = function TableArray(props) {
|
|
211
211
|
|
212
212
|
var onTableChange = function onTableChange(values) {
|
213
213
|
form.setFieldsValue(_objectSpread({}, _defineProperty({}, "".concat(name), values)));
|
214
|
+
formContext.stream$.next({
|
215
|
+
type: 'onValuesChange',
|
216
|
+
payload: _defineProperty({}, "".concat(name), _objectSpread({}, values))
|
217
|
+
});
|
214
218
|
};
|
215
219
|
|
216
220
|
var onButtonCellClick = function onButtonCellClick(record) {
|