@lemon-fe/components 1.4.9 → 1.4.10
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.
|
@@ -120,22 +120,24 @@ export default function CustomColumnPanel(params) {
|
|
|
120
120
|
path.unshift(node);
|
|
121
121
|
parent = parent.getOriginalParent();
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
var mergeFlag = false;
|
|
124
|
+
for (var i = path.length - 1; i >= 0; i--) {
|
|
124
125
|
var node1 = prevPath[i];
|
|
125
126
|
var node2 = path[i];
|
|
126
127
|
if (node1 !== undefined && node2 !== undefined && node1.id === node2.id) {
|
|
127
|
-
|
|
128
|
+
if (!mergeFlag) {
|
|
129
|
+
node1.children = [].concat(_toConsumableArray(node1.children), _toConsumableArray(node2.children));
|
|
130
|
+
mergeFlag = true;
|
|
131
|
+
}
|
|
128
132
|
node1.leaf = [].concat(_toConsumableArray(node1.leaf), _toConsumableArray(node2.leaf));
|
|
129
133
|
node1.disabled = node1.disabled && node2.disabled;
|
|
130
134
|
node1.visible = node1.visible === 1 && node2.visible === 1 ? 1 : node1.visible === 1 || node2.visible === 1 ? 2 : 0;
|
|
131
135
|
path[i] = node1;
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
if (i === 0) {
|
|
135
|
-
items.push(path[0]);
|
|
136
|
-
break;
|
|
137
136
|
}
|
|
138
137
|
}
|
|
138
|
+
if (!mergeFlag) {
|
|
139
|
+
items.push(path[0]);
|
|
140
|
+
}
|
|
139
141
|
prevPath = path;
|
|
140
142
|
});
|
|
141
143
|
return items;
|
package/es/popup/index.less
CHANGED
|
@@ -20,14 +20,9 @@
|
|
|
20
20
|
padding: 1px;
|
|
21
21
|
background-color: #fff;
|
|
22
22
|
transform: translateY(-50%);
|
|
23
|
-
opacity: 0;
|
|
24
23
|
transition: opacity 0.3s, color 0.3s !important;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
&-wrapper:hover &-input-clear {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
26
|
&-input input {
|
|
32
27
|
cursor: pointer;
|
|
33
28
|
}
|
package/es/styles/overrides.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://registry.npmjs.org"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "caf104b75fecab8a24a2a193ab1f4c088aa688ae"
|
|
62
62
|
}
|