acud 1.2.10 → 1.2.11

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.
@@ -76,9 +76,13 @@ var getEnableOptions = function getEnableOptions(options) {
76
76
 
77
77
  if (children && children.length) {
78
78
  var enabledChilren = getEnableOptions(children);
79
- enabledOptions.push(_extends(_extends({}, option), {
80
- children: enabledChilren
81
- }));
79
+
80
+ if (!isEmpty(enabledChilren)) {
81
+ enabledOptions.push(_extends(_extends({}, option), {
82
+ children: enabledChilren
83
+ }));
84
+ }
85
+
82
86
  return;
83
87
  }
84
88
 
@@ -102,9 +102,13 @@ var getEnableOptions = function getEnableOptions(options) {
102
102
 
103
103
  if (children && children.length) {
104
104
  var enabledChilren = getEnableOptions(children);
105
- enabledOptions.push((0, _extends2["default"])((0, _extends2["default"])({}, option), {
106
- children: enabledChilren
107
- }));
105
+
106
+ if (!(0, _isEmpty["default"])(enabledChilren)) {
107
+ enabledOptions.push((0, _extends2["default"])((0, _extends2["default"])({}, option), {
108
+ children: enabledChilren
109
+ }));
110
+ }
111
+
108
112
  return;
109
113
  }
110
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acud",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "acg react 组件库",
5
5
  "license": "ISC",
6
6
  "author": "acg",