语法修正

This commit is contained in:
Xu Chang 2022-08-19 12:27:11 +08:00
parent f2e9d865a2
commit a65a34e08b
2 changed files with 10 additions and 6 deletions

View File

@ -1174,12 +1174,14 @@ var TreeStore = /** @class */ (function (_super) {
}
_b.label = 2;
case 2:
selection = Object.assign({}, operation, {
selection = {
data: {
id: 1,
},
action: 'select',
});
filter: operation.filter,
indexFrom: operation.indexFrom,
count: operation.count,
};
return [4 /*yield*/, this.selectAbjointRow(entity, selection, context)];
case 3:
rows = _b.sent();

View File

@ -876,12 +876,14 @@ export default class TreeStore<ED extends EntityDict, Cxt extends Context<ED>> e
return 1;
}
default: {
const selection = Object.assign({}, operation, {
const selection: ED[T]['Selection'] = {
data: {
id: 1,
},
action: 'select',
}) as ED[T]['Selection'];
filter: operation.filter,
indexFrom: operation.indexFrom,
count: operation.count,
};
const rows = await this.selectAbjointRow(entity, selection, context);
const ids = rows.map(ele => ele.id);