提交 50c43b01 编写于 作者: X xiayifan

UI fix multiSelect component limit value does not effect

上级 8846c1d4
......@@ -164,18 +164,18 @@ export default {
listSelectAll() {
this.operateSelectAll = !this.operateSelectAll;
this.multiSelectedItemNames = {};
this.selectedNumber = 0;
// Setting the status of list items
if (this.operateSelectAll) {
if (this.isLimit) {
const loopCount = this.checkListArr.length;
for (let i = 0; i < loopCount; i++) {
const listItem = this.checkListArr[i];
if (this.selectedNumber >= this.limitNum) {
break;
if (listItem.checked && listItem.show) {
this.multiSelectedItemNames[listItem.label] = true;
}
const listItem = this.checkListArr[i];
} else {
if (listItem.checked) {
this.selectedNumber++;
if (listItem.show) {
this.multiSelectedItemNames[listItem.label] = true;
}
......@@ -185,6 +185,7 @@ export default {
this.selectedNumber++;
}
}
}
} else {
this.checkListArr.forEach((listItem) => {
if (listItem.show) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册