midway-fatcms 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,8 +90,10 @@ let CurdMixBySysConfigService = class CurdMixBySysConfigService {
90
90
  const targetColumns = columnRelation.targetColumns;
91
91
  if (!Array.isArray(targetColumns) || targetColumns.length === 0) {
92
92
  columnRelation.targetColumns = [
93
- { from: 'label', to: `${sourceColumn}_info.label` },
94
- { from: 'style', to: `${sourceColumn}_info.style` },
93
+ {
94
+ from: '*',
95
+ to: `${sourceColumn}_info[$ARRAY_INDEX]`,
96
+ },
95
97
  ];
96
98
  }
97
99
  dictMixUtils.copyColumnRelationToRow(row, multiKeyMap, columnRelation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midway-fatcms",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "This is a midway component sample",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -111,8 +111,10 @@ export class CurdMixBySysConfigService implements IExecuteContextHandler {
111
111
  const targetColumns = columnRelation.targetColumns;
112
112
  if (!Array.isArray(targetColumns) || targetColumns.length === 0) {
113
113
  columnRelation.targetColumns = [
114
- { from: 'label', to: `${sourceColumn}_info.label` },
115
- { from: 'style', to: `${sourceColumn}_info.style` },
114
+ {
115
+ from: '*',
116
+ to: `${sourceColumn}_info[$ARRAY_INDEX]`,
117
+ },
116
118
  ];
117
119
  }
118
120
  dictMixUtils.copyColumnRelationToRow(row, multiKeyMap, columnRelation);