-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '3.6' of https://github.com/steedos/steedos-widgets into…
… 3.6
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: [email protected] | ||
* @Date: 2022-12-26 18:07:37 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2024-01-16 17:43:35 | ||
* @LastEditTime: 2024-01-16 17:47:02 | ||
* @Description: | ||
*/ | ||
import "./AmisSteedosField.less"; | ||
|
@@ -418,11 +418,11 @@ export const AmisSteedosField = async (props) => { | |
}); | ||
} else if (steedosField.type === "table") { | ||
if (steedosField.subFields) { | ||
// console.log(`convertData ======>`, field, convertData) | ||
// console.log(`convertData ======>`, steedosField, convertData) | ||
let tableFields = []; | ||
for (const subField of field.subFields) { | ||
for (const subField of steedosField.subFields) { | ||
if (!subField.name.endsWith(".$")) { | ||
const subFieldName = subField.name.replace(`${field._prefix || ''}${field.name}.$.`, '').replace(`${field.name}.`, ''); | ||
const subFieldName = subField.name.replace(`${steedosField._prefix || ''}${steedosField.name}.$.`, '').replace(`${steedosField.name}.`, ''); | ||
// const gridSub = await convertSFieldToAmisField(Object.assign({}, subField, {name: subFieldName, isTableField: true}), readonly, ctx); | ||
tableFields.push(Object.assign({}, subField, { name: subFieldName })) | ||
} | ||
|