<a-tree-select
:maxTagCount="6"
@deselect="deSelectQueryDetailTreeData"
@select="initQueryDetailTreeData"
style="width: 270px"
v-model:value="formState.queryTypes"
:tree-data="state.queryTypeTreeData"
:field-names="state.queryTypeFiledNames"
treeCheckable
@clear="onClearTypeTree"
:treeCheckStrictly="true"
allow-clear
:placeholder="'请选择'"
/>
<a-tree-select
v-model:value="formState.attributeList"
show-search
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
placeholder="请输入关键字搜索"
:field-names="state.queryDetailFieldNames"
tree-default-expand-all
tree-node-filter-prop="attributeName"
multiple
:maxTagCount="6"
style="width: 270px"
@change="handleDetailChange"
@dropdownVisibleChange="onQueryDetailChange"
:tree-data="state.queryDetailTreeData"
:treeCheckStrictly="true"
allow-clear
/>
完整代码案例: https://gist.github.com/serendipitywzz/689a42b515f4b31cc17b610d9716971f
标签:github,gist,689a42b515f4b31cc17b610d9716971f,tree,案例,select From: https://www.cnblogs.com/openmind-ink/p/17916145.html