html
<el-form-item label="期望工作地点"
prop="HopeJobProvinces"
class="HopeJobProvincesss">
<el-cascader style="width:200px"
:options="areaSelectData"
:props="areaSelectDataProps"
ref="areaSelectDataRef"
class="full-width"
size="large"
v-model="objectiveForm.HopeJobProvinces"
placeholder="期望工作地" />
</el-form-item>
js(在data里面)
data () {
return {
// 期望工作地
areaSelectData: regionData, // options绑定的数据就是引入的 provinceAndCityData
areaSelectDataProps: { multiple: true, checkStrictly: true, multipleLimit: 3, children: 'children', value: 'value', lable: 'lable' },
objectiveForm:{
HopeJobProvinces:""
}
}
}
css(如果没效果就把scoped去掉,或者在前面加上::v-deep)
.el-cascader-panel {
.el-scrollbar:first-child {
.el-checkbox {
display: none;
}
}
.el-scrollbar:nth-child(2) {
.el-checkbox {
display: none;
}
}
}