This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch matrix-page
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 4023169d4b64aabb5b9b5536a99c741c35020142
Author: Li Li <[email protected]>
AuthorDate: Wed Mar 22 16:41:15 2023 +0800

    update
    
    Signed-off-by: Li Li <[email protected]>
---
 data/matrix.js      | 3 +++
 src/pages/matrix.js | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/data/matrix.js b/data/matrix.js
new file mode 100644
index 00000000000..51dbcc10492
--- /dev/null
+++ b/data/matrix.js
@@ -0,0 +1,3 @@
+module.exports = {
+  
+}
\ No newline at end of file
diff --git a/src/pages/matrix.js b/src/pages/matrix.js
index e1ff5e8e994..5d09a21d71c 100644
--- a/src/pages/matrix.js
+++ b/src/pages/matrix.js
@@ -40,7 +40,7 @@ const generateData = (columns, count = 200, prefix = "row-") 
=>
   });
 
 const columns = generateColumns(10);
-const data = generateData(columns, 200);
+const data = generateData(columns, 10);
 
 const fixedColumns = columns.map((column, columnIndex) => {
   let frozen;
@@ -52,6 +52,10 @@ const rowSpanIndex = 0;
 fixedColumns[rowSpanIndex].rowSpan = ({ rowData, rowIndex }) =>
   rowIndex % 2 === 0 && rowIndex <= data.length - 2 ? 2 : 1;
 
+// console.log(JSON.stringify(fixedColumns, null, 2));
+// console.log(JSON.stringify(data, null, 2));
+// console.log('...', fixedColumns[rowSpanIndex]);
+
 const rowRenderer = ({ rowData, rowIndex, cells, columns }) => {
   const rowSpan = columns[rowSpanIndex].rowSpan({ rowData, rowIndex });
   if (rowSpan > 1) {

Reply via email to