es-grid-template 1.4.4 → 1.4.5

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.
@@ -10,6 +10,7 @@ type Props<T> = GridTableProps<T> & {
10
10
  triggerPaste?: (pastedRows: T[], pastedColumnsArray: string[], newData: T[]) => void;
11
11
  triggerFilter?: (queries: any) => void;
12
12
  setTooltipContent?: any;
13
+ scrollHeight?: number;
13
14
  };
14
15
  declare const Group: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
15
16
  export default Group;
@@ -20,8 +20,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  const Group = props => {
21
21
  const {
22
22
  t,
23
+ id,
23
24
  columns,
24
25
  height,
26
+ scrollHeight,
25
27
  style,
26
28
  rowHoverable,
27
29
  groupAble,
@@ -106,11 +108,14 @@ const Group = props => {
106
108
  };
107
109
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
108
110
  $heightTable: height,
111
+ $heightScroll: scrollHeight,
109
112
  style: {
110
113
  position: 'relative'
111
- }
114
+ },
115
+ id: id
112
116
  }, /*#__PURE__*/_react.default.createElement(_TableGrid.default, (0, _extends2.default)({}, rest, {
113
117
  t: t,
118
+ id: id,
114
119
  columns: columns,
115
120
  style: {
116
121
  ...style,
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "es-grid-template",
3
- "version": "1.4.4",
4
- "description": "es-grid-template",
5
- "keywords": [
6
- "react",
7
- "react-component",
8
- "grid",
9
- "table"
10
- ],
11
- "license": "MIT",
12
- "main": "lib/index",
13
- "module": "es/index",
14
- "files": [
15
- "lib",
16
- "es",
17
- "assets/*.css",
18
- "assets/*.scss"
19
- ],
20
- "scripts": {
21
- "__compile": "father build && ",
22
- "compile": "father build && sass assets/index.scss assets/index.css",
23
- "docs:build": "dumi build",
24
- "__docs:deploy": "gh-pages -d dist",
25
- "lint": "eslint src/ --ext .tsx,.ts,.jsx,.js",
26
- "now-build": "npm run docs:build",
27
- "prepare": "dumi setup",
28
- "prepublishOnly": "npm run compile",
29
- "postpublish": "npm run docs:build",
30
- "__postpublish": "npm run docs:build && npm run docs:deploy",
31
- "start": "dumi dev",
32
- "test": "vitest --watch false",
33
- "coverage": "vitest run --coverage"
34
- },
35
- "dependencies": {
36
- "@ant-design/colors": "^8.0.0",
37
- "@ant-design/icons": "^5.5.2",
38
- "@babel/runtime": "^7.11.2",
39
- "@core-rc/rc-select": "^0.0.8",
40
- "@dnd-kit/core": "^6.3.1",
41
- "@dnd-kit/modifiers": "^9.0.0",
42
- "@dnd-kit/sortable": "^10.0.0",
43
- "@faker-js/faker": "^9.5.0",
44
- "@floating-ui/react": "^0.27.5",
45
- "@hookform/resolvers": "^5.0.1",
46
- "@rc-component/color-picker": "^2.0.1",
47
- "@rc-component/father-plugin": "^2.0.1",
48
- "@rc-component/trigger": "^2.0.0",
49
- "@rc-component/util": "^1.0.1",
50
- "@types/react-resizable": "^3.0.8",
51
- "@types/styled-components": "^5.1.34",
52
- "@vitest/coverage-v8": "^2.0.5",
53
- "antd": "^5.24.1",
54
- "antd-style": "^3.7.1",
55
- "becoxy-icons": "^2.0.1",
56
- "classnames": "^2.3.1",
57
- "dayjs": "^1.11.13",
58
- "lodash": "^4.17.21",
59
- "moment": "^2.30.1",
60
- "postcss": "^8.4.35",
61
- "rc-checkbox": "^3.5.0",
62
- "rc-dropdown": "^4.2.1",
63
- "rc-field-form": "^2.6.0",
64
- "rc-master-ui": "^1.1.31",
65
- "rc-select": "^14.16.3",
66
- "rc-tooltip": "^6.3.0",
67
- "rc-tree": "^5.10.1",
68
- "rc-tree-select": "^5.24.5",
69
- "react-hook-form": "^7.54.2",
70
- "react-hot-toast": "^2.5.2",
71
- "react-numeric-component": "^1.0.7",
72
- "react-resizable": "^3.0.5",
73
- "react-tooltip": "^5.28.1",
74
- "sass": "^1.81.0",
75
- "styled-components": "^6.1.15",
76
- "sweetalert2": "^11.4.14",
77
- "sweetalert2-react-content": "^5.0.0",
78
- "throttle-debounce": "^5.0.2",
79
- "vitest": "^2.0.5"
80
- },
81
- "devDependencies": {
82
- "@babel/cli": "^7.26.4",
83
- "@babel/preset-env": "^7.26.9",
84
- "@rc-component/np": "^1.0.3",
85
- "@testing-library/react": "^14.0.0",
86
- "@types/jest": "^29.4.0",
87
- "@types/react": "^18.0.26",
88
- "@types/react-dom": "^18.0.10",
89
- "@types/warning": "^3.0.0",
90
- "cross-env": "^7.0.0",
91
- "dumi": "^2.2.13",
92
- "eslint": "^8.56.0",
93
- "eslint-plugin-unicorn": "^55.0.0",
94
- "father": "^4.0.0",
95
- "gh-pages": "^3.1.0",
96
- "less": "^4.1.1",
97
- "np": "^7.1.0",
98
- "rc-test": "^7.0.9",
99
- "react": "^18.2.0",
100
- "react-dom": "^18.2.0",
101
- "typescript": "^4.0.5"
102
- },
103
- "peerDependencies": {
104
- "react": ">=16.9.0",
105
- "react-dom": ">=16.9.0"
106
- },
107
- "umi": {
108
- "configFile": "config.ts"
109
- }
110
- }
1
+ {
2
+ "name": "es-grid-template",
3
+ "version": "1.4.5",
4
+ "description": "es-grid-template",
5
+ "keywords": [
6
+ "react",
7
+ "react-component",
8
+ "grid",
9
+ "table"
10
+ ],
11
+ "license": "MIT",
12
+ "main": "lib/index",
13
+ "module": "es/index",
14
+ "files": [
15
+ "lib",
16
+ "es",
17
+ "assets/*.css",
18
+ "assets/*.scss"
19
+ ],
20
+ "scripts": {
21
+ "__compile": "father build && ",
22
+ "compile": "father build && sass assets/index.scss assets/index.css",
23
+ "docs:build": "dumi build",
24
+ "__docs:deploy": "gh-pages -d dist",
25
+ "lint": "eslint src/ --ext .tsx,.ts,.jsx,.js",
26
+ "now-build": "npm run docs:build",
27
+ "prepare": "dumi setup",
28
+ "prepublishOnly": "npm run compile",
29
+ "postpublish": "npm run docs:build",
30
+ "__postpublish": "npm run docs:build && npm run docs:deploy",
31
+ "start": "dumi dev",
32
+ "test": "vitest --watch false",
33
+ "coverage": "vitest run --coverage"
34
+ },
35
+ "dependencies": {
36
+ "@ant-design/colors": "^8.0.0",
37
+ "@ant-design/icons": "^5.5.2",
38
+ "@babel/runtime": "^7.11.2",
39
+ "@core-rc/rc-select": "^0.0.8",
40
+ "@dnd-kit/core": "^6.3.1",
41
+ "@dnd-kit/modifiers": "^9.0.0",
42
+ "@dnd-kit/sortable": "^10.0.0",
43
+ "@faker-js/faker": "^9.5.0",
44
+ "@floating-ui/react": "^0.27.5",
45
+ "@hookform/resolvers": "^5.0.1",
46
+ "@rc-component/color-picker": "^2.0.1",
47
+ "@rc-component/father-plugin": "^2.0.1",
48
+ "@rc-component/trigger": "^2.0.0",
49
+ "@rc-component/util": "^1.0.1",
50
+ "@types/react-resizable": "^3.0.8",
51
+ "@types/styled-components": "^5.1.34",
52
+ "@vitest/coverage-v8": "^2.0.5",
53
+ "antd": "^5.24.1",
54
+ "antd-style": "^3.7.1",
55
+ "becoxy-icons": "^2.0.1",
56
+ "classnames": "^2.3.1",
57
+ "dayjs": "^1.11.13",
58
+ "lodash": "^4.17.21",
59
+ "moment": "^2.30.1",
60
+ "postcss": "^8.4.35",
61
+ "rc-checkbox": "^3.5.0",
62
+ "rc-dropdown": "^4.2.1",
63
+ "rc-field-form": "^2.6.0",
64
+ "rc-master-ui": "^1.1.31",
65
+ "rc-select": "^14.16.3",
66
+ "rc-tooltip": "^6.3.0",
67
+ "rc-tree": "^5.10.1",
68
+ "rc-tree-select": "^5.24.5",
69
+ "react-hook-form": "^7.54.2",
70
+ "react-hot-toast": "^2.5.2",
71
+ "react-numeric-component": "^1.0.7",
72
+ "react-resizable": "^3.0.5",
73
+ "react-tooltip": "^5.28.1",
74
+ "sass": "^1.81.0",
75
+ "styled-components": "^6.1.15",
76
+ "sweetalert2": "^11.4.14",
77
+ "sweetalert2-react-content": "^5.0.0",
78
+ "throttle-debounce": "^5.0.2",
79
+ "vitest": "^2.0.5"
80
+ },
81
+ "devDependencies": {
82
+ "@babel/cli": "^7.26.4",
83
+ "@babel/preset-env": "^7.26.9",
84
+ "@rc-component/np": "^1.0.3",
85
+ "@testing-library/react": "^14.0.0",
86
+ "@types/jest": "^29.4.0",
87
+ "@types/react": "^18.0.26",
88
+ "@types/react-dom": "^18.0.10",
89
+ "@types/warning": "^3.0.0",
90
+ "cross-env": "^7.0.0",
91
+ "dumi": "^2.2.13",
92
+ "eslint": "^8.56.0",
93
+ "eslint-plugin-unicorn": "^55.0.0",
94
+ "father": "^4.0.0",
95
+ "gh-pages": "^3.1.0",
96
+ "less": "^4.1.1",
97
+ "np": "^7.1.0",
98
+ "rc-test": "^7.0.9",
99
+ "react": "^18.2.0",
100
+ "react-dom": "^18.2.0",
101
+ "typescript": "^4.0.5"
102
+ },
103
+ "peerDependencies": {
104
+ "react": ">=16.9.0",
105
+ "react-dom": ">=16.9.0"
106
+ },
107
+ "umi": {
108
+ "configFile": "config.ts"
109
+ }
110
+ }