bkui-vue 2.0.2-beta.35 → 2.0.2-beta.36
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/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +2 -2
- package/lib/cascader/index.js +6 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/cascader/index.js
CHANGED
@@ -2567,7 +2567,12 @@ var Store = /*#__PURE__*/function () {
|
|
2567
2567
|
isEdit.value = true; // 删除时也在编辑态,触发overflowTagIndex的计算
|
2568
2568
|
store.value.removeTag(tag);
|
2569
2569
|
updateValue(current);
|
2570
|
-
emit('update:modelValue', store.value.getCheckedNodes()
|
2570
|
+
emit('update:modelValue', store.value.getCheckedNodes()
|
2571
|
+
// a. 开启 checkAnyLevel 后,不过滤任何节点
|
2572
|
+
// b. 关闭 checkAnyLevel 后,只返回叶子节点,避免父节点在子节点全部选中后,同时出现在 modelValue 中
|
2573
|
+
.filter(function (node) {
|
2574
|
+
return store.value.config.checkAnyLevel || node.isLeaf;
|
2575
|
+
}).map(function (node) {
|
2571
2576
|
return node.path;
|
2572
2577
|
}));
|
2573
2578
|
// 计算过后,关闭编辑状态
|
package/lib/index.js
CHANGED