关于javascript:vuetreeselect-树下拉组件被遮挡问题

8次阅读

共计 406 个字符,预计需要花费 2 分钟才能阅读完成。

vue-treeselect 组件官网中文网站: https://www.vue-treeselect.cn/
需要背景: 在 el-tabs 内容中增加此组件呈现被遮挡问题
通过文档查问解决办法

<treeselect
    v-model="params.wardIds"
    :options="hospitalWardTree"
    value-consists-of="LEAF_PRIORITY"
    placeholder="请抉择(可多选)"
    :multiple="true"
    class="topSearchTree"
    no-options-text="临时没有内容"
    no-children-text="临时没有内容"
    no-results-text="没有匹配内容"
    :normalizer="normalizer"
    :appendToBody="true"
  />

appendToBody 属性设置为 true 则能够解决被遮挡问题
记录一下, 以防之后遗记

正文完
 0