amis-core 6.13.0-beta.6 → 6.13.0-beta.8
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 +13 -3
- package/esm/SchemaRenderer.js +8 -3
- 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 +1 -1
- package/esm/renderers/Item.js +1 -1
- 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 +1 -1
- 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.d.ts +3 -2
- package/esm/store/root.js +73 -56
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +39 -4
- package/esm/store/table.js +28 -11
- 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/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.js +1 -1
- 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 +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 +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 +13 -3
- package/lib/SchemaRenderer.js +8 -3
- 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 +1 -1
- package/lib/renderers/Item.js +1 -1
- 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 +1 -1
- 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.d.ts +3 -2
- package/lib/store/root.js +71 -54
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +40 -4
- package/lib/store/table.js +28 -11
- 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/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.js +1 -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 +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 +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/root.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.8
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -78,6 +78,7 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
78
78
|
.volatile(function (self) {
|
|
79
79
|
return {
|
|
80
80
|
context: {},
|
|
81
|
+
legacyGlobalTempContext: {},
|
|
81
82
|
globalVars: [],
|
|
82
83
|
globalData: {
|
|
83
84
|
global: {},
|
|
@@ -89,13 +90,53 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
89
90
|
get nextGlobalData() {
|
|
90
91
|
var globalData = {};
|
|
91
92
|
var globalState = {};
|
|
92
|
-
|
|
93
|
+
var chain = object.extractObjectChain(self.data);
|
|
94
|
+
var touched = false;
|
|
95
|
+
var saved = true;
|
|
96
|
+
var errors = {};
|
|
97
|
+
var initialized = true;
|
|
98
|
+
self.globalVarTempStates.forEach(function (state, key) {
|
|
99
|
+
globalData[key] = state.value;
|
|
100
|
+
touched = touched || state.touched;
|
|
101
|
+
if (!state.saved) {
|
|
102
|
+
saved = false;
|
|
103
|
+
}
|
|
104
|
+
if (state.errorMessages.length) {
|
|
105
|
+
errors[key] = state.errorMessages;
|
|
106
|
+
}
|
|
107
|
+
if (!state.initialized) {
|
|
108
|
+
initialized = false;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
globalState = {
|
|
112
|
+
fields: self.globalVarTempStates.toJSON(),
|
|
113
|
+
initialized: initialized,
|
|
114
|
+
touched: touched,
|
|
115
|
+
saved: saved,
|
|
116
|
+
errors: errors,
|
|
117
|
+
valid: !Object.keys(errors).length
|
|
118
|
+
};
|
|
119
|
+
chain.unshift({
|
|
120
|
+
global: globalData,
|
|
121
|
+
globalState: globalState
|
|
122
|
+
});
|
|
123
|
+
chain.unshift(self.legacyGlobalTempContext);
|
|
124
|
+
chain.unshift(self.context);
|
|
125
|
+
return object.createObjectFromChain(chain);
|
|
126
|
+
},
|
|
127
|
+
get downStream() {
|
|
128
|
+
var result = self.data;
|
|
129
|
+
if (self.context || self.query) {
|
|
130
|
+
var chain = object.extractObjectChain(result);
|
|
131
|
+
// 数据链中添加 global 和 globalState
|
|
132
|
+
// 对应的是全局变量的值和全局变量的状态
|
|
133
|
+
var globalData_1 = {};
|
|
93
134
|
var touched_1 = false;
|
|
94
135
|
var saved_1 = true;
|
|
95
136
|
var errors_1 = {};
|
|
96
137
|
var initialized_1 = true;
|
|
97
|
-
self.
|
|
98
|
-
|
|
138
|
+
self.globalVarStates.forEach(function (state, key) {
|
|
139
|
+
globalData_1[key] = state.value;
|
|
99
140
|
touched_1 = touched_1 || state.touched;
|
|
100
141
|
if (!state.saved) {
|
|
101
142
|
saved_1 = false;
|
|
@@ -107,59 +148,19 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
107
148
|
initialized_1 = false;
|
|
108
149
|
}
|
|
109
150
|
});
|
|
110
|
-
|
|
111
|
-
|
|
151
|
+
// 保存全局变量的值和状态
|
|
152
|
+
Object.assign(self.globalData.global, globalData_1);
|
|
153
|
+
Object.assign(self.globalData.globalState, {
|
|
154
|
+
fields: self.globalVarStates.toJSON(),
|
|
112
155
|
initialized: initialized_1,
|
|
113
156
|
touched: touched_1,
|
|
114
157
|
saved: saved_1,
|
|
115
158
|
errors: errors_1,
|
|
116
159
|
valid: !Object.keys(errors_1).length
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
globalState: globalState
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
|
-
get downStream() {
|
|
125
|
-
var result = self.data;
|
|
126
|
-
if (self.context || self.query || self.globalVarStates.size) {
|
|
127
|
-
var chain = object.extractObjectChain(result);
|
|
128
|
-
// 数据链中添加 global 和 globalState
|
|
129
|
-
// 对应的是全局变量的值和全局变量的状态
|
|
130
|
-
if (self.globalVarStates.size) {
|
|
131
|
-
var globalData_1 = {};
|
|
132
|
-
var touched_2 = false;
|
|
133
|
-
var saved_2 = true;
|
|
134
|
-
var errors_2 = {};
|
|
135
|
-
var initialized_2 = true;
|
|
136
|
-
self.globalVarStates.forEach(function (state, key) {
|
|
137
|
-
globalData_1[key] = state.value;
|
|
138
|
-
touched_2 = touched_2 || state.touched;
|
|
139
|
-
if (!state.saved) {
|
|
140
|
-
saved_2 = false;
|
|
141
|
-
}
|
|
142
|
-
if (state.errorMessages.length) {
|
|
143
|
-
errors_2[key] = state.errorMessages;
|
|
144
|
-
}
|
|
145
|
-
if (!state.initialized) {
|
|
146
|
-
initialized_2 = false;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
// 保存全局变量的值和状态
|
|
150
|
-
Object.assign(self.globalData.global, globalData_1);
|
|
151
|
-
Object.assign(self.globalData.globalState, {
|
|
152
|
-
fields: self.globalVarStates.toJSON(),
|
|
153
|
-
initialized: initialized_2,
|
|
154
|
-
touched: touched_2,
|
|
155
|
-
saved: saved_2,
|
|
156
|
-
errors: errors_2,
|
|
157
|
-
valid: !Object.keys(errors_2).length
|
|
158
|
-
});
|
|
159
|
-
// self.globalData 一直都是那个对象,这样组件里面始终拿到的都是最新的
|
|
160
|
-
chain.unshift(self.globalData);
|
|
161
|
-
}
|
|
162
|
-
self.context && chain.unshift(self.context);
|
|
160
|
+
});
|
|
161
|
+
// self.globalData 一直都是那个对象,这样组件里面始终拿到的都是最新的
|
|
162
|
+
chain.unshift(self.globalData);
|
|
163
|
+
chain.unshift(self.context);
|
|
163
164
|
self.query &&
|
|
164
165
|
chain.splice(chain.length - 1, 0, tslib.__assign(tslib.__assign({}, self.query), { __query: self.query }));
|
|
165
166
|
result = object.createObjectFromChain(chain);
|
|
@@ -612,6 +613,11 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
612
613
|
self.globalVarTempStates.forEach(function (state, key) {
|
|
613
614
|
self.globalVarStates.set(key, tslib.__assign({}, state));
|
|
614
615
|
});
|
|
616
|
+
if (self.legacyGlobalTempContext.__page !== self.context.__page ||
|
|
617
|
+
self.legacyGlobalTempContext.appVariables !== self.context.appVariables) {
|
|
618
|
+
Object.assign(self.context, self.legacyGlobalTempContext);
|
|
619
|
+
self.data = object.cloneObject(self.data);
|
|
620
|
+
}
|
|
615
621
|
}
|
|
616
622
|
var pendingCount = 0;
|
|
617
623
|
var callbacks = [];
|
|
@@ -628,10 +634,21 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
628
634
|
});
|
|
629
635
|
}
|
|
630
636
|
return {
|
|
631
|
-
updateContext: function (context) {
|
|
637
|
+
updateContext: function (context, isInit) {
|
|
632
638
|
// 因为 context 不是受控属性,直接共用引用好了
|
|
633
639
|
// 否则还会触发孩子节点的重新渲染
|
|
634
|
-
|
|
640
|
+
if (isInit === void 0) { isInit = false; }
|
|
641
|
+
var _a = context || {}, __page = _a.__page, appVariables = _a.appVariables, rest = tslib.__rest(_a, ["__page", "appVariables"]);
|
|
642
|
+
// 对历史用法做兼容
|
|
643
|
+
if (__page || appVariables) {
|
|
644
|
+
if (isInit) {
|
|
645
|
+
self.context.__page = context.__page;
|
|
646
|
+
self.context.appVariables = context.appVariables;
|
|
647
|
+
}
|
|
648
|
+
self.legacyGlobalTempContext.__page = __page;
|
|
649
|
+
self.legacyGlobalTempContext.appVariables = appVariables;
|
|
650
|
+
}
|
|
651
|
+
Object.assign(self.context, rest);
|
|
635
652
|
},
|
|
636
653
|
updateGlobalVarState: function (key, state) {
|
|
637
654
|
var origin = self.globalVarTempStates.get(key);
|
package/lib/store/service.js
CHANGED
package/lib/store/status.js
CHANGED
package/lib/store/table.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { SnapshotIn, IAnyModelType, Instance } from 'mobx-state-tree';
|
|
2
3
|
import { IFormStore } from './form';
|
|
3
4
|
export declare enum SELECTED_STATUS {
|
|
@@ -30,6 +31,7 @@ export declare const Column: import("mobx-state-tree").IModelType<{
|
|
|
30
31
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
31
32
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
32
33
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
34
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
33
35
|
}, {
|
|
34
36
|
readonly isPrimary: boolean;
|
|
35
37
|
readonly columnKey: any;
|
|
@@ -40,6 +42,7 @@ export declare const Column: import("mobx-state-tree").IModelType<{
|
|
|
40
42
|
setMinWidth(value: number): void;
|
|
41
43
|
setWidth(value: number): void;
|
|
42
44
|
setRealWidth(value: number): void;
|
|
45
|
+
markAppeared(value: boolean): void;
|
|
43
46
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
44
47
|
export type IColumn = Instance<typeof Column>;
|
|
45
48
|
export type SColumn = SnapshotIn<typeof Column>;
|
|
@@ -151,6 +154,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
151
154
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
152
155
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
153
156
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
157
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
154
158
|
}, {
|
|
155
159
|
readonly isPrimary: boolean;
|
|
156
160
|
readonly columnKey: any;
|
|
@@ -161,6 +165,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
161
165
|
setMinWidth(value: number): void;
|
|
162
166
|
setWidth(value: number): void;
|
|
163
167
|
setRealWidth(value: number): void;
|
|
168
|
+
markAppeared(value: boolean): void;
|
|
164
169
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
165
170
|
rows: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
166
171
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -307,7 +312,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
307
312
|
exportExcelLoading: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
308
313
|
searchFormExpanded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
309
314
|
lazyRenderAfter: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
310
|
-
|
|
315
|
+
tableLayout: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
311
316
|
theadHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
312
317
|
persistKey: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
313
318
|
}, {
|
|
@@ -342,7 +347,6 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
342
347
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
343
348
|
} & {
|
|
344
349
|
readonly __: any;
|
|
345
|
-
readonly tableLayout: string;
|
|
346
350
|
getSelectionUpperLimit: () => number;
|
|
347
351
|
readonly columnsKey: string;
|
|
348
352
|
readonly columnsData: ({
|
|
@@ -370,6 +374,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
370
374
|
pristine: any;
|
|
371
375
|
remark: any;
|
|
372
376
|
className: any;
|
|
377
|
+
appeared: boolean;
|
|
373
378
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
374
379
|
readonly isPrimary: boolean;
|
|
375
380
|
readonly columnKey: any;
|
|
@@ -380,6 +385,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
380
385
|
setMinWidth(value: number): void;
|
|
381
386
|
setWidth(value: number): void;
|
|
382
387
|
setRealWidth(value: number): void;
|
|
388
|
+
markAppeared(value: boolean): void;
|
|
383
389
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
384
390
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
385
391
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -405,6 +411,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
405
411
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
406
412
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
407
413
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
414
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
408
415
|
}, {
|
|
409
416
|
readonly isPrimary: boolean;
|
|
410
417
|
readonly columnKey: any;
|
|
@@ -415,6 +422,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
415
422
|
setMinWidth(value: number): void;
|
|
416
423
|
setWidth(value: number): void;
|
|
417
424
|
setRealWidth(value: number): void;
|
|
425
|
+
markAppeared(value: boolean): void;
|
|
418
426
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
419
427
|
readonly forms: {
|
|
420
428
|
store: {
|
|
@@ -491,7 +499,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
491
499
|
markFetching: (fetching?: boolean) => void;
|
|
492
500
|
markSaving: (saving?: boolean) => void;
|
|
493
501
|
markBusying: (busying?: boolean) => void;
|
|
494
|
-
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
502
|
+
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>; /** 排除掉内置的列和不可见的列 */
|
|
495
503
|
fetchData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
496
504
|
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[] | undefined) => void;
|
|
497
505
|
updateMessage: (msg?: string | undefined, error?: boolean) => void;
|
|
@@ -5994,7 +6002,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5994
6002
|
markFetching: (fetching?: boolean) => void;
|
|
5995
6003
|
markSaving: (saving?: boolean) => void;
|
|
5996
6004
|
markBusying: (busying?: boolean) => void;
|
|
5997
|
-
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
6005
|
+
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>; /** 排除掉内置的列和不可见的列 */
|
|
5998
6006
|
fetchData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
5999
6007
|
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[] | undefined) => void;
|
|
6000
6008
|
updateMessage: (msg?: string | undefined, error?: boolean) => void;
|
|
@@ -11448,6 +11456,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11448
11456
|
pristine: any;
|
|
11449
11457
|
remark: any;
|
|
11450
11458
|
className: any;
|
|
11459
|
+
appeared: boolean;
|
|
11451
11460
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11452
11461
|
readonly isPrimary: boolean;
|
|
11453
11462
|
readonly columnKey: any;
|
|
@@ -11458,6 +11467,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11458
11467
|
setMinWidth(value: number): void;
|
|
11459
11468
|
setWidth(value: number): void;
|
|
11460
11469
|
setRealWidth(value: number): void;
|
|
11470
|
+
markAppeared(value: boolean): void;
|
|
11461
11471
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11462
11472
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11463
11473
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11483,6 +11493,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11483
11493
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11484
11494
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11485
11495
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11496
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11486
11497
|
}, {
|
|
11487
11498
|
readonly isPrimary: boolean;
|
|
11488
11499
|
readonly columnKey: any;
|
|
@@ -11493,6 +11504,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11493
11504
|
setMinWidth(value: number): void;
|
|
11494
11505
|
setWidth(value: number): void;
|
|
11495
11506
|
setRealWidth(value: number): void;
|
|
11507
|
+
markAppeared(value: boolean): void;
|
|
11496
11508
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11497
11509
|
readonly activedSearchableColumns: ({
|
|
11498
11510
|
label: any;
|
|
@@ -11519,6 +11531,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11519
11531
|
pristine: any;
|
|
11520
11532
|
remark: any;
|
|
11521
11533
|
className: any;
|
|
11534
|
+
appeared: boolean;
|
|
11522
11535
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11523
11536
|
readonly isPrimary: boolean;
|
|
11524
11537
|
readonly columnKey: any;
|
|
@@ -11529,6 +11542,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11529
11542
|
setMinWidth(value: number): void;
|
|
11530
11543
|
setWidth(value: number): void;
|
|
11531
11544
|
setRealWidth(value: number): void;
|
|
11545
|
+
markAppeared(value: boolean): void;
|
|
11532
11546
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11533
11547
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11534
11548
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11554,6 +11568,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11554
11568
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11555
11569
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11556
11570
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11571
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11557
11572
|
}, {
|
|
11558
11573
|
readonly isPrimary: boolean;
|
|
11559
11574
|
readonly columnKey: any;
|
|
@@ -11564,6 +11579,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11564
11579
|
setMinWidth(value: number): void;
|
|
11565
11580
|
setWidth(value: number): void;
|
|
11566
11581
|
setRealWidth(value: number): void;
|
|
11582
|
+
markAppeared(value: boolean): void;
|
|
11567
11583
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11568
11584
|
/** 导出excel列(包含breakpoint列) */
|
|
11569
11585
|
readonly exportColumns: ({
|
|
@@ -11591,6 +11607,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11591
11607
|
pristine: any;
|
|
11592
11608
|
remark: any;
|
|
11593
11609
|
className: any;
|
|
11610
|
+
appeared: boolean;
|
|
11594
11611
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11595
11612
|
readonly isPrimary: boolean;
|
|
11596
11613
|
readonly columnKey: any;
|
|
@@ -11601,6 +11618,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11601
11618
|
setMinWidth(value: number): void;
|
|
11602
11619
|
setWidth(value: number): void;
|
|
11603
11620
|
setRealWidth(value: number): void;
|
|
11621
|
+
markAppeared(value: boolean): void;
|
|
11604
11622
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11605
11623
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11606
11624
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11626,6 +11644,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11626
11644
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11627
11645
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11628
11646
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11647
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11629
11648
|
}, {
|
|
11630
11649
|
readonly isPrimary: boolean;
|
|
11631
11650
|
readonly columnKey: any;
|
|
@@ -11636,6 +11655,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11636
11655
|
setMinWidth(value: number): void;
|
|
11637
11656
|
setWidth(value: number): void;
|
|
11638
11657
|
setRealWidth(value: number): void;
|
|
11658
|
+
markAppeared(value: boolean): void;
|
|
11639
11659
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11640
11660
|
readonly filteredColumns: ({
|
|
11641
11661
|
label: any;
|
|
@@ -11662,6 +11682,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11662
11682
|
pristine: any;
|
|
11663
11683
|
remark: any;
|
|
11664
11684
|
className: any;
|
|
11685
|
+
appeared: boolean;
|
|
11665
11686
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11666
11687
|
readonly isPrimary: boolean;
|
|
11667
11688
|
readonly columnKey: any;
|
|
@@ -11672,6 +11693,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11672
11693
|
setMinWidth(value: number): void;
|
|
11673
11694
|
setWidth(value: number): void;
|
|
11674
11695
|
setRealWidth(value: number): void;
|
|
11696
|
+
markAppeared(value: boolean): void;
|
|
11675
11697
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11676
11698
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11677
11699
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11697,6 +11719,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11697
11719
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11698
11720
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11699
11721
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11722
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11700
11723
|
}, {
|
|
11701
11724
|
readonly isPrimary: boolean;
|
|
11702
11725
|
readonly columnKey: any;
|
|
@@ -11707,6 +11730,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11707
11730
|
setMinWidth(value: number): void;
|
|
11708
11731
|
setWidth(value: number): void;
|
|
11709
11732
|
setRealWidth(value: number): void;
|
|
11733
|
+
markAppeared(value: boolean): void;
|
|
11710
11734
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11711
11735
|
readonly footableColumns: ({
|
|
11712
11736
|
label: any;
|
|
@@ -11733,6 +11757,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11733
11757
|
pristine: any;
|
|
11734
11758
|
remark: any;
|
|
11735
11759
|
className: any;
|
|
11760
|
+
appeared: boolean;
|
|
11736
11761
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11737
11762
|
readonly isPrimary: boolean;
|
|
11738
11763
|
readonly columnKey: any;
|
|
@@ -11743,6 +11768,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11743
11768
|
setMinWidth(value: number): void;
|
|
11744
11769
|
setWidth(value: number): void;
|
|
11745
11770
|
setRealWidth(value: number): void;
|
|
11771
|
+
markAppeared(value: boolean): void;
|
|
11746
11772
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11747
11773
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11748
11774
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11768,6 +11794,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11768
11794
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11769
11795
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11770
11796
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11797
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11771
11798
|
}, {
|
|
11772
11799
|
readonly isPrimary: boolean;
|
|
11773
11800
|
readonly columnKey: any;
|
|
@@ -11778,6 +11805,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11778
11805
|
setMinWidth(value: number): void;
|
|
11779
11806
|
setWidth(value: number): void;
|
|
11780
11807
|
setRealWidth(value: number): void;
|
|
11808
|
+
markAppeared(value: boolean): void;
|
|
11781
11809
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11782
11810
|
readonly toggableColumns: ({
|
|
11783
11811
|
label: any;
|
|
@@ -11804,6 +11832,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11804
11832
|
pristine: any;
|
|
11805
11833
|
remark: any;
|
|
11806
11834
|
className: any;
|
|
11835
|
+
appeared: boolean;
|
|
11807
11836
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11808
11837
|
readonly isPrimary: boolean;
|
|
11809
11838
|
readonly columnKey: any;
|
|
@@ -11814,6 +11843,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11814
11843
|
setMinWidth(value: number): void;
|
|
11815
11844
|
setWidth(value: number): void;
|
|
11816
11845
|
setRealWidth(value: number): void;
|
|
11846
|
+
markAppeared(value: boolean): void;
|
|
11817
11847
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11818
11848
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11819
11849
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11839,6 +11869,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11839
11869
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11840
11870
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11841
11871
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11872
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11842
11873
|
}, {
|
|
11843
11874
|
readonly isPrimary: boolean;
|
|
11844
11875
|
readonly columnKey: any;
|
|
@@ -11849,6 +11880,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11849
11880
|
setMinWidth(value: number): void;
|
|
11850
11881
|
setWidth(value: number): void;
|
|
11851
11882
|
setRealWidth(value: number): void;
|
|
11883
|
+
markAppeared(value: boolean): void;
|
|
11852
11884
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11853
11885
|
readonly activeToggaleColumns: ({
|
|
11854
11886
|
label: any;
|
|
@@ -11875,6 +11907,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11875
11907
|
pristine: any;
|
|
11876
11908
|
remark: any;
|
|
11877
11909
|
className: any;
|
|
11910
|
+
appeared: boolean;
|
|
11878
11911
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11879
11912
|
readonly isPrimary: boolean;
|
|
11880
11913
|
readonly columnKey: any;
|
|
@@ -11885,6 +11918,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11885
11918
|
setMinWidth(value: number): void;
|
|
11886
11919
|
setWidth(value: number): void;
|
|
11887
11920
|
setRealWidth(value: number): void;
|
|
11921
|
+
markAppeared(value: boolean): void;
|
|
11888
11922
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11889
11923
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11890
11924
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11910,6 +11944,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11910
11944
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11911
11945
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11912
11946
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11947
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11913
11948
|
}, {
|
|
11914
11949
|
readonly isPrimary: boolean;
|
|
11915
11950
|
readonly columnKey: any;
|
|
@@ -11920,6 +11955,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11920
11955
|
setMinWidth(value: number): void;
|
|
11921
11956
|
setWidth(value: number): void;
|
|
11922
11957
|
setRealWidth(value: number): void;
|
|
11958
|
+
markAppeared(value: boolean): void;
|
|
11923
11959
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11924
11960
|
readonly someChecked: boolean;
|
|
11925
11961
|
readonly allChecked: boolean;
|
package/lib/store/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.8
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -98,7 +98,8 @@ var Column = mobxStateTree.types
|
|
|
98
98
|
breakpoint: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
99
99
|
pristine: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
100
100
|
remark: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
101
|
-
className: mobxStateTree.types.union(mobxStateTree.types.string, mobxStateTree.types.frozen())
|
|
101
|
+
className: mobxStateTree.types.union(mobxStateTree.types.string, mobxStateTree.types.frozen()),
|
|
102
|
+
appeared: false
|
|
102
103
|
})
|
|
103
104
|
.views(function (self) { return ({
|
|
104
105
|
get isPrimary() {
|
|
@@ -139,6 +140,9 @@ var Column = mobxStateTree.types
|
|
|
139
140
|
},
|
|
140
141
|
setRealWidth: function (value) {
|
|
141
142
|
self.realWidth = value;
|
|
143
|
+
},
|
|
144
|
+
markAppeared: function (value) {
|
|
145
|
+
self.appeared = self.appeared || value;
|
|
142
146
|
}
|
|
143
147
|
}); });
|
|
144
148
|
var Row = mobxStateTree.types
|
|
@@ -161,6 +165,8 @@ var Row = mobxStateTree.types
|
|
|
161
165
|
loading: false,
|
|
162
166
|
error: '',
|
|
163
167
|
depth: mobxStateTree.types.number // 当前children位于第几层,便于使用getParent获取最顶层TableStore
|
|
168
|
+
// appeared: true,
|
|
169
|
+
// lazyRender: false
|
|
164
170
|
})
|
|
165
171
|
.views(function (self) { return ({
|
|
166
172
|
get parent() {
|
|
@@ -358,6 +364,9 @@ var Row = mobxStateTree.types
|
|
|
358
364
|
index++;
|
|
359
365
|
}
|
|
360
366
|
},
|
|
367
|
+
// markAppeared(value: any) {
|
|
368
|
+
// value && (self.appeared = !!value);
|
|
369
|
+
// },
|
|
361
370
|
markLoading: function (value) {
|
|
362
371
|
self.loading = !!value;
|
|
363
372
|
},
|
|
@@ -427,7 +436,7 @@ var TableStore = iRenderer.iRendererStore
|
|
|
427
436
|
exportExcelLoading: false,
|
|
428
437
|
searchFormExpanded: false,
|
|
429
438
|
lazyRenderAfter: 100,
|
|
430
|
-
|
|
439
|
+
tableLayout: 'auto',
|
|
431
440
|
theadHeight: 0,
|
|
432
441
|
persistKey: ''
|
|
433
442
|
})
|
|
@@ -615,12 +624,6 @@ var TableStore = iRenderer.iRendererStore
|
|
|
615
624
|
get __() {
|
|
616
625
|
return mobxStateTree.getEnv(self).translate;
|
|
617
626
|
},
|
|
618
|
-
get tableLayout() {
|
|
619
|
-
if (self.rows.length > self.lazyRenderAfter) {
|
|
620
|
-
return 'fixed';
|
|
621
|
-
}
|
|
622
|
-
return self.tableLayoutConfig;
|
|
623
|
-
},
|
|
624
627
|
getSelectionUpperLimit: getSelectionUpperLimit,
|
|
625
628
|
get columnsKey() {
|
|
626
629
|
if (self.persistKey) {
|
|
@@ -901,8 +904,8 @@ var TableStore = iRenderer.iRendererStore
|
|
|
901
904
|
(self.canAccessSuperData = !!config.canAccessSuperData);
|
|
902
905
|
typeof config.lazyRenderAfter === 'number' &&
|
|
903
906
|
(self.lazyRenderAfter = config.lazyRenderAfter);
|
|
904
|
-
typeof config.
|
|
905
|
-
(self.
|
|
907
|
+
typeof config.tableLayout === 'string' &&
|
|
908
|
+
(self.tableLayout = config.tableLayout);
|
|
906
909
|
config.showIndex !== undefined && (self.showIndex = config.showIndex);
|
|
907
910
|
config.persistKey !== undefined && (self.persistKey = config.persistKey);
|
|
908
911
|
if (config.columns && Array.isArray(config.columns)) {
|
|
@@ -1171,6 +1174,20 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1171
1174
|
var allMatched = replaceRow(arr, reUseRow);
|
|
1172
1175
|
self.isNested = self.rows.some(function (item) { return item.children.length || (item.defer && !item.loaded); });
|
|
1173
1176
|
if (!allMatched) {
|
|
1177
|
+
// 前 20 个直接渲染,后面的按需渲染
|
|
1178
|
+
// if (
|
|
1179
|
+
// self.lazyRenderAfter &&
|
|
1180
|
+
// self.falttenedRows.length > self.lazyRenderAfter
|
|
1181
|
+
// ) {
|
|
1182
|
+
// for (
|
|
1183
|
+
// let i = self.lazyRenderAfter, len = self.falttenedRows.length;
|
|
1184
|
+
// i < len;
|
|
1185
|
+
// i++
|
|
1186
|
+
// ) {
|
|
1187
|
+
// self.falttenedRows[i].appeared = false;
|
|
1188
|
+
// self.falttenedRows[i].lazyRender = true;
|
|
1189
|
+
// }
|
|
1190
|
+
// }
|
|
1174
1191
|
var expand = self.footable && self.footable.expand;
|
|
1175
1192
|
if (expand === 'first' ||
|
|
1176
1193
|
(self.expandConfig && self.expandConfig.expand === 'first')) {
|
package/lib/store/table2.js
CHANGED
package/lib/theme.js
CHANGED
package/lib/utils/Animation.js
CHANGED
package/lib/utils/ColorScale.js
CHANGED
package/lib/utils/DataSchema.js
CHANGED
package/lib/utils/DataScope.js
CHANGED
package/lib/utils/RootClose.js
CHANGED