@sd-angular/core 19.0.0-beta.6 → 19.0.0-beta.7
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.
|
@@ -33,7 +33,7 @@ interface SdTableLocalOption<T = any> extends SdTableBaseOption<T> {
|
|
|
33
33
|
}
|
|
34
34
|
interface SdTableServerOption<T = any> extends SdTableBaseOption<T> {
|
|
35
35
|
type: 'server';
|
|
36
|
-
items: (filterRequest: SdTableFilterRequest<T>, pagingReq
|
|
36
|
+
items: (filterRequest: SdTableFilterRequest<T>, pagingReq: SdPagingReq<T>) => Promise<{
|
|
37
37
|
items: T[];
|
|
38
38
|
total: number;
|
|
39
39
|
}>;
|
|
@@ -2359,7 +2359,8 @@ class SdTable extends SdBaseSecureComponent {
|
|
|
2359
2359
|
total: 0,
|
|
2360
2360
|
};
|
|
2361
2361
|
}
|
|
2362
|
-
const
|
|
2362
|
+
const pagingReq = this.#convertPagingReq(filterReq);
|
|
2363
|
+
const data = await items(filterReq, pagingReq).catch(err => {
|
|
2363
2364
|
console.error(err);
|
|
2364
2365
|
return {
|
|
2365
2366
|
items: [],
|