一、最终效果二、具体HTML代码(详情请看源码)template>el-selectref="select"v-model="selectValue":multiple="multiple":filter-method="dataFilter"@remove-tag="removeTag"@clear="clearAll"popper-class="t-tree-select":style="{width:width||'100%'}"v-bind="attrs"v-on="$listeners">el-optionv-model="selectTree"class="option-style
一、最终效果二、具体HTML代码(详情请看源码)template>el-selectref="select"v-model="selectValue":multiple="multiple":filter-method="dataFilter"@remove-tag="removeTag"@clear="clearAll"popper-class="t-tree-select":style="{width:width||'100%'}"v-bind="attrs"v-on="$listeners">el-optionv-model="selectTree"class="option-style
>全选 > :data="treePrintData" ref="treePrintData" show-checkbox default-expand-all node-key="id" :props="defaultProps" > handleCheckAllChange(val){ if(this.checkAll){ //全选 this.$refs.treePrintData.setCheckedNodes(this.treePrintData); }else{
>全选 > :data="treePrintData" ref="treePrintData" show-checkbox default-expand-all node-key="id" :props="defaultProps" > handleCheckAllChange(val){ if(this.checkAll){ //全选 this.$refs.treePrintData.setCheckedNodes(this.treePrintData); }else{