语法修正
This commit is contained in:
parent
f2e9d865a2
commit
a65a34e08b
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue