@ccs-ui/rc-pro 2.0.4 → 2.0.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.
@@ -68,4 +68,13 @@
68
68
  flex: 1 1 auto;
69
69
  position: relative;
70
70
  }
71
+
72
+ .ccs-table-item-scroll > div {
73
+ padding: 16px;
74
+ flex-direction: column;
75
+ display: none;
76
+ }
77
+ .ccs-table-item-scroll.route-avtive > div {
78
+ display: flex;
79
+ }
71
80
  }
@@ -1,3 +1,4 @@
1
+ import classNames from 'classnames';
1
2
  import { memo, useRef } from 'react';
2
3
  import Scrollbars from 'react-custom-scrollbars';
3
4
  import { PageContext } from "../context";
@@ -27,13 +28,10 @@ export default /*#__PURE__*/memo(function (props) {
27
28
  className: "ccs-tab-item",
28
29
  "data-display": active,
29
30
  children: /*#__PURE__*/_jsx(Scrollbars, {
30
- style: {
31
- padding: 16,
32
- flexDirection: 'column',
33
- display: active ? 'flex' : 'none'
34
- },
35
31
  autoHide: true,
36
- className: "ccs-table-item-scroll",
32
+ className: classNames('ccs-table-item-scroll', {
33
+ 'route-avtive': active
34
+ }),
37
35
  children: children
38
36
  })
39
37
  })
@@ -31,6 +31,10 @@
31
31
  .page-content {
32
32
  flex: 1 1 auto;
33
33
  }
34
+
35
+ .ccs-table-item-scroll > div {
36
+ display: flex;
37
+ }
34
38
  }
35
39
 
36
40
  .colorful-theme {
@@ -21,11 +21,6 @@ export default /*#__PURE__*/memo(function (props) {
21
21
  children: /*#__PURE__*/_jsx(Scrollbars, {
22
22
  autoHide: true,
23
23
  className: "ccs-table-item-scroll",
24
- style: {
25
- padding: 16,
26
- flexDirection: 'column',
27
- display: 'flex'
28
- },
29
24
  children: children
30
25
  })
31
26
  });
@@ -124,8 +124,7 @@ export default function TableOperation(_ref) {
124
124
  });
125
125
  };
126
126
  var onFullScreen = function onFullScreen() {
127
- var _tableRef$current3;
128
- (_tableRef$current3 = tableRef.current) === null || _tableRef$current3 === void 0 || _tableRef$current3.onFullScreen();
127
+ // tableRef.current?.onFullScreen();
129
128
  };
130
129
  return /*#__PURE__*/_jsxs(_Fragment, {
131
130
  children: [/*#__PURE__*/_jsx(Tooltip, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {