@zhubangyun/lowcode-core 5.6.212 → 5.6.213
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.
- package/es/utils/cache/schema.js +1 -0
- package/es/utils/page/page-form-data-manager.d.ts +1 -3
- package/es/utils/page/page-form-data-manager.js +82 -57
- package/lib/utils/cache/schema.js +1 -0
- package/lib/utils/page/page-form-data-manager.d.ts +1 -3
- package/lib/utils/page/page-form-data-manager.js +82 -57
- package/package.json +1 -1
package/es/utils/cache/schema.js
CHANGED
|
@@ -31,6 +31,7 @@ function _handleFormSchema() {
|
|
|
31
31
|
field.fdmSchema.props = ((_field$fdmSchema = field.fdmSchema) === null || _field$fdmSchema === void 0 ? void 0 : _field$fdmSchema.props) || {};
|
|
32
32
|
field.fdmSchema.props.style = ((_field$fdmSchema2 = field.fdmSchema) === null || _field$fdmSchema2 === void 0 ? void 0 : _field$fdmSchema2.props.style) || {};
|
|
33
33
|
field.fdmSchema.props.style.height = "100%";
|
|
34
|
+
field.fdmSchema.props.label = field.props.label;
|
|
34
35
|
}
|
|
35
36
|
if (field.props.fieldId) {
|
|
36
37
|
//删除children防止循环
|
|
@@ -8,8 +8,6 @@ export interface ShowPageFormDataManagerProps {
|
|
|
8
8
|
fieldId?: string;
|
|
9
9
|
};
|
|
10
10
|
mode?: PageFormDataManagerModeType;
|
|
11
|
-
onSubmitOk?: () => void;
|
|
12
|
-
onRemoveOk?: () => void;
|
|
13
11
|
onClose?: () => void | Promise<void>;
|
|
14
12
|
}
|
|
15
|
-
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<
|
|
13
|
+
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<unknown>;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
5
|
-
var _excluded = ["layout", "form", "onClose"],
|
|
5
|
+
var _excluded = ["layout", "form", "onSelectOk", "onClose"],
|
|
6
6
|
_excluded2 = ["container", "onClose"];
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
import { PageLayout } from "./page-layout";
|
|
@@ -16,68 +16,87 @@ export function showFormDataManager(_x) {
|
|
|
16
16
|
return _showFormDataManager.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
function _showFormDataManager() {
|
|
19
|
-
_showFormDataManager = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
19
|
+
_showFormDataManager = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(options) {
|
|
20
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
21
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
23
22
|
case 0:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
if (!(options.layout == "page")) {
|
|
31
|
-
_context2.next = 13;
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
paths = window.location.pathname.split("/");
|
|
35
|
-
mode = options.mode;
|
|
36
|
-
params = new URLSearchParams();
|
|
37
|
-
url = "/" + paths[1] + "/" + paths[2] + "/" + ((_options$form = options.form) === null || _options$form === void 0 ? void 0 : _options$form.id) + "/" + mode + "?" + params.toString();
|
|
38
|
-
_context2.next = 10;
|
|
39
|
-
return openPage(url, url);
|
|
40
|
-
case 10:
|
|
41
|
-
page = _context2.sent;
|
|
42
|
-
console.debug("openPage", page);
|
|
43
|
-
return _context2.abrupt("return");
|
|
44
|
-
case 13:
|
|
45
|
-
container = document.createElement("div");
|
|
46
|
-
document.body.append(container);
|
|
47
|
-
case 15:
|
|
48
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(FormRender, _extends({}, restProps, {
|
|
49
|
-
onClose: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
50
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
51
|
-
while (1) switch (_context.prev = _context.next) {
|
|
23
|
+
return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
24
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(resolve, reject) {
|
|
25
|
+
var container, onClose, restProps, unmount, _options$form, paths, mode, params, url, page;
|
|
26
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
27
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
52
28
|
case 0:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
29
|
+
container = options.container, onClose = options.onClose, restProps = _objectWithoutPropertiesLoose(options, _excluded2); //容器不存在需要手动取消挂载
|
|
30
|
+
unmount = !container;
|
|
31
|
+
if (container) {
|
|
32
|
+
_context2.next = 15;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (!(options.layout == "page")) {
|
|
36
|
+
_context2.next = 13;
|
|
37
|
+
break;
|
|
62
38
|
}
|
|
63
|
-
|
|
64
|
-
|
|
39
|
+
paths = window.location.pathname.split("/");
|
|
40
|
+
mode = options.mode;
|
|
41
|
+
params = new URLSearchParams();
|
|
42
|
+
url = "/" + paths[1] + "/" + paths[2] + "/" + ((_options$form = options.form) === null || _options$form === void 0 ? void 0 : _options$form.id) + "/" + mode + "?" + params.toString();
|
|
43
|
+
_context2.next = 10;
|
|
44
|
+
return openPage(url, url);
|
|
45
|
+
case 10:
|
|
46
|
+
page = _context2.sent;
|
|
47
|
+
console.debug("openPage", page);
|
|
48
|
+
return _context2.abrupt("return");
|
|
49
|
+
case 13:
|
|
50
|
+
container = document.createElement("div");
|
|
51
|
+
document.body.append(container);
|
|
52
|
+
case 15:
|
|
53
|
+
ReactDOM.render( /*#__PURE__*/React.createElement(FormDataManagerRender, _extends({}, restProps, {
|
|
54
|
+
onSelectOk: function onSelectOk(data) {
|
|
55
|
+
resolve(data || null);
|
|
56
|
+
},
|
|
57
|
+
onClose: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
58
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
59
|
+
while (1) switch (_context.prev = _context.next) {
|
|
60
|
+
case 0:
|
|
61
|
+
resolve(null);
|
|
62
|
+
if (unmount) {
|
|
63
|
+
//等待动画结束
|
|
64
|
+
setTimeout(function () {
|
|
65
|
+
var _container;
|
|
66
|
+
//取消挂载
|
|
67
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
68
|
+
//移除
|
|
69
|
+
(_container = container) === null || _container === void 0 ? void 0 : _container.remove();
|
|
70
|
+
}, 1000);
|
|
71
|
+
}
|
|
72
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
73
|
+
case 3:
|
|
74
|
+
case "end":
|
|
75
|
+
return _context.stop();
|
|
76
|
+
}
|
|
77
|
+
}, _callee);
|
|
78
|
+
}))
|
|
79
|
+
})), container);
|
|
80
|
+
case 16:
|
|
65
81
|
case "end":
|
|
66
|
-
return
|
|
82
|
+
return _context2.stop();
|
|
67
83
|
}
|
|
68
|
-
},
|
|
69
|
-
}))
|
|
70
|
-
|
|
71
|
-
|
|
84
|
+
}, _callee2);
|
|
85
|
+
}));
|
|
86
|
+
return function (_x2, _x3) {
|
|
87
|
+
return _ref.apply(this, arguments);
|
|
88
|
+
};
|
|
89
|
+
}()));
|
|
90
|
+
case 1:
|
|
72
91
|
case "end":
|
|
73
|
-
return
|
|
92
|
+
return _context3.stop();
|
|
74
93
|
}
|
|
75
|
-
},
|
|
94
|
+
}, _callee3);
|
|
76
95
|
}));
|
|
77
96
|
return _showFormDataManager.apply(this, arguments);
|
|
78
97
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
98
|
+
var FormDataManagerRender = /*#__PURE__*/function (_Component) {
|
|
99
|
+
function FormDataManagerRender() {
|
|
81
100
|
var _this;
|
|
82
101
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
83
102
|
args[_key] = arguments[_key];
|
|
@@ -86,14 +105,15 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
86
105
|
_this.layoutRef = void 0;
|
|
87
106
|
return _this;
|
|
88
107
|
}
|
|
89
|
-
_inheritsLoose(
|
|
90
|
-
var _proto =
|
|
108
|
+
_inheritsLoose(FormDataManagerRender, _Component);
|
|
109
|
+
var _proto = FormDataManagerRender.prototype;
|
|
91
110
|
_proto.render = function render() {
|
|
92
111
|
var _this2 = this;
|
|
93
112
|
var self = this;
|
|
94
113
|
var _this$props = this.props,
|
|
95
114
|
layout = _this$props.layout,
|
|
96
115
|
form = _this$props.form,
|
|
116
|
+
onSelectOk = _this$props.onSelectOk,
|
|
97
117
|
onClose = _this$props.onClose,
|
|
98
118
|
restProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
99
119
|
// @ts-ignore
|
|
@@ -104,6 +124,12 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
104
124
|
(_self$layoutRef = self.layoutRef) === null || _self$layoutRef === void 0 ? void 0 : _self$layoutRef.close();
|
|
105
125
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
106
126
|
};
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
restProps.onSelectOk = function (data) {
|
|
129
|
+
var _self$layoutRef2;
|
|
130
|
+
(_self$layoutRef2 = self.layoutRef) === null || _self$layoutRef2 === void 0 ? void 0 : _self$layoutRef2.close();
|
|
131
|
+
onSelectOk === null || onSelectOk === void 0 ? void 0 : onSelectOk(data);
|
|
132
|
+
};
|
|
107
133
|
return /*#__PURE__*/React.createElement(PageLayout, {
|
|
108
134
|
layout: layout,
|
|
109
135
|
ref: function ref(layout) {
|
|
@@ -122,12 +148,11 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
122
148
|
return true;
|
|
123
149
|
});
|
|
124
150
|
}
|
|
125
|
-
console.log("fdmSchema", fdmSchema);
|
|
126
151
|
return /*#__PURE__*/React.createElement(ReactRender, _extends({
|
|
127
152
|
schema: fdmSchema,
|
|
128
153
|
components: window._components || window.components || window.__components
|
|
129
154
|
}, restProps));
|
|
130
155
|
}));
|
|
131
156
|
};
|
|
132
|
-
return
|
|
157
|
+
return FormDataManagerRender;
|
|
133
158
|
}(Component);
|
|
@@ -35,6 +35,7 @@ function _handleFormSchema() {
|
|
|
35
35
|
field.fdmSchema.props = ((_field$fdmSchema = field.fdmSchema) === null || _field$fdmSchema === void 0 ? void 0 : _field$fdmSchema.props) || {};
|
|
36
36
|
field.fdmSchema.props.style = ((_field$fdmSchema2 = field.fdmSchema) === null || _field$fdmSchema2 === void 0 ? void 0 : _field$fdmSchema2.props.style) || {};
|
|
37
37
|
field.fdmSchema.props.style.height = "100%";
|
|
38
|
+
field.fdmSchema.props.label = field.props.label;
|
|
38
39
|
}
|
|
39
40
|
if (field.props.fieldId) {
|
|
40
41
|
//删除children防止循环
|
|
@@ -8,8 +8,6 @@ export interface ShowPageFormDataManagerProps {
|
|
|
8
8
|
fieldId?: string;
|
|
9
9
|
};
|
|
10
10
|
mode?: PageFormDataManagerModeType;
|
|
11
|
-
onSubmitOk?: () => void;
|
|
12
|
-
onRemoveOk?: () => void;
|
|
13
11
|
onClose?: () => void | Promise<void>;
|
|
14
12
|
}
|
|
15
|
-
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<
|
|
13
|
+
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<unknown>;
|
|
@@ -15,7 +15,7 @@ var _pageLoadSchema = require("./page-load-schema");
|
|
|
15
15
|
var _reactRender = require("../../components/react-render");
|
|
16
16
|
var _index = require("./index");
|
|
17
17
|
var _schema = require("../cache/schema");
|
|
18
|
-
var _excluded = ["layout", "form", "onClose"],
|
|
18
|
+
var _excluded = ["layout", "form", "onSelectOk", "onClose"],
|
|
19
19
|
_excluded2 = ["container", "onClose"];
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -23,68 +23,87 @@ function showFormDataManager(_x) {
|
|
|
23
23
|
return _showFormDataManager.apply(this, arguments);
|
|
24
24
|
}
|
|
25
25
|
function _showFormDataManager() {
|
|
26
|
-
_showFormDataManager = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
26
|
+
_showFormDataManager = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(options) {
|
|
27
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
28
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30
29
|
case 0:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
if (!(options.layout == "page")) {
|
|
38
|
-
_context2.next = 13;
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
paths = window.location.pathname.split("/");
|
|
42
|
-
mode = options.mode;
|
|
43
|
-
params = new URLSearchParams();
|
|
44
|
-
url = "/" + paths[1] + "/" + paths[2] + "/" + ((_options$form = options.form) === null || _options$form === void 0 ? void 0 : _options$form.id) + "/" + mode + "?" + params.toString();
|
|
45
|
-
_context2.next = 10;
|
|
46
|
-
return (0, _index.openPage)(url, url);
|
|
47
|
-
case 10:
|
|
48
|
-
page = _context2.sent;
|
|
49
|
-
console.debug("openPage", page);
|
|
50
|
-
return _context2.abrupt("return");
|
|
51
|
-
case 13:
|
|
52
|
-
container = document.createElement("div");
|
|
53
|
-
document.body.append(container);
|
|
54
|
-
case 15:
|
|
55
|
-
_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(FormRender, (0, _extends2["default"])({}, restProps, {
|
|
56
|
-
onClose: /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
57
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
58
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30
|
+
return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
31
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(resolve, reject) {
|
|
32
|
+
var container, onClose, restProps, unmount, _options$form, paths, mode, params, url, page;
|
|
33
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
34
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
59
35
|
case 0:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
36
|
+
container = options.container, onClose = options.onClose, restProps = (0, _objectWithoutPropertiesLoose2["default"])(options, _excluded2); //容器不存在需要手动取消挂载
|
|
37
|
+
unmount = !container;
|
|
38
|
+
if (container) {
|
|
39
|
+
_context2.next = 15;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
if (!(options.layout == "page")) {
|
|
43
|
+
_context2.next = 13;
|
|
44
|
+
break;
|
|
69
45
|
}
|
|
70
|
-
|
|
71
|
-
|
|
46
|
+
paths = window.location.pathname.split("/");
|
|
47
|
+
mode = options.mode;
|
|
48
|
+
params = new URLSearchParams();
|
|
49
|
+
url = "/" + paths[1] + "/" + paths[2] + "/" + ((_options$form = options.form) === null || _options$form === void 0 ? void 0 : _options$form.id) + "/" + mode + "?" + params.toString();
|
|
50
|
+
_context2.next = 10;
|
|
51
|
+
return (0, _index.openPage)(url, url);
|
|
52
|
+
case 10:
|
|
53
|
+
page = _context2.sent;
|
|
54
|
+
console.debug("openPage", page);
|
|
55
|
+
return _context2.abrupt("return");
|
|
56
|
+
case 13:
|
|
57
|
+
container = document.createElement("div");
|
|
58
|
+
document.body.append(container);
|
|
59
|
+
case 15:
|
|
60
|
+
_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(FormDataManagerRender, (0, _extends2["default"])({}, restProps, {
|
|
61
|
+
onSelectOk: function onSelectOk(data) {
|
|
62
|
+
resolve(data || null);
|
|
63
|
+
},
|
|
64
|
+
onClose: /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
65
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
66
|
+
while (1) switch (_context.prev = _context.next) {
|
|
67
|
+
case 0:
|
|
68
|
+
resolve(null);
|
|
69
|
+
if (unmount) {
|
|
70
|
+
//等待动画结束
|
|
71
|
+
setTimeout(function () {
|
|
72
|
+
var _container;
|
|
73
|
+
//取消挂载
|
|
74
|
+
_reactDom["default"].unmountComponentAtNode(container);
|
|
75
|
+
//移除
|
|
76
|
+
(_container = container) === null || _container === void 0 ? void 0 : _container.remove();
|
|
77
|
+
}, 1000);
|
|
78
|
+
}
|
|
79
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
80
|
+
case 3:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context.stop();
|
|
83
|
+
}
|
|
84
|
+
}, _callee);
|
|
85
|
+
}))
|
|
86
|
+
})), container);
|
|
87
|
+
case 16:
|
|
72
88
|
case "end":
|
|
73
|
-
return
|
|
89
|
+
return _context2.stop();
|
|
74
90
|
}
|
|
75
|
-
},
|
|
76
|
-
}))
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
}, _callee2);
|
|
92
|
+
}));
|
|
93
|
+
return function (_x2, _x3) {
|
|
94
|
+
return _ref.apply(this, arguments);
|
|
95
|
+
};
|
|
96
|
+
}()));
|
|
97
|
+
case 1:
|
|
79
98
|
case "end":
|
|
80
|
-
return
|
|
99
|
+
return _context3.stop();
|
|
81
100
|
}
|
|
82
|
-
},
|
|
101
|
+
}, _callee3);
|
|
83
102
|
}));
|
|
84
103
|
return _showFormDataManager.apply(this, arguments);
|
|
85
104
|
}
|
|
86
|
-
var
|
|
87
|
-
function
|
|
105
|
+
var FormDataManagerRender = /*#__PURE__*/function (_Component) {
|
|
106
|
+
function FormDataManagerRender() {
|
|
88
107
|
var _this;
|
|
89
108
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
90
109
|
args[_key] = arguments[_key];
|
|
@@ -93,14 +112,15 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
93
112
|
_this.layoutRef = void 0;
|
|
94
113
|
return _this;
|
|
95
114
|
}
|
|
96
|
-
(0, _inheritsLoose2["default"])(
|
|
97
|
-
var _proto =
|
|
115
|
+
(0, _inheritsLoose2["default"])(FormDataManagerRender, _Component);
|
|
116
|
+
var _proto = FormDataManagerRender.prototype;
|
|
98
117
|
_proto.render = function render() {
|
|
99
118
|
var _this2 = this;
|
|
100
119
|
var self = this;
|
|
101
120
|
var _this$props = this.props,
|
|
102
121
|
layout = _this$props.layout,
|
|
103
122
|
form = _this$props.form,
|
|
123
|
+
onSelectOk = _this$props.onSelectOk,
|
|
104
124
|
onClose = _this$props.onClose,
|
|
105
125
|
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_this$props, _excluded);
|
|
106
126
|
// @ts-ignore
|
|
@@ -111,6 +131,12 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
111
131
|
(_self$layoutRef = self.layoutRef) === null || _self$layoutRef === void 0 ? void 0 : _self$layoutRef.close();
|
|
112
132
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
113
133
|
};
|
|
134
|
+
// @ts-ignore
|
|
135
|
+
restProps.onSelectOk = function (data) {
|
|
136
|
+
var _self$layoutRef2;
|
|
137
|
+
(_self$layoutRef2 = self.layoutRef) === null || _self$layoutRef2 === void 0 ? void 0 : _self$layoutRef2.close();
|
|
138
|
+
onSelectOk === null || onSelectOk === void 0 ? void 0 : onSelectOk(data);
|
|
139
|
+
};
|
|
114
140
|
return /*#__PURE__*/_react["default"].createElement(_pageLayout.PageLayout, {
|
|
115
141
|
layout: layout,
|
|
116
142
|
ref: function ref(layout) {
|
|
@@ -129,12 +155,11 @@ var FormRender = /*#__PURE__*/function (_Component) {
|
|
|
129
155
|
return true;
|
|
130
156
|
});
|
|
131
157
|
}
|
|
132
|
-
console.log("fdmSchema", fdmSchema);
|
|
133
158
|
return /*#__PURE__*/_react["default"].createElement(_reactRender.ReactRender, (0, _extends2["default"])({
|
|
134
159
|
schema: fdmSchema,
|
|
135
160
|
components: window._components || window.components || window.__components
|
|
136
161
|
}, restProps));
|
|
137
162
|
}));
|
|
138
163
|
};
|
|
139
|
-
return
|
|
164
|
+
return FormDataManagerRender;
|
|
140
165
|
}(_react.Component);
|