Commit c01f8c0e3920f86dbcfd524d0d1a56d4d0f4c20a

Authored by ww
1 parent 3742f3ca

fix: DEFECT-694 data source order changes when data component data source are updated

@@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
77 const value = (dataSourceEl[id] as FormActionType).getFieldsValue() as DataSource; 77 const value = (dataSourceEl[id] as FormActionType).getFieldsValue() as DataSource;
78 if (!~index) continue; 78 if (!~index) continue;
79 const componentInfo = unref(dataSource)[index].componentInfo || {}; 79 const componentInfo = unref(dataSource)[index].componentInfo || {};
80 - _dataSource.push({ 80 + _dataSource.unshift({
81 ...value, 81 ...value,
82 componentInfo: { ...(props.defaultConfig || {}), ...componentInfo }, 82 componentInfo: { ...(props.defaultConfig || {}), ...componentInfo },
83 }); 83 });