仿写单选框/多选框


阻止change事件冒泡: @click.stop
vue 阻止事件方法
.stop 

.prevent  //阻止默认行为

.capture  //冒泡优先执行

.self  // 仅当前

.once // 点击回调只触发一次
单选框
{{ item.label }}
handleChange(item) { this.radio = item.value; }
多选框
{{ item.label }}
handleChange(item) { if (!this.isEditor) { this.boxList.indexOf(item.value) != -1 ? this.boxList.splice(this.boxList.indexOf(item.value), 1) : this.boxList.push(item.value); this.element.value = this.boxList; if(this.element.action.modifyEvent){ let params = this.element.name; this.eventRecursion(this.currentLevelStore.componentData,params) } } }