current position:Home>Is there any way for cascader selector in element UI to get whether it is selected all

Is there any way for cascader selector in element UI to get whether it is selected all

2022-01-27 01:23:10 CSDN Q & A

<el-form ref="form" :model="form" label-width="80px">     <el-form-item label=" host ">     <el-cascader v-model="form.host"           placeholder="IP Or group "           :options="options"           :show-all-levels="false"           :props="{ multiple: true }"           filterable>     </el-cascader></el-form-item>
My solution ideas and tried methods
What I want to achieve

What I want to achieve is , If all the first level options are selected , I just need to get the value of the first level option , If not all are selected I'll get the value of the secondary option

img

img




Refer to the answer 1:



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270123085396.html

Random recommended