这是个正常的el-cascader选择框,具体代码
<el-cascader ref="cascaderPanel" :border="false" :options="corpdataMarkesOptions" v-model="dataMark"
:props="customProps" placeholder="请选择企业分类" clearable>
</el-cascader>
options:为数据源
props:需要修改的属性
但现在我们要实现的效果是
点击el-popover框弹出级联选择,代码如下
<el-popover placement="bottom" trigger="click" @hide="handleUpdatedataMark">
<el-cascader ref="cascaderPanel" :border="false" :disabled="multiple" :options="corpdataMarkesChoose" v-model="corpdataMarkesArray"
:props="customProps" @change="handledataMark" clearable>
</el-cascader>
<el-button slot="reference" :disabled="multiple" size="mini" type="primary">
企业分类<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
</el-popover>
遇到个问题就是塞入的ID会重复,需要去重