amis-core 6.11.0-beta.5 → 6.11.0-beta.7
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/esm/Root.js +1 -1
- package/esm/RootRenderer.js +1 -1
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/actions/Action.js +1 -1
- package/esm/actions/AjaxAction.js +1 -1
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +1 -1
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/EventAction.js +1 -1
- package/esm/actions/LinkAction.js +1 -1
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/PrintAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/WaitAction.js +1 -1
- package/esm/components/Animations.js +1 -1
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.js +1 -1
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.js +1 -1
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/globalVar.js +1 -1
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/index.js +4 -4
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +17 -43
- package/esm/renderers/Item.js +24 -51
- package/esm/renderers/Options.js +8 -38
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.js +10 -41
- package/esm/store/app.js +1 -1
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.js +1 -1
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.js +1 -1
- package/esm/store/index.js +1 -1
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.js +1 -1
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.js +1 -1
- package/esm/store/table2.js +1 -1
- package/esm/theme.js +1 -1
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/animations.js +1 -1
- package/esm/utils/api.js +1 -1
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/concatData.js +1 -1
- package/esm/utils/dataMapping.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debug.js +1 -1
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +1 -1
- package/esm/utils/errors.js +1 -1
- package/esm/utils/escapeHtml.js +1 -1
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.js +1 -1
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.js +1 -1
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.js +46 -0
- package/esm/utils/isPureVariable.js +1 -1
- package/esm/utils/json-schema-2-amis-schema.js +1 -1
- package/esm/utils/keyToPath.js +1 -1
- package/esm/utils/labelToString.js +1 -1
- package/esm/utils/loopTooMuch.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.js +1 -1
- package/esm/utils/memoryParse.js +1 -1
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +1 -1
- package/esm/utils/object.js +1 -1
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +1 -1
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/printElement.js +1 -1
- package/esm/utils/renderer-event.js +1 -1
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.js +1 -1
- package/esm/utils/style.js +1 -1
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.js +1 -1
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.js +1 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/esm/utils/visitedCache.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.js +1 -1
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +1 -1
- package/lib/actions/Action.js +1 -1
- package/lib/actions/AjaxAction.js +1 -1
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +1 -1
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/EventAction.js +1 -1
- package/lib/actions/LinkAction.js +1 -1
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/PrintAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/WaitAction.js +1 -1
- package/lib/components/Animations.js +1 -1
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.js +1 -1
- package/lib/components/LazyComponent.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.js +1 -1
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/globalVar.js +1 -1
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/index.js +4 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +21 -48
- package/lib/renderers/Item.js +28 -56
- package/lib/renderers/Options.js +12 -43
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.js +14 -46
- package/lib/store/app.js +1 -1
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.js +1 -1
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.js +1 -1
- package/lib/store/index.js +1 -1
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.js +1 -1
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.js +1 -1
- package/lib/store/table2.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/animations.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/concatData.js +1 -1
- package/lib/utils/dataMapping.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/debug.js +1 -1
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +1 -1
- package/lib/utils/errors.js +1 -1
- package/lib/utils/escapeHtml.js +1 -1
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.js +1 -1
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.js +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.js +241 -0
- package/lib/utils/isPureVariable.js +1 -1
- package/lib/utils/json-schema-2-amis-schema.js +1 -1
- package/lib/utils/keyToPath.js +1 -1
- package/lib/utils/labelToString.js +1 -1
- package/lib/utils/loopTooMuch.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.js +1 -1
- package/lib/utils/memoryParse.js +1 -1
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +1 -1
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/printElement.js +1 -1
- package/lib/utils/renderer-event.js +1 -1
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.js +1 -1
- package/lib/utils/style.js +1 -1
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.js +1 -1
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.js +1 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +12 -2
package/esm/Root.js
CHANGED
package/esm/RootRenderer.js
CHANGED
package/esm/SchemaRenderer.js
CHANGED
package/esm/Scoped.js
CHANGED
package/esm/StatusScoped.js
CHANGED
package/esm/StyleManager.js
CHANGED
package/esm/WithRootStore.js
CHANGED
package/esm/WithStore.js
CHANGED
package/esm/actions/Action.js
CHANGED
package/esm/env.js
CHANGED
package/esm/envOverwrite.js
CHANGED
package/esm/factory.js
CHANGED
package/esm/globalVar.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.11.0-beta.
|
|
2
|
+
* amis-core v6.11.0-beta.7
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -154,10 +154,10 @@ export { StoreNode } from './store/node.js';
|
|
|
154
154
|
*/
|
|
155
155
|
var classPrefix = getClassPrefix();
|
|
156
156
|
// @ts-ignore
|
|
157
|
-
var version = '6.11.0-beta.
|
|
157
|
+
var version = '6.11.0-beta.7';
|
|
158
158
|
window.amisVersionInfo = {
|
|
159
|
-
version: '6.11.0-beta.
|
|
160
|
-
buildTime: '2025-01-
|
|
159
|
+
version: '6.11.0-beta.7',
|
|
160
|
+
buildTime: '2025-01-16T02:41:03.383Z'
|
|
161
161
|
};
|
|
162
162
|
function render(schema, _a, options, pathPrefix) {
|
|
163
163
|
if (_a === void 0) { _a = {}; }
|
package/esm/locale.js
CHANGED
package/esm/polyfills.js
CHANGED
package/esm/renderers/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.11.0-beta.
|
|
2
|
+
* amis-core v6.11.0-beta.7
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -9,50 +9,23 @@ import { Renderer } from '../factory.js';
|
|
|
9
9
|
import { FormStore } from '../store/form.js';
|
|
10
10
|
import { evalExpression, filter } from '../utils/tpl.js';
|
|
11
11
|
import { getExprProperties } from '../utils/filter-schema.js';
|
|
12
|
-
import { promisify, isEmpty, until, noop, difference, isVisible, repeatCount, qsparse, isObjectShallowModified
|
|
12
|
+
import { promisify, isEmpty, until, noop, difference, isVisible, SkipOperation, repeatCount, qsparse, isObjectShallowModified } from '../utils/helper.js';
|
|
13
13
|
import debounce from 'lodash/debounce';
|
|
14
14
|
import flatten from 'lodash/flatten';
|
|
15
15
|
import find from 'lodash/find';
|
|
16
16
|
import { filterTarget, ScopedContext } from '../Scoped.js';
|
|
17
|
-
import '
|
|
18
|
-
import 'moment';
|
|
19
|
-
import { isObject, createObject, cloneObject, injectObjectChain } from '../utils/object.js';
|
|
20
|
-
import '../utils/memoryParse.js';
|
|
21
|
-
import '@rc-component/mini-decimal';
|
|
22
|
-
import { dataMapping } from '../utils/dataMapping.js';
|
|
23
|
-
import '../utils/filter.js';
|
|
17
|
+
import '../utils/tpl-builtin.js';
|
|
24
18
|
import { isEffectiveApi, isApiOutdated, shouldBlockedBySendOnApi } from '../utils/api.js';
|
|
25
19
|
import themedLazyComponent from '../components/LazyComponent.js';
|
|
26
20
|
import { isAlive } from 'mobx-state-tree';
|
|
27
|
-
import '../utils/
|
|
28
|
-
import '../utils/ColorScale.js';
|
|
29
|
-
import 'lodash/chunk';
|
|
30
|
-
import '../utils/DataSchema.js';
|
|
31
|
-
import '../utils/DataScope.js';
|
|
32
|
-
import '../utils/debug.js';
|
|
33
|
-
import 'react-dom';
|
|
34
|
-
import '../utils/errors.js';
|
|
35
|
-
import 'lodash/isObject';
|
|
36
|
-
import 'lodash/isString';
|
|
37
|
-
import 'lodash/isBoolean';
|
|
38
|
-
import '../utils/image.js';
|
|
39
|
-
import 'lodash/isPlainObject';
|
|
40
|
-
import isEqual from 'lodash/isEqual';
|
|
41
|
-
import '../actions/Action.js';
|
|
42
|
-
import '../utils/resize-sensor.js';
|
|
43
|
-
import 'react-overlays/useRootClose';
|
|
44
|
-
import '../utils/SimpleMap.js';
|
|
45
|
-
import 'lodash/mapValues';
|
|
46
|
-
import 'lodash/camelCase';
|
|
47
|
-
import { setThemeClassName } from '../utils/style-helper.js';
|
|
48
|
-
import 'uncontrollable';
|
|
49
|
-
import 'hoist-non-react-statics';
|
|
50
|
-
import '../utils/validations.js';
|
|
51
|
-
import '../utils/resolveCondition.js';
|
|
21
|
+
import '../utils/index.js';
|
|
52
22
|
import { reaction } from 'mobx';
|
|
53
|
-
import '../utils/Animation.js';
|
|
54
23
|
import groupBy from 'lodash/groupBy';
|
|
24
|
+
import isEqual from 'lodash/isEqual';
|
|
55
25
|
import CustomStyle from '../components/CustomStyle.js';
|
|
26
|
+
import { isObject, createObject, cloneObject, injectObjectChain } from '../utils/object.js';
|
|
27
|
+
import { setThemeClassName } from '../utils/style-helper.js';
|
|
28
|
+
import { dataMapping } from '../utils/dataMapping.js';
|
|
56
29
|
|
|
57
30
|
var Form = /** @class */ (function (_super) {
|
|
58
31
|
__extends(Form, _super);
|
|
@@ -271,11 +244,11 @@ var Form = /** @class */ (function (_super) {
|
|
|
271
244
|
};
|
|
272
245
|
Form.prototype.onInit = function () {
|
|
273
246
|
return __awaiter(this, void 0, void 0, function () {
|
|
274
|
-
var _a, onInit, store, persistData, submitOnInit, data, initedAt, hooks, groupedHooks, dispatch;
|
|
247
|
+
var _a, onInit, store, persistData, submitOnInit, dispatchEvent, data, initedAt, hooks, groupedHooks, dispatch;
|
|
275
248
|
return __generator(this, function (_b) {
|
|
276
249
|
switch (_b.label) {
|
|
277
250
|
case 0:
|
|
278
|
-
_a = this.props, onInit = _a.onInit, store = _a.store, persistData = _a.persistData, submitOnInit = _a.submitOnInit, _a.dispatchEvent;
|
|
251
|
+
_a = this.props, onInit = _a.onInit, store = _a.store, persistData = _a.persistData, submitOnInit = _a.submitOnInit, dispatchEvent = _a.dispatchEvent;
|
|
279
252
|
if (!isAlive(store)) {
|
|
280
253
|
return [2 /*return*/];
|
|
281
254
|
}
|
|
@@ -626,7 +599,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
626
599
|
});
|
|
627
600
|
};
|
|
628
601
|
Form.prototype.handleBulkChange = function (values, submit, changeReason) {
|
|
629
|
-
var _a = this.props
|
|
602
|
+
var _a = this.props, onChange = _a.onChange, store = _a.store, formLazyChange = _a.formLazyChange;
|
|
630
603
|
store.setValues(values, undefined, undefined, undefined, changeReason || {
|
|
631
604
|
type: 'input'
|
|
632
605
|
});
|
|
@@ -1038,7 +1011,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
1038
1011
|
}
|
|
1039
1012
|
};
|
|
1040
1013
|
Form.prototype.handleDialogConfirm = function (values, action, ctx, targets) {
|
|
1041
|
-
var _a = this.props, store = _a.store
|
|
1014
|
+
var _a = this.props, store = _a.store, onChange = _a.onChange;
|
|
1042
1015
|
if ((action.mergeData || store.action.mergeData) &&
|
|
1043
1016
|
values.length === 1 &&
|
|
1044
1017
|
values[0] &&
|
|
@@ -1146,7 +1119,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
1146
1119
|
children = [children];
|
|
1147
1120
|
}
|
|
1148
1121
|
if (this.props.mode === 'row') {
|
|
1149
|
-
this.props.classPrefix;
|
|
1122
|
+
var ns = this.props.classPrefix;
|
|
1150
1123
|
children = flatten(children).filter(function (item) {
|
|
1151
1124
|
if (item.hidden || item.visible === false) {
|
|
1152
1125
|
return false;
|
|
@@ -1224,7 +1197,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
1224
1197
|
}
|
|
1225
1198
|
var props = __assign(__assign({}, this.props), otherProps);
|
|
1226
1199
|
var form = this.props.store;
|
|
1227
|
-
var render = props.render, mode = props.mode, horizontal = props.horizontal, store = props.store, disabled = props.disabled, controlWidth = props.controlWidth, resolveDefinitions = props.resolveDefinitions, lazyChange = props.lazyChange
|
|
1200
|
+
var render = props.render, mode = props.mode, horizontal = props.horizontal, store = props.store, disabled = props.disabled, controlWidth = props.controlWidth, resolveDefinitions = props.resolveDefinitions, lazyChange = props.lazyChange, formLazyChange = props.formLazyChange, dispatchEvent = props.dispatchEvent, labelAlign = props.labelAlign, labelWidth = props.labelWidth, isStatic = props.static, canAccessSuperData = props.canAccessSuperData;
|
|
1228
1201
|
var subProps = {
|
|
1229
1202
|
formStore: form,
|
|
1230
1203
|
data: store.data,
|
|
@@ -1269,7 +1242,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
1269
1242
|
return render("".concat(region ? "".concat(region, "/") : '').concat(key), subSchema, subProps);
|
|
1270
1243
|
};
|
|
1271
1244
|
Form.prototype.renderBody = function () {
|
|
1272
|
-
var _a = this.props, body = _a.body, mode = _a.mode, className = _a.className, cx = _a.classnames, debug = _a.debug, debugConfig = _a.debugConfig, $path = _a.$path, store = _a.store, columnCount = _a.columnCount, render = _a.render, staticClassName = _a.staticClassName, _b = _a.static, isStatic = _b === void 0 ? false : _b, loadingConfig = _a.loadingConfig, themeCss = _a.themeCss, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, env = _a.env, wrapWithPanel = _a.wrapWithPanel
|
|
1245
|
+
var _a = this.props, body = _a.body, mode = _a.mode, className = _a.className, cx = _a.classnames, debug = _a.debug, debugConfig = _a.debugConfig, $path = _a.$path, store = _a.store, columnCount = _a.columnCount, render = _a.render, staticClassName = _a.staticClassName, _b = _a.static, isStatic = _b === void 0 ? false : _b, loadingConfig = _a.loadingConfig, themeCss = _a.themeCss, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, env = _a.env, wrapWithPanel = _a.wrapWithPanel, testid = _a.testid;
|
|
1273
1246
|
var restError = store.restError;
|
|
1274
1247
|
var WrapperComponent = this.props.wrapperComponent ||
|
|
1275
1248
|
(/(?:\/|^)form\//.test($path) ? 'div' : 'form');
|
|
@@ -1379,7 +1352,7 @@ var Form = /** @class */ (function (_super) {
|
|
|
1379
1352
|
}, env: env }))));
|
|
1380
1353
|
};
|
|
1381
1354
|
Form.prototype.render = function () {
|
|
1382
|
-
var _a = this.props
|
|
1355
|
+
var _a = this.props, $path = _a.$path, $schema = _a.$schema, wrapWithPanel = _a.wrapWithPanel, render = _a.render, title = _a.title, store = _a.store, panelClassName = _a.panelClassName, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, footerWrapClassName = _a.footerWrapClassName, actionsClassName = _a.actionsClassName, bodyClassName = _a.bodyClassName, cx = _a.classnames, style = _a.style, affixFooter = _a.affixFooter, lazyLoad = _a.lazyLoad, __ = _a.translate, footer = _a.footer, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, themeCss = _a.themeCss;
|
|
1383
1356
|
var body = this.renderBody();
|
|
1384
1357
|
if (wrapWithPanel) {
|
|
1385
1358
|
body = render('body', {
|
|
@@ -1534,6 +1507,7 @@ var FormRendererBase = /** @class */ (function (_super) {
|
|
|
1534
1507
|
else {
|
|
1535
1508
|
return [2 /*return*/, _super.prototype.handleAction.call(this, e, action, ctx, throwErrors, delegate)];
|
|
1536
1509
|
}
|
|
1510
|
+
return [2 /*return*/];
|
|
1537
1511
|
});
|
|
1538
1512
|
});
|
|
1539
1513
|
};
|