@pisell/materials 1.0.236 → 1.0.237
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGenGridProps.js +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGenGridProps.js +1 -1
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ var useGenGridProps = function useGenGridProps(params) {
|
|
|
9
9
|
var columnCount = useMemo(function () {
|
|
10
10
|
var minCount = Math.floor(width / itemMinWidth);
|
|
11
11
|
var maxCount = Math.floor(width / itemMaxWidth);
|
|
12
|
-
return Math.floor((minCount + maxCount) / 2);
|
|
12
|
+
return Math.max(Math.floor((minCount + maxCount) / 2), 1);
|
|
13
13
|
}, [width, itemMinWidth, itemMaxWidth]);
|
|
14
14
|
var columnWidth = useMemo(function () {
|
|
15
15
|
return (width - horizontal * (columnCount - 1) - 17) / columnCount;
|
|
@@ -35,7 +35,7 @@ var useGenGridProps = (params) => {
|
|
|
35
35
|
const columnCount = (0, import_react.useMemo)(() => {
|
|
36
36
|
const minCount = Math.floor(width / itemMinWidth);
|
|
37
37
|
const maxCount = Math.floor(width / itemMaxWidth);
|
|
38
|
-
return Math.floor((minCount + maxCount) / 2);
|
|
38
|
+
return Math.max(Math.floor((minCount + maxCount) / 2), 1);
|
|
39
39
|
}, [width, itemMinWidth, itemMaxWidth]);
|
|
40
40
|
const columnWidth = (0, import_react.useMemo)(() => {
|
|
41
41
|
return (width - horizontal * (columnCount - 1) - 17) / columnCount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.237",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"react-window": "^1.8.10",
|
|
63
63
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
64
64
|
"crypto-js": "^4.2.0",
|
|
65
|
+
"@pisell/utils": "1.0.23",
|
|
65
66
|
"@pisell/icon": "0.0.8",
|
|
66
|
-
"@pisell/date-picker": "1.0.69"
|
|
67
|
-
"@pisell/utils": "1.0.23"
|
|
67
|
+
"@pisell/date-picker": "1.0.69"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|