当前位置:   article > 正文

el-select 多选 collapse-tags 折叠显示详情页查看解决方案_el-cascader collapse-tags

el-cascader collapse-tags

禁用下拉项所有数据,去掉关闭叉

  1. <el-form-item label="所属分公司"
  2. prop="affiliatedCompany">
  3. <el-select v-model="affiliatedCompanyApplyList"
  4. multiple
  5. :class="watchEdit === 'watch'?'tagmul-class':''"
  6. clearable
  7. collapse-tags
  8. :filterable="watchEdit === 'watch'?false:true"
  9. placeholder="请选择"
  10. @change="changeAffiliatedCompany($event)">
  11. <el-option v-for="item in optionObj.logisticsOrgList"
  12. :key="item.dictCode"
  13. :label="item.dictName"
  14. :disabled="watchEdit === 'watch'"
  15. :value="item.dictCode" />
  16. </el-select>
  17. </el-form-item>
  18. .tagmul-class {
  19. /deep/ .el-tag.el-tag--info .el-tag__close {
  20. display: none;
  21. }
  22. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/107288
推荐阅读