@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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./index.less";
2
3
  declare type VirtualGridProps = {
3
4
  dataSource: Record<string, any>[];
4
5
  renderItem: (item: Record<string, any>, index: number) => React.ReactNode;
@@ -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,
@@ -0,0 +1,5 @@
1
+ .pisell-lowcode-mobile-gallery {
2
+ &::-webkit-scrollbar {
3
+ display: none;
4
+ }
5
+ }
@@ -1,4 +1,4 @@
1
- export declare const FIELD_VALUE_HEIGHT = 46;
1
+ export declare const FIELD_VALUE_HEIGHT = 55;
2
2
  export declare const FIELD_LABEL_HEIGHT = 26;
3
3
  export declare const TITLE_LENE_HEIGHT = 32;
4
4
  export declare const TITLE_VERTICAL_SPACING = 18;
@@ -1,4 +1,4 @@
1
- export var FIELD_VALUE_HEIGHT = 46;
1
+ export var FIELD_VALUE_HEIGHT = 55;
2
2
  export var FIELD_LABEL_HEIGHT = 26;
3
3
  export var TITLE_LENE_HEIGHT = 32;
4
4
  export var TITLE_VERTICAL_SPACING = 18;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./index.less";
2
3
  declare type VirtualGridProps = {
3
4
  dataSource: Record<string, any>[];
4
5
  renderItem: (item: Record<string, any>, index: number) => React.ReactNode;
@@ -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,
@@ -0,0 +1,5 @@
1
+ .pisell-lowcode-mobile-gallery {
2
+ &::-webkit-scrollbar {
3
+ display: none;
4
+ }
5
+ }
@@ -1,4 +1,4 @@
1
- export declare const FIELD_VALUE_HEIGHT = 46;
1
+ export declare const FIELD_VALUE_HEIGHT = 55;
2
2
  export declare const FIELD_LABEL_HEIGHT = 26;
3
3
  export declare const TITLE_LENE_HEIGHT = 32;
4
4
  export declare const TITLE_VERTICAL_SPACING = 18;
@@ -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 = 46;
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.30",
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/icon": "0.0.11",
68
- "@pisell/date-picker": "1.0.100"
67
+ "@pisell/date-picker": "1.0.100",
68
+ "@pisell/icon": "0.0.11"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": "^18.0.0",