Commit c01f8c0e3920f86dbcfd524d0d1a56d4d0f4c20a
1 parent
3742f3ca
fix: DEFECT-694 data source order changes when data component data source are updated
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -77,7 +77,7 @@ |
77 | 77 | const value = (dataSourceEl[id] as FormActionType).getFieldsValue() as DataSource; |
78 | 78 | if (!~index) continue; |
79 | 79 | const componentInfo = unref(dataSource)[index].componentInfo || {}; |
80 | - _dataSource.push({ | |
80 | + _dataSource.unshift({ | |
81 | 81 | ...value, |
82 | 82 | componentInfo: { ...(props.defaultConfig || {}), ...componentInfo }, |
83 | 83 | }); | ... | ... |