Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
tujiajun committed Apr 7, 2024
1 parent 432b3e8 commit eaeaa16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@steedos-widgets/steedos-lib/src/ui/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ export const SteedosUI = Object.assign({}, {
};
return keywordsFilters;
},
getFormulaVariables: (fields, hasGlobal = true) => {
getFormulaVariables: (fieldOptions, hasGlobal = true) => {
const variables = [];
if (!isEmpty(fields)) {
if (!isEmpty(fieldOptions)) {
variables.push({
"label": "表单字段",
"children": [

]
});
lodash.forEach(fields,function (field) {
lodash.forEach(fieldOptions,function (field) {
variables[0].children.push({
"label": field.label,
"value": field.name
"value": field.value
})
})
}
Expand Down

0 comments on commit eaeaa16

Please sign in to comment.