@zhubangyun/lowcode-core 5.6.213 → 5.6.214
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/utils/cache/schema.js
CHANGED
|
@@ -191,25 +191,11 @@ function _handleAssociationForm() {
|
|
|
191
191
|
depth1 = field.getFieldPaths().split(".").length;
|
|
192
192
|
depth2 = associationField.getFieldPaths().split(".").length;
|
|
193
193
|
attrField.props.fieldProps.associationDepth = depth1 - depth2;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
//向关联表单中注册关联属性填充 结束
|
|
200
|
-
//设置关联属性默认值 开始
|
|
201
|
-
let keys = field.getFieldPaths().split(".");
|
|
202
|
-
keys.pop();
|
|
203
|
-
attrField.props.fieldProps.associationDepth = keys.length;
|
|
204
|
-
if (keys.length > 0) {
|
|
205
|
-
keys = keys.map(item => "parent");
|
|
206
|
-
keys.push(associationAttribute[0])
|
|
207
|
-
keys.push(associationAttribute[1])
|
|
208
|
-
attrField.props.defaultValue = {
|
|
209
|
-
"type": "express",
|
|
210
|
-
"value": keys.join("?.")
|
|
211
|
-
}
|
|
212
|
-
}*/
|
|
194
|
+
findField.props.fieldProps.associationAttributes.push({
|
|
195
|
+
key: field.getFieldPaths(),
|
|
196
|
+
value: associationAttribute === null || associationAttribute === void 0 ? void 0 : associationAttribute[1]
|
|
197
|
+
});
|
|
198
|
+
//向关联表单中注册关联属性填充 结束
|
|
213
199
|
}
|
|
214
200
|
//设置关联属性默认值 结束
|
|
215
201
|
case 18:
|
|
@@ -10,4 +10,4 @@ export interface ShowPageFormDataManagerProps {
|
|
|
10
10
|
mode?: PageFormDataManagerModeType;
|
|
11
11
|
onClose?: () => void | Promise<void>;
|
|
12
12
|
}
|
|
13
|
-
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<
|
|
13
|
+
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<any | any[]>;
|
|
@@ -195,25 +195,11 @@ function _handleAssociationForm() {
|
|
|
195
195
|
depth1 = field.getFieldPaths().split(".").length;
|
|
196
196
|
depth2 = associationField.getFieldPaths().split(".").length;
|
|
197
197
|
attrField.props.fieldProps.associationDepth = depth1 - depth2;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
//向关联表单中注册关联属性填充 结束
|
|
204
|
-
//设置关联属性默认值 开始
|
|
205
|
-
let keys = field.getFieldPaths().split(".");
|
|
206
|
-
keys.pop();
|
|
207
|
-
attrField.props.fieldProps.associationDepth = keys.length;
|
|
208
|
-
if (keys.length > 0) {
|
|
209
|
-
keys = keys.map(item => "parent");
|
|
210
|
-
keys.push(associationAttribute[0])
|
|
211
|
-
keys.push(associationAttribute[1])
|
|
212
|
-
attrField.props.defaultValue = {
|
|
213
|
-
"type": "express",
|
|
214
|
-
"value": keys.join("?.")
|
|
215
|
-
}
|
|
216
|
-
}*/
|
|
198
|
+
findField.props.fieldProps.associationAttributes.push({
|
|
199
|
+
key: field.getFieldPaths(),
|
|
200
|
+
value: associationAttribute === null || associationAttribute === void 0 ? void 0 : associationAttribute[1]
|
|
201
|
+
});
|
|
202
|
+
//向关联表单中注册关联属性填充 结束
|
|
217
203
|
}
|
|
218
204
|
//设置关联属性默认值 结束
|
|
219
205
|
case 18:
|
|
@@ -10,4 +10,4 @@ export interface ShowPageFormDataManagerProps {
|
|
|
10
10
|
mode?: PageFormDataManagerModeType;
|
|
11
11
|
onClose?: () => void | Promise<void>;
|
|
12
12
|
}
|
|
13
|
-
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<
|
|
13
|
+
export declare function showFormDataManager(options: ShowPageFormDataManagerProps): Promise<any | any[]>;
|