Skip to content

Commit

Permalink
chore(formily): update _sourceName to _designableSourceName
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 27, 2021
1 parent 72b7b0b commit 330a5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/formily/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const transformToSchema = (
Object.assign(schema, clone(node.props))
}
schema['_designableId'] = node.id
schema['_sourceName'] = node.sourceName
schema['_designableSourceName'] = node.sourceName
if (schema.type === 'array') {
if (node.children[0]) {
if (
Expand Down Expand Up @@ -92,7 +92,7 @@ export const transformToTreeNode = (
if (!schema) return
const current = {
id: schema['_designableId'] || uid(),
sourceName: schema['_sourceName'],
sourceName: schema['_designableSourceName'],
componentName: realOptions.designableFieldName,
props: cleanProps(schema.toJSON(false)),
children: [],
Expand Down

0 comments on commit 330a5cf

Please sign in to comment.