1004749546@qq.com 4 năm trước cách đây
mục cha
commit
3167f44f51
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      components/uni-check-list/uni-check-list.vue

+ 3 - 1
components/uni-check-list/uni-check-list.vue

@@ -117,7 +117,9 @@ export default {
 				this.value[0] = this.backValue == 'idArr' ? item.id : item;
 				this.$emit('ok', this.value);
 			} else {
-				// 取消选中
+				// 已选项点击文本,取消选中
+				item.checked = this.value.find(a=>a.id==item.id) ? false : true
+				// 选中
 				if (item.checked) {
 					this.value.push(this.backValue == 'idArr' ? item.id : item);
 				} else {