amis-core 6.13.0-beta.0 → 6.13.0-beta.10
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 +15 -7
- package/esm/SchemaRenderer.d.ts +3 -0
- package/esm/SchemaRenderer.js +63 -10
- 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 +8 -4
- 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 +15 -2
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/index.js +6 -6
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +3 -5
- package/esm/renderers/Item.js +2 -17
- package/esm/renderers/Options.js +1 -1
- 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 -4
- package/esm/store/app.d.ts +4 -0
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +12 -0
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +5 -0
- package/esm/store/crud.js +6 -2
- package/esm/store/form.d.ts +4 -1
- package/esm/store/form.js +3 -2
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.d.ts +4 -0
- package/esm/store/iRenderer.js +27 -4
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +4 -0
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +4 -0
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +4 -0
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +14 -2
- package/esm/store/root.js +181 -49
- package/esm/store/service.d.ts +4 -0
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +53 -92
- package/esm/store/table.js +42 -20
- package/esm/store/table2.d.ts +5 -0
- package/esm/store/table2.js +17 -10
- 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 +8 -3
- 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 +11 -4
- package/esm/utils/errors.js +2 -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/getPageId.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 +1 -1
- package/esm/utils/isPureVariable.js +2 -2
- 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.d.ts +1 -0
- package/esm/utils/math.js +16 -2
- package/esm/utils/memoryParse.js +1 -1
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +6 -2
- 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 +14 -11
- 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.d.ts +13 -0
- package/esm/utils/style.js +43 -3
- 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 +6 -2
- 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.d.ts +1 -1
- package/lib/RootRenderer.js +15 -7
- package/lib/SchemaRenderer.d.ts +3 -0
- package/lib/SchemaRenderer.js +65 -8
- 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 +8 -4
- 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 +19 -2
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/index.js +7 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +3 -5
- package/lib/renderers/Item.d.ts +1 -1
- package/lib/renderers/Item.js +2 -17
- package/lib/renderers/Options.js +1 -1
- 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 +10 -4
- package/lib/store/app.d.ts +4 -0
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +37 -24
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +5 -0
- package/lib/store/crud.js +6 -2
- package/lib/store/form.d.ts +15 -11
- package/lib/store/form.js +3 -2
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.d.ts +4 -0
- package/lib/store/iRenderer.js +30 -3
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +4 -0
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +4 -0
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +4 -0
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +15 -2
- package/lib/store/root.js +178 -46
- package/lib/store/service.d.ts +4 -0
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +73 -112
- package/lib/store/table.js +41 -19
- package/lib/store/table2.d.ts +5 -0
- package/lib/store/table2.js +17 -10
- 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 +8 -3
- 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 +11 -4
- package/lib/utils/errors.js +2 -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/getPageId.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 +1 -1
- package/lib/utils/isPureVariable.js +2 -2
- 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.d.ts +1 -0
- package/lib/utils/math.js +16 -1
- package/lib/utils/memoryParse.js +1 -1
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +6 -2
- 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 +14 -11
- 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.d.ts +13 -0
- package/lib/utils/style.js +44 -2
- 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 +6 -2
- 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 +2 -2
package/lib/store/form.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { Instance } from 'mobx-state-tree';
|
|
2
3
|
import type { IFormItemStore } from './formItem';
|
|
3
4
|
import { Api, DataChangeReason, fetchOptions, Payload } from '../types';
|
|
@@ -17,8 +18,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
17
18
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
19
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
20
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
22
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
23
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
22
25
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
26
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
27
|
} & {
|
|
@@ -57,8 +60,9 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
57
60
|
readonly pristineDiff: any;
|
|
58
61
|
} & {
|
|
59
62
|
setTopStore(value: any): void;
|
|
60
|
-
/** 获取InputGroup的子元素 */
|
|
61
63
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: DataChangeReason | undefined): void;
|
|
64
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
65
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
62
66
|
reset(): void;
|
|
63
67
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: DataChangeReason | undefined): void;
|
|
64
68
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: DataChangeReason | undefined): void;
|
|
@@ -252,7 +256,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
252
256
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
253
257
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
254
258
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
255
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
259
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
256
260
|
changeEmitedValue: (value: any) => void;
|
|
257
261
|
addSubFormItem: (item: {
|
|
258
262
|
id: string;
|
|
@@ -787,7 +791,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
787
791
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
788
792
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
789
793
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
790
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
794
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
791
795
|
changeEmitedValue: (value: any) => void;
|
|
792
796
|
addSubFormItem: (item: {
|
|
793
797
|
id: string;
|
|
@@ -1329,7 +1333,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1329
1333
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1330
1334
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1331
1335
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1332
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1336
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1333
1337
|
changeEmitedValue: (value: any) => void;
|
|
1334
1338
|
addSubFormItem: (item: {
|
|
1335
1339
|
id: string;
|
|
@@ -1864,7 +1868,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1864
1868
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1865
1869
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1866
1870
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1867
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1871
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1868
1872
|
changeEmitedValue: (value: any) => void;
|
|
1869
1873
|
addSubFormItem: (item: {
|
|
1870
1874
|
id: string;
|
|
@@ -2408,7 +2412,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2408
2412
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2409
2413
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2410
2414
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2411
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
2415
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2412
2416
|
changeEmitedValue: (value: any) => void;
|
|
2413
2417
|
addSubFormItem: (item: {
|
|
2414
2418
|
id: string;
|
|
@@ -2943,7 +2947,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2943
2947
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2944
2948
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2945
2949
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2946
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
2950
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2947
2951
|
changeEmitedValue: (value: any) => void;
|
|
2948
2952
|
addSubFormItem: (item: {
|
|
2949
2953
|
id: string;
|
|
@@ -3482,7 +3486,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3482
3486
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3483
3487
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3484
3488
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3485
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
3489
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3486
3490
|
changeEmitedValue: (value: any) => void;
|
|
3487
3491
|
addSubFormItem: (item: {
|
|
3488
3492
|
id: string;
|
|
@@ -4017,7 +4021,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4017
4021
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4018
4022
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4019
4023
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4020
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4024
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4021
4025
|
changeEmitedValue: (value: any) => void;
|
|
4022
4026
|
addSubFormItem: (item: {
|
|
4023
4027
|
id: string;
|
|
@@ -4556,7 +4560,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4556
4560
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4557
4561
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4558
4562
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4559
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4563
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4560
4564
|
changeEmitedValue: (value: any) => void;
|
|
4561
4565
|
addSubFormItem: (item: {
|
|
4562
4566
|
id: string;
|
|
@@ -5091,7 +5095,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
5091
5095
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5092
5096
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5093
5097
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5094
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
5098
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5095
5099
|
changeEmitedValue: (value: any) => void;
|
|
5096
5100
|
addSubFormItem: (item: {
|
|
5097
5101
|
id: string;
|
package/lib/store/form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -660,7 +660,8 @@ var FormStore = service.ServiceStore.named('FormStore')
|
|
|
660
660
|
function reset(cb, resetData) {
|
|
661
661
|
if (resetData === void 0) { resetData = true; }
|
|
662
662
|
if (resetData) {
|
|
663
|
-
|
|
663
|
+
// 父级的数据可能已经被修改,__super不应该被修改
|
|
664
|
+
self.data = object.createObject(self.data.__super, self.pristine);
|
|
664
665
|
}
|
|
665
666
|
// 值可能变了,重新验证一次。
|
|
666
667
|
self.validated = false;
|
package/lib/store/formItem.js
CHANGED
package/lib/store/iRenderer.d.ts
CHANGED
|
@@ -17,8 +17,10 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
17
17
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
19
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
22
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
22
24
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
25
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
26
|
}, {
|
|
@@ -39,6 +41,8 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
39
41
|
} & {
|
|
40
42
|
setTopStore(value: any): void;
|
|
41
43
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: DataChangeReason): void;
|
|
44
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
45
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
42
46
|
reset(): void;
|
|
43
47
|
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: DataChangeReason): void;
|
|
44
48
|
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: ((data: Object) => void) | undefined, changeReason?: DataChangeReason): void;
|
package/lib/store/iRenderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -58,6 +58,11 @@ require('../utils/validations.js');
|
|
|
58
58
|
require('../utils/resolveCondition.js');
|
|
59
59
|
require('mobx');
|
|
60
60
|
require('../utils/Animation.js');
|
|
61
|
+
var findLastIndex = require('lodash/findLastIndex');
|
|
62
|
+
|
|
63
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
64
|
+
|
|
65
|
+
var findLastIndex__default = /*#__PURE__*/_interopDefaultLegacy(findLastIndex);
|
|
61
66
|
|
|
62
67
|
var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
63
68
|
.props({
|
|
@@ -69,8 +74,10 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
69
74
|
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
70
75
|
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
71
76
|
action: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
77
|
+
dialogSchema: mobxStateTree.types.frozen(),
|
|
72
78
|
dialogOpen: false,
|
|
73
79
|
dialogData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
80
|
+
drawerSchema: mobxStateTree.types.frozen(),
|
|
74
81
|
drawerOpen: false,
|
|
75
82
|
drawerData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined)
|
|
76
83
|
})
|
|
@@ -124,6 +131,22 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
124
131
|
self.data = data;
|
|
125
132
|
self.upStreamData = data;
|
|
126
133
|
},
|
|
134
|
+
// 临时更新全局变量
|
|
135
|
+
temporaryUpdateGlobalVars: function (globalVar) {
|
|
136
|
+
var chain = object.extractObjectChain(self.data).filter(function (item) { return !item.hasOwnProperty('__isTempGlobalLayer'); });
|
|
137
|
+
var idx = findLastIndex__default["default"](chain, function (item) {
|
|
138
|
+
return item.hasOwnProperty('global') || item.hasOwnProperty('globalState');
|
|
139
|
+
});
|
|
140
|
+
if (idx !== -1) {
|
|
141
|
+
chain.splice(idx + 1, 0, tslib.__assign(tslib.__assign({}, globalVar), { __isTempGlobalLayer: true }));
|
|
142
|
+
}
|
|
143
|
+
self.data = object.createObjectFromChain(chain);
|
|
144
|
+
},
|
|
145
|
+
// 撤销临时更新全局变量
|
|
146
|
+
unDoTemporaryUpdateGlobalVars: function () {
|
|
147
|
+
var chain = object.extractObjectChain(self.data).filter(function (item) { return !item.hasOwnProperty('__isTempGlobalLayer'); });
|
|
148
|
+
self.data = object.createObjectFromChain(chain);
|
|
149
|
+
},
|
|
127
150
|
reset: function () {
|
|
128
151
|
self.data = self.pristine;
|
|
129
152
|
},
|
|
@@ -230,8 +253,6 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
230
253
|
}
|
|
231
254
|
});
|
|
232
255
|
self.action = action;
|
|
233
|
-
self.dialogData = false;
|
|
234
|
-
self.drawerOpen = false;
|
|
235
256
|
},
|
|
236
257
|
openDialog: function (ctx, additonal, callback, scoped) {
|
|
237
258
|
var _a, _b;
|
|
@@ -254,12 +275,15 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
254
275
|
else {
|
|
255
276
|
self.dialogData = data;
|
|
256
277
|
}
|
|
278
|
+
self.dialogSchema = self.action.dialog;
|
|
257
279
|
self.dialogOpen = true;
|
|
258
280
|
callback && dialogCallbacks.set(self.dialogData, callback);
|
|
259
281
|
dialogScoped = scoped || null;
|
|
260
282
|
},
|
|
261
283
|
closeDialog: function (confirmed, data) {
|
|
262
284
|
var callback = dialogCallbacks.get(self.dialogData);
|
|
285
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
286
|
+
// self.dialogSchema = null;
|
|
263
287
|
self.dialogOpen = false;
|
|
264
288
|
dialogScoped = null;
|
|
265
289
|
if (callback) {
|
|
@@ -288,6 +312,7 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
288
312
|
else {
|
|
289
313
|
self.drawerData = data;
|
|
290
314
|
}
|
|
315
|
+
self.drawerSchema = self.action.drawer;
|
|
291
316
|
self.drawerOpen = true;
|
|
292
317
|
if (callback) {
|
|
293
318
|
dialogCallbacks.set(self.drawerData, callback);
|
|
@@ -296,6 +321,8 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
296
321
|
},
|
|
297
322
|
closeDrawer: function (confirmed, data) {
|
|
298
323
|
var callback = dialogCallbacks.get(self.drawerData);
|
|
324
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
325
|
+
// self.drawerSchema = null;
|
|
299
326
|
self.drawerOpen = false;
|
|
300
327
|
drawerScoped = null;
|
|
301
328
|
if (callback) {
|
package/lib/store/index.js
CHANGED
package/lib/store/list.d.ts
CHANGED
|
@@ -37,8 +37,10 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
37
37
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
38
38
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
39
39
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
40
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
40
41
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
41
42
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
43
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
42
44
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
43
45
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
44
46
|
} & {
|
|
@@ -113,6 +115,8 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
113
115
|
} & {
|
|
114
116
|
setTopStore(value: any): void;
|
|
115
117
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
118
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
119
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
116
120
|
reset(): void;
|
|
117
121
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
118
122
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
package/lib/store/list.js
CHANGED
package/lib/store/manager.js
CHANGED
package/lib/store/modal.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
15
15
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
16
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
17
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
18
19
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
20
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
22
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
23
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
24
|
} & {
|
|
@@ -52,6 +54,8 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
52
54
|
} & {
|
|
53
55
|
setTopStore(value: any): void;
|
|
54
56
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
57
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
58
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
55
59
|
reset(): void;
|
|
56
60
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
57
61
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
package/lib/store/modal.js
CHANGED
package/lib/store/node.js
CHANGED
|
@@ -15,8 +15,10 @@ export declare const PaginationStore: import("mobx-state-tree").IModelType<{
|
|
|
15
15
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
16
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
17
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
18
19
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
20
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
22
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
23
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
24
|
} & {
|
|
@@ -44,6 +46,8 @@ export declare const PaginationStore: import("mobx-state-tree").IModelType<{
|
|
|
44
46
|
} & {
|
|
45
47
|
setTopStore(value: any): void;
|
|
46
48
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
49
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
50
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
47
51
|
reset(): void;
|
|
48
52
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
49
53
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
package/lib/store/pagination.js
CHANGED
package/lib/store/root.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { Instance } from 'mobx-state-tree';
|
|
2
3
|
import { GlobalVariableItem, GlobalVariableState, GlobalVariableItemFull } from '../globalVar';
|
|
3
4
|
export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
@@ -16,8 +17,10 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
16
17
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
19
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
19
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
20
22
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
21
24
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
22
25
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
26
|
} & {
|
|
@@ -35,6 +38,7 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
35
38
|
runtimeErrorStack: import("mobx-state-tree").IType<any, any, any>;
|
|
36
39
|
query: import("mobx-state-tree").IType<any, any, any>;
|
|
37
40
|
ready: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
41
|
+
globalVarTempStates: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").IType<GlobalVariableState, GlobalVariableState, GlobalVariableState>>, [undefined]>;
|
|
38
42
|
globalVarStates: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").IType<GlobalVariableState, GlobalVariableState, GlobalVariableState>>, [undefined]>;
|
|
39
43
|
}, {
|
|
40
44
|
readonly parentStore: any;
|
|
@@ -54,6 +58,8 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
54
58
|
} & {
|
|
55
59
|
setTopStore(value: any): void;
|
|
56
60
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
61
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
62
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
57
63
|
reset(): void;
|
|
58
64
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
59
65
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
@@ -80,13 +86,16 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
80
86
|
fetchSchema: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
81
87
|
checkRemote: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
82
88
|
} & {
|
|
83
|
-
context:
|
|
89
|
+
context: any;
|
|
90
|
+
legacyGlobalTempContext: any;
|
|
84
91
|
globalVars: GlobalVariableItemFull[];
|
|
85
92
|
globalData: any;
|
|
86
93
|
} & {
|
|
94
|
+
readonly nextGlobalData: any;
|
|
87
95
|
readonly downStream: any;
|
|
88
96
|
} & {
|
|
89
|
-
|
|
97
|
+
updateContextBySetter(context: any): void;
|
|
98
|
+
updateContext(context: any, isInit?: boolean): void;
|
|
90
99
|
updateGlobalVarState(key: string, state: Partial<GlobalVariableState>): void;
|
|
91
100
|
setGlobalVars: (vars?: Array<GlobalVariableItem>) => Promise<any>;
|
|
92
101
|
updateGlobalVarValue: (key: string, value: any) => void;
|
|
@@ -98,6 +107,10 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
98
107
|
setRuntimeError(error: any, errorStack: any): void;
|
|
99
108
|
updateLocation(location?: any, parseFn?: Function): void;
|
|
100
109
|
init: (schema: any) => Promise<any>;
|
|
110
|
+
syncGlobalVarStates: () => void;
|
|
111
|
+
syncLegacyGlobalVarStates: () => void;
|
|
112
|
+
addSyncGlobalVarStatePendingTask: (fn: (callback: () => void) => void, callback?: () => void) => void;
|
|
113
|
+
afterCreate(): void;
|
|
101
114
|
afterDestroy(): void;
|
|
102
115
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
103
116
|
export type IRootStore = Instance<typeof RootStore>;
|