@zat-design/sisyphus-react 3.4.5-beta.2 → 3.4.5-beta.3

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.
@@ -2485,6 +2485,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2485
2485
  color: var(--ant-error-color);
2486
2486
  border-color: var(--ant-error-color);
2487
2487
  }
2488
+ .pro-container.pro-container-empty .ant-collapse-content {
2489
+ display: none;
2490
+ }
2488
2491
  .pro-container.pro-container-diy .pro-container-content {
2489
2492
  display: -webkit-box;
2490
2493
  display: -webkit-flex;
package/dist/less.esm.css CHANGED
@@ -2485,6 +2485,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2485
2485
  color: var(--ant-error-color);
2486
2486
  border-color: var(--ant-error-color);
2487
2487
  }
2488
+ .pro-container.pro-container-empty .ant-collapse-content {
2489
+ display: none;
2490
+ }
2488
2491
  .pro-container.pro-container-diy .pro-container-content {
2489
2492
  display: -webkit-box;
2490
2493
  display: -webkit-flex;
@@ -21,10 +21,11 @@ var Container = function Container(props) {
21
21
  disabled = _ref.disabled;
22
22
  var _className = classnames(_defineProperty({
23
23
  'pro-container': true,
24
- 'pro-container-diy': type === 'Container'
24
+ 'pro-container-diy': type === 'Container',
25
+ 'pro-container-empty': !(children === null || children === void 0 ? void 0 : children.length)
25
26
  }, "".concat(className), className));
26
27
  var _children = useMemo(function () {
27
- var result = children.map(function (item) {
28
+ var result = children === null || children === void 0 ? void 0 : children.map(function (item) {
28
29
  return _objectSpread({
29
30
  clearNotShow: clearNotShow,
30
31
  show: show,
@@ -2,7 +2,11 @@
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
4
  .pro-container {
5
-
5
+ &.pro-container-empty{
6
+ .@{ant-prefix}-collapse-content{
7
+ display: none;
8
+ }
9
+ }
6
10
  &.pro-container-diy {
7
11
  .pro-container-content {
8
12
  display : flex;
@@ -28,10 +28,11 @@ var Container = function Container(props) {
28
28
  disabled = _ref.disabled;
29
29
  var _className = (0, _classnames2.default)((0, _defineProperty2.default)({
30
30
  'pro-container': true,
31
- 'pro-container-diy': type === 'Container'
31
+ 'pro-container-diy': type === 'Container',
32
+ 'pro-container-empty': !(children === null || children === void 0 ? void 0 : children.length)
32
33
  }, "".concat(className), className));
33
34
  var _children = (0, _react.useMemo)(function () {
34
- var result = children.map(function (item) {
35
+ var result = children === null || children === void 0 ? void 0 : children.map(function (item) {
35
36
  return (0, _objectSpread2.default)({
36
37
  clearNotShow: clearNotShow,
37
38
  show: show,
@@ -2,7 +2,11 @@
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
4
  .pro-container {
5
-
5
+ &.pro-container-empty{
6
+ .@{ant-prefix}-collapse-content{
7
+ display: none;
8
+ }
9
+ }
6
10
  &.pro-container-diy {
7
11
  .pro-container-content {
8
12
  display : flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.5-beta.2",
3
+ "version": "3.4.5-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",