amis-core 6.13.0-beta.6 → 6.13.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 +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.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 +39 -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.7
|
|
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
|
@@ -30,6 +30,7 @@ export declare const Column: import("mobx-state-tree").IModelType<{
|
|
|
30
30
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
31
31
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
32
32
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
33
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
33
34
|
}, {
|
|
34
35
|
readonly isPrimary: boolean;
|
|
35
36
|
readonly columnKey: any;
|
|
@@ -40,6 +41,7 @@ export declare const Column: import("mobx-state-tree").IModelType<{
|
|
|
40
41
|
setMinWidth(value: number): void;
|
|
41
42
|
setWidth(value: number): void;
|
|
42
43
|
setRealWidth(value: number): void;
|
|
44
|
+
markAppeared(value: boolean): void;
|
|
43
45
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
44
46
|
export type IColumn = Instance<typeof Column>;
|
|
45
47
|
export type SColumn = SnapshotIn<typeof Column>;
|
|
@@ -151,6 +153,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
151
153
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
152
154
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
153
155
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
156
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
154
157
|
}, {
|
|
155
158
|
readonly isPrimary: boolean;
|
|
156
159
|
readonly columnKey: any;
|
|
@@ -161,6 +164,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
161
164
|
setMinWidth(value: number): void;
|
|
162
165
|
setWidth(value: number): void;
|
|
163
166
|
setRealWidth(value: number): void;
|
|
167
|
+
markAppeared(value: boolean): void;
|
|
164
168
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
165
169
|
rows: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
166
170
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -307,7 +311,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
307
311
|
exportExcelLoading: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
308
312
|
searchFormExpanded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
309
313
|
lazyRenderAfter: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
310
|
-
|
|
314
|
+
tableLayout: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
311
315
|
theadHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
312
316
|
persistKey: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
313
317
|
}, {
|
|
@@ -342,7 +346,6 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
342
346
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
343
347
|
} & {
|
|
344
348
|
readonly __: any;
|
|
345
|
-
readonly tableLayout: string;
|
|
346
349
|
getSelectionUpperLimit: () => number;
|
|
347
350
|
readonly columnsKey: string;
|
|
348
351
|
readonly columnsData: ({
|
|
@@ -370,6 +373,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
370
373
|
pristine: any;
|
|
371
374
|
remark: any;
|
|
372
375
|
className: any;
|
|
376
|
+
appeared: boolean;
|
|
373
377
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
374
378
|
readonly isPrimary: boolean;
|
|
375
379
|
readonly columnKey: any;
|
|
@@ -380,6 +384,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
380
384
|
setMinWidth(value: number): void;
|
|
381
385
|
setWidth(value: number): void;
|
|
382
386
|
setRealWidth(value: number): void;
|
|
387
|
+
markAppeared(value: boolean): void;
|
|
383
388
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
384
389
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
385
390
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -405,6 +410,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
405
410
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
406
411
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
407
412
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
413
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
408
414
|
}, {
|
|
409
415
|
readonly isPrimary: boolean;
|
|
410
416
|
readonly columnKey: any;
|
|
@@ -415,6 +421,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
415
421
|
setMinWidth(value: number): void;
|
|
416
422
|
setWidth(value: number): void;
|
|
417
423
|
setRealWidth(value: number): void;
|
|
424
|
+
markAppeared(value: boolean): void;
|
|
418
425
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
419
426
|
readonly forms: {
|
|
420
427
|
store: {
|
|
@@ -491,7 +498,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
491
498
|
markFetching: (fetching?: boolean) => void;
|
|
492
499
|
markSaving: (saving?: boolean) => void;
|
|
493
500
|
markBusying: (busying?: boolean) => void;
|
|
494
|
-
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
501
|
+
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>; /** 排除掉内置的列和不可见的列 */
|
|
495
502
|
fetchData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
496
503
|
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[] | undefined) => void;
|
|
497
504
|
updateMessage: (msg?: string | undefined, error?: boolean) => void;
|
|
@@ -5994,7 +6001,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5994
6001
|
markFetching: (fetching?: boolean) => void;
|
|
5995
6002
|
markSaving: (saving?: boolean) => void;
|
|
5996
6003
|
markBusying: (busying?: boolean) => void;
|
|
5997
|
-
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
6004
|
+
fetchInitData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>; /** 排除掉内置的列和不可见的列 */
|
|
5998
6005
|
fetchData: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
|
|
5999
6006
|
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[] | undefined) => void;
|
|
6000
6007
|
updateMessage: (msg?: string | undefined, error?: boolean) => void;
|
|
@@ -11448,6 +11455,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11448
11455
|
pristine: any;
|
|
11449
11456
|
remark: any;
|
|
11450
11457
|
className: any;
|
|
11458
|
+
appeared: boolean;
|
|
11451
11459
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11452
11460
|
readonly isPrimary: boolean;
|
|
11453
11461
|
readonly columnKey: any;
|
|
@@ -11458,6 +11466,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11458
11466
|
setMinWidth(value: number): void;
|
|
11459
11467
|
setWidth(value: number): void;
|
|
11460
11468
|
setRealWidth(value: number): void;
|
|
11469
|
+
markAppeared(value: boolean): void;
|
|
11461
11470
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11462
11471
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11463
11472
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11483,6 +11492,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11483
11492
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11484
11493
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11485
11494
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11495
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11486
11496
|
}, {
|
|
11487
11497
|
readonly isPrimary: boolean;
|
|
11488
11498
|
readonly columnKey: any;
|
|
@@ -11493,6 +11503,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11493
11503
|
setMinWidth(value: number): void;
|
|
11494
11504
|
setWidth(value: number): void;
|
|
11495
11505
|
setRealWidth(value: number): void;
|
|
11506
|
+
markAppeared(value: boolean): void;
|
|
11496
11507
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11497
11508
|
readonly activedSearchableColumns: ({
|
|
11498
11509
|
label: any;
|
|
@@ -11519,6 +11530,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11519
11530
|
pristine: any;
|
|
11520
11531
|
remark: any;
|
|
11521
11532
|
className: any;
|
|
11533
|
+
appeared: boolean;
|
|
11522
11534
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11523
11535
|
readonly isPrimary: boolean;
|
|
11524
11536
|
readonly columnKey: any;
|
|
@@ -11529,6 +11541,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11529
11541
|
setMinWidth(value: number): void;
|
|
11530
11542
|
setWidth(value: number): void;
|
|
11531
11543
|
setRealWidth(value: number): void;
|
|
11544
|
+
markAppeared(value: boolean): void;
|
|
11532
11545
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11533
11546
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11534
11547
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11554,6 +11567,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11554
11567
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11555
11568
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11556
11569
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11570
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11557
11571
|
}, {
|
|
11558
11572
|
readonly isPrimary: boolean;
|
|
11559
11573
|
readonly columnKey: any;
|
|
@@ -11564,6 +11578,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11564
11578
|
setMinWidth(value: number): void;
|
|
11565
11579
|
setWidth(value: number): void;
|
|
11566
11580
|
setRealWidth(value: number): void;
|
|
11581
|
+
markAppeared(value: boolean): void;
|
|
11567
11582
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11568
11583
|
/** 导出excel列(包含breakpoint列) */
|
|
11569
11584
|
readonly exportColumns: ({
|
|
@@ -11591,6 +11606,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11591
11606
|
pristine: any;
|
|
11592
11607
|
remark: any;
|
|
11593
11608
|
className: any;
|
|
11609
|
+
appeared: boolean;
|
|
11594
11610
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11595
11611
|
readonly isPrimary: boolean;
|
|
11596
11612
|
readonly columnKey: any;
|
|
@@ -11601,6 +11617,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11601
11617
|
setMinWidth(value: number): void;
|
|
11602
11618
|
setWidth(value: number): void;
|
|
11603
11619
|
setRealWidth(value: number): void;
|
|
11620
|
+
markAppeared(value: boolean): void;
|
|
11604
11621
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11605
11622
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11606
11623
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11626,6 +11643,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11626
11643
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11627
11644
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11628
11645
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11646
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11629
11647
|
}, {
|
|
11630
11648
|
readonly isPrimary: boolean;
|
|
11631
11649
|
readonly columnKey: any;
|
|
@@ -11636,6 +11654,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11636
11654
|
setMinWidth(value: number): void;
|
|
11637
11655
|
setWidth(value: number): void;
|
|
11638
11656
|
setRealWidth(value: number): void;
|
|
11657
|
+
markAppeared(value: boolean): void;
|
|
11639
11658
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11640
11659
|
readonly filteredColumns: ({
|
|
11641
11660
|
label: any;
|
|
@@ -11662,6 +11681,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11662
11681
|
pristine: any;
|
|
11663
11682
|
remark: any;
|
|
11664
11683
|
className: any;
|
|
11684
|
+
appeared: boolean;
|
|
11665
11685
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11666
11686
|
readonly isPrimary: boolean;
|
|
11667
11687
|
readonly columnKey: any;
|
|
@@ -11672,6 +11692,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11672
11692
|
setMinWidth(value: number): void;
|
|
11673
11693
|
setWidth(value: number): void;
|
|
11674
11694
|
setRealWidth(value: number): void;
|
|
11695
|
+
markAppeared(value: boolean): void;
|
|
11675
11696
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11676
11697
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11677
11698
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11697,6 +11718,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11697
11718
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11698
11719
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11699
11720
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11721
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11700
11722
|
}, {
|
|
11701
11723
|
readonly isPrimary: boolean;
|
|
11702
11724
|
readonly columnKey: any;
|
|
@@ -11707,6 +11729,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11707
11729
|
setMinWidth(value: number): void;
|
|
11708
11730
|
setWidth(value: number): void;
|
|
11709
11731
|
setRealWidth(value: number): void;
|
|
11732
|
+
markAppeared(value: boolean): void;
|
|
11710
11733
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11711
11734
|
readonly footableColumns: ({
|
|
11712
11735
|
label: any;
|
|
@@ -11733,6 +11756,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11733
11756
|
pristine: any;
|
|
11734
11757
|
remark: any;
|
|
11735
11758
|
className: any;
|
|
11759
|
+
appeared: boolean;
|
|
11736
11760
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11737
11761
|
readonly isPrimary: boolean;
|
|
11738
11762
|
readonly columnKey: any;
|
|
@@ -11743,6 +11767,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11743
11767
|
setMinWidth(value: number): void;
|
|
11744
11768
|
setWidth(value: number): void;
|
|
11745
11769
|
setRealWidth(value: number): void;
|
|
11770
|
+
markAppeared(value: boolean): void;
|
|
11746
11771
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11747
11772
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11748
11773
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11768,6 +11793,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11768
11793
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11769
11794
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11770
11795
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11796
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11771
11797
|
}, {
|
|
11772
11798
|
readonly isPrimary: boolean;
|
|
11773
11799
|
readonly columnKey: any;
|
|
@@ -11778,6 +11804,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11778
11804
|
setMinWidth(value: number): void;
|
|
11779
11805
|
setWidth(value: number): void;
|
|
11780
11806
|
setRealWidth(value: number): void;
|
|
11807
|
+
markAppeared(value: boolean): void;
|
|
11781
11808
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11782
11809
|
readonly toggableColumns: ({
|
|
11783
11810
|
label: any;
|
|
@@ -11804,6 +11831,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11804
11831
|
pristine: any;
|
|
11805
11832
|
remark: any;
|
|
11806
11833
|
className: any;
|
|
11834
|
+
appeared: boolean;
|
|
11807
11835
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11808
11836
|
readonly isPrimary: boolean;
|
|
11809
11837
|
readonly columnKey: any;
|
|
@@ -11814,6 +11842,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11814
11842
|
setMinWidth(value: number): void;
|
|
11815
11843
|
setWidth(value: number): void;
|
|
11816
11844
|
setRealWidth(value: number): void;
|
|
11845
|
+
markAppeared(value: boolean): void;
|
|
11817
11846
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11818
11847
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11819
11848
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11839,6 +11868,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11839
11868
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11840
11869
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11841
11870
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11871
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11842
11872
|
}, {
|
|
11843
11873
|
readonly isPrimary: boolean;
|
|
11844
11874
|
readonly columnKey: any;
|
|
@@ -11849,6 +11879,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11849
11879
|
setMinWidth(value: number): void;
|
|
11850
11880
|
setWidth(value: number): void;
|
|
11851
11881
|
setRealWidth(value: number): void;
|
|
11882
|
+
markAppeared(value: boolean): void;
|
|
11852
11883
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11853
11884
|
readonly activeToggaleColumns: ({
|
|
11854
11885
|
label: any;
|
|
@@ -11875,6 +11906,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11875
11906
|
pristine: any;
|
|
11876
11907
|
remark: any;
|
|
11877
11908
|
className: any;
|
|
11909
|
+
appeared: boolean;
|
|
11878
11910
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
11879
11911
|
readonly isPrimary: boolean;
|
|
11880
11912
|
readonly columnKey: any;
|
|
@@ -11885,6 +11917,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11885
11917
|
setMinWidth(value: number): void;
|
|
11886
11918
|
setWidth(value: number): void;
|
|
11887
11919
|
setRealWidth(value: number): void;
|
|
11920
|
+
markAppeared(value: boolean): void;
|
|
11888
11921
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
11889
11922
|
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11890
11923
|
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -11910,6 +11943,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11910
11943
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11911
11944
|
remark: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
11912
11945
|
className: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
11946
|
+
appeared: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
11913
11947
|
}, {
|
|
11914
11948
|
readonly isPrimary: boolean;
|
|
11915
11949
|
readonly columnKey: any;
|
|
@@ -11920,6 +11954,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11920
11954
|
setMinWidth(value: number): void;
|
|
11921
11955
|
setWidth(value: number): void;
|
|
11922
11956
|
setRealWidth(value: number): void;
|
|
11957
|
+
markAppeared(value: boolean): void;
|
|
11923
11958
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11924
11959
|
readonly someChecked: boolean;
|
|
11925
11960
|
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.7
|
|
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