@pisell/materials 2.2.30 → 2.2.32
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/index.js +3 -0
- package/es/components/table/Gallery/components/VirtualGrid/index.less +5 -0
- package/es/components/table/Gallery/constant.d.ts +1 -1
- package/es/components/table/Gallery/constant.js +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/index.js +3 -0
- package/lib/components/table/Gallery/components/VirtualGrid/index.less +5 -0
- package/lib/components/table/Gallery/constant.d.ts +1 -1
- package/lib/components/table/Gallery/constant.js +1 -1
- package/package.json +3 -3
|
@@ -10,6 +10,8 @@ import AutoSizer from "react-virtualized-auto-sizer";
|
|
|
10
10
|
import useGenGridProps from "./useGenGridProps";
|
|
11
11
|
import useGapSize from "./useGapSize";
|
|
12
12
|
import { Empty } from "antd";
|
|
13
|
+
import { isMobile } from "../../../../../utils/platform";
|
|
14
|
+
import "./index.less";
|
|
13
15
|
var Cell = function Cell(props) {
|
|
14
16
|
var columnIndex = props.columnIndex,
|
|
15
17
|
rowIndex = props.rowIndex,
|
|
@@ -75,6 +77,7 @@ var GridComponent = function GridComponent(props) {
|
|
|
75
77
|
};
|
|
76
78
|
}, [dataSource, columnCount, gap, renderItem, paddingTop]);
|
|
77
79
|
return /*#__PURE__*/React.createElement(Grid, {
|
|
80
|
+
className: isMobile() ? "pisell-lowcode-mobile-gallery" : "",
|
|
78
81
|
columnCount: columnCount,
|
|
79
82
|
columnWidth: columnWidth,
|
|
80
83
|
height: height,
|
|
@@ -38,6 +38,8 @@ var import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-aut
|
|
|
38
38
|
var import_useGenGridProps = __toESM(require("./useGenGridProps"));
|
|
39
39
|
var import_useGapSize = __toESM(require("./useGapSize"));
|
|
40
40
|
var import_antd = require("antd");
|
|
41
|
+
var import_platform = require("../../../../../utils/platform");
|
|
42
|
+
var import_index = require("./index.less");
|
|
41
43
|
var Cell = (props) => {
|
|
42
44
|
const { columnIndex, rowIndex, style, isScrolling, data } = props;
|
|
43
45
|
const { renderItem, gap, columnCount, dataSource, paddingTop } = data;
|
|
@@ -97,6 +99,7 @@ var GridComponent = (props) => {
|
|
|
97
99
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
98
100
|
import_react_window.FixedSizeGrid,
|
|
99
101
|
{
|
|
102
|
+
className: (0, import_platform.isMobile)() ? "pisell-lowcode-mobile-gallery" : "",
|
|
100
103
|
columnCount,
|
|
101
104
|
columnWidth,
|
|
102
105
|
height,
|
|
@@ -25,7 +25,7 @@ __export(constant_exports, {
|
|
|
25
25
|
TITLE_VERTICAL_SPACING: () => TITLE_VERTICAL_SPACING
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(constant_exports);
|
|
28
|
-
var FIELD_VALUE_HEIGHT =
|
|
28
|
+
var FIELD_VALUE_HEIGHT = 55;
|
|
29
29
|
var FIELD_LABEL_HEIGHT = 26;
|
|
30
30
|
var TITLE_LENE_HEIGHT = 32;
|
|
31
31
|
var TITLE_VERTICAL_SPACING = 18;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"crypto-js": "^4.2.0",
|
|
65
65
|
"@zxing/library": "0.21.2",
|
|
66
66
|
"@pisell/utils": "2.0.1",
|
|
67
|
-
"@pisell/
|
|
68
|
-
"@pisell/
|
|
67
|
+
"@pisell/date-picker": "1.0.100",
|
|
68
|
+
"@pisell/icon": "0.0.11"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "^18.0.0",
|