bi-eleme 2.0.11 → 2.0.13
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.
- package/lib/cascader-panel.js +13 -4
- package/lib/element-ui.common.js +25 -13
- package/lib/index.js +1 -1
- package/lib/tabs.js +6 -3
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/utils/util.js +10 -8
- package/package.json +1 -1
- package/packages/cascader-panel/src/cascader-node.vue +14 -5
- package/packages/tabs/src/tab-bar.vue +4 -1
- package/packages/theme-chalk/lib/cascader-panel.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/cascader-panel.scss +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +7 -8
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
&.in-selected-path {
|
|
115
115
|
font-weight: bold;
|
|
116
116
|
color: $--color-text-primary;
|
|
117
|
-
background-color: $--cascader-node-background-hover;
|
|
117
|
+
background-color: $--cascader-node-background-hover !important;
|
|
118
118
|
&:hover {
|
|
119
119
|
background-color: $--cascader-node-background-hover;
|
|
120
120
|
}
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -247,17 +247,16 @@ export function isArrayAContainedInB(arrA = [], arrB = []) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
export function isArrayAContainedIn2DArrayB(arrA = [], arrB = []) {
|
|
250
|
+
const arrBSet = new Set(arrB.flat())
|
|
251
|
+
|
|
250
252
|
for (let i = 0; i < arrA.length; i++) {
|
|
251
|
-
|
|
252
|
-
for (let j = 0; j < arrB.length; j++) {
|
|
253
|
-
if (arrB[j].includes(arrA[i])) {
|
|
254
|
-
isContained = true
|
|
255
|
-
break
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
if (!isContained) {
|
|
253
|
+
if (!arrBSet.has(arrA[i])) {
|
|
259
254
|
return false
|
|
260
255
|
}
|
|
261
256
|
}
|
|
257
|
+
|
|
262
258
|
return true
|
|
263
259
|
}
|
|
260
|
+
export function isInArray(value, arr = []) {
|
|
261
|
+
return arr.includes(value)
|
|
262
|
+
}
|