The Cascader cascade selector of elementui in vue

<el-form-item label="" label-width="120px" prop="ProductTypeId">
    <el-cascader :props="{
           label: "ProductTypeName",
          children: "ChildNodeList",
          value: "ProductTypeId"
                 }"
      :options="options" v-model="EnterForm.ProductTypeId" :change-on-select="true">
    </el-cascader>
  </el-form-item>
  
  id1,2 2 id

Mar.02,2022

I looked at the document and it didn't seem to work. You can uniformly process the data before submitting it, taking the last item in the array. But the problem is that if the form needs to be edited, you won't be able to find the selected item.

Menu