1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
3167f44f51
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 {