From 1b3fb93f787b8b546a307bf063183f5295d183f8 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 16:53:25 +0800
Subject: [PATCH] merge
---
force-app/main/default/lwc/paginatedList/paginatedList.html | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/paginatedList/paginatedList.html b/force-app/main/default/lwc/paginatedList/paginatedList.html
new file mode 100644
index 0000000..e4c7e1a
--- /dev/null
+++ b/force-app/main/default/lwc/paginatedList/paginatedList.html
@@ -0,0 +1,37 @@
+<template>
+ <template if:true={loader}>
+ <lightning-spinner
+ alternative-text="Loading..."
+ size="small"
+ ></lightning-spinner>
+ </template>
+ <template if:true={records}>
+ <div class="table-container">
+ <lightning-datatable
+ key-field="id"
+ data={records}
+ columns={columns}
+ sorted-by={sortBy}
+ sorted-direction={sortDirection}
+ onsort={doSorting}
+ >
+ </lightning-datatable>
+ </div>
+ <c-paginator
+ onprevious={handlePrevious}
+ onnext={handleNext}
+ onpageschange={handlePageschange}
+ onfirst={handleFirst}
+ onlast={handleLast}
+ page-size-options={pageSizeOptions}
+ previous-button-disabled={previousButtonDisabled}
+ next-button-disabled={nextButtonDisabled}
+ record-start={recordStart}
+ record-end={recordEnd}
+ total-records={totalRecords}
+ ></c-paginator>
+ </template>
+ <template if:true={error}>
+ <c-error-panel errors={error}></c-error-panel>
+ </template>
+</template>
--
Gitblit v1.9.1