@noraent/nora-datagrid 0.0.25 → 0.0.26

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.
package/lib/cjs/App.js CHANGED
@@ -6,10 +6,10 @@ const RenderCell = (params) => {
6
6
  const [value, setValue] = useState(0);
7
7
  useEffect(() => {
8
8
  let tt = 0;
9
- for (let i = 0; i < 1000; i++) {
10
- tt += 233300 * i;
11
- }
12
- const data = Array.from({ length: 10000 }, (_, i) => {
9
+ // for (let i = 0; i < 1000; i++) {
10
+ // tt += 233300 * i;
11
+ // }
12
+ const data = Array.from({ length: 1 }, (_, i) => {
13
13
  return {
14
14
  id: i,
15
15
  code: `${tt} -test-${i}`,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noraent/nora-datagrid",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "module": "./lib/esm/index.js",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "private": false,
@@ -233,7 +233,7 @@ const DynamicVirtualScroll = React.memo(({ children }) => {
233
233
  cumulativeWidths,
234
234
  windowSize,
235
235
  columnEndIndex,
236
- }), [visibleItems, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex])) }) })] })] }), _jsx(RightScrollBar, { ref: rightScrollRef, style: { height: windowSize.height - 40, right: "0px" }, onScroll: handleScrollController, children: _jsx("div", { style: { width: "14px", height: `${totalHeight}px` } }) }), _jsx(BottomScrollBar, { ref: bottomScrollRef, style: { width: windowSize.width }, onScroll: handleScrollBottomController, children: _jsx("div", { style: { height: "14px", width: `${totalWidth}px` } }) })] }));
236
+ }), [visibleItems, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex])) }) })] })] }), _jsx(RightScrollBar, { ref: rightScrollRef, style: { height: windowSize.height - 54, right: "0px" }, onScroll: handleScrollController, children: _jsx("div", { style: { width: "14px", height: `${totalHeight}px` } }) }), _jsx(BottomScrollBar, { ref: bottomScrollRef, style: { width: windowSize.width }, onScroll: handleScrollBottomController, children: _jsx("div", { style: { height: "14px", width: `${totalWidth}px` } }) })] }));
237
237
  });
238
238
  const VirtualListItem = React.memo(({ item, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex, isColIndex, editStatus }) => {
239
239
  const { columns, dataSource } = useSelector((store) => ({
package/lib/esm/App.js CHANGED
@@ -6,10 +6,10 @@ const RenderCell = (params) => {
6
6
  const [value, setValue] = useState(0);
7
7
  useEffect(() => {
8
8
  let tt = 0;
9
- for (let i = 0; i < 1000; i++) {
10
- tt += 233300 * i;
11
- }
12
- const data = Array.from({ length: 10000 }, (_, i) => {
9
+ // for (let i = 0; i < 1000; i++) {
10
+ // tt += 233300 * i;
11
+ // }
12
+ const data = Array.from({ length: 1 }, (_, i) => {
13
13
  return {
14
14
  id: i,
15
15
  code: `${tt} -test-${i}`,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noraent/nora-datagrid",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "module": "./lib/esm/index.js",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "private": false,
@@ -233,7 +233,7 @@ const DynamicVirtualScroll = React.memo(({ children }) => {
233
233
  cumulativeWidths,
234
234
  windowSize,
235
235
  columnEndIndex,
236
- }), [visibleItems, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex])) }) })] })] }), _jsx(RightScrollBar, { ref: rightScrollRef, style: { height: windowSize.height - 40, right: "0px" }, onScroll: handleScrollController, children: _jsx("div", { style: { width: "14px", height: `${totalHeight}px` } }) }), _jsx(BottomScrollBar, { ref: bottomScrollRef, style: { width: windowSize.width }, onScroll: handleScrollBottomController, children: _jsx("div", { style: { height: "14px", width: `${totalWidth}px` } }) })] }));
236
+ }), [visibleItems, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex])) }) })] })] }), _jsx(RightScrollBar, { ref: rightScrollRef, style: { height: windowSize.height - 54, right: "0px" }, onScroll: handleScrollController, children: _jsx("div", { style: { width: "14px", height: `${totalHeight}px` } }) }), _jsx(BottomScrollBar, { ref: bottomScrollRef, style: { width: windowSize.width }, onScroll: handleScrollBottomController, children: _jsx("div", { style: { height: "14px", width: `${totalWidth}px` } }) })] }));
237
237
  });
238
238
  const VirtualListItem = React.memo(({ item, startColumnIndex, cumulativeWidths, windowSize, columnEndIndex, isColIndex, editStatus }) => {
239
239
  const { columns, dataSource } = useSelector((store) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noraent/nora-datagrid",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "module": "./lib/esm/index.js",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "private": false,